/* ==========================================================================
   Anime Array — editorial field notes
   Light paper, sumi ink, vermilion. No frameworks, no build dependencies.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-400-700-normal-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-400-600-normal-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono-400-normal-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono-700-normal-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4ecdd;
  --paper-2: #fbf6eb;
  --cream: #fff9ee;
  --ink: #17130e;
  --ink-2: #3f382e;
  --muted: #6f6557;
  --line: #d8cbb6;
  --line-strong: #b9a98f;
  --verm: #c7351e;
  --verm-dark: #9e2a14;
  --teal: #1e5b58;
  --gold: #e2a62e;
  --blue: #3e6e8e;
  --lilac: #7c6aa8;
  --green: #4e7a4a;
  --pink: #d98c8c;
  --accent: var(--verm);
  --max: 1200px;
  --measure: 720px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;
  --shadow-hard: 5px 5px 0 var(--ink);
  --shadow-soft: 0 16px 40px rgba(23, 19, 14, 0.08);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 19, 14, 0.055) 1px, transparent 1px);
  background-size: 8px 8px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.72;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

main:focus { outline: none; }

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--verm-dark); }

p { margin: 0 0 1.25em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

strong { font-weight: 600; }
em { font-style: italic; }
small { font-size: 0.82em; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--verm);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; color: var(--cream); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Shared type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--accent);
  flex: 0 0 auto;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--verm-dark);
  margin: 0 0 12px;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  margin: 0 0 16px;
}

.section-lede {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0;
}

.section {
  padding: 88px 0;
  position: relative;
}
.section--tight { padding: 64px 0; }
.section--paper2 { background: var(--paper-2); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
.section-head .section-lede { margin-top: 12px; }
.section-head__link {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
  white-space: nowrap;
}
.section-head__link:hover { border-color: var(--verm); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-hard);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
}
.btn--primary { background: var(--verm); color: var(--cream); }
.btn--primary:hover { background: var(--verm-dark); color: var(--cream); }
.btn--ghost { background: transparent; box-shadow: none; }
.btn--ghost:hover { background: var(--cream); transform: none; box-shadow: none; }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 11px; }
.btn__arrow { transition: transform 0.15s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 236, 221, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; flex: 0 0 auto; }
.brand-word {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}
.brand-word span { color: var(--verm); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--verm);
  transition: right 0.2s ease;
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { right: 0; }
.nav-link[aria-current="page"] { color: var(--verm-dark); }

.nav-cta { margin-left: 4px; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--cream);
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
}
.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 2px solid var(--ink);
  background: var(--paper);
  padding: 20px 0 28px;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav__list { list-style: none; margin: 0; padding: 0; }
.mobile-nav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}
.mobile-nav__list a::after { content: "→"; font-family: var(--font-mono); font-size: 16px; color: var(--verm); }
.mobile-nav .btn { margin-top: 20px; width: 100%; }

/* ---------- Home hero ---------- */

.hero-home {
  position: relative;
  padding: 72px 0 84px;
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 64px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-title {
  font-size: clamp(3.4rem, 6.4vw, 6.1rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 0 0 26px;
}
.hero-title em {
  font-style: italic;
  color: var(--verm);
  font-weight: 500;
}
.hero-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; background: var(--verm); border-radius: 50%; }

.hero-art {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art__block {
  position: absolute;
  inset: 8% 6% 6% 10%;
  background: var(--teal);
  border: 2px solid var(--ink);
  transform: rotate(3deg);
}
.hero-art__sun {
  position: absolute;
  top: 2%;
  right: 2%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ink);
}
.hero-art__frame {
  position: relative;
  z-index: 2;
  width: 100%;
  background: var(--cream);
  border: 2px solid var(--ink);
  padding: 10px;
  transform: rotate(-2deg);
  box-shadow: 10px 12px 0 rgba(23, 19, 14, 0.18);
}
.hero-art__frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--ink); }
.hero-art__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-art__label span:last-child { color: var(--verm); }
.hero-art__stamp {
  position: absolute;
  z-index: 3;
  left: -34px;
  bottom: -58px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
  transform: rotate(-9deg);
  box-shadow: 4px 4px 0 var(--ink);
}
.hero-art__stamp strong { display: block; font-family: var(--font-display); font-size: 25px; letter-spacing: -0.03em; line-height: 1; margin-bottom: 4px; }

