/* =====================================================================
   TEMA — Rede de Portais de Conteúdo (Emissor Nacional)
   Sistema visual replicável. Mapeável para layouts/partials Blade.
   ---------------------------------------------------------------------
   • Tipografia: Schibsted Grotesk (display/UI) + Newsreader (corpo)
   • Cor: tinta slate quente + papel quente + acento esmeralda
   • Tema claro com alternância para escuro via [data-theme="dark"]
   ===================================================================== */

/* ---------- TOKENS ---------- */
:root {
  /* Marca — troque estes 3 por blog ao replicar */
  --brand: #0e7a57;
  --brand-bright: #14a273;
  --brand-deep: #0a5b41;

  /* Tipografia */
  --font-display: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;

  /* Superfícies — claro */
  --paper: #f4f1ea;
  --surface: #ffffff;
  --surface-2: #efebe1;
  --surface-3: #e7e2d6;
  --ink: #16181d;
  --ink-soft: #43464e;
  --ink-mute: #71757e;
  --line: rgba(20, 22, 28, 0.10);
  --line-strong: rgba(20, 22, 28, 0.18);

  --accent: var(--brand);
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--brand) 12%, transparent);
  --accent-line: color-mix(in srgb, var(--brand) 30%, transparent);

  /* Forma */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(16, 18, 24, 0.06), 0 1px 1px rgba(16, 18, 24, 0.04);
  --shadow: 0 4px 14px rgba(16, 18, 24, 0.08), 0 1px 3px rgba(16, 18, 24, 0.05);
  --shadow-lg: 0 24px 60px rgba(16, 18, 24, 0.16), 0 4px 14px rgba(16, 18, 24, 0.08);

  /* Métrica */
  --maxw: 1240px;
  --maxw-prose: 720px;
  --header-h: 72px;
}

[data-theme="dark"] {
  --paper: #0b0d11;
  --surface: #14171e;
  --surface-2: #1b1f28;
  --surface-3: #232834;
  --ink: #edece5;
  --ink-soft: #b8bac1;
  --ink-mute: #888c95;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: var(--brand-bright);
  --accent-soft: color-mix(in srgb, var(--brand-bright) 16%, transparent);
  --accent-line: color-mix(in srgb, var(--brand-bright) 36%, transparent);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.6);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  font-family: var(--font-display);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- LAYOUT HELPERS ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 5vw, 48px); }
.eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: .5em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; display: inline-block; }
.muted { color: var(--ink-mute); }

/* ---------- READING PROGRESS ---------- */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
  z-index: 200; transition: width .1s linear;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h); display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-weight: 800; font-size: 1.25rem;
  letter-spacing: -.03em; position: relative; overflow: hidden;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  mix-blend-mode: multiply; opacity: 0; transition: opacity .3s; }
[data-theme="dark"] .brand__mark { background: var(--accent); color: #061b14; }
.brand__name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1; }
.brand__name small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: .92rem;
  color: var(--ink-soft); transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.is-active { color: var(--accent); }

.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  color: var(--ink-soft); border: 1px solid transparent; transition: all .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

.menu-btn { display: none; }

/* Mobile nav drawer */
.mobile-nav { display: none; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: .94rem;
  letter-spacing: -.01em; transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-deep); }
[data-theme="dark"] .btn--primary:hover { background: var(--brand-bright); filter: brightness(1.1); }
.btn--ghost { background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); }
.btn svg { width: 18px; height: 18px; }

/* ---------- TAGS / CATEGORY CHIPS ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.tag--plain { background: var(--surface-2); color: var(--ink-soft); border-color: var(--line); }
.tag--lg { padding: 7px 14px; font-size: .78rem; }

/* ---------- SECTION HEADER ---------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 34px; flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.02;
}
.section-head p { color: var(--ink-mute); max-width: 46ch; margin-top: 8px; }
.link-arrow { font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- COVER PLACEHOLDER ---------- */
/* Capa designed: duotone + monograma. Trocar por <img> real ao integrar. */
.cover {
  position: relative; overflow: hidden; background: var(--surface-3);
  aspect-ratio: 16 / 10; border-radius: var(--radius);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover--ph {
  background:
    radial-gradient(120% 120% at 12% 8%, color-mix(in srgb, var(--c1, var(--brand)) 90%, white) 0%, var(--c1, var(--brand)) 42%, var(--c2, var(--brand-deep)) 100%);
}
.cover--ph::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(transparent 0, transparent calc(100% - 1px), rgba(255,255,255,.16) 100%),
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(255,255,255,.16) 100%);
  background-size: 34px 34px; mix-blend-mode: soft-light; opacity: .8;
}
.cover--ph .cover__glyph {
  position: absolute; right: -.08em; bottom: -.22em; font-weight: 800; font-size: clamp(6rem, 22vw, 13rem);
  color: rgba(255,255,255,.16); line-height: .8; letter-spacing: -.05em; user-select: none;
}
.cover__badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.cover__badge .tag { background: rgba(0,0,0,.34); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(4px); }

