:root {
  --night: #241433;
  --plum: #6d28a8;
  --plum-deep: #4c1d75;
  --persimmon: #ef5b2a;
  --mist: #f3eef8;
  --paper: #fffcf8;
  --ink: #1b1424;
  --muted: #5e5368;
  --line: #e3d9ec;
  --focus: #ef5b2a;
  --display: "Trebuchet MS", "Segoe UI", sans-serif;
  --text: "Segoe UI", system-ui, sans-serif;
  --mono: Consolas, "Courier New", monospace;
  --head-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--mist);
  font-family: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--plum-deep);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--head-h);
  background: rgba(255, 252, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-head.is-compact {
  box-shadow: 0 8px 24px rgba(36, 20, 51, 0.08);
}

.head-row {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.mark img {
  width: 36px;
  height: 36px;
}

.menu-btn {
  margin-left: auto;
  min-width: 5.5rem;
  min-height: 2.75rem;
  border: 1px solid var(--night);
  background: var(--paper);
  color: var(--night);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0 1.25rem 1rem;
}

.menu.is-open {
  display: grid;
  flex: 1 0 100%;
  gap: 0.35rem;
  padding-top: 0.35rem;
}

.menu a {
  display: block;
  min-height: 2.75rem;
  padding: 0.55rem 0.2rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.stage {
  background:
    radial-gradient(circle at 90% 10%, rgba(239, 91, 42, 0.35), transparent 28%),
    var(--night);
  color: #f7f2ea;
  scroll-margin-top: var(--head-h);
}

.stage-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.2rem 1.25rem 3.5rem;
  display: grid;
  gap: 1.5rem;
}

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0b59a;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

.stage p {
  margin: 0;
  max-width: 42rem;
}

.lead {
  font-size: 1.15rem;
}

.snap {
  font-family: var(--display);
  font-size: 1.35rem;
  color: #ffd7c8;
}

.cta-slot {
  min-height: 3.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12.5rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.25rem;
  background: var(--persimmon);
  color: #1b1424;
  text-decoration: none;
  font-weight: 700;
}

.btn:hover {
  background: #ff7a4d;
}

.btn-ghost {
  background: transparent;
  color: #f7f2ea;
  border: 1px solid rgba(247, 242, 234, 0.45);
}

.btn-ghost:hover {
  background: rgba(247, 242, 234, 0.08);
}

.meters {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.meters li {
  min-height: 5.5rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 252, 248, 0.06);
  border: 1px solid rgba(247, 242, 234, 0.16);
}

.meters span {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f0b59a;
}

.meters strong {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--display);
  font-size: 1.05rem;
}

.sheet {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  scroll-margin-top: calc(var(--head-h) + 0.5rem);
}

.sheet h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.sheet p {
  margin: 0 0 1rem;
  max-width: 46rem;
}

.snap-ink {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--plum-deep);
}

.rail {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  counter-reset: step;
}

.rail li {
  position: relative;
  margin: 0;
  padding: 0 0 1.4rem 3.2rem;
  border-left: 2px solid var(--plum);
}

.rail li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.rail li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -0.85rem;
  top: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--plum);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.7rem;
  text-align: center;
}

.split {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem 0.4rem;
}

.panel h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.figure {
  margin: 1.5rem 0 0;
}

.figure img {
  width: 100%;
  height: auto;
  background: var(--night);
}

.figure figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.spec {
  margin: 1rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.spec div {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  background: var(--paper);
  border-left: 4px solid var(--persimmon);
}

.spec dt {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec dd {
  margin: 0;
}

.caution {
  margin: 0;
  padding: 2.5rem 1.25rem 2.8rem;
  background: #2a1638;
  color: #f7f2ea;
  scroll-margin-top: calc(var(--head-h) + 0.5rem);
}

.caution-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.caution h2 {
  margin: 0 0 1rem;
}

.caution p {
  margin: 0 0 1rem;
  max-width: 46rem;
}

.caution .snap {
  color: #ffb089;
}

.legal {
  scroll-margin-top: calc(var(--head-h) + 0.5rem);
}

.site-foot {
  background: var(--night);
  color: #efe7f4;
  padding: 2.2rem 1.25rem 1.4rem;
}

.foot-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 1.4rem;
}

.site-foot a {
  color: #ffd7c8;
}

.site-foot p {
  margin: 0 0 0.45rem;
}

.foot-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #f0b59a;
}

.foot-links {
  display: grid;
  gap: 0.35rem;
}

.fine {
  max-width: 72rem;
  margin: 1.4rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(247, 242, 234, 0.16);
  color: #cbbdd6;
  font-size: 0.92rem;
}

@media (min-width: 760px) {
  .menu-btn {
    display: none;
  }

  .menu,
  .menu.is-open {
    display: flex;
    flex: 0 1 auto;
    margin-left: auto;
    padding: 0;
    gap: 0.3rem;
  }

  .menu a {
    min-height: 2.5rem;
    padding: 0.4rem 0.7rem;
    border-bottom: 0;
  }

  .menu a:hover {
    color: var(--persimmon);
  }

  .split {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .spec {
    grid-template-columns: 1fr 1fr;
  }

  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .meters {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }
}
