:root {
  --night: #17284a;
  --night-2: #101c36;
  --sand: #f3eee4;
  --sheet: #fffdf8;
  --ink: #1c1915;
  --muted: #5c564c;
  --line: #ddd4c6;
  --amber: #c9650d;
  --amber-deep: #8d4308;
  --sea: #2a6280;
  --header: 4.5rem;
  --measure: 66ch;
  --page: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 0.75rem);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, var(--night) 0 0.55rem, transparent 0.55rem),
    var(--sand);
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--sea);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--amber-deep);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 30;
  background: var(--amber);
  color: #1c1004;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.6rem;
}

.wrap {
  width: min(var(--page), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  background: var(--night);
  color: #f6f1e6;
  border-bottom: 3px solid var(--amber);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: #c9d3e6;
}

.nav-toggle {
  margin-left: auto;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid #8ea0c4;
  background: transparent;
  color: #f6f1e6;
  font: inherit;
  cursor: pointer;
}

.menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0 0.8rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--night-2);
  border-bottom: 3px solid var(--amber);
}

.menu.is-open {
  display: grid;
}

.menu a {
  display: block;
  color: #f6f1e6;
  text-decoration: none;
  padding: 0.75rem 1.1rem;
}

.menu a:hover {
  background: #1c3058;
  color: #fff;
}

.header-cta {
  display: none;
}

.hero {
  padding: 2.2rem 0 1.4rem;
}

.hero-grid {
  display: grid;
  gap: 1.4rem;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--amber-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 680;
}

h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.85rem, 4.4vw, 3.05rem);
  letter-spacing: -0.03em;
  max-width: 16ch;
}

h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
}

.lede,
.chapter p,
.legal p,
.fine p {
  max-width: var(--measure);
}

.lede {
  margin: 0 0 0.85rem;
  font-size: 1.08rem;
}

.chapter p,
.legal p,
.fine p {
  margin: 0 0 0.85rem;
}

.slip {
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(23, 40, 74, 0.08);
  min-height: 22rem;
}

.slip-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--night);
  color: #f6f1e6;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rows {
  margin: 0;
  padding: 0.4rem 1rem 0.2rem;
}

.rows div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.6rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
}

.rows dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.rows dd {
  margin: 0;
  font-weight: 650;
}

.slip-figure {
  margin: 0;
  padding: 0.85rem 1rem 0;
}

.slip-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #fbf8f2;
}

.cta-slot {
  margin: 0 0 1rem;
  min-height: 3.25rem;
}

.cta-slot .cta {
  margin: 0;
  max-width: 18rem;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  margin: 1rem;
  padding: 0.75rem 1rem;
  background: var(--amber);
  color: #1c1004;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.cta:hover {
  background: var(--amber-deep);
  color: #fff8ef;
}

.chapter {
  padding: 1.6rem 0 0.4rem;
}

.chapter-index {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.index-no {
  flex: 0 0 auto;
  color: var(--night);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.steps {
  margin: 0.3rem 0 1rem;
  padding: 0;
  list-style: none;
  max-width: 40rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.7rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--amber-deep);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.subblock {
  padding: 0.2rem 0 0.4rem;
}

.band {
  background: #e7eef3;
  border-top: 1px solid #d3dee6;
  border-bottom: 1px solid #d3dee6;
}

.band .chapter {
  padding-bottom: 1.2rem;
}

.specs {
  display: grid;
  gap: 0.75rem;
  margin: 0.4rem 0 1rem;
  padding: 0;
  list-style: none;
}

.specs li {
  background: var(--sheet);
  border-left: 4px solid var(--night);
  padding: 0.85rem 0.95rem;
  max-width: 40rem;
}

.specs strong {
  display: block;
  margin-bottom: 0.2rem;
}

.legal {
  padding: 1.7rem 0 1.2rem;
}

.legal h2 {
  margin-bottom: 0.8rem;
}

.site-footer {
  background: var(--night-2);
  color: #e6e0d4;
  padding: 2rem 0 1.4rem;
}

.site-footer a {
  color: #f0c48a;
}

.foot-grid {
  display: grid;
  gap: 1.3rem;
}

.site-footer h2 {
  font-size: 1rem;
  margin: 0 0 0.45rem;
  color: #fff;
}

.fine p,
.site-footer p {
  margin: 0 0 0.55rem;
  color: #d9d1c4;
  max-width: 42ch;
}

.stamp {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid #31466f;
  color: #c9d3e6;
  font-size: 0.95rem;
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }

  .menu {
    display: flex;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    margin-left: auto;
    gap: 0.2rem;
  }

  .menu a {
    padding: 0.4rem 0.7rem;
  }

  .header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0 0.85rem;
    background: var(--amber);
    color: #1c1004;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
  }

  .header-cta:hover {
    background: #f2b15a;
    color: #1c1004;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    align-items: start;
    gap: 2rem;
  }

  .slip {
    min-height: 28rem;
  }

  .foot-grid {
    grid-template-columns: 1.2fr 1fr 0.8fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