/* ---------- Index strip ---------- */

.index-strip {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--cream);
}
.index-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  overflow: visible;
}
.index-strip__inner::-webkit-scrollbar { display: none; }
.index-strip__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.index-strip__item:first-child { border-left: 1px solid var(--line); }
.index-strip__item span { color: var(--verm); font-size: 10px; }
.index-strip__item:hover { background: var(--paper); color: var(--verm-dark); }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.note-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}
.note-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 rgba(23, 19, 14, 0.14);
  color: var(--ink);
}
.note-card__media {
  position: relative;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
}
.note-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.note-card:hover .note-card__media img { transform: scale(1.025); }
.note-card__num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 38px;
  height: 30px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--cream);
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.note-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.note-card__cat {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.note-card__title {
  font-size: clamp(1.3rem, 1.8vw, 1.62rem);
  line-height: 1.12;
  margin: 0 0 10px;
}
.note-card__dek {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 20px;
}
.note-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.note-card__arrow { color: var(--accent); font-size: 16px; transition: transform 0.15s ease; }
.note-card:hover .note-card__arrow { transform: translateX(4px); }

.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  background: var(--cream);
  border: 2px solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 40px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.featured:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 rgba(23, 19, 14, 0.14); color: var(--ink); }
.featured__media { border-right: 2px solid var(--ink); position: relative; overflow: hidden; min-height: 360px; }
.featured__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 0.6s ease; }
.featured:hover .featured__media img { transform: scale(1.02); }
.featured__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verm-dark);
  margin-bottom: 16px;
}
.featured__label::before { content: ""; width: 8px; height: 8px; background: var(--verm); border-radius: 50%; }
.featured__title { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.02; margin: 0 0 16px; }
.featured__dek { font-size: 17px; color: var(--ink-2); margin: 0 0 26px; max-width: 460px; }
.featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Pillars / promise ---------- */

.pillar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pillar {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease, transform 0.15s ease;
}
.pillar:hover { background: var(--cream); transform: translateY(-3px); color: var(--ink); }
.pillar__num { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--verm); margin-bottom: 22px; }
.pillar__title { font-size: 24px; margin: 0 0 10px; }
.pillar__text { font-size: 15.5px; color: var(--ink-2); margin: 0 0 20px; }
.pillar__link { margin-top: auto; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }

.promise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 2px solid var(--ink); background: var(--cream); }
.promise {
  padding: 32px;
  border-right: 1px solid var(--line);
}
.promise:last-child { border-right: 0; }
.promise__num { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--verm); letter-spacing: 0.1em; margin-bottom: 16px; }
.promise__title { font-size: 22px; margin: 0 0 10px; }
.promise__text { font-size: 15.5px; color: var(--ink-2); margin: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--verm);
  color: var(--cream);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 56px 0;
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); color: var(--cream); margin: 0 0 8px; }
.cta-band p { color: rgba(255, 249, 238, 0.82); margin: 0; font-size: 17px; }
.cta-band .btn { background: var(--cream); color: var(--ink); flex: 0 0 auto; }
.cta-band .btn:hover { background: var(--paper); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 28px;
}
.site-footer a { color: var(--paper); text-decoration-color: var(--verm); }
.site-footer a:hover { color: var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(244, 236, 221, 0.18);
}
.footer-brand .brand { color: var(--paper); margin-bottom: 18px; }
.footer-brand .brand-word span { color: var(--gold); }
.footer-brand p { font-size: 14.5px; line-height: 1.65; color: rgba(244, 236, 221, 0.64); max-width: 300px; }
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14.5px; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 236, 221, 0.48);
}
.footer-bottom a { color: rgba(244, 236, 221, 0.65); }
.footer-bottom__links { display: flex; gap: 18px; }

