:root {
  color-scheme: light;
  --paper: #f5eedc;
  --paper-deep: #e9ddc1;
  --ink: #20302b;
  --forest: #183e35;
  --forest-soft: #315b4e;
  --rust: #a94f34;
  --brass: #c49a51;
  --line: rgba(24, 62, 53, 0.18);
  --muted: #65726a;
  --white: #fffdf7;
  --serif: Georgia, "Times New Roman", serif;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(196, 154, 81, 0.12), transparent 34rem),
    var(--paper);
  line-height: 1.6;
}

a { color: var(--forest); text-underline-offset: 0.2em; }
a:hover { color: var(--rust); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 4px;
  border-radius: 3px;
}

img { display: block; max-width: 100%; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 190px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.3vw, 30px);
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}
.site-nav a:hover { color: var(--rust); }

.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.hero {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  border-radius: 18px;
  background: var(--forest);
  color: var(--paper);
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 62, 53, 0.99) 0%, rgba(24, 62, 53, 0.91) 43%, rgba(24, 62, 53, 0.16) 100%);
}

.hero-copy { z-index: 2; padding: clamp(30px, 6vw, 74px); }
.eyebrow, .label {
  margin: 0 0 14px;
  color: var(--brass);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; }
.hero h1 { max-width: 570px; margin-bottom: 20px; font-size: clamp(3.1rem, 6.3vw, 5.6rem); letter-spacing: -0.055em; }
.hero-lede { max-width: 500px; margin-bottom: 30px; color: #f5eedc; font-size: clamp(1.08rem, 1.6vw, 1.28rem); }
.hero-note { color: #d7d4bf; font-size: 0.9rem; }

.hero-art { position: absolute; z-index: -2; inset: 0 0 0 40%; }
.hero-art > img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.87; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(24,62,53,.22), transparent 38%), linear-gradient(90deg, var(--forest), transparent 70%); }
.floating-object {
  position: absolute;
  right: 4%;
  bottom: 6%;
  width: clamp(130px, 22vw, 240px);
  padding: 12px;
  transform: rotate(4deg);
  border: 1px solid rgba(196, 154, 81, .58);
  border-radius: 8px;
  background: rgba(245, 238, 220, .94);
  box-shadow: 0 22px 50px rgba(16, 33, 28, .3);
}
.floating-object img { width: 100%; }
.floating-object figcaption { padding: 4px 4px 1px; color: var(--forest); font-family: var(--serif); font-size: .83rem; text-align: center; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--brass);
  color: #1e2c27;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); background: #d7b36e; color: #1e2c27; }
.button-secondary { border-color: rgba(245,238,220,.52); background: transparent; color: var(--paper); }
.button-secondary:hover { background: rgba(245,238,220,.1); color: var(--paper); }

.status-strip {
  margin: 22px 0 0;
  padding: 17px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,253,247,.45);
  color: var(--muted);
  font-size: .9rem;
}
.status-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--rust); }
.status-strip strong { color: var(--forest); }

.section { padding: clamp(58px, 8vw, 104px) 0; }
.section-heading { max-width: 740px; margin: 0 auto 42px; text-align: center; }
.section-heading h2 { margin-bottom: 14px; color: var(--forest); font-size: clamp(2.35rem, 4.2vw, 3.6rem); letter-spacing: -.04em; }
.section-heading p { margin-bottom: 0; color: var(--muted); font-size: 1.04rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,253,247,.55);
}
.feature-index { margin-bottom: 35px; color: var(--rust); font-family: var(--serif); font-size: 1.15rem; }
.feature-card h3 { margin-bottom: 10px; color: var(--forest); font-size: 1.55rem; }
.feature-card p { margin-bottom: 0; color: var(--muted); }