/* ---------- POST CARD ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 28px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.post-card { display: flex; flex-direction: column; gap: 16px; }
.post-card .cover { aspect-ratio: 16 / 10; }
.post-card__body { display: flex; flex-direction: column; gap: 10px; }
.post-card__title {
  font-size: 1.28rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.18;
}
.post-card__title a { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s; }
.post-card:hover .post-card__title a { background-size: 100% 2px; }
.post-card__excerpt {
  font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.55; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--ink-mute); font-weight: 500; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.post-meta a { color: var(--ink-soft); font-weight: 600; }
.post-meta a:hover { color: var(--accent); }

/* ---------- HERO / FEATURED ---------- */
.hero { padding-top: clamp(28px, 5vw, 52px); }
.hero__lead {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 52px); align-items: center;
}
.hero .cover { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02;
  text-wrap: balance; margin: 14px 0 18px;
}
.hero__excerpt { font-family: var(--font-serif); font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--ink-soft); max-width: 52ch; }
.hero__meta { margin-top: 24px; }

/* ---------- ARTICLE LAYOUT ---------- */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.article-main { min-width: 0; }
.aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 28px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-mute); font-weight: 500; margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { width: 13px; height: 13px; opacity: .5; }

.article-header { margin-bottom: 28px; }
.article-title { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; margin: 16px 0 18px; }
.article-standfirst { font-family: var(--font-serif); font-size: clamp(1.12rem, 1.7vw, 1.35rem); line-height: 1.55; color: var(--ink-soft); }
.article-byline { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; background: var(--surface-3); display: grid; place-items: center; font-weight: 800; color: var(--ink-soft); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline-info b { font-weight: 700; font-size: .98rem; }
.byline-info .post-meta { margin-top: 3px; }

.article-figure { margin: 0 0 32px; }
.article-figure .cover { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }
.article-figure figcaption { font-size: .82rem; color: var(--ink-mute); margin-top: 10px; padding-left: 2px; }

/* ARTICLE BODY TYPOGRAPHY */
.article-body { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.72; color: var(--ink); max-width: 72ch; }
.article-body > * + * { margin-top: 1.45rem; }
.article-body p { text-wrap: pretty; }
.article-body h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 1.95rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; margin-top: 2.6rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.article-body h3 { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; letter-spacing: -.02em; margin-top: 2rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--accent-line); }
.article-body a:hover { text-decoration-color: var(--accent); }
.article-body strong { font-weight: 700; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body ul { list-style: none; }
.article-body ul li { position: relative; padding-left: 1.4em; }
.article-body ul li + li, .article-body ol li + li { margin-top: .6rem; }
.article-body ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.article-body ol { list-style: decimal; }
.article-body ol li::marker { color: var(--accent); font-family: var(--font-display); font-weight: 700; }
.article-body blockquote {
  margin: 2.2rem 0; padding: 4px 0 4px 28px; border-left: 4px solid var(--accent);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.4; font-weight: 500; font-style: italic; color: var(--ink);
}
.article-body blockquote cite { display: block; font-style: normal; font-family: var(--font-display); font-size: .9rem; font-weight: 600; color: var(--ink-mute); margin-top: 14px; }
.article-body blockquote cite::before { content: "— "; }

/* IN-CONTENT AD */
.ad-slot {
  position: relative; border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, var(--surface-2) 0 12px, transparent 12px 24px);
  display: grid; place-items: center; text-align: center; color: var(--ink-mute);
}
.ad-slot__label { position: absolute; top: 8px; left: 12px; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--ink-mute); }
.ad-slot__inner { padding: 28px; }
.ad-slot__inner b { display: block; font-weight: 700; color: var(--ink-soft); font-size: .95rem; }
.ad-slot__inner span { font-size: .8rem; }
.ad--inline { margin: 2.6rem 0; min-height: 130px; }
.ad--leaderboard { min-height: 110px; margin-bottom: 8px; }
.ad--rect { aspect-ratio: 4 / 3; }