/* ---------- Page header ---------- */

.page-header {
  padding: 64px 0 52px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}
.page-header h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 0.98; margin: 0 0 18px; }
.page-header .lede { font-size: 20px; line-height: 1.6; color: var(--ink-2); max-width: 680px; margin: 0; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--verm); }
.breadcrumb span { color: var(--line-strong); }

/* ---------- Post ---------- */

.post-header { padding: 54px 0 40px; }
.post-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.post-kicker span { color: var(--muted); }
.post-kicker strong { color: var(--accent); font-weight: 700; }
.post-title { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 0.99; letter-spacing: -0.035em; margin: 0 0 22px; max-width: 1000px; }
.post-dek { font-size: clamp(1.15rem, 1.7vw, 1.36rem); line-height: 1.55; color: var(--ink-2); max-width: 800px; margin: 0 0 28px; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-meta__author { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.post-meta__author img { width: 24px; height: 24px; }
.post-meta__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }

.post-hero { margin: 0 0 56px; }
.post-hero img { width: 100%; border: 2px solid var(--ink); background: var(--paper); }
.post-hero figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: flex;
  gap: 10px;
}
.post-hero figcaption::before { content: "FIG."; color: var(--verm); font-weight: 700; flex: 0 0 auto; }

.post-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, var(--measure));
  gap: 64px;
  align-items: start;
  justify-content: center;
  padding-bottom: 72px;
}

.toc {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.toc__inner { border-top: 2px solid var(--ink); padding-top: 16px; }
.toc__title { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--verm-dark); margin: 0 0 14px; }
.toc__list { list-style: none; margin: 0; padding: 0; }
.toc__list li { margin: 0; }
.toc__link {
  display: block;
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.toc__link:hover { color: var(--ink); border-color: var(--line-strong); }
.toc__link.is-active { color: var(--ink); border-color: var(--verm); font-weight: 600; }
.toc__link--sub { padding-left: 26px; font-size: 12px; }

.toc-mobile { display: none; margin-bottom: 32px; border: 2px solid var(--ink); background: var(--cream); }
.toc-mobile summary {
  cursor: pointer;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; font-size: 18px; color: var(--verm); }
.toc-mobile[open] summary::after { content: "−"; }
.toc-mobile .toc__list { padding: 0 18px 16px; }
.toc-mobile .toc__link { border-left: 0; padding-left: 0; }

/* ---------- Article body ---------- */

.post-body { font-size: 18px; line-height: 1.76; color: var(--ink-2); min-width: 0; }
.post-body > p:first-of-type { font-size: 20px; line-height: 1.68; color: var(--ink); }
.post-body h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  color: var(--ink);
  margin: 2.4em 0 0.55em;
  padding-top: 0.2em;
  scroll-margin-top: 104px;
}
.post-body h2::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 16px;
}
.post-body h3 {
  font-size: 1.36rem;
  color: var(--ink);
  margin: 1.9em 0 0.5em;
  scroll-margin-top: 104px;
}
.post-body p { margin: 0 0 1.25em; }
.post-body a { color: var(--ink); text-decoration-color: var(--accent); }
.post-body a:hover { color: var(--verm-dark); }
.post-body ul, .post-body ol { margin: 0 0 1.4em; padding-left: 1.35em; }
.post-body li { margin-bottom: 0.55em; }
.post-body li::marker { color: var(--verm); font-weight: 700; }
.post-body strong { color: var(--ink); }
.post-body blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  border-left: 5px solid var(--verm);
  background: var(--cream);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink);
}
.post-body blockquote p:last-child { margin-bottom: 0; }

.post-body hr { border: 0; border-top: 2px solid var(--line); margin: 2.6em 0; }

