:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #15171c;
  --muted: #5b6070;
  --line: #e2e0d9;
  --accent: #2f4fd6;
  --accent-ink: #ffffff;
  --accent-soft: #e8ecfb;
  --radius: 14px;
  --max: 1080px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --surface: #171a20;
    --ink: #eceef2;
    --muted: #a2a8b6;
    --line: #2a2e37;
    --accent: #8ea2ff;
    --accent-ink: #0d1020;
    --accent-soft: #1d2340;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
}
a { color: var(--accent); text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; color: var(--accent); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 750; }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 650; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 640px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.serif { font-family: var(--serif); font-style: italic; }

/* Sections */
.hero { padding: 88px 0 72px; }
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.page-head { padding: 64px 0 32px; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 10px; }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card .muted, .muted { color: var(--muted); }

.meaning { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 800px) { .meaning { grid-template-columns: 1fr 1.3fr; } }
.word { font-family: var(--serif); font-size: clamp(34px, 5vw, 48px); line-height: 1.1; }
.word small { display: block; font-family: var(--font); font-size: 15px; color: var(--muted); margin-top: 8px; letter-spacing: 0; }

/* App feature */
.app { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
@media (min-width: 800px) { .app { grid-template-columns: auto 1fr; padding: 36px; } }
.app-icon { width: 112px; height: 112px; border-radius: 26px; background: radial-gradient(circle at 50% 38%, #3a2410, #170b02 70%); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.app-icon svg { width: 52px; height: 52px; }
.app-tag { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 19px; margin-bottom: 12px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; padding: 0; list-style: none; }
.pills li { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); }

.list { margin: 0; padding-left: 20px; }
.list li { margin-bottom: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
