/* ==========================================================================
   ramazankaya.com — "Saha Defteri" design system
   Editorial magazine × engineering notebook. Brand DNA from /link:
   Bricolage Grotesque · Instrument Sans · JetBrains Mono · brass #D6A85C
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/bricolage-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/bricolage-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/instrument-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/instrument-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(../fonts/instrument-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(../fonts/instrument-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/jetbrains-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/jetbrains-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens: "Kâğıt" (light) ---------- */
:root {
  color-scheme: light;
  --bg: #F3EFE7;
  --bg-deep: #ECE6DA;
  --surface: #FBF9F4;
  --surface-2: #F1ECE2;
  --line: #DDD4C4;
  --line-strong: #C9BDA7;
  --ink: #14171C;
  --ink-2: #2B3038;
  --muted: #5E6570;
  --faint: #676C74;
  --brass: #B8862F;
  --brass-ink: #8A5A12;
  --brass-soft: rgba(184, 134, 47, .12);
  --brass-line: rgba(184, 134, 47, .45);
  --on-brass: #17130B;
  --danger: #B3261E;
  --ok: #2E7D4F;
  --shadow: 0 1px 2px rgba(20, 23, 28, .05), 0 12px 32px -12px rgba(20, 23, 28, .14);
  --shadow-lg: 0 30px 80px -30px rgba(20, 23, 28, .35);
  --grain-opacity: .05;
  --img-filter: none;

  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-md: 1rem;
  --fs-lg: 1.1875rem;
  --fs-xl: clamp(1.3rem, 1.1rem + .8vw, 1.6rem);
  --fs-2xl: clamp(1.7rem, 1.25rem + 1.8vw, 2.5rem);
  --fs-3xl: clamp(2.15rem, 1.4rem + 3.1vw, 3.8rem);
  --fs-display: clamp(2.6rem, 1.3rem + 5.4vw, 6.2rem);

  --wrap: 1240px;
  --wrap-narrow: 700px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --rail: 44px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
}

/* ---------- Tokens: "Mürekkep" (dark) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0F1319;
    --bg-deep: #0B0E13;
    --surface: #161B23;
    --surface-2: #1D242E;
    --line: #262F3B;
    --line-strong: #344052;
    --ink: #EDF1F6;
    --ink-2: #C9D1DC;
    --muted: #8B97A8;
    --faint: #7A879B;
    --brass: #D6A85C;
    --brass-ink: #E0B872;
    --brass-soft: rgba(214, 168, 92, .12);
    --brass-line: rgba(214, 168, 92, .42);
    --on-brass: #17130B;
    --danger: #F2837B;
    --ok: #7BD19A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .6);
    --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .75);
    --grain-opacity: .06;
    --img-filter: brightness(.94) contrast(1.02);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1319;
  --bg-deep: #0B0E13;
  --surface: #161B23;
  --surface-2: #1D242E;
  --line: #262F3B;
  --line-strong: #344052;
  --ink: #EDF1F6;
  --ink-2: #C9D1DC;
  --muted: #8B97A8;
  --faint: #7A879B;
  --brass: #D6A85C;
  --brass-ink: #E0B872;
  --brass-soft: rgba(214, 168, 92, .12);
  --brass-line: rgba(214, 168, 92, .42);
  --on-brass: #17130B;
  --danger: #F2837B;
  --ok: #7BD19A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .6);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .75);
  --grain-opacity: .06;
  --img-filter: brightness(.94) contrast(1.02);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* Paper grain: an inline SVG noise tile, barely visible, gives surfaces some tooth. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
:root[data-theme="dark"] body::after { mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::after { mix-blend-mode: screen; } }

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.022em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--brass); color: var(--on-brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), var(--wrap-narrow)); }
.section { padding-block: var(--section); position: relative; }
.section + .section { padding-top: 0; }
.section--tint { background: var(--bg-deep); }
.stack > * + * { margin-top: var(--stack, 1rem); }

/* The spine: a hairline running down the left edge of content, with nodes at section labels. */
@media (min-width: 1100px) {
  .spine { position: relative; padding-left: var(--rail); }
  .spine::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--line-strong) 40px, var(--line-strong) calc(100% - 40px), transparent);
  }
  .spine .eyebrow--node { margin-left: calc(-1 * var(--rail)); }
  .spine .eyebrow--node::before { width: 15px; height: 15px; margin-right: calc(var(--rail) - 15px); background: var(--bg); border-width: 1.5px; }
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass-ink);
  margin: 0;
}
.eyebrow--node::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--brass);
  box-shadow: 0 0 0 4px var(--brass-soft);
}
.eyebrow .num { color: var(--faint); }
.mono { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .06em; }
.muted { color: var(--muted); }
.display { font-size: var(--fs-display); line-height: .98; letter-spacing: -.035em; font-weight: 800; }
.h-section { font-size: var(--fs-3xl); letter-spacing: -.03em; }
.lede { font-size: var(--fs-lg); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 3vw, 3rem); }
.section-head__text { display: grid; gap: .9rem; max-width: 46rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; text-decoration: none; color: var(--ink); padding-bottom: 2px; background: linear-gradient(var(--brass), var(--brass)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow .icon { transition: transform .35s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Buttons & chips ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: .975rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, border-color .25s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--brass { --btn-bg: var(--brass); --btn-fg: var(--on-brass); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn--sm { min-height: 38px; padding: .45rem 1rem; font-size: .875rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .32rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  background: var(--surface);
  transition: border-color .2s, color .2s, background-color .2s;
}
.chip:hover, .chip[aria-current="page"] { border-color: var(--brass-line); color: var(--brass-ink); background: var(--brass-soft); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--brass)); }
.chip sup { font-size: .62rem; color: var(--faint); letter-spacing: 0; }
.cat-label { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); text-decoration: none; }
.cat-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--brass)); }