.table-wrap {
  margin: 2em 0;
  overflow-x: auto;
  border: 2px solid var(--ink);
  background: var(--cream);
  -webkit-overflow-scrolling: touch;
}
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; min-width: 540px; }
.post-body caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.post-body th {
  text-align: left;
  padding: 12px 16px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  vertical-align: top;
}
.post-body td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body tr:last-child td { border-bottom: 0; }
.post-body tbody tr:nth-child(even) { background: rgba(216, 203, 182, 0.12); }

.swatch { display: inline-block; width: 11px; height: 11px; margin-right: 7px; border: 1px solid var(--ink); vertical-align: -1px; }
.swatch-red { background: var(--verm); }
.swatch-blue { background: var(--blue); }
.swatch-green { background: var(--green); }
.swatch-gold { background: var(--gold); }
.swatch-violet { background: var(--lilac); }
.swatch-mixed { background: linear-gradient(135deg, var(--verm) 0 50%, var(--blue) 50% 100%); }

.callout {
  margin: 2em 0;
  padding: 22px 24px;
  border: 2px solid var(--ink);
  background: var(--cream);
  font-size: 16.5px;
  line-height: 1.65;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }
.callout--spoiler { border-left: 6px solid var(--gold); background: var(--paper-2); }

.takeaway {
  margin: 0 0 2.4em;
  padding: 26px 28px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-top: 6px solid var(--accent);
}
.takeaway__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.takeaway ul { margin: 0; padding-left: 1.1em; }
.takeaway li { margin-bottom: 0.5em; font-size: 16px; line-height: 1.6; }
.takeaway li:last-child { margin-bottom: 0; }

/* FAQ */

.faq { margin: 3em 0 0; border-top: 2px solid var(--ink); padding-top: 8px; }
.faq h2 { margin-top: 0.6em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--verm);
  flex: 0 0 auto;
  margin-top: 3px;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--verm-dark); }
.faq__answer { padding: 0 0 20px; font-size: 16.5px; line-height: 1.68; color: var(--ink-2); }
.faq__answer p { margin: 0 0 0.8em; }
.faq__answer p:last-child { margin-bottom: 0; }

/* Sources */

.sources { margin-top: 3em; padding-top: 28px; border-top: 2px solid var(--ink); }
.sources h2 { font-size: 1.5rem; margin: 0 0 14px; }
.sources h2::before { display: none; }
.sources ol { padding-left: 1.25em; }
.sources li { font-size: 14.5px; line-height: 1.65; margin-bottom: 0.8em; color: var(--ink-2); }
.sources a { overflow-wrap: anywhere; }
.source-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* Share + author + related */

.post-footer { border-top: 2px solid var(--ink); padding: 48px 0 72px; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 40px; }
.share-row__label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  background: var(--cream);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.share-btn:hover { background: var(--paper); color: var(--verm-dark); }
.share-btn__icon { font-size: 13px; color: var(--verm); }

.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  margin-bottom: 56px;
}
.author-box img { width: 56px; height: 56px; flex: 0 0 auto; }
.author-box h3 { font-size: 1.2rem; margin: 0 0 4px; }
.author-box p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.author-box a { text-decoration: none; border-bottom: 1px solid var(--verm); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 56px; }
.post-nav__item {
  display: block;
  padding: 20px;
  border: 2px solid var(--ink);
  background: var(--cream);
  text-decoration: none;
  color: var(--ink);
}
.post-nav__item:hover { background: var(--paper); color: var(--ink); }
.post-nav__label { display: block; font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--verm-dark); margin-bottom: 6px; }
.post-nav__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.post-nav__item--next { text-align: right; }

