/* ============================================================
   platefully — site design system
   Editorial × Botanical. Sage / sand / amber. Newsreader + IBM Plex.
   ============================================================ */

:root {
  /* surfaces */
  --sand:      #F2EBDE;
  --sand-deep: #E7DCC6;
  --cream:     #FBF6EB;
  --card:      #FFFCF5;
  /* ink */
  --ink:   #211810;
  --ink-2: #594A3C;
  --ink-3: #998878;
  --hair:  #E3D6BD;
  /* brand */
  --sage:      #6F8459;
  --sage-mid:  #5E7547;
  --sage-deep: #41522F;
  --sage-soft: #DDE5CB;
  --amber:      #C68B2F;
  --amber-deep: #8E6315;
  /* type */
  --serif: "Newsreader", "Source Serif Pro", Georgia, serif;
  --sans:  "IBM Plex Sans", -apple-system, system-ui, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, monospace;
  /* metrics */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(33,24,16,0.04), 0 6px 18px rgba(33,24,16,0.06);
  --shadow-md: 0 2px 6px rgba(33,24,16,0.06), 0 18px 44px rgba(33,24,16,0.12);
  --shadow-lg: 0 30px 80px rgba(33,24,16,0.20);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--sage-soft); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(64px, 9vw, 130px); }
.section-pad-sm { padding-block: clamp(48px, 6vw, 84px); }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
.display { font-size: clamp(2.7rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 1.1em; text-wrap: pretty; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.5; color: var(--ink-2); }
.serif-italic { font-family: var(--serif); font-style: italic; }
strong { font-weight: 600; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-mid);
  margin: 0 0 1.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }

/* ---------- wordmark + logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo svg { width: 34px; height: 34px; display: block; }
.wordmark { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; }
.wordmark i { font-style: italic; color: var(--sage-mid); }
.logo--light .wordmark { color: var(--cream); }
.logo--light .wordmark i { color: var(--amber); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  padding: 0.85em 1.5em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--sage); color: var(--cream); box-shadow: 0 6px 18px rgba(65,82,47,0.28); }
.btn-primary:hover { background: var(--sage-mid); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(65,82,47,0.34); }
.btn-amber { background: var(--amber); color: #2a1d05; box-shadow: 0 6px 18px rgba(198,139,47,0.3); }
.btn-amber:hover { background: var(--amber-deep); color: var(--cream); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn-ghost:hover { border-color: var(--ink-3); background: rgba(255,255,255,0.5); }
.btn-light { background: var(--cream); color: var(--sage-deep); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-arrow::after { content: "\2192"; transition: transform .2s ease; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* App Store badge (drawn, no trademark assets) */
.appstore {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: var(--cream);
  padding: 0.7em 1.25em 0.7em 1.05em; border-radius: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 8px 22px rgba(33,24,16,0.22);
}
.appstore:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(33,24,16,0.28); }
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore .as-top { font-size: 0.62rem; letter-spacing: 0.04em; opacity: 0.8; line-height: 1; }
.appstore .as-big { font-size: 1.18rem; font-weight: 600; line-height: 1.15; font-family: var(--sans); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--sand) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--hair); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 0.96rem; font-weight: 500; color: var(--ink-2);
  padding: 0.5em 0.9em; border-radius: 10px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.55); }