/* ---------- Header ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.masthead[data-scrolled] { border-bottom-color: var(--line); }
.masthead__bar { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--brass);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: -.04em;
  color: var(--brass-ink);
  position: relative;
}
.brand__mark::after { content: ""; position: absolute; right: -3px; bottom: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.03em; line-height: 1; }
.brand__name small { display: block; white-space: nowrap; margin-top: .3rem; font-family: var(--font-mono); font-size: .62rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav { display: none; align-items: center; gap: .25rem; }
.nav a, .nav__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .55rem .8rem;
  border: 0;
  background: none;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.nav a:hover, .nav__trigger:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav__trigger .icon { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.nav__drop { position: relative; }
.nav__drop[data-open] .nav__trigger .icon { transform: rotate(180deg); }
.nav__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  width: min(560px, 90vw);
  padding: .75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.nav__drop[data-open] .nav__panel { opacity: 1; visibility: visible; transform: none; }
.nav__panel a { display: grid; gap: .15rem; padding: .75rem .9rem; border-radius: var(--r-md); }
.nav__panel a strong { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); letter-spacing: -.01em; }
.nav__panel a strong::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--brass)); }
.nav__panel a span { font-size: .83rem; color: var(--muted); line-height: 1.4; }
.masthead__tools { display: flex; align-items: center; gap: .3rem; }
.masthead__cta { display: none; }
.theme-icon--dark { display: none; }
:root[data-theme="dark"] .theme-icon--dark { display: block; }
:root[data-theme="dark"] .theme-icon--light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon--dark { display: block; }
  :root:not([data-theme="light"]) .theme-icon--light { display: none; }
}
@media (max-width: 560px) {
  .brand__name small { display: none; }
  .brand__mark { width: 34px; height: 34px; font-size: .85rem; }
  .masthead__tools { gap: 0; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .masthead__cta { display: inline-flex; margin-left: .4rem; }
}

/* ---------- Dialogs: search & mobile menu ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  align-items: start;
  padding: clamp(12px, 8vh, 100px) var(--gutter) var(--gutter);
  background: color-mix(in srgb, var(--bg-deep) 70%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.sheet[data-open] { opacity: 1; visibility: visible; }
.sheet__panel {
  width: min(100%, 720px);
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  transform: translateY(-12px) scale(.98);
  transition: transform .35s var(--ease);
  overflow: hidden;
}
.sheet[data-open] .sheet__panel { transform: none; }
.search-form { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.search-form .icon { color: var(--brass-ink); }
.search-form input { flex: 1; min-width: 0; border: 0; background: none; font-size: 1.35rem; font-family: var(--font-display); letter-spacing: -.02em; padding: .5rem 0; }
.search-form input:focus { outline: none; }
.search-hints { padding: 1.1rem 1.25rem 1.4rem; display: grid; gap: .8rem; }
.search-hints .chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.menu-sheet { padding: 0; align-items: stretch; background: var(--bg); }
.menu-sheet .sheet__panel { width: 100%; max-width: none; min-height: 100%; border: 0; border-radius: 0; box-shadow: none; background: var(--bg); padding: 1rem var(--gutter) 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.menu-sheet__top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.menu-sheet nav { display: grid; }
.menu-sheet nav a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; text-decoration: none; }
.menu-sheet nav a small { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em; color: var(--faint); }
.menu-sheet .chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.menu-sheet__foot { margin-top: auto; display: grid; gap: 1rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) clamp(3rem, 2rem + 4vw, 5.5rem); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 80% 0%, var(--brass-soft), transparent 70%),
    linear-gradient(to right, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px) 0 0 / 72px 72px;
  -webkit-mask-image: radial-gradient(90% 80% at 70% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(90% 80% at 70% 20%, #000 20%, transparent 75%);
}
.hero__grid { position: relative; display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero__copy { display: grid; gap: 1.6rem; }
.hero__title { font-size: var(--fs-display); font-weight: 800; line-height: .96; letter-spacing: -.04em; }
.hero__title em { font-style: normal; color: var(--brass-ink); position: relative; white-space: nowrap; }
.hero__title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .09em; background: var(--brass); opacity: .35; border-radius: 99px; }
.hero__text { font-size: var(--fs-lg); line-height: 1.6; color: var(--ink-2); max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__social { display: flex; align-items: center; gap: .15rem; margin-left: -.5rem; }
.hero__social a { color: var(--muted); }
.hero__social a:hover { color: var(--ink); }
.hero__visual { position: relative; justify-self: center; width: min(100%, 460px); }
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 120px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-deep));
  box-shadow: var(--shadow-lg);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); }
.portrait__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 7rem; letter-spacing: -.06em; color: var(--brass-line); }
/* Crop marks: the engineering-drawing signature around the portrait. */
.cropmarks { position: absolute; inset: -14px; pointer-events: none; }
.cropmarks i { position: absolute; width: 22px; height: 22px; border-color: var(--brass); border-style: solid; opacity: .8; }
.cropmarks i:nth-child(1) { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.cropmarks i:nth-child(2) { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.cropmarks i:nth-child(3) { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }
.cropmarks i:nth-child(4) { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.specsheet {
  position: absolute;
  left: clamp(-2.5rem, -4vw, -1rem);
  bottom: 1.5rem;
  width: min(280px, 78%);
  padding: 1rem 1.1rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
}
.specsheet__title { display: flex; justify-content: space-between; color: var(--brass-ink); text-transform: uppercase; letter-spacing: .14em; margin-bottom: .6rem; }
.specsheet dl { margin: 0; display: grid; gap: .3rem; }
.specsheet dl div { display: flex; align-items: baseline; gap: .4rem; }
.specsheet dt { color: var(--muted); text-transform: uppercase; }
.specsheet dd { margin: 0; color: var(--ink); order: 3; text-align: right; }
.specsheet dl div::after { content: ""; flex: 1; order: 2; border-bottom: 1px dotted var(--line-strong); transform: translateY(-3px); }
.proof { position: relative; margin-top: clamp(2.5rem, 5vw, 4.5rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--line); }
.proof__item { padding: 1.4rem 1.5rem 0 0; display: grid; gap: .35rem; }
.proof__item + .proof__item { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.proof__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.8rem); letter-spacing: -.04em; line-height: 1; }
.proof__label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); }
  .hero__visual { justify-self: end; }
}
@media (max-width: 520px) {
  .proof__item + .proof__item { padding-left: 0; border-left: 0; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof__item:nth-child(3) { grid-column: 1 / -1; }
}
/* Staggered first-paint reveal of the hero. */
@media (prefers-reduced-motion: no-preference) {
  .hero .reveal-load { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Media frames ---------- */
.frame { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--surface-2); aspect-ratio: var(--ratio, 16 / 10); }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); transition: transform .8s var(--ease); }
.frame--fallback { display: grid; place-items: center; background: radial-gradient(120% 90% at 20% 0%, var(--brass-soft), transparent 60%), var(--surface-2); }
.frame--fallback span { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 800; letter-spacing: -.05em; color: var(--brass-line); }