.related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.related__head h2 { font-size: 1.8rem; margin: 0; }
.related__head a { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Feed ---------- */

.feed-header { padding: 60px 0 36px; }
.feed-header h1 { font-size: clamp(2.8rem, 5.4vw, 4.8rem); line-height: 0.96; margin: 0 0 16px; }
.feed-header .lede { max-width: 680px; font-size: 19px; color: var(--ink-2); margin: 0; }
.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  margin-bottom: 34px;
  position: sticky;
  top: 76px;
  z-index: 20;
  background: var(--paper);
}
.search-field { position: relative; flex: 0 1 250px; max-width: 250px; }
.search-field input {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 14px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
}
.search-field input::placeholder { color: var(--muted); }
.search-field__icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--verm); font-size: 16px; pointer-events: none; }
.search-field__icon svg { display: block; width: 16px; height: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-start; }
.chip {
  padding: 8px 9px;
  border: 2px solid var(--ink);
  background: var(--cream);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.chip:hover { background: var(--paper); }
.chip.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.feed-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.feed-count button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--verm-dark);
  text-decoration: underline;
  cursor: pointer;
}
.feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.feed-main { padding-top: 0; }
.feed-rss {
  margin-top: 34px;
  padding: 20px 24px;
  border: 2px solid var(--ink);
  background: var(--cream);
  font-size: 15px;
}
.feed-rss p { margin: 0; }
.empty-state {
  display: none;
  padding: 56px 24px;
  text-align: center;
  border: 2px dashed var(--line-strong);
  background: var(--paper-2);
}
.empty-state.is-visible { display: block; }
.empty-state h2 { font-size: 1.8rem; margin: 0 0 8px; }
.empty-state p { color: var(--ink-2); margin: 0; }

/* ---------- Advertising ---------- */

.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 44px auto 0;
}
.ad-slot__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-slot__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 90px;
  overflow: hidden;
}
.ad-slot__frame iframe { display: block; border: 0; }
.ad-slot--inline { margin: 2.4em 0; }
.ad-slot--inline .ad-slot__frame { min-height: 60px; }
.ad-slot--native { margin-top: 44px; }
.feed-main .ad-slot { margin: 4px auto 32px; }
.ad-slot__native {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  min-height: 120px;
  overflow: hidden;
}

/* ---------- Standard pages ---------- */

.page-body { padding: 64px 0 88px; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); margin: 2.2em 0 0.5em; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 0.4em; scroll-margin-top: 100px; }
.prose p { margin: 0 0 1.2em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose a { overflow-wrap: anywhere; }
.prose .table-wrap { margin: 1.8em 0; }
.prose table { min-width: 520px; }
.prose hr { border: 0; border-top: 2px solid var(--line); margin: 2.4em 0; }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  max-width: 760px;
  padding: 16px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-note {
  margin-top: 40px;
  padding: 18px 20px;
  border: 2px solid var(--line-strong);
  background: var(--paper-2);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* About */

.about-hero { padding: 72px 0 56px; border-bottom: 2px solid var(--ink); }
.about-hero h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: 0.95; letter-spacing: -0.04em; margin: 0 0 20px; max-width: 900px; }
.about-hero h1 em { color: var(--verm); font-style: italic; }
.about-hero .lede { font-size: 21px; line-height: 1.6; color: var(--ink-2); max-width: 720px; margin: 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.about-aside { position: sticky; top: 104px; }
.about-aside__card { border: 2px solid var(--ink); background: var(--cream); padding: 26px; }
.about-aside__card img { width: 100%; border: 1px solid var(--ink); margin-bottom: 18px; }
.about-aside__card img.about-aside__logo { width: 64px; height: 64px; border: 0; margin-bottom: 18px; }
.about-aside__card h3 { font-size: 1.2rem; margin: 0 0 8px; }
.about-aside__card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.principle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 2em 0; }
.principle { padding: 20px; border: 2px solid var(--ink); background: var(--cream); }
.principle h3 { font-size: 1.05rem; margin: 0 0 6px; }
.principle p { font-size: 14.5px; line-height: 1.55; margin: 0; color: var(--ink-2); }

/* Contact */

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.contact-card { border: 2px solid var(--ink); background: var(--cream); padding: 30px; }
.contact-card__label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--verm-dark); margin: 0 0 12px; }
.contact-card__email { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.contact-card__email a { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; overflow-wrap: anywhere; }
.contact-card p { font-size: 15px; line-height: 1.65; color: var(--ink-2); margin: 0 0 18px; }
.copy-btn { border: 2px solid var(--ink); background: var(--paper); padding: 7px 10px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.copy-btn:hover { background: var(--gold); }
.copy-status { font-family: var(--font-mono); font-size: 10px; color: var(--teal); min-height: 1.2em; margin: 8px 0 0; }

.contact-form { border: 2px solid var(--ink); background: var(--paper-2); padding: 30px; }
.contact-form h2 { font-size: 1.8rem; margin: 0 0 8px; }
.contact-form > p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 12px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--verm); outline-offset: 1px; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--verm);
  background: var(--paper-2);
}
.form-note { margin-top: 12px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .form-success {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-left: 6px solid var(--verm);
  background: var(--cream);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
}

/* 404 */

.not-found { padding: 96px 0 120px; text-align: center; }
.not-found__code { font-family: var(--font-display); font-size: clamp(7rem, 22vw, 16rem); line-height: 0.8; font-weight: 700; color: transparent; -webkit-text-stroke: 2px var(--ink); margin: 0 0 8px; letter-spacing: -0.05em; }
.not-found h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 14px; }
.not-found p { max-width: 520px; margin: 0 auto 28px; color: var(--ink-2); }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.not-found__search { max-width: 420px; margin: 32px auto 0; display: flex; gap: 8px; }
.not-found__search input { flex: 1; height: 46px; border: 2px solid var(--ink); background: var(--cream); padding: 0 12px; font-family: var(--font-body); font-size: 15px; }
.not-found__search button { height: 46px; }

