:root {
  color-scheme: light;
  --paper: #faf3e3;
  --ink: #292c2c;
  --muted: #6e6758;
  --accent: #bc4517;
  --line: #98977f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
p { line-height: 1.65; }

.welcome {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.scenery {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  /* Match the app's 1024 × 700 canvas and its 0.6–1.25 scale limits. */
  --unit: clamp(0.6px, min(0.09765625vw, 0.14285714svh), 1.25px);
}

.sketch { position: absolute; background: var(--line); mask: var(--art) center / contain no-repeat; }
.dragon {
  --art: url("assets/LaunchDragon.png");
  width: calc(345 * var(--unit)); height: calc(205 * var(--unit));
  left: calc(26.5 * var(--unit)); bottom: calc(41.5 * var(--unit)); opacity: 0.9;
}
.blocks {
  --art: url("assets/LaunchBlocks.png");
  width: calc(200 * var(--unit)); height: calc(123 * var(--unit));
  right: calc(176 * var(--unit)); bottom: calc(48.5 * var(--unit)); opacity: 0.6;
}
.tree {
  --art: url("assets/LaunchRainTree.png");
  width: calc(150 * var(--unit)); height: calc(107 * var(--unit));
  right: calc(29 * var(--unit)); bottom: calc(52.5 * var(--unit)); opacity: 0.8;
}
.kite {
  --art: url("assets/LaunchKite.png");
  width: calc(62 * var(--unit)); height: calc(127.4 * var(--unit));
  left: calc(113 * var(--unit)); top: calc(107.3 * var(--unit));
  transform: rotate(-12deg); opacity: 0.85;
}
.bird {
  position: absolute;
  width: calc(139 * var(--unit)); height: auto;
  right: calc(86.5 * var(--unit)); top: calc(89.7 * var(--unit));
  transform: rotate(-13deg);
}
.trail {
  position: absolute;
  width: calc(212 * var(--unit)); height: calc(121.14 * var(--unit));
  right: calc(158 * var(--unit)); top: calc(107.4 * var(--unit));
  transform: rotate(-12deg);
  stroke: var(--line); stroke-width: 4; stroke-dasharray: 8.25 14.85; stroke-linecap: round; opacity: 0.65;
}
.compass {
  position: absolute;
  width: calc(45 * var(--unit)); height: calc(45 * var(--unit));
  left: calc(81.5 * var(--unit)); top: calc(50% + 11.5 * var(--unit));
  stroke: var(--line); stroke-width: 3.2; opacity: 0.7;
}

.landing {
  flex: 1;
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: clamp(80px, 17svh, 190px) 24px clamp(90px, 20svh, 205px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}
h1 { margin: 0 0 18px; font-size: clamp(2.5rem, 4.3vw, 3.6rem); letter-spacing: -0.035em; line-height: 1.1; }
.tagline { margin: 0 0 8px; font-size: 1.2rem; }
.description { max-width: 460px; margin: 0; color: var(--muted); }
.status { margin: 20px 0 14px; font-size: 0.9rem; color: var(--muted); }
.actions { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px; border-radius: 999px;
  background: var(--accent); color: var(--paper);
  font-size: 1.05rem; font-weight: 600; text-decoration: none;
}
.button:hover { background: #9e3912; }
.button.secondary { background: #f0d5be; color: #a73c13; }
.button.secondary:hover { background: #eac7aa; }
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 12px 24px;
  padding: 18px 24px 24px; font-size: 0.85rem; color: var(--muted);
}
.site-footer a { min-height: 24px; }

.shell { max-width: 800px; margin: 0 auto; padding: 32px 24px 64px; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 64px; }
.brand { color: var(--ink); font-size: 1.2rem; font-weight: 700; text-decoration: none; }
.nav-links { display: flex; gap: 20px; }
.hero { margin-bottom: 36px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.2rem); }
.hero p, .policy-section p, .panel p, .panel li { color: var(--muted); }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 0 0 12px; }
.policy-section + .policy-section { margin-top: 32px; }
.policy-section ul, .panel ul { color: var(--muted); padding-left: 24px; line-height: 1.65; }
li + li { margin-top: 10px; }
.content { display: grid; gap: 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.meta { font-size: 0.9rem; }
code { font-size: 0.95em; }

@media (max-width: 700px) {
  .landing { padding: 165px 24px 190px; }
  .scenery { --unit: 0.65px; }
  .kite { left: 30px; top: 42px; }
  .bird { right: 30px; top: 48px; }
  .trail { right: 76px; top: 64px; }
  .compass { display: none; }
  .dragon { left: 12px; bottom: 55px; width: 190px; height: 113px; }
  .blocks { right: 67px; bottom: 65px; width: 110px; height: 68px; }
  .tree { right: 8px; bottom: 66px; width: 78px; height: 56px; }
  .site-footer { gap: 8px 20px; padding-inline: 16px; }
  .shell { padding: 24px 20px 48px; }
  .nav { flex-wrap: wrap; margin-bottom: 44px; }
}

@media (max-height: 600px) and (min-width: 701px) {
  .landing { padding: 56px 24px 80px; }
  .kite, .trail, .compass { display: none; }
  .bird { top: 32px; right: 32px; width: 70px; }
  .dragon, .blocks, .tree { opacity: 0.35; }
}

@media (prefers-contrast: more) {
  :root { --muted: var(--ink); }
  .scenery { opacity: 0.4; }
}