/* ---------- Post cards ---------- */
.card { position: relative; display: grid; gap: 1rem; align-content: start; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .frame img { transform: scale(1.035); }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.card__meta .cat-label { position: relative; z-index: 2; }
.card__title { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.card__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .45s var(--ease); }
.card:hover .card__title a { background-size: 100% 1.5px; }
.card__excerpt { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.grid-cards { display: grid; gap: clamp(2rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* Featured: magazine cover split. */
.feature { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
.feature__main { position: relative; display: grid; gap: 1.4rem; }
.feature__main .frame { --ratio: 16 / 10; border-radius: var(--r-lg); }
.feature__main .card__title { font-size: var(--fs-2xl); letter-spacing: -.035em; }
.feature__side { display: grid; gap: 1.75rem; align-content: start; }
.feature__side .card { grid-template-columns: 132px 1fr; gap: 1.1rem; align-items: start; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.feature__side .card:last-child { border-bottom: 0; padding-bottom: 0; }
.feature__side .frame { --ratio: 1; border-radius: var(--r-sm); }
.feature__side .card__title { font-size: 1.12rem; line-height: 1.25; }
.feature__side .card__body { display: grid; gap: .55rem; }
@media (min-width: 960px) {
  .feature { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}
.badge-num { position: absolute; top: .9rem; left: .9rem; z-index: 2; padding: .25rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--bg) 88%, transparent); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; color: var(--ink); }

/* Horizontal rail (Sahadan Notlar). */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 340px); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.rail > * { scroll-snap-align: start; }
.note-card { position: relative; display: grid; gap: 1rem; align-content: start; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color .25s, transform .3s var(--ease); }
.note-card:hover { border-color: var(--brass-line); transform: translateY(-3px); }
.note-card .frame { --ratio: 3 / 2; }
.note-card__num { font-family: var(--font-mono); font-size: .72rem; color: var(--brass-ink); letter-spacing: .1em; }

/* Topics (category tiles). */
.topics { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.topic { position: relative; display: grid; gap: .7rem; align-content: start; padding: 1.6rem 1.5rem 1.8rem; background: var(--surface); text-decoration: none; min-height: 190px; transition: background-color .25s; }
.topic::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--c, var(--brass)); transition: width .45s var(--ease); }
.topic:hover { background: var(--surface-2); }
.topic:hover::before { width: 100%; }
.topic__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.topic__name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.topic__count { font-family: var(--font-mono); font-size: .72rem; color: var(--faint); white-space: nowrap; }
.topic__count--soon { padding: .15rem .5rem; border: 1px dashed var(--line-strong); border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; font-size: .62rem; }
.topic__desc { font-size: .92rem; color: var(--muted); line-height: 1.5; }
.topic__go { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); }

/* Index list: a magazine "contents" page with a floating preview on hover. */
.index { border-top: 1px solid var(--line); counter-reset: idx; }
.index__row {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: .4rem 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding .35s var(--ease), background-color .3s;
}
.index__num { font-family: var(--font-mono); font-size: .75rem; color: var(--faint); padding-top: .35rem; }
.index__title { font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + .9vw, 1.65rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.18; }
.index__meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.index__arrow { display: none; }
.index__row:hover .index__title { color: var(--brass-ink); }
@media (min-width: 900px) {
  .index__row { grid-template-columns: 3.5rem minmax(0, 1fr) 10rem 10rem 2rem; align-items: center; }
  .index__meta > span { white-space: nowrap; }
  .index__meta { display: contents; }
  .index__meta > span { font-family: var(--font-mono); }
  .index__arrow { display: block; justify-self: end; color: var(--faint); transition: transform .35s var(--ease), color .2s; }
  .index__row:hover { padding-left: .75rem; }
  .index__row:hover .index__arrow { transform: translate(3px, -3px); color: var(--brass-ink); }
}
.hover-preview {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  width: 280px;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.92) rotate(-2deg);
  transition: opacity .25s, transform .35s var(--ease);
  box-shadow: var(--shadow-lg);
}
.hover-preview[data-on] { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Brands ---------- */
.brands { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.brand-card { position: relative; display: grid; gap: .5rem; align-content: start; padding: 1.35rem 1.35rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
.brand-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 55%, var(--line)); box-shadow: var(--shadow); }
.brand-card__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.brand-card__name { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.025em; }
.brand-card__name::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.brand-card__tag { color: var(--muted); font-size: .95rem; }
.brand-card__host { margin-top: .4rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; color: var(--faint); }
.brand-card .icon { color: var(--faint); transition: transform .3s var(--ease), color .2s; }
.brand-card:hover .icon { color: var(--c); transform: translate(2px, -2px); }
.brand-card--flagship { grid-column: 1 / -1; padding: clamp(1.5rem, 3vw, 2.25rem); border-left: 3px solid var(--c); background: linear-gradient(120deg, color-mix(in srgb, var(--c) 10%, var(--surface)), var(--surface) 60%); }
.brand-card--flagship .brand-card__name { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem); }
.brand-card--flagship .brand-card__tag { font-size: 1.05rem; max-width: 52ch; color: var(--ink-2); }
.brand-card__role { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
@media (min-width: 900px) { .brand-card--flagship { grid-column: span 2; } }

/* ---------- Instagram ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.ig-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-md); background: var(--surface-2); }
.ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; filter: var(--img-filter); }
.ig-item__cap { position: absolute; inset: auto 0 0 0; padding: 2.5rem .9rem .8rem; background: linear-gradient(to top, rgba(10, 12, 16, .82), transparent); color: #F3EFE7; font-size: .8rem; line-height: 1.35; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ig-item:hover img { transform: scale(1.06); }
.ig-item:hover .ig-item__cap, .ig-item:focus-visible .ig-item__cap { opacity: 1; transform: none; }
.ig-item__type { position: absolute; top: .6rem; right: .6rem; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.ig-empty { display: grid; gap: 1rem; justify-items: start; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface); }
@media (min-width: 720px) { .ig-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Newsletter ("notebook page") ---------- */
.newsletter { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--ink); color: var(--bg); padding: clamp(2rem, 5vw, 4rem); isolation: isolate; }
:root[data-theme="dark"] .newsletter { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .newsletter { background: var(--surface); color: var(--ink); border: 1px solid var(--line); } }
.newsletter::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09; background: repeating-linear-gradient(to bottom, transparent 0 31px, currentColor 31px 32px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.newsletter::after { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(1.2rem, 3vw, 2.4rem); width: 1px; background: var(--brass); opacity: .55; }
.newsletter__grid { display: grid; gap: 2rem; align-items: end; padding-left: clamp(.8rem, 2vw, 1.5rem); }
.newsletter .eyebrow { color: var(--brass); }
.newsletter h2 { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.035em; }
.newsletter__grid > div > p:not(.eyebrow) { opacity: .8; max-width: 44ch; margin-top: 1rem; font-size: 1.05rem; }
.newsletter .field input { background: color-mix(in srgb, currentColor 6%, transparent); border-color: color-mix(in srgb, currentColor 22%, transparent); color: inherit; }
.newsletter .consent { color: inherit; opacity: .78; }
.newsletter .form-note { color: inherit; }
@media (min-width: 900px) { .newsletter__grid { grid-template-columns: 1.1fr 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field label, .field__label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: .8rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 4px var(--brass-soft); }
.field--inline { display: flex; gap: .5rem; flex-wrap: wrap; }
.field--inline input { flex: 1 1 220px; }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--brass); flex: none; }
.consent a { color: inherit; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .9rem; min-height: 1.4em; }
.form-note[data-state="ok"] { color: var(--ok); }
.form-note[data-state="error"] { color: var(--danger); }
.newsletter .form-note[data-state="ok"] { color: var(--brass); }

/* ---------- Page headers & archives ---------- */
.page-head { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) clamp(2rem, 3vw, 3rem); position: relative; }
.page-head__title { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.035em; margin-top: 1rem; }
.page-head__desc { margin-top: 1rem; }
.filters { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .5rem; margin-top: 1.75rem; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; margin-top: clamp(3rem, 5vw, 4.5rem); font-family: var(--font-mono); font-size: .8rem; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.pagination a:hover { border-color: var(--brass); color: var(--brass-ink); }
.pagination [aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span[aria-hidden] { color: var(--faint); }
.empty { padding: 3rem 1.5rem; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--muted); }

/* ---------- Article ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; background: transparent; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--brass), var(--brass-ink)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.article-head { padding-block: clamp(2rem, 2rem + 2vw, 4rem) clamp(1.75rem, 3vw, 2.75rem); }
.article-head__inner { display: grid; gap: 1.4rem; }
.article-head h1 { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.article-head .dek { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.55; color: var(--ink-2); max-width: 44em; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.byline__author { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 1.5px solid var(--brass-line); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--brass-ink); overflow: hidden; flex: none; }
.byline__author strong { display: block; font-weight: 600; line-height: 1.2; }
.byline__author span { font-size: .85rem; color: var(--muted); }
.byline__facts { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.byline__facts span { display: inline-flex; align-items: center; gap: .4rem; }
.byline__facts .icon { width: 1.05em; height: 1.05em; color: var(--brass-ink); }
.article-cover { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.article-cover .frame { --ratio: 16 / 9; border-radius: var(--r-lg); }
.article-cover figcaption { margin-top: .7rem; font-size: .82rem; color: var(--muted); }
.article-layout { display: grid; gap: 3rem; }
.prose-col { width: 100%; max-width: var(--wrap-narrow); margin-inline: auto; min-width: 0; }
@media (min-width: 1200px) {
  .article-layout { grid-template-columns: 64px minmax(0, var(--wrap-narrow)) minmax(0, 1fr); gap: 3.5rem; }
  .article-layout > .prose-col { grid-column: 2; margin-inline: 0; }
  .article-aside { grid-column: 3; grid-row: 1; }
  .share-rail { grid-column: 1; grid-row: 1; }
}
.share-rail { display: none; }
@media (min-width: 1200px) {
  .share-rail { display: flex; flex-direction: column; align-items: center; gap: .5rem; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
  .share-rail::before { content: ""; width: 1px; height: 48px; background: var(--line-strong); margin-bottom: .5rem; }
  .share-rail .icon-btn { border-color: var(--line); background: var(--surface); }
  .share-rail .icon-btn:hover { border-color: var(--brass); color: var(--brass-ink); }
}
.article-aside { display: none; }
@media (min-width: 1200px) {
  .article-aside { display: block; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; max-height: calc(100vh - var(--header-h) - 4rem); overflow: auto; }
}
.toc { font-size: .9rem; }
.toc__title { margin-bottom: .9rem; }
.toc ol { list-style: none; display: grid; gap: .15rem; counter-reset: toc; border-left: 1px solid var(--line); }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 2.2rem 1fr; padding: .4rem .5rem .4rem 0; text-decoration: none; color: var(--muted); line-height: 1.4; margin-left: -1px; border-left: 2px solid transparent; transition: color .2s, border-color .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: .7rem; padding-left: .8rem; padding-top: .15rem; color: var(--faint); }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); border-left-color: var(--brass); }
.toc li.toc-3 a { padding-left: 1rem; font-size: .84rem; }
.toc-mobile { margin-bottom: 2rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.toc-mobile summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile[open] summary .icon { transform: rotate(180deg); }
.toc-mobile .toc { padding: 0 1.1rem 1rem; }
@media (min-width: 1200px) { .toc-mobile { display: none; } }

/* Long-form typography. */
.prose { font-size: 1.125rem; line-height: 1.78; color: var(--ink-2); }
.prose > * + * { margin-top: 1.35em; }
.prose h2 { font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.05rem); color: var(--ink); margin-top: 2.2em; letter-spacing: -.03em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); color: var(--ink); margin-top: 1.9em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h4 { font-size: 1.1rem; color: var(--ink); margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose a { color: var(--ink); text-decoration-color: var(--brass); text-decoration-thickness: 1.5px; text-underline-offset: .22em; transition: color .2s; }
.prose a:hover { color: var(--brass-ink); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose mark { background: linear-gradient(transparent 55%, var(--brass-soft) 55%); color: inherit; padding: 0 .1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose ul { list-style: none; padding-left: 1.4em; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ""; position: absolute; left: -1.15em; top: .72em; width: .5em; height: 1.5px; background: var(--brass); }
.prose ol > li::marker { font-family: var(--font-mono); font-size: .85em; color: var(--brass-ink); }
.prose blockquote { margin-inline: 0; padding: .4em 0 .4em 1.4em; border-left: 3px solid var(--brass); font-family: var(--font-display); font-size: 1.35em; line-height: 1.45; letter-spacing: -.015em; color: var(--ink); font-weight: 500; }
.prose blockquote p + p { margin-top: .6em; }
.prose blockquote cite { display: block; margin-top: .8em; font-family: var(--font-mono); font-size: .6em; font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.prose figure { margin-inline: 0; }
.prose figure img, .prose > p > img, .prose > img { border-radius: var(--r-md); filter: var(--img-filter); }
.prose figcaption { margin-top: .6rem; font-size: .85rem; color: var(--muted); text-align: center; }
.prose hr { margin-block: 2.5em; border: 0; text-align: center; }
.prose hr::after { content: "§"; font-family: var(--font-display); color: var(--brass); font-size: 1.4rem; }
.prose code { font-family: var(--font-mono); font-size: .86em; padding: .12em .4em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.prose pre { padding: 1.1rem 1.25rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.prose pre code { padding: 0; border: 0; background: none; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.prose tr:last-child td { border-bottom: 0; }
.prose .lead { font-size: 1.22em; color: var(--ink); }
.prose.has-dropcap > p:first-of-type::first-letter { float: left; font-family: var(--font-display); font-weight: 800; font-size: 3.6em; line-height: .82; padding: .08em .12em 0 0; color: var(--brass-ink); }
.callout { position: relative; padding: 1.2em 1.4em 1.2em 3.2em; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: .98em; }
.callout::before { content: "i"; position: absolute; left: 1.1em; top: 1.15em; width: 1.4em; height: 1.4em; display: grid; place-items: center; border-radius: 50%; background: var(--brass-soft); color: var(--brass-ink); font-family: var(--font-mono); font-size: .8em; font-weight: 600; }
.callout-tip::before { content: "✦"; }
.callout-warn { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.callout-warn::before { content: "!"; background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.key-takeaways, .tldr { padding: 1.4em 1.5em; border-radius: var(--r-md); border: 1px solid var(--brass-line); background: var(--brass-soft); }
.note-placeholder { display: none; }
.embed-facade { position: relative; display: grid; place-items: center; gap: .8rem; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-md); border: 1px solid var(--line); background: radial-gradient(90% 90% at 50% 0%, var(--brass-soft), transparent 70%), var(--surface-2); color: var(--ink); text-align: center; padding: 1.5rem; cursor: pointer; }
.embed-facade--instagram { aspect-ratio: 4 / 5; max-width: 480px; margin-inline: auto; }
.embed-facade__play { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--bg); transition: transform .3s var(--ease); }
.embed-facade:hover .embed-facade__play { transform: scale(1.08); }
.embed-facade small { color: var(--muted); font-size: .8rem; max-width: 36ch; }
.embed-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; }
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose iframe { width: 100%; border: 0; border-radius: var(--r-md); aspect-ratio: 16 / 9; height: auto; }

/* Article footer blocks. */
.disclaimer { display: grid; grid-template-columns: auto 1fr; gap: .9rem; margin-top: 2.5rem; padding: 1.1rem 1.25rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); font-size: .9rem; color: var(--muted); }
.disclaimer strong { display: block; color: var(--ink); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .3rem; }
.sources { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.sources ol { margin-top: .8rem; padding-left: 1.3rem; display: grid; gap: .45rem; font-size: .88rem; color: var(--muted); }
.sources a { word-break: break-word; color: var(--ink-2); }
.faq { margin-top: 3rem; }
.faq h2 { font-size: var(--fs-2xl); margin-bottom: 1.2rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex: none; color: var(--brass-ink); transition: transform .3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .faq__a { padding: 0 0 1.25rem; color: var(--ink-2); line-height: 1.7; }
.faq .faq__a > * + * { margin-top: .8em; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.5rem; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem; padding: 1rem 0; border-block: 1px solid var(--line); }
.share-row .mono { margin-right: auto; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.share-row .icon-btn { border-color: var(--line); }
.author-box { display: grid; gap: 1.25rem; margin-top: 3rem; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.author-box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brass); }
.author-box__head { display: flex; align-items: center; gap: 1rem; }
.author-box .avatar { width: 64px; height: 64px; font-size: 1.3rem; }
.author-box__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.author-box__role { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); }
.author-box p { color: var(--ink-2); }
.author-box__links { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.author-box__links .link-arrow { margin-left: auto; }
.pn { display: grid; gap: 1rem; margin-top: 3rem; }
.pn a { display: grid; gap: .45rem; padding: 1.3rem 1.4rem; border-radius: var(--r-lg); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, background-color .25s; }
.pn a:hover { border-color: var(--brass-line); background: var(--surface); }
.pn span { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; }
.pn strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.pn a:last-child { text-align: right; }
.pn a:last-child span { justify-content: flex-end; }
@media (min-width: 720px) { .pn { grid-template-columns: 1fr 1fr; } }

/* ---------- About ---------- */
.about-hero { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .about-hero { grid-template-columns: 1.1fr .9fr; } }
.triad { display: flex; flex-wrap: wrap; gap: .5rem; }
.triad span { padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--brass-line); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-ink); background: var(--brass-soft); }
.timeline { position: relative; display: grid; gap: 0; margin-top: 1rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.tl-item { position: relative; display: grid; gap: .45rem; padding: 0 0 2.4rem 2.6rem; }
.tl-item::before { content: ""; position: absolute; left: 0; top: .35rem; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--brass); box-shadow: 0 0 0 4px var(--brass-soft); }
.tl-item__year { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; color: var(--brass-ink); }
.tl-item h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); }
.tl-item p { color: var(--ink-2); max-width: 60ch; }
@media (min-width: 900px) {
  .timeline::before { left: 50%; }
  .tl-item { width: 50%; padding: 0 3rem 3rem 0; text-align: right; justify-items: end; }
  .tl-item::before { left: auto; right: -8px; }
  .tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 3rem 3rem; text-align: left; justify-items: start; }
  .tl-item:nth-child(even)::before { right: auto; left: -7px; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stats > div { padding: 1.5rem; background: var(--surface); display: grid; gap: .3rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact-card { display: grid; gap: .3rem; padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; transition: border-color .25s; }
.contact-card:hover { border-color: var(--brass-line); }
.contact-card__label { display: flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); }
.contact-card strong { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -.015em; }
.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.prefooter { padding-block: var(--section) 0; }
.colophon { margin-top: var(--section); padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); overflow: hidden; }
.colophon__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.colophon__about { display: grid; gap: 1rem; max-width: 30rem; }
.colophon__about p { color: var(--muted); }
.colophon h2 { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.colophon ul { list-style: none; display: grid; gap: .55rem; }
.colophon ul a { text-decoration: none; color: var(--ink-2); }
.colophon ul a:hover { color: var(--brass-ink); }
.socials { display: flex; flex-wrap: wrap; gap: .25rem; margin-left: -.55rem; }
.socials a { color: var(--muted); }
.socials a:hover { color: var(--ink); }
.colophon__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; color: var(--muted); }
.colophon__base a { color: inherit; }
.colophon__base button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: .2em; font: inherit; }
.colophon__mega { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.5rem, 15.5vw, 15rem); line-height: .78; letter-spacing: -.065em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--line-strong); margin-top: 2rem; margin-bottom: -.12em; user-select: none; text-align: center; }
@media (min-width: 760px) { .colophon__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- Consent banner ---------- */
.consent-banner {
  position: fixed;
  z-index: 150;
  left: 12px;
  right: 12px;
  bottom: 12px;
  max-width: 560px;
  padding: 1.25rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: .9rem;
  transform: translateY(calc(100% + 24px));
  transition: transform .45s var(--ease);
}
.consent-banner[data-open] { transform: none; }
.consent-banner h2 { font-size: 1.1rem; letter-spacing: -.01em; }
.consent-banner p { font-size: .88rem; color: var(--muted); }
.consent-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent-banner__actions .btn { flex: 1 1 auto; }
.consent-prefs { display: grid; gap: .6rem; padding: .9rem; border-radius: var(--r-md); background: var(--surface-2); }
.consent-prefs label { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; }
.consent-prefs input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--brass); }
.consent-prefs small { display: block; color: var(--muted); font-size: .8rem; }
@media (min-width: 640px) { .consent-banner { left: 24px; bottom: 24px; } }