/* SHARE BAR */
.share-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 36px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.share-bar__label { font-weight: 700; font-size: .85rem; margin-right: 4px; }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-soft); transition: all .2s; border: 1px solid var(--line); }
.share-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: translateY(-2px); }
.share-btn svg { width: 18px; height: 18px; }

/* TOC */
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.toc__title { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 14px; }
.toc ul { display: flex; flex-direction: column; gap: 2px; }
.toc a { display: block; padding: 7px 12px; border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--ink-soft); line-height: 1.35; border-left: 2px solid transparent; transition: all .2s; }
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.toc a.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.toc a.lvl-3 { padding-left: 24px; font-size: .85rem; }

/* AUTHOR CARD (end of article) */
.author-box { display: flex; gap: 20px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); margin: 40px 0; }
.author-box .avatar { width: 68px; height: 68px; font-size: 1.4rem; }
.author-box h4 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.author-box .role { font-size: .8rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.author-box p { font-family: var(--font-serif); color: var(--ink-soft); margin-top: 10px; line-height: 1.55; }

/* FAQ ACCORDION */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color .2s; }
.faq__item[open] { border-color: var(--accent-line); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; list-style: none; cursor: pointer; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q .chev { flex-shrink: 0; width: 22px; height: 22px; transition: transform .25s; color: var(--accent); }
.faq__item[open] .faq__q .chev { transform: rotate(180deg); }
.faq__a { padding: 0 22px 20px; font-family: var(--font-serif); color: var(--ink-soft); line-height: 1.6; }

/* NEWSLETTER */
.newsletter { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(30px, 5vw, 52px); background: var(--ink); color: var(--paper); }
[data-theme="dark"] .newsletter { background: var(--surface-2); border: 1px solid var(--line); }
.newsletter::before { content: ""; position: absolute; right: -10%; top: -40%; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, var(--brand) 0%, transparent 70%); opacity: .5; }
.newsletter__inner { position: relative; max-width: 560px; }
.newsletter h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.newsletter p { opacity: .8; margin-top: 10px; font-size: 1.02rem; }
.newsletter form { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: inherit; }
.newsletter input::placeholder { color: rgba(255,255,255,.5); }
[data-theme="dark"] .newsletter input { border-color: var(--line-strong); background: var(--paper); color: var(--ink); }
[data-theme="dark"] .newsletter input::placeholder { color: var(--ink-mute); }
.newsletter input:focus { outline: 2px solid var(--brand-bright); outline-offset: 1px; }

/* RELATED */
.related { margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--line); }

/* ---------- PAGINATION ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 56px; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem; color: var(--ink-soft); border: 1px solid var(--line); background: var(--surface);
  transition: all .2s;
}
.pagination a:hover { border-color: var(--accent-line); color: var(--accent); }
.pagination .is-current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pagination .gap { border: none; background: none; }
.pagination .nav-link { gap: 6px; padding: 0 18px; }
.pagination svg { width: 16px; height: 16px; }

/* ---------- SEARCH ---------- */
.search-hero { padding: clamp(32px, 6vw, 64px) 0 clamp(24px, 4vw, 44px); }
.search-form { display: flex; gap: 10px; margin-top: 24px; max-width: 640px; }
.search-input { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-sm); }
.search-input svg { width: 20px; height: 20px; color: var(--ink-mute); flex-shrink: 0; }
.search-input input { flex: 1; border: none; background: none; padding: 15px 0; outline: none; color: var(--ink); }
.result-count { font-size: .92rem; color: var(--ink-mute); }
.result-count b { color: var(--ink); }