.nav-links a.active { color: var(--sage-deep); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle span + span { margin-top: 5px; }

@media (max-width: 860px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
  .mobile-menu .nav-links a { padding: 0.85em 0.6em; font-size: 1.05rem; border-bottom: 1px solid var(--hair); border-radius: 0; }
}
.mobile-menu {
  display: none; border-top: 1px solid var(--hair);
  background: var(--sand); padding: 12px var(--gutter) 26px;
}
.mobile-menu.open { display: block; }
.mobile-menu .btn { width: 100%; margin-top: 14px; }

/* ---------- footer ---------- */
.site-footer { background: var(--sage-deep); color: var(--sage-soft); padding-block: clamp(54px, 7vw, 84px) 40px; }
.site-footer a { color: var(--sage-soft); opacity: 0.82; transition: opacity .15s; }
.site-footer a:hover { opacity: 1; color: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .wordmark { color: var(--cream); font-size: 1.7rem; }
.footer-brand .wordmark i { color: var(--amber); }
.footer-brand p { margin-top: 16px; max-width: 30ch; color: rgba(221,229,203,0.78); font-size: 0.96rem; }
.footer-col h4 { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 0.96rem; }
.footer-bottom { margin-top: clamp(40px, 6vw, 64px); padding-top: 26px; border-top: 1px solid rgba(221,229,203,0.18); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.85rem; color: rgba(221,229,203,0.6); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- decorative plate rings ---------- */
.plate-ring { position: absolute; border-radius: 50%; border: 1px solid var(--hair); pointer-events: none; opacity: 0.7; }

/* ---------- grade circle ---------- */
.grade {
  --g: var(--sage);
  width: 1.62em; height: 1.62em; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center;
  background: var(--g); color: var(--cream);
  font-family: var(--serif); font-weight: 600; line-height: 1;
  border: 2px solid color-mix(in srgb, var(--g) 70%, #000 14%);
}
.grade > * { line-height: 1; }
.grade-a { --g: var(--sage); }
.grade-b { --g: #7a9550; }
.grade-c { --g: var(--amber); color: #2a1d05; }
.grade-d { --g: #c06a36; }
.grade-f { --g: #b1472f; }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* article card */
.post-card { display: flex; flex-direction: column; overflow: hidden; }
.post-card .thumb { aspect-ratio: 16 / 10; position: relative; overflow: hidden; border-bottom: 1px solid var(--hair); }
.post-card .thumb .label { position: absolute; inset: 0; display: grid; place-items: center; }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card .cat { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-mid); margin-bottom: 10px; }
.post-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.post-card .dek { color: var(--ink-2); font-size: 0.97rem; margin-bottom: 18px; flex: 1; }
.post-card .meta { font-size: 0.82rem; color: var(--ink-3); display: flex; gap: 10px; align-items: center; }
.post-card .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- thumb / cover tints (layered, not flat) ---------- */
.tint-sage { background: radial-gradient(120% 90% at 18% 10%, #93a577 0%, rgba(147,165,119,0) 58%), linear-gradient(155deg, #6f8459 0%, #3c4e2a 100%); }
.tint-amber { background: radial-gradient(120% 90% at 18% 10%, #e6b566 0%, rgba(230,181,102,0) 58%), linear-gradient(155deg, #cd9338 0%, #7d560f 100%); }
.tint-clay { background: radial-gradient(120% 90% at 18% 10%, #d99873 0%, rgba(217,152,115,0) 58%), linear-gradient(155deg, #bd7850 0%, #6f3c22 100%); }
.tint-sand { background: radial-gradient(120% 90% at 18% 10%, #efe4cb 0%, rgba(239,228,203,0) 58%), linear-gradient(155deg, #d9c8a4 0%, #a9925f 100%); }
.tint-plum { background: radial-gradient(120% 90% at 18% 10%, #9d86a4 0%, rgba(157,134,164,0) 58%), linear-gradient(155deg, #7c6685 0%, #463650 100%); }

/* ---------- phone mock (pure CSS) ---------- */
.phone {
  width: 300px; aspect-ratio: 300 / 620; background: #15110b;
  border-radius: 44px; padding: 11px; box-shadow: var(--shadow-lg);
  position: relative; flex: none;
}
.phone .screen { width: 100%; height: 100%; background: var(--cream); border-radius: 34px; overflow: hidden; position: relative; }
.phone .notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #15110b; border-radius: 0 0 16px 16px; z-index: 5; }

/* ---------- scan result demo ---------- */
.scan { padding: 40px 22px 24px; height: 100%; display: flex; flex-direction: column; background: var(--cream); }
.scan .prod { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.scan .prod .ph { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.scan .prod .pn { font-family: var(--serif); font-size: 1.05rem; line-height: 1.2; }
.scan .prod .pb { font-size: 0.78rem; color: var(--ink-3); }
.scan .gradewrap { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--card); border: 1px solid var(--hair); border-radius: 16px; margin-bottom: 18px; }
.scan .gradewrap .grade { font-size: 26px; }
.scan .gradewrap .gt { font-family: var(--serif); font-size: 1.05rem; line-height: 1.15; }
.scan .gradewrap .gs { font-size: 0.78rem; color: var(--ink-2); line-height: 1.3; margin-top: 3px; }
.scan .flags { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-mid); margin-bottom: 10px; }
.scan .flag { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--hair); }
.scan .flag .ic { width: 18px; height: 18px; border-radius: 50%; flex: none; margin-top: 2px; display: grid; place-items: center; color: var(--cream); font-size: 11px; font-weight: 700; }
.scan .flag .fn { font-size: 0.86rem; font-weight: 600; line-height: 1.25; }
.scan .flag .fd { font-size: 0.76rem; color: var(--ink-2); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; }
.step .num { font-family: var(--mono); font-size: 0.8rem; color: var(--amber); letter-spacing: 0.1em; margin-bottom: 14px; }
.step .ic { width: 54px; height: 54px; border-radius: 16px; background: var(--sage-soft); display: grid; place-items: center; margin-bottom: 18px; color: var(--sage-deep); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 0.97rem; margin: 0; }

/* ---------- callout / pill ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 0.4em 0.9em; border-radius: 999px; background: var(--cream); border: 1px solid var(--hair); font-size: 0.84rem; color: var(--ink-2); }

/* ---------- prose (articles) ---------- */
.prose { font-size: 1.12rem; line-height: 1.72; color: var(--ink); }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.5em; }
.prose p { margin: 0; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 0.6em; }
.prose li::marker { color: var(--sage); }
.prose blockquote {
  margin: 0; padding: 1em 0 1em 1.3em; border-left: 3px solid var(--amber);
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink-2);
}
.prose .callout {
  background: var(--cream); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow-sm);
}
.prose .callout .co-h { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-mid); margin-bottom: 8px; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair); }
.prose a:hover { text-decoration-color: var(--sage); }

/* drop cap on the opening paragraph */
.prose > p:first-of-type::first-letter {
  font-family: var(--serif); font-weight: 600; font-size: 3.5em; line-height: .76;
  float: left; padding: .04em .1em 0 0; color: var(--sage-deep);
}
/* editorial pull quote */
.prose blockquote { position: relative; padding: .2em 0 .2em 1.5rem; border-left: 0; }
.prose blockquote::before {
  content: "\201C"; position: absolute; left: -.55rem; top: -.35em;
  font-family: var(--serif); font-size: 3.2em; line-height: 1; color: var(--amber); opacity: .5;
}
.prose blockquote::after {
  content: ""; position: absolute; left: 0; top: .55em; bottom: .55em; width: 3px;
  background: var(--amber); border-radius: 3px;
}

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--hair); border: 0; margin: 0; }
.center { text-align: center; }
.stack-sm > * + * { margin-top: 14px; }
.reveal { } /* always visible; .in adds a gentle slide (no opacity hiding) */
.reveal.in { animation: revealIn .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes revealIn { from { transform: translateY(14px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal.in { animation: none; } }

/* ============================================================
   Editorial layer — covers, index list, masthead
   ============================================================ */

/* paper grain over the whole page (very subtle) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* designed typographic cover */
.cover { position: relative; overflow: hidden; isolation: isolate; display: block; color: var(--cream); }
.cover-card { aspect-ratio: 16 / 11; }
.cover-lg { height: 100%; min-height: 340px; }
.cover-mini { width: 124px; height: 98px; border-radius: 12px; flex: none; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cover-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: soft-light; opacity: .85;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px;
}
.cover-kicker {
  position: absolute; top: 18px; left: 20px; z-index: 3;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(251,246,235,.95);
}
.cover-num {
  position: absolute; right: -4px; bottom: -30px; z-index: 2;
  font-family: var(--serif); font-weight: 600; font-size: 9.5rem; line-height: .7;
  letter-spacing: -.04em; color: rgba(251,246,235,.16); font-variant-numeric: lining-nums;
}
.cover-colophon {
  position: absolute; left: 20px; bottom: 15px; z-index: 3;
  display: flex; align-items: center; gap: 7px;
  font-family: var(--serif); font-style: italic; font-size: .82rem; color: rgba(251,246,235,.9);
}
.cover-colophon svg { width: 17px; height: 17px; color: rgba(251,246,235,.92); }
.cover-lg .cover-num { font-size: 15rem; bottom: -48px; right: -6px; }
.cover-lg .cover-kicker { top: 24px; left: 26px; font-size: .72rem; }
.cover-lg .cover-colophon { left: 26px; bottom: 22px; font-size: .95rem; }
.cover-mini .cover-kicker, .cover-mini .cover-colophon { display: none; }
.cover-mini .cover-num { font-size: 4.6rem; bottom: -14px; right: 0; }
.cover.has-img::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(20,15,8,.05) 35%, rgba(20,15,8,.6)); }
.cover.has-img .cover-num { display: none; }
.cover.has-img .cover-grain { opacity: .25; }

/* editorial index list (numbered rows) */
.idx-list { margin-top: 4px; }
.idx-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px,3vw,40px);
  align-items: center; padding: clamp(22px,3.2vw,34px) 0; border-top: 1px solid var(--hair);
}
.idx-row:last-child { border-bottom: 1px solid var(--hair); }
.idx-no { font-family: var(--serif); font-size: clamp(1.5rem,2.4vw,2.1rem); color: var(--ink-3); font-variant-numeric: oldstyle-nums; min-width: 1.6ch; line-height: 1; }
.idx-cat { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-mid); margin-bottom: 9px; }
.idx-main h3 { font-size: clamp(1.35rem,2.4vw,1.95rem); margin-bottom: .32em; transition: color .15s ease; }
.idx-row:hover .idx-main h3 { color: var(--sage-deep); }
.idx-dek { color: var(--ink-2); font-size: 1.01rem; max-width: 62ch; margin-bottom: 12px; }
.idx-meta { font-size: .82rem; color: var(--ink-3); display: flex; gap: 10px; align-items: center; }
.idx-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.idx-thumb { overflow: hidden; }
@media (max-width: 720px) { .idx-row { grid-template-columns: auto 1fr; } .idx-thumb { display: none; } }

/* magazine masthead */
.mast { text-align: center; padding-block: clamp(50px,7vw,96px) clamp(26px,4vw,38px); }
.mast .kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--sage-mid); }
.mast h1 { font-size: clamp(2.9rem,7.5vw,5.4rem); line-height: 1.0; margin: .2em 0 .16em; }
.mast h1 em { font-style: italic; color: var(--sage-mid); }
.mast .sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem,1.9vw,1.45rem); color: var(--ink-2); }
.mast .rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; color: var(--hair); }
.mast .rule span { height: 1px; width: clamp(40px,8vw,84px); background: currentColor; }
.mast .rule .d { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }

/* card cover sits flush on top of post cards */
.post-card .cover-card { border-bottom: 1px solid var(--hair); }
.byline-av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(150deg,var(--sage),var(--sage-deep)); color: var(--cream); display: inline-grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1rem; flex: none; }
.byline-av.sm { width: 26px; height: 26px; font-size: .72rem; }

/* ---------- tag chip ---------- */
.tag { display: inline-flex; align-items: center; font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: .42em .75em; border-radius: 999px; align-self: flex-start; }

/* ---------- category filter bar ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 9px; }
.filterbar button {
  font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--ink-2);
  background: transparent; border: 1px solid var(--hair); border-radius: 999px; padding: .5em 1.05em; cursor: pointer;
  transition: all .16s ease;
}
.filterbar button:hover { border-color: var(--ink-3); color: var(--ink); }
.filterbar button.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------- rich card ---------- */
.rcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.rcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.rcard-cover { position: relative; overflow: hidden; }
.rcard-cover .cover { transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.rcard:hover .rcard-cover .cover { transform: scale(1.06); }
.read-pill { position: absolute; top: 12px; right: 12px; z-index: 6; background: rgba(251,246,235,.94); color: var(--ink); font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; padding: .45em .7em; border-radius: 999px; box-shadow: 0 2px 8px rgba(33,24,16,.16); }
.rcard-cover .cover-card { aspect-ratio: 5/3; border-bottom: 1px solid var(--hair); }
/* clean photo cards: hide the typographic overlay when a real image is set */
.rcard-cover .cover.has-img .cover-kicker,
.rcard-cover .cover.has-img .cover-colophon,
.rcard-cover .cover.has-img .cover-num { display: none; }
.rcard-cover .cover.has-img::after { background: linear-gradient(180deg, rgba(20,15,8,0) 55%, rgba(20,15,8,.28)); }
.rcard-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.rcard-body h3 { font-size: 1.32rem; line-height: 1.15; }
.rcard-dek { color: var(--ink-2); font-size: .96rem; line-height: 1.5; flex: 1; margin: 0; }
.rcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--hair); }
.rcard-author { display: flex; align-items: center; gap: 9px; font-size: .82rem; color: var(--ink-2); }
.rcard-author .rcard-by { font-weight: 600; }
.rcard-readlink { font-weight: 600; color: var(--sage-deep); display: inline-flex; align-items: center; gap: .35em; font-size: .9rem; }
.rcard-readlink::after { content: "→"; transition: transform .2s ease; }
.rcard:hover .rcard-readlink::after { transform: translateX(4px); }