/* ---------- /link page ---------- */
.linkpage { min-height: 100dvh; background: radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--brass) 14%, transparent), transparent 60%), var(--bg); }
.linkpage .wrap { width: min(100% - 32px, 560px); padding-block: 2.5rem 4rem; position: relative; }
.linkpage__spine { position: relative; padding-left: 26px; }
.linkpage__spine::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 0; width: 1px; background: linear-gradient(var(--line-strong), transparent); }
.linkpage .avatar { width: 76px; height: 76px; font-size: 1.6rem; }
.linkpage h1 { font-size: clamp(2.2rem, 8vw, 2.9rem); font-weight: 800; letter-spacing: -.04em; margin-top: 1.2rem; }
.linkpage__role { margin-top: .5rem; }
.linkpage__bio { margin-top: 1rem; color: var(--ink-2); font-size: 1.02rem; }
.link-group { margin-top: 2.2rem; display: grid; gap: .7rem; }
.link-group > .eyebrow { margin-left: -26px; margin-bottom: .2rem; }
.link-group > .eyebrow::before { width: 9px; height: 9px; }
.link-btn { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .2s, transform .25s var(--ease), background-color .2s; }
.link-btn:hover { border-color: var(--brass-line); transform: translateY(-2px); background: var(--surface-2); }
.link-btn__body { display: grid; gap: .15rem; min-width: 0; }
.link-btn strong { display: flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: -.015em; }
.link-btn small { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--brass)); flex: none; }
.link-btn > .icon { color: var(--faint); }
.link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.link-flagship { padding: 1.3rem; border-radius: var(--r-lg); border: 1px solid var(--line); border-left: 3px solid var(--brass); background: var(--surface); display: grid; gap: .8rem; }
.link-flagship__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.link-flagship h2 { font-size: 1.5rem; }
.link-flagship p { color: var(--muted); font-size: .95rem; }
.link-latest { display: grid; grid-template-columns: 76px 1fr; gap: .9rem; align-items: center; padding: .8rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.link-latest .frame { --ratio: 1; border-radius: var(--r-sm); }
.link-latest strong { font-family: var(--font-display); font-size: 1rem; line-height: 1.25; letter-spacing: -.01em; }
.link-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.link-contact a { display: grid; justify-items: center; gap: .35rem; padding: .9rem .5rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: .82rem; font-weight: 600; transition: border-color .2s; }
.link-contact a:hover { border-color: var(--brass-line); }
.link-contact .icon { color: var(--brass-ink); width: 1.35rem; height: 1.35rem; }
.linkpage__foot { margin-top: 2.5rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); display: flex; justify-content: space-between; }