/* ---------- Reading progress + to top ---------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  height: 3px;
  width: 0;
  background: var(--verm);
  transition: width 0.08s linear;
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold); }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid { gap: 40px; }
  .hero-title { font-size: clamp(3rem, 6.6vw, 5rem); }
  .post-layout { grid-template-columns: 200px minmax(0, 720px); gap: 44px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-col--legal { display: none; }
  .feed-toolbar { flex-wrap: wrap; }
  .chips { justify-content: flex-start; }
}

@media (max-width: 999px) {
  .ad-slot__frame { min-height: 60px; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .hero-home { padding: 52px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 720px; }
  .hero-art { min-height: 0; max-width: 640px; width: 100%; margin: 0 auto; }
  .hero-art__stamp { display: none; }
  .hero-art__stamp strong { font-size: 21px; }

  .featured { grid-template-columns: 1fr; }
  .featured__media { border-right: 0; border-bottom: 2px solid var(--ink); min-height: 0; aspect-ratio: 16 / 9; }
  .featured__body { padding: 30px; }

  .index-strip__inner { display: flex; overflow-x: auto; scrollbar-width: none; }
  .index-strip__item { flex: 0 0 auto; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar-grid { grid-template-columns: 1fr; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise { border-right: 0; border-bottom: 1px solid var(--line); }
  .promise:last-child { border-bottom: 0; }

  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post-layout > * { min-width: 0; }
  .toc { display: none; }
  .toc-mobile { display: block; min-width: 0; }
  .toc-mobile .toc__list { min-width: 0; }
  .post-body { max-width: var(--measure); }
  .post-hero { margin-bottom: 40px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed-toolbar { top: 76px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-col--legal { display: block; }
}

@media (max-width: 680px) {
  body { font-size: 17px; }
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
  .header-inner { height: 68px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-word { font-size: 22px; }

  .hero-title { font-size: clamp(2.9rem, 12vw, 4.2rem); }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 8px 16px; font-size: 10px; }
  .hero-art__block { inset: 6% 2% 4% 4%; }
  .hero-art__sun { width: 96px; height: 96px; }
  .hero-art__stamp { display: none; }

  .grid--3, .grid--2, .feed-grid { grid-template-columns: 1fr; }
  .note-card__media img { aspect-ratio: 16 / 9; }
  .featured__body { padding: 24px; }
  .featured__title { font-size: 2rem; }

  .post-header { padding: 40px 0 28px; }
  .post-title { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .post-dek { font-size: 1.08rem; }
  .post-body { font-size: 17px; line-height: 1.72; }
  .post-body > p:first-of-type { font-size: 18.5px; }
  .post-body h2 { font-size: 1.72rem; }
  .post-body table { min-width: 480px; }
  .post-meta { font-size: 9px; gap: 8px 10px; }
  .post-meta time + .post-meta__dot,
  .post-meta time + .post-meta__dot + span { display: none; }
  .post-hero figcaption { font-size: 9.5px; }

  .feed-header { padding: 44px 0 28px; }
  .feed-toolbar { top: 68px; padding: 16px 0; }
  .search-field { max-width: none; flex-basis: 100%; }
  .chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }

  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--next { text-align: left; }
  .author-box { flex-direction: column; }
  .share-row { gap: 8px; }

  .cta-band__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cta-band .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom__links { flex-wrap: wrap; }

  .ad-slot__frame { min-height: 50px; }
  .ad-slot--inline .ad-slot__frame { min-height: 50px; }
  .ad-slot--native { display: none; }

  .principle-grid { grid-template-columns: 1fr; }
  .about-hero { padding: 48px 0 40px; }
  .about-hero .lede { font-size: 18px; }
  .page-header { padding: 44px 0 36px; }
  .page-header .lede { font-size: 17.5px; }
  .page-body { padding: 44px 0 64px; }
  .contact-card, .contact-form { padding: 22px; }
  .contact-card__email a { font-size: 1.35rem; }

  .not-found { padding: 64px 0 88px; }
  .not-found__search { flex-direction: column; }
  .not-found__search button { width: 100%; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 2.65rem; }
  .post-title { font-size: 2rem; }
  .btn { font-size: 11px; padding: 12px 16px; }
  .featured__body { padding: 20px; }
  .post-body table { min-width: 420px; }
}

@media (max-width: 359px) {
  .ad-slot__frame {
    width: calc(100% + 40px);
    max-width: none;
    margin-left: -20px;
    margin-right: -20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .note-card:hover, .featured:hover, .pillar:hover { transform: none; }
  .note-card:hover .note-card__media img, .featured:hover .featured__media img { transform: none; }
}

@page { margin: 12mm; }

@media print {
  .site-header, .site-footer, .toc, .toc-mobile, .share-row, .post-nav, .related, .to-top, .progress, .cta-band, .ad-slot { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .container { max-width: none; padding: 0; }
  .post-layout { display: block; }
  .post-body { max-width: none; }
  .post-body a { color: #000; text-decoration: underline; }
  .post-hero img { border: 1px solid #000; }
}

/* ==========================================================================
   Birthday calendar
   ========================================================================== */

