/* fullgrove.com · one stylesheet, no scripts, system fonts only. Calm paper, grove greens, one ember accent. */

:root {
  --bg: #f3f0e6;
  --surface: #fbf9f3;
  --surface-2: #ece7d8;
  --ink: #12231b;
  --muted: #4c5b52;
  --line: #d8d1bf;
  --grove: #0c462e;
  --teal: #0e6857;
  --ember: #c8741f;
  --ember-ink: #8f4f0f;
  --on-grove: #f3f0e6;
  --focus: #0e6857;
  --shadow: 0 1px 0 rgba(12, 70, 46, .06), 0 12px 32px -18px rgba(12, 70, 46, .35);

  --serif: ui-serif, "New York", "Songti TC", "Noto Serif TC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --measure: 68ch;
  --wide: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1510;
    --surface: #0f1f18;
    --surface-2: #142a20;
    --ink: #e7eee8;
    --muted: #a3b3a9;
    --line: #22382d;
    --grove: #8fcfae;
    --teal: #62c3ad;
    --ember: #e3a15a;
    --ember-ink: #e9b375;
    --on-grove: #0a1510;
    --focus: #62c3ad;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 16px 36px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1510; --surface: #0f1f18; --surface-2: #142a20; --ink: #e7eee8; --muted: #a3b3a9; --line: #22382d;
  --grove: #8fcfae; --teal: #62c3ad; --ember: #e3a15a; --ember-ink: #e9b375; --on-grove: #0a1510; --focus: #62c3ad;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
:lang(zh-Hant) body, body:lang(zh-Hant) { line-height: 1.85; letter-spacing: .02em; }

a { color: var(--teal); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--grove); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin: 0; color: var(--ink); }
:lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(zh-Hant) h3 { letter-spacing: .03em; line-height: 1.35; }
p { margin: 0 0 var(--s4); }

.skip { position: absolute; left: -999px; top: var(--s2); background: var(--surface); padding: var(--s2) var(--s4); z-index: 10; }
.skip:focus { left: var(--s4); }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 720px) { .wrap { padding: 0 var(--s6); } }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); min-height: 64px; padding-top: var(--s2); padding-bottom: var(--s2); }
.brand { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--grove); font-family: var(--serif); font-weight: 700; font-size: 1.25rem; min-height: 44px; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0 var(--s1); margin-left: auto; align-items: center; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); color: var(--muted); text-decoration: none; font-size: .95rem; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav .lang { border: 1px solid var(--line); color: var(--ink); margin-left: var(--s2); }
@media (max-width: 640px) {
  .nav { margin-left: 0; width: 100%; justify-content: flex-start; }
  .nav a { padding: 0 var(--s2); font-size: .9rem; }
  .nav .lang { margin-left: auto; }
}

/* Hero */
.hero { padding: var(--s8) 0 var(--s7); position: relative; overflow: hidden; }
.hero .wrap { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 920px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } .hero { padding: var(--s9) 0 var(--s8); } }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ember-ink); margin-bottom: var(--s4); }
:lang(zh-Hant) .eyebrow { letter-spacing: .2em; font-size: .85rem; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); color: var(--grove); margin-bottom: var(--s5); }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 36em; margin-bottom: var(--s6); }
.cta { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

.store-badge {
  display: inline-flex; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s2) var(--s5) var(--s2) var(--s4);
  background: var(--ink); color: var(--bg); border-radius: 14px; text-decoration: none; line-height: 1.15;
}
.store-badge:hover { color: var(--bg); background: var(--grove); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: .72rem; opacity: .8; letter-spacing: .02em; }
.store-badge strong { display: block; font-size: 1.15rem; font-weight: 700; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); font-weight: 500; }

/* Ledger mock (pure markup) */
.ledger {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: var(--s5); box-shadow: var(--shadow);
  max-width: 420px; width: 100%; justify-self: center; font-size: .95rem;
}
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s4); color: var(--muted); font-size: .85rem; }
.ledger-head b { font-family: var(--serif); color: var(--ink); font-size: 1.05rem; }
.ledger-input { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4); border-radius: 14px; background: var(--surface-2); margin-bottom: var(--s4); font-weight: 500; }
.ledger-input::before { content: ""; width: 2px; height: 1.1em; background: var(--ember); order: 2; animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ledger-input::before { animation: none; } }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 1fr auto; gap: 0 var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.ledger li:first-child { border-top: 0; }
.ledger .what { font-weight: 500; }
.ledger .amt { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.ledger .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s1); }
.chip { display: inline-flex; align-items: center; font-size: .75rem; line-height: 1; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.chip.ok { border-color: color-mix(in srgb, var(--teal) 50%, var(--line)); color: var(--teal); }
.chip.due { border-color: color-mix(in srgb, var(--ember) 60%, var(--line)); color: var(--ember-ink); }

/* Sections */
section { padding: var(--s8) 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: var(--s6); }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: var(--s3); color: var(--grove); }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.features { display: grid; gap: var(--s5); }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
.feature { padding: var(--s5); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.band .feature { background: var(--bg); }
.feature .num { font-family: var(--serif); color: var(--ember); font-size: 1rem; font-weight: 700; display: block; margin-bottom: var(--s2); }
.feature h3 { font-size: 1.4rem; margin-bottom: var(--s3); }
.feature p { color: var(--muted); }
.feature p:last-child { margin-bottom: 0; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
@media (min-width: 760px) { .checks { grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s6); } }
.checks li { padding-left: var(--s6); position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--grove); box-shadow: inset 0 0 0 4px var(--surface); border: 2px solid var(--grove);
}
.checks b { display: block; font-size: 1.05rem; }
.checks span { color: var(--muted); }