/* ---------- Search & errors ---------- */
.search-page-form { display: flex; gap: .6rem; margin-top: 1.5rem; max-width: 640px; }
.search-page-form input { flex: 1; min-height: 54px; padding: .8rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 1.05rem; }
.search-page-form input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 4px var(--brass-soft); }
.search-results { display: grid; gap: 0; border-top: 1px solid var(--line); }
.result { display: grid; gap: .5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.result h2 { font-size: var(--fs-xl); }
.result h2 a { text-decoration: none; }
.result h2 a:hover { color: var(--brass-ink); }
.result p { color: var(--muted); }
.result mark, .search-hl { background: var(--brass-soft); color: inherit; border-radius: 3px; padding: 0 .1em; }
.error-hero { padding-block: clamp(3rem, 8vw, 7rem); display: grid; gap: 1.4rem; justify-items: start; }
.error-hero__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 22vw, 14rem); line-height: .8; letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1.5px var(--brass); }

/* ---------- Admin bar (logged-in owner) ---------- */
.adminbar { position: fixed; z-index: 120; right: 16px; bottom: 16px; display: flex; gap: .4rem; padding: .4rem; border-radius: 999px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font-size: .85rem; }
.adminbar a { color: inherit; text-decoration: none; padding: .45rem .9rem; border-radius: 999px; }
.adminbar a:hover { background: color-mix(in srgb, var(--bg) 14%, transparent); }

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  [data-reveal][data-shown] { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .masthead, .colophon, .prefooter, .share-rail, .share-row, .article-aside, .toc-mobile, .consent-banner, .progress, .pn, .related, .adminbar, body::after { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { color: #000; font-size: 11pt; }
  .prose a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}

/* v2: compact bio cards and long words at 320px; no horizontal clipping. */
.link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.link-btn, .link-btn__body, .link-latest > span, .link-flagship__top > * { min-width: 0; }
.link-btn__body strong, .link-btn__body small, .linkpage__bio { overflow-wrap: anywhere; }
.linkpage__handle { text-align: center; margin: .75rem 0 1.5rem; }
.linkpage__handle a { color: var(--gold, #b58a42); text-decoration: none; }
.link-btn--primary { border-color: currentColor; background: var(--gold, #d6a85c); color: #14171c; }
.linkpage__legal { display:flex; flex-wrap:wrap; justify-content:center; gap:1rem; margin-top:2rem; font-size:.75rem; }
.linkpage__legal button { font:inherit; color:inherit; border:0; background:none; padding:0; cursor:pointer; text-decoration:underline; }
@media (max-width: 380px) {
  .link-grid { grid-template-columns: minmax(0, 1fr); }
  .hero__title em { white-space: normal; }
  .link-flagship__top { flex-wrap: wrap; gap: .5rem; }
}

.link-btn small { white-space: normal; overflow: visible; text-overflow: clip; }
.link-btn--primary small, .link-btn--primary > .icon { color: #343127; }
.link-btn--primary:hover { background: #e4bd75; color: #14171c; }
.linkpage__handle { text-align: left; }

.feature > *, .feature__main > *, .feature__side > *, .card__body { min-width: 0; }
.feature { grid-template-columns: minmax(0, 1fr); }
.card__title { overflow-wrap: anywhere; }
@media (min-width: 960px) { .feature { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