.play-section { padding: clamp(38px, 6vw, 72px); border-radius: 14px; background: #e9ddc1; }
.play-section .section-heading { margin-bottom: 34px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 25px 18px 10px 0; border-top: 1px solid rgba(24,62,53,.34); counter-increment: step; }
.step::before { content: "0" counter(step); position: absolute; top: -14px; left: 0; padding-right: 12px; background: #e9ddc1; color: var(--rust); font-size: .76rem; font-weight: 800; letter-spacing: .1em; }
.step h3 { margin-bottom: 8px; color: var(--forest); font-size: 1.35rem; }
.step p { margin-bottom: 0; color: #59675f; font-size: .93rem; }

.story-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(28px, 6vw, 75px); }
.story-art { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: #e9ddc1; }
.story-art img { width: min(100%, 360px); margin: auto; }
.story-art::after { content: "Bellwether · A fictional town"; position: absolute; right: 14px; bottom: 13px; padding: 6px 9px; border-radius: 3px; background: var(--forest); color: var(--paper); font-size: .7rem; letter-spacing: .06em; }
.story-copy h2 { margin-bottom: 16px; color: var(--forest); font-size: clamp(2.25rem, 4vw, 3.25rem); }
.story-copy p { color: var(--muted); font-size: 1.02rem; }
.story-copy .small-note { margin-top: 18px; color: var(--forest); font-size: .88rem; font-weight: 650; }

.prelaunch-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 28px 32px; border-radius: 10px; background: var(--forest); color: var(--paper); }
.prelaunch-card h2 { margin-bottom: 8px; font-size: 1.8rem; }
.prelaunch-card p { max-width: 700px; margin-bottom: 0; color: #dfdece; }
.prelaunch-card .button { white-space: nowrap; }

.site-footer { margin-top: 76px; border-top: 1px solid var(--line); }
.footer-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 42px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-brand { display: grid; gap: 8px; color: var(--muted); font-size: .85rem; }
.footer-brand img { width: 150px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.footer-nav a { font-size: .86rem; font-weight: 650; text-decoration: none; }

/* Legal and support pages */
.subpage-hero { padding: 54px 0 36px; border-bottom: 1px solid var(--line); }
.crumb { margin-bottom: 18px; color: var(--muted); font-size: .86rem; }
.crumb a { text-decoration: none; }
.subpage-hero h1 { max-width: 900px; margin-bottom: 14px; color: var(--forest); font-size: clamp(2.7rem, 6vw, 4.8rem); letter-spacing: -.045em; }
.subpage-hero .lede { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 1.08rem; }
.draft-notice { margin: 24px 0 0; padding: 16px 18px; border-left: 4px solid var(--rust); background: rgba(169,79,52,.08); color: #583c31; }
.draft-notice strong { color: #753b2a; }
.document { max-width: 850px; padding: 42px 0 82px; }
.document h2 { margin: 38px 0 12px; color: var(--forest); font-size: 1.8rem; }
.document h3 { margin: 24px 0 8px; color: var(--forest); font-family: inherit; font-size: 1.1rem; font-weight: 750; }
.document p, .document li { color: #4d5b54; }
.document ul { padding-left: 1.25rem; }
.document li + li { margin-top: 8px; }
.document a { overflow-wrap: anywhere; }
.detail-box { margin: 24px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,253,247,.55); }
.detail-box p:last-child { margin-bottom: 0; }
.data-list { display: grid; grid-template-columns: 180px minmax(0,1fr); border-top: 1px solid var(--line); }
.data-list > div { padding: 13px 12px; border-bottom: 1px solid var(--line); }
.data-list > div:nth-child(odd) { color: var(--forest); font-weight: 700; }
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.support-card { padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,253,247,.55); }
.support-card h2 { margin: 0 0 10px; color: var(--forest); font-size: 1.65rem; }
.support-card p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .site-header { width: min(100% - 28px, 1180px); min-height: auto; padding: 18px 0 14px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .brand img { width: 164px; }
  .site-nav { width: 100%; justify-content: flex-start; gap: 10px 18px; }
  .site-nav a { font-size: .84rem; }
  .page-shell { width: min(100% - 28px, 1180px); }
  .hero { min-height: auto; grid-template-columns: 1fr; border-radius: 12px; }
  .hero::after { background: linear-gradient(0deg, rgba(24,62,53,.97) 0%, rgba(24,62,53,.87) 54%, rgba(24,62,53,.32) 100%); }
  .hero-art { inset: 0; }
  .hero-art > img { object-position: 61% center; }
  .floating-object { display: none; }
  .hero-copy { padding: 42px 26px 34px; }
  .hero h1 { max-width: 450px; font-size: clamp(3rem, 13vw, 4.7rem); }
  .hero-lede { max-width: 450px; }
  .floating-object { right: 12px; bottom: 14px; width: 112px; padding: 6px; }
  .floating-object figcaption { font-size: .7rem; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { min-height: 0; padding: 22px; }
  .feature-index { margin-bottom: 20px; }
  .steps { grid-template-columns: 1fr; gap: 22px; padding-left: 2px; }
  .step { padding: 25px 0 0; }
  .play-section { padding: 34px 22px; }
  .story-panel { grid-template-columns: 1fr; }
  .story-art { max-width: 440px; margin: 0 auto; }
  .prelaunch-card { grid-template-columns: 1fr; padding: 24px; }
  .prelaunch-card .button { justify-self: start; }
  .footer-inner { width: min(100% - 28px, 1180px); flex-direction: column; align-items: flex-start; }
  .subpage-hero { padding: 34px 0 28px; }
  .document { padding: 28px 0 60px; }
  .data-list { grid-template-columns: 1fr; }
  .data-list > div:nth-child(odd) { padding-bottom: 2px; border-bottom: 0; }
  .data-list > div:nth-child(even) { padding-top: 0; }
  .support-grid { grid-template-columns: 1fr; }
}

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