/* =========================================================
   Galaxy Play — site styles
   Light mode is default; dark mode via [data-theme="dark"]
   ========================================================= */

:root {
  --bg: #F3F1FB;
  --bg-2: #ECE8FA;
  --surface: #FFFFFF;
  --surface-2: #F8F7FE;
  --ink: #16123A;
  --ink-2: #4A4670;
  --ink-3: #6E6A93;
  --line: #DCD7F2;
  --violet: #6B3CF5;
  --violet-ink: #5428E0;
  --cyan: #00A6BD;
  --gold: #F2A20C;
  --coral: #F0506E;
  --lime: #3DB86A;
  --sky-1: rgba(123, 77, 255, .16);
  --sky-2: rgba(0, 184, 212, .14);
  --sky-3: rgba(255, 194, 61, .14);
  --star: rgba(84, 40, 224, .22);
  --shadow: 0 1px 2px rgba(22, 18, 58, .06), 0 8px 24px -12px rgba(22, 18, 58, .18);
  --shadow-lift: 0 2px 4px rgba(22, 18, 58, .06), 0 18px 40px -18px rgba(84, 40, 224, .35);
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 9px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0D0B24;
  --bg-2: #120F30;
  --surface: #17143A;
  --surface-2: #1D1946;
  --ink: #EEECFF;
  --ink-2: #C3BFE6;
  --ink-3: #9893C4;
  --line: #2C2760;
  --violet: #9B7BFF;
  --violet-ink: #B39BFF;
  --cyan: #2FD3E8;
  --gold: #FFC23D;
  --coral: #FF7891;
  --lime: #63D98C;
  --sky-1: rgba(123, 77, 255, .28);
  --sky-2: rgba(0, 184, 212, .18);
  --sky-3: rgba(255, 120, 145, .10);
  --star: rgba(255, 255, 255, .55);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .7);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 20px 44px -18px rgba(123, 77, 255, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* ---------- Sky background: nebula + starfield ---------- */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 88% -8%, var(--sky-1), transparent 65%),
    radial-gradient(700px 480px at -6% 22%, var(--sky-2), transparent 65%),
    radial-gradient(800px 500px at 60% 110%, var(--sky-3), transparent 65%);
}
.sky::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, var(--star), transparent 60%),
    radial-gradient(1px 1px at 130px 80px, var(--star), transparent 60%),
    radial-gradient(1.5px 1.5px at 210px 160px, var(--star), transparent 60%),
    radial-gradient(1px 1px at 300px 40px, var(--star), transparent 60%),
    radial-gradient(1.2px 1.2px at 380px 220px, var(--star), transparent 60%),
    radial-gradient(1px 1px at 90px 260px, var(--star), transparent 60%);
  background-size: 420px 300px;
  opacity: .9;
}
:root[data-theme="light"] .sky::before { opacity: .45; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.logo-mark { width: 36px; height: 36px; flex: none; }
.main-nav { display: flex; gap: 4px; margin-right: auto; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.main-nav a:hover { color: var(--ink); background: var(--bg-2); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.search-mini { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 4px 0 12px; height: 42px; }
.search-mini input { border: 0; background: transparent; color: var(--ink); font: inherit; font-size: .95rem; width: 150px; outline: none; }
.search-mini button { border: 0; background: transparent; color: var(--ink-3); width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; border-radius: 8px; }
.theme-toggle, .nav-toggle {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--violet); color: var(--violet); }
.theme-toggle .t-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .t-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .t-moon { display: block; }
.theme-toggle span { display: grid; place-items: center; }
.nav-toggle { display: none; }

/* ---------- Buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem/1 var(--body); padding: 14px 22px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--violet); color: #fff; text-decoration: none;
  box-shadow: 0 6px 18px -8px var(--violet);
}
.btn:hover { background: var(--violet-ink); color: #fff; }
:root[data-theme="dark"] .btn { color: #120F30; }
.btn-small { padding: 10px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--violet); }
:root[data-theme="dark"] .btn-ghost { color: var(--ink); }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.chip {
  display: inline-block; font-size: .8rem; font-weight: 700; text-decoration: none; padding: 5px 11px;
  border-radius: 999px; background: var(--chip-bg); color: var(--chip-ink); line-height: 1.2;
}
.chip:hover { filter: brightness(.96); color: var(--chip-ink); }
.chip-violet, .level-violet { --chip-bg: #EDE6FF; --chip-ink: #5428E0; --tone: #6B3CF5; }
.chip-cyan,   .level-cyan   { --chip-bg: #DDF6F9; --chip-ink: #00788A; --tone: #00A6BD; }
.chip-gold,   .level-gold   { --chip-bg: #FFF1D3; --chip-ink: #9A5D00; --tone: #F2A20C; }
.chip-coral,  .level-coral  { --chip-bg: #FFE3E8; --chip-ink: #C02446; --tone: #F0506E; }
.chip-lime,   .level-lime   { --chip-bg: #DFF5E7; --chip-ink: #1F7A43; --tone: #3DB86A; }
.chip-blue,   .level-blue   { --chip-bg: #E1EAFF; --chip-ink: #2850C8; --tone: #3D6BF2; }
.chip-pink,   .level-pink   { --chip-bg: #FBE3F7; --chip-ink: #A52596; --tone: #D63BC4; }
.chip-teal,   .level-teal   { --chip-bg: #DCF3EE; --chip-ink: #13735F; --tone: #1AA586; }
:root[data-theme="dark"] .chip-violet, :root[data-theme="dark"] .level-violet { --chip-bg: #2E2366; --chip-ink: #C6B4FF; --tone: #9B7BFF; }
:root[data-theme="dark"] .chip-cyan,   :root[data-theme="dark"] .level-cyan   { --chip-bg: #0F3A48; --chip-ink: #7FE7F4; --tone: #2FD3E8; }
:root[data-theme="dark"] .chip-gold,   :root[data-theme="dark"] .level-gold   { --chip-bg: #43330E; --chip-ink: #FFD27A; --tone: #FFC23D; }
:root[data-theme="dark"] .chip-coral,  :root[data-theme="dark"] .level-coral  { --chip-bg: #4A1E33; --chip-ink: #FFA9BA; --tone: #FF7891; }
:root[data-theme="dark"] .chip-lime,   :root[data-theme="dark"] .level-lime   { --chip-bg: #183F2A; --chip-ink: #92E8B0; --tone: #63D98C; }
:root[data-theme="dark"] .chip-blue,   :root[data-theme="dark"] .level-blue   { --chip-bg: #1C2A5E; --chip-ink: #A8BFFF; --tone: #7B9BFF; }
:root[data-theme="dark"] .chip-pink,   :root[data-theme="dark"] .level-pink   { --chip-bg: #4A1A48; --chip-ink: #F7A8EC; --tone: #EE6ADB; }
:root[data-theme="dark"] .chip-teal,   :root[data-theme="dark"] .level-teal   { --chip-bg: #123E36; --chip-ink: #86E3CD; --tone: #3CCCA9; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 20px; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; }
.search-big {
  display: flex; align-items: center; gap: 10px; margin: 28px 0 18px; padding: 6px 6px 6px 18px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); max-width: 560px; color: var(--ink-3);
}
.search-big:focus-within { border-color: var(--violet); }
.search-big input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.05rem; padding: 10px 0; }
.search-big input::placeholder, .search-mini input::placeholder { color: var(--ink-3); }
.hero-stats { color: var(--ink-3); font-size: .98rem; }
.hero-stats strong { color: var(--ink); }

.hero-feature { position: relative; }
.hero-feature::before {
  content: ""; position: absolute; inset: -14px -14px 28px 28px; border-radius: 30px; z-index: -1;
  background: linear-gradient(135deg, var(--violet), var(--cyan)); opacity: .22; transform: rotate(2.5deg);
}
.hero-feature-link { display: block; text-decoration: none; color: inherit; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lift); border: 1px solid var(--line); }
.hero-feature-link:hover { color: inherit; }
.hero-feature-link:hover h2 { color: var(--violet-ink); }
.hero-feature img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.hero-feature-body { padding: 22px 26px 26px; }
.hero-feature-body h2 { font-size: 1.6rem; margin: 10px 0 8px; }
.hero-feature-body p { color: var(--ink-2); margin: 0; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--gold); background: color-mix(in srgb, var(--gold) 15%, transparent); padding: 4px 10px; border-radius: 999px; }
:root[data-theme="light"] .badge { color: #8A5300; }

/* ---------- Sections ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; margin: 0; }
.section-head p { margin: 0; color: var(--ink-3); }
.levels, .picks, .latest, .related, .promise { padding-top: 40px; padding-bottom: 32px; }

/* ---------- Level select (signature element) ---------- */
.level-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.level {
  position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 20px 18px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink); overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.level::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tone) 30%, transparent), transparent 70%);
}
.level:hover { transform: translateY(-3px); border-color: var(--tone); box-shadow: var(--shadow-lift); color: var(--ink); }
.level-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--chip-bg); color: var(--chip-ink); }
.level-icon.big { width: 72px; height: 72px; border-radius: 20px; flex: none; }
.level-name { font-family: var(--display); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.01em; margin-top: 6px; }
.level-desc { color: var(--ink-3); font-size: .93rem; line-height: 1.45; flex: 1; }
.level-pips { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.level-pips i { width: 14px; height: 6px; border-radius: 3px; background: var(--tone); opacity: .85; }
.level-pips em { font-style: normal; font-size: .82rem; color: var(--ink-3); margin-left: 8px; font-weight: 700; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > *, .hero > *, .level-grid > *, .footer-grid > * { min-width: 0; }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.card-media { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.035); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .chip { align-self: flex-start; }
.card h3 { font-size: 1.22rem; margin: 2px 0 0; line-height: 1.25; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--violet-ink); }
.card-body > p { color: var(--ink-2); font-size: .97rem; margin: 0; flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ink-3); font-size: .85rem; margin: 6px 0 0; }

