/* Moonmark site. Colors from lib/core/theme.dart (MoonmarkColors). No JS. */
:root {
  --bg: #15111f;
  --surface: #221a30;
  --surface-high: #2e2440;
  --primary: #c9a0dc;
  --gold: #e8c77e;
  --text: #f3ecf7;
  --muted: #b3a6c2;
  --line: rgba(201, 160, 220, 0.18);
  --radius: 16px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201, 160, 220, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(232, 199, 126, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(21, 17, 31, 0.85); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 1.3rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-header nav { display: flex; gap: 18px; font-size: 0.95rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }

/* Badges */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; font-size: 0.85rem; color: var(--gold); background: rgba(232, 199, 126, 0.06);
}
.notice { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.notice li { font-size: 0.85rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.notice li strong { color: var(--text); font-weight: 600; }
.store-badge { display: inline-block; margin-top: 26px; }
.store-badge img { height: 54px; width: auto; }

/* Hero */
.hero { padding: 48px 0 32px; overflow-x: clip; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero .lead strong { color: var(--text); font-weight: 600; }
.hero-visual { justify-self: center; position: relative; }
.hero-visual img { width: min(260px, 66vw); border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line); }
.hero-visual::before {
  content: ""; position: absolute; inset: -12% -20%; z-index: -1;
  background: radial-gradient(closest-side, rgba(201, 160, 220, 0.35), transparent);
}

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head p { color: var(--muted); }

/* Characters */
.cards { display: grid; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card picture img { width: 100%; aspect-ratio: 925 / 356; object-fit: cover; }
.card .body { padding: 18px 20px 22px; }
.card h3 { margin-bottom: 4px; }
.card .trope { color: var(--gold); font-size: 0.92rem; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }

/* How it works */
.steps { display: grid; gap: 22px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-high); color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); font-size: 0.97rem; }
.steps img { border-radius: 12px; width: 100%; aspect-ratio: 560 / 1217; object-fit: cover; object-position: top; border: 1px solid var(--line); }
/* Mobile: the screen sits small beside the text, so the page stays short. */
.steps li { display: grid; grid-template-columns: 1fr 104px; grid-template-rows: auto auto 1fr; column-gap: 16px; align-items: start; }
.steps li > * , .steps li::before { grid-column: 1; }
.steps li img { grid-column: 2; grid-row: 1 / span 3; }
.steps p { margin: 0; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* CTA */
.cta { text-align: center; }
.cta .box { background: linear-gradient(160deg, var(--surface-high), var(--surface)); border: 1px solid var(--line); border-radius: 24px; padding: 40px 22px; }

/* Legal / prose pages */
.prose { padding: 40px 0 64px; }
.prose h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.6em; }
.prose li ul { margin-top: 0.5em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a { color: var(--text); text-decoration: none; }
.site-footer nav a:hover { color: var(--gold); }
.site-footer p { margin: 0; }

@media (min-width: 760px) {
  .hero { padding: 72px 0 48px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { display: block; }
  .steps p { margin-bottom: 1em; }
  .steps li img { margin-top: 6px; }
  .hero-visual img { width: min(320px, 78vw); }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .site-header nav { gap: 12px; font-size: 0.9rem; }
}
@media (prefers-reduced-motion: no-preference) {
  a, .faq summary::after { transition: color 0.15s ease; }
}