.cal-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  padding: 24px 26px;
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: var(--shadow-hard);
}
.cal-banner__copy { max-width: 560px; }
.cal-banner__label {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verm);
}
.cal-banner__text { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.cal-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cal-banner__meta {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cal-next {
  margin: 0 0 28px;
  padding: 16px 20px;
  border: 2px solid var(--ink);
  border-left: 6px solid var(--verm);
  background: var(--cream);
}
.cal-next__label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verm);
}
.cal-next__list { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.cal-next__item { display: flex; align-items: baseline; gap: 8px; font-size: 15.5px; }
.cal-next__date {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.cal-next__who { color: var(--ink-2); }
.cal-next__in {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.cal-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  flex: 1 1 560px;
}
.cal-search { flex: 1 1 220px; max-width: 320px; margin: 0; }
.cal-search input {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 12px;
}
.cal-search input:focus { outline: 3px solid var(--verm); outline-offset: 1px; }
.cal-count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.cal-legend__swatch { display: inline-block; width: 12px; height: 12px; background: var(--verm); flex: none; }
.cal-table tbody tr[data-tier="curated"] td:first-child { box-shadow: inset 4px 0 0 var(--verm); }
.cal-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}
.cal-stat { border: 2px solid var(--ink); background: var(--paper-2); padding: 14px 16px; }
.cal-stat strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; letter-spacing: -0.03em; }
.cal-stat span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cal-table-wrap { margin: 0 0 24px; }
.cal-table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.cal-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cal-table thead th {
  padding: 10px 18px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cal-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.cal-table tbody tr:last-child td { border-bottom: 0; }
.cal-table tbody tr:hover { background: var(--paper); }
.cal-cell-date { font-family: var(--font-mono); font-size: 13px; font-weight: 700; white-space: nowrap; }
.cal-cell-name { font-weight: 600; }
.cal-cell-series em { color: var(--ink-2); }
.cal-src {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.cal-src--link { color: var(--verm-dark); }
.cal-empty {
  margin: 18px 0 0;
  padding: 18px 20px;
  border: 2px dashed var(--line-strong);
  font-size: 16px;
  color: var(--ink-2);
}

.cal-cite {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  margin: 2em 0;
  padding: 18px 20px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
}
.cal-cite code {
  flex: 1 1 320px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.cal-toolbar .chips { flex-wrap: wrap; overflow-x: visible; padding-bottom: 0; }

@media (max-width: 900px) {
  .cal-banner__actions { width: 100%; }
}

@media screen and (max-width: 680px) {
  .cal-banner { padding: 20px; box-shadow: 3px 3px 0 var(--ink); }
  .cal-banner__actions .btn { flex: 1 1 100%; }

  .cal-toolbar { display: block; }
  .cal-filters { flex: 1 1 100%; }
  .cal-search { flex: 1 1 100%; max-width: none; }
  .cal-count { margin-top: 12px; }
  .cal-stats { gap: 8px; }
  .cal-stat { padding: 10px; }
  .cal-stat strong { font-size: 1.45rem; }
  .cal-stat span { font-size: 8.5px; }
  .cal-next__list { flex-direction: column; gap: 12px; }
  .cal-next__item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-areas: "date who" "date in";
    gap: 2px 12px;
  }
  .cal-next__date { grid-area: date; white-space: nowrap; }
  .cal-next__who { grid-area: who; }
  .cal-next__in { grid-area: in; }

  .cal-table-wrap { border: 0; background: transparent; }
  .cal-table { display: block; min-width: 0; }
  .cal-table caption { display: block; }
  .cal-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .cal-table tbody { display: block; }
  .cal-table tr {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    grid-template-areas:
      "date name"
      "date series"
      "date source";
    gap: 2px 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
  }
  .cal-table tr:first-child { border-top: 2px solid var(--ink); }
  .cal-table tr:last-child { border-bottom: 2px solid var(--ink); }
  .cal-table tr[data-tier="curated"] { box-shadow: inset 5px 0 0 var(--verm); }
  .cal-table tbody tr[data-tier="curated"] td:first-child { box-shadow: none; }
  .cal-table td { padding: 0; border: 0; }
  .cal-table tbody tr:hover { background: var(--cream); }
  .cal-cell-date { grid-area: date; }
  .cal-cell-name { grid-area: name; font-size: 16px; }
  .cal-cell-series { grid-area: series; font-size: 14.5px; }
  .cal-cell-source { grid-area: source; margin-top: 4px; }
}

@media print {
  .cal-banner, .cal-next, .cal-toolbar, .cal-cite, .cal-empty, .cal-legend, .cal-stats { display: none !important; }
  .section:has(.cal-banner) { display: none !important; }
  .section:has(.cal-table) { padding: 0 0 20px; }
  .section:has(.cal-prose) { padding: 24px 0 0; }
  .section:has(.sources) { padding: 0; }
  .page-header { padding: 0 0 14px; }
  .cal-table-wrap { overflow: visible; }
  .cal-table { min-width: 0; font-size: 10pt; }
  .cal-table thead { display: table-header-group; }
  .cal-table tr { break-inside: avoid; }
  .cal-table caption { background: none; color: #000; border-bottom: 1px solid #000; }
  .cal-table td, .cal-table th { border-color: #000; }
  .cal-table tbody tr:hover { background: none; }
  .cal-prose h2 { break-after: avoid; }
  .sources { break-inside: avoid; }
}