.closing { text-align: left; }
.closing .wrap { display: grid; gap: var(--s5); }
.closing h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--grove); }

/* Document pages (privacy, terms, support, student) */
.doc { padding: var(--s7) 0 var(--s8); }
.doc .wrap { max-width: calc(var(--measure) + 64px); }
.doc h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); color: var(--grove); margin-bottom: var(--s3); }
.doc .dates { color: var(--muted); font-size: .95rem; margin-bottom: var(--s6); }
.doc h2 { font-size: 1.5rem; margin: var(--s7) 0 var(--s4); padding-top: var(--s5); border-top: 1px solid var(--line); }
.doc h3 { font-size: 1.15rem; margin: var(--s5) 0 var(--s3); }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 var(--s4); }
.doc li { margin-bottom: var(--s2); }
.doc li::marker { color: var(--teal); }
.summary { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--grove); border-radius: 16px; padding: var(--s5); margin-bottom: var(--s6); }
.summary h2 { margin: 0 0 var(--s3); padding: 0; border: 0; font-size: 1.2rem; }
.summary ul { margin: 0; }
.toc { font-size: .95rem; columns: 2 14em; column-gap: var(--s6); margin-bottom: var(--s6); padding-left: 1.3em; }
.toc li { break-inside: avoid; }
.note { color: var(--muted); font-size: .95rem; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

.table-scroll { overflow-x: auto; margin: 0 0 var(--s5); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: var(--s3) var(--s4); border-top: 1px solid var(--line); }
thead th { border-top: 0; background: var(--surface-2); font-weight: 700; font-size: .85rem; letter-spacing: .02em; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); align-items: center; min-height: 56px; padding: var(--s3) 0; font-family: var(--serif); font-weight: 700; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 400; font-size: 1.5rem; color: var(--teal); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 var(--s4); color: var(--muted); }
.faq .answer p:last-child, .faq .answer ul:last-child { margin-bottom: 0; }

/* Student form (disabled) */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: var(--s4); margin-bottom: var(--s6); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: var(--s3); align-items: start; }
.steps li::before { content: counter(step); font-family: var(--serif); font-weight: 700; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grove); color: var(--on-grove); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: var(--s5); }
.soon { display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); border-radius: 12px; background: color-mix(in srgb, var(--ember) 14%, var(--surface)); color: var(--ember-ink); font-weight: 700; margin-bottom: var(--s5); }
.soon::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ember); flex: none; }
.field { display: grid; gap: var(--s2); margin-bottom: var(--s4); }
.field label { font-weight: 500; font-size: .95rem; }
.field input, .field select {
  font: inherit; min-height: 48px; padding: var(--s2) var(--s3); border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--muted); width: 100%;
}
.field input:disabled, .field select:disabled, button:disabled { cursor: not-allowed; opacity: .7; }
.field .hint { font-size: .85rem; color: var(--muted); }
.button { font: inherit; font-weight: 700; min-height: 48px; padding: 0 var(--s5); border-radius: 999px; border: 0; background: var(--grove); color: var(--on-grove); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--s7) 0 var(--s6); color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: grid; gap: var(--s5); }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 var(--s4); }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.site-footer p { margin: 0 0 var(--s2); }

/* 404 */
.lost { min-height: 60vh; display: grid; align-content: center; padding: var(--s8) 0; }
.lost h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); color: var(--grove); margin-bottom: var(--s4); }
.lost .pair { display: grid; gap: var(--s6); }
@media (min-width: 760px) { .lost .pair { grid-template-columns: 1fr 1fr; } }

/* Utilities (no inline styles: the CSP allows only this stylesheet) */
.mt5 { margin-top: var(--s5); }
.mt6 { margin-top: var(--s6); }
fieldset.bare { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.bare legend { padding: 0; margin-bottom: var(--s4); }