/* search result row */
.result { display: grid; grid-template-columns: 200px 1fr; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.result .cover { aspect-ratio: 16 / 10; border-radius: var(--radius); }
.result__title { font-size: 1.32rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 8px 0 8px; }
.result__title a:hover { color: var(--accent); }
.result__excerpt { font-family: var(--font-serif); color: var(--ink-soft); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
mark { background: var(--accent-soft); color: var(--accent); padding: 0 2px; border-radius: 3px; font-weight: 600; }

/* ---------- AUTHOR PAGE HERO ---------- */
.author-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.author-hero .avatar { width: clamp(88px, 12vw, 120px); height: clamp(88px, 12vw, 120px); font-size: 2.4rem; box-shadow: var(--shadow); }
.author-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.author-hero .role { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin-top: 8px; }
.author-hero__bio { font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.55; color: var(--ink-soft); max-width: 56ch; margin-top: 16px; }
.author-hero__stats { display: flex; gap: 28px; margin-top: 18px; }
.author-hero__stats .stat b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.author-hero__stats .stat span { display: block; font-size: .78rem; color: var(--ink-mute); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.author-social { display: flex; gap: 8px; margin-top: 20px; }

/* ---------- STATIC / PROSE PAGE ---------- */
.page-hero { padding: clamp(40px, 7vw, 84px) 0 clamp(20px, 3vw, 36px); text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; text-wrap: balance; }
.page-hero p { color: var(--ink-mute); margin-top: 16px; font-size: 1.1rem; max-width: 56ch; margin-inline: auto; }
.prose { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.72; color: var(--ink); max-width: var(--maxw-prose); margin-inline: auto; }
.prose > * + * { margin-top: 1.4rem; }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 800; letter-spacing: -.025em; margin-top: 2.4rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; }

/* feature row for about */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.feature { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; }
.feature p { font-family: var(--font-serif); color: var(--ink-soft); margin-top: 8px; line-height: 1.55; font-size: 1rem; }

/* ---------- 404 ---------- */
.error-page { min-height: calc(100vh - var(--header-h) - 200px); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-code { font-size: clamp(7rem, 24vw, 16rem); font-weight: 800; letter-spacing: -.06em; line-height: .82; background: linear-gradient(160deg, var(--ink), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; margin-top: 10px; }
.error-page p { color: var(--ink-mute); margin-top: 12px; max-width: 44ch; margin-inline: auto; font-size: 1.05rem; }
.error-actions { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.site-footer { margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); background: var(--surface); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: clamp(40px, 6vw, 72px) 0 44px; }
.footer-brand p { font-family: var(--font-serif); color: var(--ink-mute); margin-top: 16px; max-width: 34ch; line-height: 1.55; }
.footer-col h5 { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer-bottom small { color: var(--ink-mute); font-size: .85rem; }
.footer-bottom a { color: var(--ink-soft); font-weight: 600; }

/* ---------- KIT GUIDE ---------- */
.kit-hero { padding: clamp(40px, 7vw, 90px) 0 clamp(30px, 4vw, 50px); }
.kit-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.04em; line-height: .98; text-wrap: balance; max-width: 16ch; }
.kit-hero p { font-family: var(--font-serif); font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--ink-soft); max-width: 60ch; margin-top: 20px; line-height: 1.5; }
.kit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.kit-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); transition: transform .2s, box-shadow .2s, border-color .2s; }
.kit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); }
.kit-card__preview { aspect-ratio: 16 / 10; background: var(--surface-2); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.kit-card__body { padding: 20px 22px; }
.kit-card__body .num { font-size: .72rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.kit-card__body h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.kit-card__body p { color: var(--ink-mute); font-size: .9rem; margin-top: 6px; }

.swatch-row { display: flex; gap: 14px; flex-wrap: wrap; }
.swatch { width: 96px; }
.swatch__chip { height: 72px; border-radius: 12px; border: 1px solid var(--line); }
.swatch b { display: block; font-size: .82rem; font-weight: 700; margin-top: 8px; }
.swatch span { font-size: .72rem; color: var(--ink-mute); font-family: ui-monospace, monospace; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .article-wrap { grid-template-columns: 1fr; }
  .aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .aside > * { flex: 1; min-width: 260px; }
  .toc { display: none; }
  .hero__lead { grid-template-columns: 1fr; }
  .hero .cover { aspect-ratio: 16 / 9; order: -1; }
  .kit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  :root { --header-h: 62px; }
  .nav { display: none; }
  .menu-btn { display: grid; }
  .card-grid, .card-grid--2 { grid-template-columns: 1fr; }
  .result { grid-template-columns: 1fr; }
  .result .cover { aspect-ratio: 16 / 9; }
  .kit-grid { grid-template-columns: 1fr; }
  .brand__name small { display: none; }
  .share-bar { gap: 8px; }

  .mobile-nav { display: flex; flex-direction: column; position: fixed; inset: var(--header-h) 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px clamp(18px,5vw,48px) 22px; gap: 4px; transform: translateY(-120%); transition: transform .3s ease; z-index: 99; box-shadow: var(--shadow-lg); }
  .mobile-nav.open { transform: translateY(0); }
  .mobile-nav a { padding: 13px 14px; border-radius: 10px; font-weight: 600; font-size: 1.05rem; }
  .mobile-nav a:hover { background: var(--surface-2); }
}

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); animation: rise .6s cubic-bezier(.2,.7,.3,1) forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