/* ---------- Promise band ---------- */
.promise-inner {
  border-radius: 28px; padding: 44px 48px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #1B1450, #2B1A7A 55%, #0E5C73);
  color: #EEECFF;
}
.promise-inner::before {
  content: ""; position: absolute; right: -60px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.14); box-shadow: 0 0 0 40px rgba(255,255,255,.04), 0 0 0 80px rgba(255,255,255,.03);
}
.promise-inner h2 { color: #fff; font-size: 1.9rem; }
.promise-inner p { max-width: 46em; color: #D4D0F5; font-size: 1.08rem; }
.promise-inner .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.promise-inner .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ---------- Page heads ---------- */
.page-head { padding-top: 56px; padding-bottom: 28px; }
.page-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); font-weight: 800; letter-spacing: -0.03em; }
.cat-pills { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-head { display: flex; gap: 24px; align-items: center; }
.cat-head h1 { margin-bottom: 6px; }
.cat-head .lede { margin: 0; }
.result-count { color: var(--ink-3); }
.empty { padding: 40px 0; color: var(--ink-2); font-size: 1.1rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 40px 0 10px; font-weight: 700; }
.pagination a { padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--surface); }
.pagination span { color: var(--ink-3); }

/* ---------- Single post ---------- */
.post-head { max-width: 860px; padding-top: 44px; padding-bottom: 12px; }
.crumbs { font-size: .9rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--violet-ink); text-decoration: underline; }
.post-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; }
.post-head .lede { margin-bottom: 24px; }
.byline { display: flex; align-items: center; gap: 12px; }
.byline .avatar svg { width: 44px; height: 44px; }
.byline a { font-weight: 700; color: var(--ink); text-decoration: none; }
.byline p { margin: 0; color: var(--ink-3); font-size: .9rem; display: flex; gap: 12px; flex-wrap: wrap; }
.dot-sep { display: inline-flex; align-items: center; gap: 4px; }
.post-hero { max-width: 1000px; margin: 28px auto 8px; }
.post-hero img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-hero figcaption, .prose figcaption { text-align: center; font-size: .88rem; color: var(--ink-3); margin-top: 10px; }
.post-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 48px; justify-content: center; padding-top: 28px; padding-bottom: 20px; }
.post-layout:not(:has(.toc)) { grid-template-columns: minmax(0, 720px); }
.toc { position: sticky; top: 92px; align-self: start; font-size: .92rem; }
.toc summary { font-family: var(--display); font-weight: 700; font-size: 1rem; cursor: pointer; margin-bottom: 10px; color: var(--ink); }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 8px; }
.toc a { color: var(--ink-3); text-decoration: none; display: block; line-height: 1.35; }
.toc a:hover, .toc a.active { color: var(--violet-ink); }

