/* Palette from the intro: warm + optimistic (cream, coral, sun) anchored by a responsible deep navy */
:root {
  --bg: #fff7e8;
  --surface: #ffffff;
  --text: #1f2340;
  --ink: #1f2340;
  --muted: #5b5f7a;
  --line: #1f2340;
  --accent: #d4502c;
  --accent-ink: #1f2340;
  --sun: #ffc83d;
  --coral: #ff6a45;
  --accent-soft: #f6ecd6;
  --radius: 16px;
  --shadow: 4px 4px 0 var(--ink);
  --display: "Plus Jakarta Sans", "Noto Sans TC", -apple-system, sans-serif;
  --font: "Plus Jakarta Sans", "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14172e; --surface: #1d2142; --text: #f6efe0; --ink: #f6efe0; --muted: #a9adc8;
    --line: #f6efe0; --accent: #ff7a5c; --sun: #ffd25e; --coral: #ff7a5c; --accent-soft: #3a3350;
    --accent-ink: #1f2340;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.7; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
html[data-lang="en"] .zh { display: none !important; }
html[data-lang="zh"] .en { display: none !important; }

.wrap { max-width: 1040px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
a { color: var(--accent); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 2px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand::after { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); margin-left: 4px; }
.nav nav { display: flex; gap: 20px; }
.nav nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav nav a:hover { color: var(--accent); }
.lang { font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--text); background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 3px 14px; }
.lang:hover { transform: translateY(-1px); }

/* Hero */
.hero { position: relative; padding-top: 64px; padding-bottom: 40px; }
.hi { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 8vw, 84px); line-height: 1; letter-spacing: -0.03em; margin: 0 0 12px; }
.stickers { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.st { font-weight: 700; font-size: 15px; padding: 5px 16px; border: 2px solid var(--line); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); color: #1f2340; }
.st { background: var(--surface); }
h1 { font-family: var(--display); font-size: clamp(20px, 2.8vw, 28px); line-height: 1.22; margin: 0 0 14px; letter-spacing: -0.015em; max-width: 20em; font-weight: 800; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 15px; margin: 0 0 18px; }
.lead { font-size: 18px; color: var(--muted); max-width: 38em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 10px 22px; border-radius: 999px; text-decoration: none; border: 2px solid var(--line); color: var(--text); background: var(--surface); font-size: 16px; font-weight: 700; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn.primary { background: var(--ink); color: var(--bg); }


.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 44px 0 0; padding: 0; }
.stats div { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stats dt { font-family: var(--display); font-size: 32px; font-weight: 800; color: var(--accent); line-height: 1.2; }
.stats dd { margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Blocks */
.block { padding-top: 56px; padding-bottom: 24px; }
h2 { font-family: var(--display); font-weight: 800; font-size: 30px; margin: 0 0 20px; letter-spacing: -0.015em; display: inline-block; background: linear-gradient(transparent 60%, color-mix(in srgb, var(--sun) 80%, transparent) 60%); padding: 0 4px; }
.sub { color: var(--muted); margin: -8px 0 24px; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.prose p { margin: 0 0 14px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 2px 12px; font-size: 14px; font-weight: 500; }

/* Collapsibles */
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

.xp, .cases { display: grid; gap: 14px; }
.item, .case { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); transition: box-shadow .15s, transform .15s; }
.item:hover, .case:hover { box-shadow: var(--shadow); transform: translate(-2px, -2px); }
.item[open], .case[open] { box-shadow: 6px 6px 0 var(--ink); transform: translate(-2px, -2px); }

.item summary { display: grid; grid-template-columns: 150px 1fr 28px; gap: 20px; padding: 18px 20px; align-items: start; }
.item summary::after, .case summary::after { content: "+"; font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 24px; width: 28px; height: 28px; text-align: center; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); justify-self: end; }
.item[open] summary::after, .case[open] summary::after { content: "–"; background: var(--ink); color: var(--bg); }
.item .when { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; padding-top: 2px; font-weight: 500; }
.item .head { display: grid; gap: 2px; }
.item .co { font-family: var(--display); font-size: 21px; font-weight: 800; }
.item .role { color: var(--accent); font-size: 15px; font-weight: 700; }
.item .brief { color: var(--muted); font-size: 15px; margin-top: 4px; }
.detail { padding: 0 20px 18px 190px; }
.detail ul { margin: 0; padding-left: 20px; }
.detail li { margin-bottom: 6px; }

.case summary { padding: 18px 20px; display: grid; grid-template-columns: 1fr auto 28px; gap: 4px 12px; align-items: center; }
.case .tag { grid-column: 1 / -1; font-size: 13px; color: var(--accent); font-weight: 700; }
.case .title { font-family: var(--display); font-size: 20px; font-weight: 800; line-height: 1.35; }
.case .result { font-size: 14px; font-weight: 700; background: var(--accent-soft); color: var(--ink); border: 2px solid var(--line); padding: 2px 12px; border-radius: 999px; white-space: nowrap; }
.case-body { padding: 0 20px 20px; }
.case-body p { margin: 0 0 12px; }
.case dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 10px 20px; }
.case dt { color: var(--muted); font-size: 14px; padding-top: 2px; font-weight: 700; }
.case dd { margin: 0; }
.links { display: flex; gap: 16px; margin-top: 4px; font-weight: 700; }
.note { color: var(--muted); font-size: 14px; }

.contact { padding-bottom: 56px; }
.foot { padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: 14px; border-top: 2px solid var(--line); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav nav { display: none; }
  .hero { padding-top: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 20px; }
  .item summary { grid-template-columns: 1fr 28px; gap: 4px 12px; }
  .item .when { grid-column: 1 / -1; }
  .detail { padding: 0 20px 18px; }
  .case summary { grid-template-columns: 1fr 28px; }
  .case .result { grid-column: 1; justify-self: start; margin-top: 6px; }
  .case summary::after { grid-row: 2; grid-column: 2; }
  .case dl { grid-template-columns: 1fr; gap: 2px; }
  .case dt { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }

h1 em { font-style: normal; color: var(--accent); }

/* Headline tagline stays on a single line on tablet/desktop */
@media (min-width: 600px) { h1 { max-width: none; white-space: nowrap; font-size: clamp(18px, 3vw, 28px); } }