/* ---------- headline list (compact) ---------- */
.hl-list { display: grid; }
.hl-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: baseline; padding: 15px 0; border-top: 1px solid var(--hair); }
.hl-row:first-child { border-top: 0; }
.hl-no { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink-3); }
.hl-cat { display: block; font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 5px; }
.hl-title { font-family: var(--serif); font-size: 1.12rem; line-height: 1.2; color: var(--ink); transition: color .15s; }
.hl-row:hover .hl-title { color: var(--sage-deep); }

/* ---------- newsletter box ---------- */
.newsletter { background: linear-gradient(160deg, #fbf2dd, #f3e4c3); border: 1px solid #e7d3a8; border-radius: var(--radius); padding: 26px 26px 28px; }
.newsletter h3 { font-size: 1.3rem; margin-bottom: 8px; }
.newsletter p { font-size: .92rem; color: var(--ink-2); margin-bottom: 16px; }
.newsletter form { display: flex; gap: 8px; }
.newsletter input { flex: 1; min-width: 0; border: 1px solid var(--hair); background: var(--cream); border-radius: 999px; padding: .7em 1em; font-family: var(--sans); font-size: .9rem; color: var(--ink); }
.newsletter input:focus { outline: none; border-color: var(--amber); }
.newsletter button { flex: none; }

/* ---------- title-on-cover overlay (featured) ---------- */
.cover-titled { display: flex; align-items: flex-end; }
.cover-titled .cover-num { opacity: .9; }
.cover-titled::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(20,15,8,0) 30%, rgba(20,15,8,.72)); }
.cover-overlay { position: relative; z-index: 4; padding: clamp(24px,3vw,40px); color: var(--cream); }
.cover-overlay .tag { background: rgba(251,246,235,.92) !important; }
.cover-overlay h2 { color: var(--cream); font-size: clamp(1.7rem,3vw,2.6rem); line-height: 1.05; margin: 12px 0 10px; max-width: 18ch; }
.cover-overlay .ov-meta { font-size: .85rem; color: rgba(251,246,235,.82); display: flex; gap: 10px; align-items: center; }
.cover-overlay .ov-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.cover-overlay .ov-btn { display: inline-flex; align-items: center; gap: .5em; margin-top: 18px; background: var(--cream); color: var(--sage-deep); font-weight: 600; font-size: .92rem; padding: .7em 1.3em; border-radius: 999px; box-shadow: 0 8px 20px rgba(33,24,16,.22); transition: transform .2s ease, box-shadow .2s ease; }
.cover-overlay .ov-btn::after { content: "→"; transition: transform .2s ease; }
.cover-titled:hover .ov-btn { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(33,24,16,.3); }
.cover-titled:hover .ov-btn::after { transform: translateX(4px); }

/* article header kicker + byline */
.art-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.art-kicker .art-no { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--amber-deep); white-space: nowrap; }
.art-kicker .art-cat { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-mid); white-space: nowrap; }
.art-kicker .art-cat::before { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--hair); vertical-align: middle; margin-right: 12px; }
.meta-row .by-name { font-weight: 600; color: var(--ink); }
.article-cover-wrap { margin-block: clamp(28px,4vw,44px); }
.article-hero { border-radius: var(--radius-lg); overflow: hidden; height: clamp(260px, 40vw, 460px); box-shadow: var(--shadow-md); }
.article-hero .cover { height: 100%; }