/* ---------- Prose ---------- */
.prose { font-size: 1.1rem; line-height: 1.72; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: 1.75rem; font-weight: 800; margin: 1.9em 0 .6em; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.3rem; font-weight: 700; margin: 1.6em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--violet); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose blockquote, .prose .tip {
  margin: 1.6em 0; padding: 18px 22px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--cyan);
}
.prose .tip p:last-child, .prose blockquote p:last-child { margin-bottom: 0; }
.prose .tip strong:first-child { color: var(--cyan); }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .98rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: table; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); font-family: var(--display); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose code { background: var(--bg-2); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.post-foot { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px dashed var(--line); color: var(--ink-3); font-size: .98rem; }
.static-prose { padding-bottom: 40px; }
.static-prose h2 { font-size: 1.45rem; }

/* ---------- Forms (contact) ---------- */
.contact-form { display: grid; gap: 16px; margin: 1.5em 0 2em; padding: 26px; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); outline: none; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 12px; font-weight: 700; }
.notice-ok { background: color-mix(in srgb, var(--lime) 18%, transparent); color: var(--ink); }
.notice-err { background: color-mix(in srgb, var(--coral) 18%, transparent); color: var(--ink); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-bottom: 80px; }
.notfound .search-big { margin-left: auto; margin-right: auto; }
.notfound .lede { margin-left: auto; margin-right: auto; }
.big-code { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; margin: 0 0 10px; background: linear-gradient(120deg, var(--violet), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 60px; background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-top: 52px; padding-bottom: 36px; }
.footer-about p { color: var(--ink-2); margin-top: 14px; font-size: .97rem; max-width: 34em; }
.footer-about .fine { font-size: .84rem; color: var(--ink-3); }
.site-footer h2 { font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer ul a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.site-footer ul a:hover { color: var(--violet-ink); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 26px; color: var(--ink-3); font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ---------- Cookie bar ---------- */
.cookie-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60;
  width: min(680px, calc(100% - 28px)); display: flex; align-items: center; gap: 16px;
  padding: 14px 16px 14px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lift);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar .btn { flex: none; white-space: nowrap; }
.cookie-bar p { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px 20px 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 8px; font-size: 1.05rem; }
  .nav-toggle { display: grid; }
  .header-inner { justify-content: space-between; }
  .level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-layout { grid-template-columns: minmax(0, 720px); }
  .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .search-mini { display: none; }
  .grid-3, .level-grid { grid-template-columns: minmax(0, 1fr); }
  .search-big .btn { padding: 12px 14px; }
  .search-big input { font-size: 1rem; }
  .grid { gap: 20px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .promise-inner { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cat-head { flex-direction: column; align-items: flex-start; }
  .prose { font-size: 1.04rem; }
  .prose table { display: block; overflow-x: auto; }
  .search-big { padding-left: 14px; }
  .search-big .btn { padding: 12px 16px; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .hero-feature::before { inset: -8px -8px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
