/* Sumery landing skeleton — shared by every product site.
   Only the "Product tokens" block differs between products; the rest is the
   brand's desk scene (work/docs/brand/DESIGN.md §0, §3). Light scene = tools,
   html[data-scene="night"] = games. */

/* ---------- Product tokens: Virgo amber (DESIGN.md §3) ---------- */
:root {
  --accent: #f5a524;        /* fills: buttons, markers */
  --accent-text: #b45309;   /* accent used as text on paper (≥ 4.5:1) */
  --accent-ink: #1b1547;    /* text on an accent fill — amber needs dark text */
  --accent-soft: rgba(245, 165, 36, 0.16);
  --hue: #ffb347;           /* icon gradient ends, decoration only */
  --hue-light: #ffe08a;
}
html[data-scene="night"] {
  --accent: #fbbf24;
  --accent-text: #fbbf24;
}

/* ---------- Brand tokens ---------- */
:root {
  --wall: #f7efe4;
  --wall-deep: #efe3d2;
  --paper: #fffaf3;
  --ink: #2a2740;
  --ink-soft: #5c5675;
  --line: rgba(42, 39, 64, 0.14);
  --line-strong: rgba(42, 39, 64, 0.26);
  --wood: #e4c9a4;
  --wood-deep: #c9a677;
  --night: #0a0c1a;
  --night-2: #1c2044;
  --cream: #fffbf3;
  --ok: #2f7d5b;
  --warn: #b45309;
  --shadow: 0 18px 40px -22px rgba(42, 39, 64, 0.5), 0 2px 6px -2px rgba(42, 39, 64, 0.12);
  --display: "Yuanti SC", "YouYuan", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --w: 1120px;
  color-scheme: light;
}
:root:lang(en) {
  --display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html[data-scene="night"] {
  --wall: #0a0c1a;
  --wall-deep: #121633;
  --paper: #161a38;
  --ink: #fffbf3;
  --ink-soft: #b9b4d4;
  --line: rgba(255, 251, 243, 0.12);
  --line-strong: rgba(255, 251, 243, 0.24);
  --wood: #262b5c;
  --wood-deep: #1c2044;
  --ok: #6ee7b7;
  --warn: #fbbf24;
  --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.8), 0 2px 6px -2px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font: 16px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  accent-color: var(--accent);
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img { display: block; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
code, kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.08em 0.4em;
  border-radius: 6px;
  background: var(--accent-soft);
  overflow-wrap: anywhere;
}
kbd { background: var(--paper); border: 1px solid var(--line-strong); border-bottom-width: 2px; }
strong { font-weight: 650; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--wall); z-index: 10; }
.skip:focus { top: 12px; }
.i { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Status strip + header ---------- */
.status {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px;
  padding: 9px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--wall-deep);
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-align: center;
}
.status-label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
}
.top {
  max-width: var(--w); margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; gap: 24px;
}
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.mark-icon { border-radius: 22.5%; }
.mark-text { display: grid; line-height: 1.25; }
.kicker { font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.12em; color: var(--ink-soft); }
.wordmark { font-weight: 600; font-size: 15px; letter-spacing: 0.01em; }
.nav ul { display: flex; gap: 4px; }
.nav a, .lang {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  text-decoration: none; color: var(--ink-soft); font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: var(--wall-deep); color: var(--ink); }
.lang { border: 1px solid var(--line-strong); color: var(--ink); }
.lang:hover { background: var(--ink); color: var(--wall); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--paper); }
.btn-text { color: var(--accent-text); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--w); margin: 0 auto; padding: 48px 24px 96px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center;
}
.eyebrow { font: 500 0.78rem/1.4 var(--mono); letter-spacing: 0.12em; color: var(--accent-text); text-transform: uppercase; }
.hero h1 {
  margin-top: 18px;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.12; letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero h1 .line { display: block; }
.hero h1 .line + .line { color: var(--accent-text); }
.lede { margin-top: 22px; max-width: 36em; color: var(--ink-soft); font-size: 1.06rem; }
.lede strong { color: var(--ink); }
.hero .actions { margin-top: 30px; }
.fine { margin-top: 14px; color: var(--ink-soft); font-size: 0.86rem; }
.hero-art { position: relative; }
.hero-art figcaption { margin-top: 14px; text-align: center; font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.08em; color: var(--ink-soft); }

/* The desk the product object sits on: wall above, a wooden edge below. */
.desk {
  position: relative; padding: 28px 22px 44px; border-radius: 22px;
  background:
    linear-gradient(to bottom, transparent 0 78%, var(--wood) 78% 94%, var(--wood-deep) 94%),
    radial-gradient(120% 90% at 30% 0%, var(--paper) 0%, transparent 70%);
  border: 1px solid var(--line);
}

/* ---------- Bands (screens 2–6) ---------- */
.band { max-width: var(--w); margin: 0 auto; padding: 88px 24px; }
.band-paper {
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
  border-block: 1px solid var(--line);
}
.band-head { max-width: 46em; margin-bottom: 40px; }
.band h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; text-wrap: balance; }
.band-sub { margin-top: 12px; color: var(--ink-soft); }
.band-note { margin-top: 32px; max-width: 60em; color: var(--ink-soft); font-size: 0.95rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; counter-reset: step; }
.step { padding: 24px 22px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.step-n { font: 600 0.8rem/1 var(--mono); letter-spacing: 0.1em; color: var(--accent-text); }
.step h3 { margin-top: 14px; font-size: 1.08rem; line-height: 1.4; }
.step p { margin-top: 8px; color: var(--ink-soft); font-size: 0.96rem; }

.bounds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.bounds li { padding-left: 18px; border-left: 3px solid var(--accent); }
.bounds h3 { font-size: 1.06rem; line-height: 1.45; }
.bounds p { margin-top: 6px; color: var(--ink-soft); font-size: 0.96rem; }

.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.catalog-item { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.catalog dt { font-weight: 650; font-size: 1.04rem; }
.catalog dt::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 8px; border-radius: 3px; background: var(--accent); }
.catalog dd { margin-top: 10px; color: var(--ink-soft); font-size: 0.96rem; }

.get { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: start; }
.get-copy p { max-width: 38em; color: var(--ink-soft); }
.get-copy p + p { margin-top: 14px; }
.get-copy .actions { margin-top: 28px; }
.platforms { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); overflow: hidden; font-size: 0.95rem; }
.platforms th, .platforms td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.platforms thead th { font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.platforms tbody tr:last-child th, .platforms tbody tr:last-child td { border-bottom: 0; }
.platforms td { color: var(--accent-text); font-weight: 600; }

/* ---------- Footer ---------- */
.foot { max-width: var(--w); margin: 0 auto; padding: 40px 24px 56px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.86rem; }
.foot-note { margin-top: 6px; font-size: 0.8rem; }
.foot-filing { margin-top: 8px; font-size: 0.78rem; }
.foot-filing a { color: inherit; text-decoration: none; }
.foot-filing a:hover { text-decoration: underline; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-art { animation: rise 0.8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-art { animation-delay: 0.22s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 28px; }
  .get { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .bounds, .catalog { grid-template-columns: 1fr; }
  .band { padding-block: 64px; }
}

/* ======================================================================
   Product object: Virgo's TODO.md sheet and its reconciliation.
   Everything below is product-specific (src/art.mjs renders the markup).
   ====================================================================== */
.sheet {
  position: relative; padding: 20px 20px 16px; border-radius: 14px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 33px, rgba(42, 39, 64, 0.06) 33px 34px),
    var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}
.sheet-name { display: flex; align-items: center; gap: 8px; font: 600 0.8rem/1 var(--mono); color: var(--ink-soft); padding-bottom: 12px; border-bottom: 1px dashed var(--line-strong); }
.sheet-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.todo { margin-top: 6px; }
.todo-line {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: start; gap: 10px;
  padding: 7px 8px; border-radius: 8px;
  font: 0.86rem/1.45 var(--mono);
}
.todo-box {
  width: 17px; height: 17px; margin-top: 2px; border: 1.5px solid var(--line-strong); border-radius: 5px;
  display: grid; place-items: center; font-size: 0.72rem; color: var(--accent-ink); background: var(--paper);
}
.todo-line .todo-box:not(:empty) { background: var(--accent); border-color: var(--accent); }
.todo-marks { color: var(--accent-text); font-weight: 600; }
.todo-note { display: block; color: var(--ink-soft); font-size: 0.8rem; }
.todo-ev { font-size: 0.74rem; background: none; padding: 0; color: var(--ink-soft); white-space: nowrap; margin-top: 2px; }
.todo-ev--none { opacity: 0.5; }
.todo-line.is-ok .todo-ev { color: var(--ok); }
.todo-line.is-warn { background: rgba(245, 165, 36, 0.14); box-shadow: inset 3px 0 0 var(--accent); }
.findings {
  position: relative; margin: -18px 0 0 auto; width: min(88%, 340px);
  padding: 16px 18px; border-radius: 14px;
  background: var(--night); color: var(--cream);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
  font-size: 0.84rem; line-height: 1.5;
}
.findings-title { font: 600 0.74rem/1.4 var(--mono); letter-spacing: 0.1em; color: var(--hue-light); }
.findings ul { margin-top: 8px; display: grid; gap: 8px; }
.findings li { display: grid; padding-left: 12px; border-left: 2px solid var(--hue); }
.findings li span { color: rgba(255, 251, 243, 0.72); }
.findings-foot { margin-top: 10px; font: 500 0.7rem/1.4 var(--mono); letter-spacing: 0.08em; color: rgba(255, 251, 243, 0.55); }
@media (max-width: 520px) {
  .todo-line { grid-template-columns: 20px minmax(0, 1fr); }
  .todo-ev { grid-column: 2; }
  .findings { width: 100%; margin-top: 12px; transform: none; }
}
