:root {
  color-scheme: light;
  --teal-950: #17333a;
  --teal-800: #0b4f5c;
  --teal-600: #14788a;
  --paper: #f7f1e3;
  --sand: #d7b577;
  --magenta: #c9347a;
  --ink: #17333a;
  --muted: #607073;
  --line: #d9d4c7;
  font-family: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: #eef1ed;
  line-height: 1.55;
}

a {
  color: #07677b;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 20px 26px;
  color: white;
  background: linear-gradient(120deg, var(--teal-950), var(--teal-800));
}

.site-header img {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
}

.site-header h1,
.site-header p {
  margin: 0;
}

.site-header p {
  color: #d7e6e4;
}

.shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 112px);
}

.side-nav {
  position: relative;
  padding: 18px 14px;
  color: white;
  background: var(--teal-950);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0 0 16px;
  color: white;
  font-size: 20px;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.side-nav a {
  display: block;
  margin: 3px 0;
  padding: 9px 11px;
  color: white;
  border-radius: 6px;
  text-decoration: none;
}

.side-nav a:hover,
.side-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--sand);
}

main {
  min-width: 0;
  max-width: 1180px;
  padding: 28px;
}

.hero,
.panel,
.download-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 12px 34px rgb(23 51 58 / 8%);
}

.hero {
  padding: clamp(22px, 4vw, 48px);
  background: linear-gradient(135deg, white, var(--paper));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal-600);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2,
h3 {
  color: var(--teal-800);
}

.hero h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.hero p {
  max-width: 790px;
  font-size: 1.08rem;
}

.actions,
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 11px 15px;
  color: white;
  font-weight: 700;
  border-radius: 7px;
  background: var(--teal-800);
  text-decoration: none;
}

.button.secondary {
  color: var(--ink);
  background: var(--sand);
}

.panel {
  margin-top: 18px;
  padding: 22px;
}

.cards {
  align-items: stretch;
  margin-top: 18px;
}

.download-card {
  flex: 1 1 270px;
  max-width: 390px;
  padding: 20px;
}

.download-card code,
.hash {
  overflow-wrap: anywhere;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.fact {
  padding: 14px;
  border-left: 4px solid var(--teal-600);
  background: white;
}

pre {
  padding: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-left: 4px solid var(--sand);
  background: var(--paper);
}

.notice {
  padding: 13px 16px;
  border-left: 4px solid var(--magenta);
  background: #fff3f8;
}

.site-footer {
  margin-top: 28px;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

:root[data-nav-collapsed="true"] .shell {
  grid-template-columns: 70px minmax(0, 1fr);
}

:root[data-nav-collapsed="true"] .side-nav a {
  display: none;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    min-height: 96px;
    padding: 16px;
  }

  .site-header img {
    width: 62px;
    height: 62px;
  }

  .shell,
  :root[data-nav-collapsed="true"] .shell {
    display: block;
  }

  .side-nav {
    padding: 10px 12px;
  }

  .nav-toggle {
    margin: 0 0 8px;
  }

  :root:not([data-nav-collapsed="true"]) .side-nav a {
    display: inline-block;
  }

  main {
    padding: 14px;
  }
}
