@font-face {
  font-family: "Bitter";
  src: url("assets/fonts/bitter-variable-latin.woff2") format("woff2-variations");
  font-weight: 300 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3-variable-latin.woff2") format("woff2-variations");
  font-weight: 300 800; font-style: normal; font-display: swap;
}

:root {
  --midnight: #17213B;
  --midnight-soft: #25314F;
  --star: #F5C542;
  --star-deep: #7A5B06;
  --paper: #F6F1E4;
  --paper-2: #EFE7D4;
  --ink: #131A2E;
  --muted: #4B5570;
  --rule: #C9BEA3;
  --shell: min(1180px, 100% - 2.5rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.62;
  overflow-x: clip;
}

h1, h2, h3, .wordmark, .price th, dt {
  font-family: "Bitter", Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: inherit; }

/* --- banner --- */
.demo-banner {
  display: block;
  background: var(--midnight);
  color: var(--star);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0.6rem 1rem;
  text-decoration: none;
  border-bottom: 2px solid var(--star);
}
.demo-banner b { color: #FFF6DC; }

/* --- topbar --- */
.topbar {
  width: var(--shell);
  margin: 0 auto;
  padding: 1.15rem 0 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}
.wordmark { font-size: 1.15rem; font-weight: 400; }
.wordmark b { font-weight: 800; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
.topbar nav a {
  font-size: 0.925rem;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.topbar nav a:hover, .topbar nav a:focus-visible { color: var(--ink); border-bottom-color: var(--star-deep); }

/* --- split skeleton --- */
.split {
  width: var(--shell);
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
  padding: 2.75rem 0;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.split:last-of-type { border-bottom: 0; }
.split-text { min-width: 0; }
.split-art { min-width: 0; }

.band { position: relative; }
.band::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  z-index: -1;
}

.kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--star-deep);
}

h1 { font-size: clamp(2.35rem, 8.5vw, 3.5rem); margin: 0 0 1rem; }
h1 em { font-style: normal; color: var(--midnight); position: relative; }
h1 em::after {
  content: "";
  display: block;
  height: 6px;
  margin-top: 0.15rem;
  background: var(--star);
  border-radius: 3px;
}
h2 { font-size: clamp(1.6rem, 5.2vw, 2.1rem); margin: 0 0 0.9rem; }
h3 { font-size: 1.08rem; margin: 0 0 0.25rem; }

.lede { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.4rem; }
p { margin: 0 0 1rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.5rem; }
.btn {
  display: inline-block;
  background: var(--midnight);
  color: #FFF6DC;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--midnight);
}
.btn--ghost { background: transparent; color: var(--midnight); }
.btn:hover, .btn:focus-visible { background: var(--midnight-soft); border-color: var(--midnight-soft); color: #FFF6DC; }

.facts {
  list-style: none;
  margin: 0;
  padding: 0.9rem 0 0;
  border-top: 1px dashed var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.facts b { color: var(--ink); font-family: "Bitter", Georgia, serif; }

/* --- illustration plates --- */
.plate { width: 100%; height: auto; display: block; }
.plate .frame { fill: none; stroke: var(--rule); stroke-width: 2; stroke-dasharray: 7 6; }
.plate .ink { fill: none; stroke: var(--midnight); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.plate .ink--fill { fill: var(--midnight); }
.plate .dash { fill: none; stroke: var(--star-deep); stroke-width: 2.5; stroke-dasharray: 6 8; stroke-linecap: round; }
.plate .dot { fill: var(--star); stroke: var(--midnight); stroke-width: 2.5; }
.plate .ring { fill: none; stroke: var(--star); stroke-width: 2; opacity: 0.55; }
.plate .ring--thin { stroke-dasharray: 4 9; opacity: 0.4; }
.plate .line { fill: none; stroke: var(--star); stroke-width: 2.5; stroke-linejoin: round; opacity: 0.85; }
.plate .stars circle { fill: var(--star); }
.plate .dust circle { fill: #E7DFC8; }
.plate--sky .dust circle { fill: #C9D2EA; }
.plate .horizon { fill: none; stroke: #8FA0C9; stroke-width: 3; stroke-linejoin: round; }
.plate .moons .ink { stroke-width: 3; }
.plate-label {
  fill: var(--muted);
  font-family: "Source Sans 3", sans-serif;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-anchor: middle;
  text-transform: uppercase;
}
.plate--sky .plate-label { fill: var(--muted); }

/* --- lists / tables --- */
.guide-list { list-style: none; margin: 0; padding: 0; counter-reset: g; }
.guide-list li {
  counter-increment: g;
  padding: 0.9rem 0 0.9rem 3rem;
  border-top: 1px solid var(--rule);
  position: relative;
}
.guide-list li::before {
  content: counter(g, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.95rem;
  font-family: "Bitter", Georgia, serif;
  font-weight: 700;
  color: var(--star-deep);
  font-size: 1rem;
}
.guide-list p { margin: 0; color: var(--muted); }

.cal, .contact { margin: 0; }
.cal > div, .contact > div { padding: 0.7rem 0; border-top: 1px solid var(--rule); }
dt { font-size: 0.98rem; margin: 0; }
dd { margin: 0.15rem 0 0; color: var(--muted); }

.price { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.price caption { text-align: left; color: var(--muted); font-size: 0.9rem; padding-bottom: 0.6rem; }
.price th, .price td { padding: 0.6rem 0; border-bottom: 1px dotted var(--rule); text-align: left; font-weight: 700; }
.price th { font-weight: 600; font-size: 1rem; }
.price td { text-align: right; white-space: nowrap; font-family: "Bitter", Georgia, serif; }

.fine { font-size: 0.92rem; color: var(--muted); margin: 0; }
.sign { font-family: "Bitter", Georgia, serif; color: var(--midnight); margin: 0; }

/* --- footer --- */
.footer {
  background: var(--midnight);
  color: #E6E9F4;
  padding: 2.25rem 1.25rem 1.5rem;
  text-align: center;
}
.footer-mark { font-family: "Bitter", Georgia, serif; font-size: 1.05rem; margin: 0 0 0.35rem; color: #FFF6DC; }
.footer .small { font-size: 0.9rem; color: #C3CBE0; margin: 0; }
.footer a { color: var(--star); }

.ai-note {
  margin: 1.5rem auto 0;
  max-width: 62ch;
  padding: 0 1rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #C3CBE0;
}
.ai-note strong { font-weight: 600; color: #FFF6DC; }

:focus-visible { outline: 3px solid var(--star-deep); outline-offset: 3px; }

/* --- desktop --- */
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; padding: 4rem 0; }
  .split--flip .split-text { order: 2; }
  .split--flip .split-art { order: 1; }
  .hero { padding-top: 3rem; }
  body { font-size: 1.09rem; }
  .plate { max-width: 460px; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
