:root {
  --bg: #07111f;
  --panel: #101e30;
  --panel-2: #15273d;
  --line: #2d4056;
  --ink: #eff5fa;
  --muted: #99aec5;
  --blue: #7eb7ed;
  --gold: #e8c994;
  --max: 1120px;
  --pad: 24px;
  --header: 4.5rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 18% -10%, #16304a 0%, transparent 42%),
    var(--bg);
  color: var(--ink);
  font: 17px/1.55 "Segoe UI", Inter, system-ui, sans-serif;
}
img { max-width: 100%; }
a { color: var(--blue); }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 30;
  background: var(--gold);
  color: #1b1408;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 650;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header);
  padding: 10px var(--pad);
  background: #07111f;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid #a9c6da55;
  background: #203c59;
  color: var(--gold);
  font: 24px/1 Georgia, "Palatino Linotype", serif;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 680; letter-spacing: -0.02em; }
.brand-line {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-items: center; max-width: 720px; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}
.site-nav a:hover { color: var(--ink); background: #ffffff10; }

.hero, .section { max-width: var(--max); margin: 0 auto; padding: 56px var(--pad); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 40px;
  align-items: center;
  padding-top: 48px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: Georgia, "Palatino Linotype", Palatino, serif; font-weight: 500; letter-spacing: -0.02em; }
h1 { margin: 0 0 12px; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; }
h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; }
h3 { margin: 0 0 8px; font-size: 1.25rem; }
.lede, .section-lead { margin: 0 0 16px; color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.status {
  margin: 0 0 22px;
  padding: 12px 14px;
  border: 1px solid #e8c99466;
  border-radius: 12px;
  background: #e8c99414;
  color: var(--ink);
  max-width: 62ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.button, .text-link, .preview-controls button, .faq button {
  font: inherit;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--gold);
  color: #1b1408;
  text-decoration: none;
  font-weight: 680;
}
.text-link { color: var(--blue); }

.hero-book {
  margin: 0;
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  min-height: 280px;
  filter: drop-shadow(0 24px 40px rgb(0 0 0 / 35%));
}
.board {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--line);
}
.board-left {
  background: linear-gradient(160deg, #1a3148, #0d1b2b);
  color: var(--muted);
  border-right: 0;
  border-radius: 6px 0 0 6px;
}
.board-right {
  background:
    linear-gradient(165deg, rgb(232 201 148 / 18%), transparent 40%),
    var(--panel-2);
  border-radius: 0 14px 14px 0;
}
.board-kicker, .page-kicker {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.board strong { font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; }

.band {
  max-width: none;
  background: linear-gradient(180deg, #0c1a2b, #0a1624);
  border-block: 1px solid var(--line);
}
.band > * { max-width: var(--max); }
.band .eyebrow, .band h2, .band .section-lead, .band .points { margin-left: auto; margin-right: auto; }
.band .section-lead, .band .points { padding-inline: 0; }
.section.band { padding-inline: var(--pad); }
.points, .plain { margin: 0; padding-left: 1.15rem; }
.points li, .plain li { margin: 8px 0; }
.points { max-width: 70ch; color: var(--ink); }

.grid, .split, .eco { display: grid; gap: 16px; }
.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; }
.eco { grid-template-columns: 1fr 1fr; margin-top: 22px; }
.eco-card .eco-state {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eco-card .eco-host {
  margin: 0 0 8px;
  color: var(--blue);
  font-weight: 650;
}
.split { grid-template-columns: 1fr 1fr; margin-top: 8px; }
.card, .split > div, .preview, .faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.card, .split > div { padding: 18px 18px 8px; }
.card p, .split p, .note, .help, .faq p { color: var(--muted); }
.note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
}

.preview { padding: 18px; margin-top: 8px; }
.preview:focus-visible { outline-offset: 4px; }
.stage {
  display: grid;
  min-height: 280px;
  background: #081422;
  border-radius: 12px;
  overflow: hidden;
}
.spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
}
.spread[hidden] { display: none !important; }
.page {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 280px;
  padding: 22px;
  background: #f4efe6;
  color: #1c2430;
}
.page + .page { box-shadow: inset 1px 0 #1c243014; }
.page-muted { background: #24384c; color: var(--muted); justify-content: center; }
.page-cover { background: linear-gradient(160deg, #1d3d5c, #12283c); color: var(--ink); }
.page-type, .page-end { background: #f7f1e6; }
.page strong { font-size: 1.6rem; }
.swatch {
  display: block;
  height: 140px;
  border-radius: 8px;
  margin-bottom: auto;
}
.swatch-a { background: linear-gradient(135deg, #7eb7ed, #203c59); }
.swatch-b { background: linear-gradient(135deg, #e8c994, #8d6a3a); }
.swatch-c { background: linear-gradient(135deg, #d7e4ef, #6f8ea8); }
.caption { font-size: 0.92rem; color: #415066; }
.page-cover .caption, .page-muted .caption { color: var(--muted); }
.preview-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.preview-controls button {
  min-height: 44px;
  min-width: 112px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  cursor: pointer;
}
.preview-controls button:disabled { opacity: 0.4; cursor: not-allowed; }
#preview-label { margin: 0; text-align: center; }
.help { margin: 10px 0 0; font-size: 0.95rem; }

.faq { display: grid; gap: 10px; }
.faq-item { padding: 4px 16px; }
.faq h3 { margin: 0; font-family: "Segoe UI", Inter, system-ui, sans-serif; font-size: 1.05rem; font-weight: 650; }
.faq button {
  width: 100%;
  min-height: 48px;
  padding: 12px 28px 12px 0;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
}
.faq button::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.3rem;
}
.faq button[aria-expanded="true"]::after { content: "–"; }
.faq p { margin: 0 0 14px; }

.site-footer {
  padding: 28px var(--pad) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}
.footer-brand { color: var(--ink); margin-bottom: 4px; }
.site-footer p { margin: 4px auto; max-width: 70ch; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin-top: 12px; }
.site-footer a { color: var(--muted); text-decoration: none; }

@media (max-width: 860px) {
  .hero, .grid, .split, .eco { grid-template-columns: 1fr; }
  .hero-book { max-width: 460px; }
}

@media (max-width: 720px) {
  :root { --pad: 16px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px 14px;
    background: #07111f;
    border-bottom: 1px solid var(--line);
    z-index: 2;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .spread, .page { min-height: 220px; }
  .page { min-height: 220px; padding: 14px; }
  .swatch { height: 88px; }
  .preview-controls { flex-wrap: wrap; }
  .preview-controls button { flex: 1; }
  #preview-label { flex-basis: 100%; order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
