/* ============================================================
   CONTEXTUS — concept design system
   Bold. Black. White. Yellow.
   ============================================================ */

:root {
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --paper: #ffffff;
  --gray-1: #f5f5f4;
  --gray-2: #e6e6e4;
  --gray-3: #c9c9c6;
  --mute: #6f6f6c;
  --y: #ffe600;
  --y-soft: #fff9c2;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;

  --rule: 3px solid var(--ink);
  --rule-thin: 1px solid var(--gray-2);

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  --ease: cubic-bezier(0.2, 0, 0, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
time, .num { font-variant-numeric: tabular-nums; }

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

:focus-visible {
  outline: 3px solid var(--y);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--y);
  color: var(--ink);
  padding: 12px 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ============================================================
   KICKERS, LABELS, MARKER HIGHLIGHT
   ============================================================ */

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.kicker--mute { color: var(--mute); }
a.kicker { transition: color 0.15s var(--ease); }
a.kicker:hover { color: var(--mute); }

.hl {
  background: var(--y);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0.04em 0.14em;
}

/* marker-swipe underline on hover, the house link move */
.mk {
  background-image: linear-gradient(var(--y), var(--y));
  background-repeat: no-repeat;
  background-size: 0% 32%;
  background-position: 0 88%;
  transition: background-size 0.28s var(--ease);
}
a:hover .mk, a:focus-visible .mk { background-size: 100% 32%; }

/* ============================================================
   TOP BAR + MASTHEAD + NAV
   ============================================================ */

.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 16px;
}
.topbar-date { color: var(--gray-3); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; }
.topbar-links { display: flex; gap: 4px; }
.topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  min-height: 36px;
  color: var(--gray-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  transition: color 0.15s var(--ease);
}
.topbar-links a:hover { color: var(--y); }
.topbar svg { width: 15px; height: 15px; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: var(--rule);
  background: var(--paper);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.masthead.is-condensed {
  background: var(--ink);
  color: var(--paper);
}
.masthead.is-condensed .iconbtn:hover { background: #262626; }
.masthead .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: clamp(18px, 3.5vw, 30px);
  padding-bottom: clamp(14px, 3vw, 24px);
  gap: 12px;
  transition: padding 0.25s var(--ease);
}
.masthead.is-condensed .wrap { padding-top: 10px; padding-bottom: 10px; }
.masthead-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mute);
  transition: opacity 0.2s var(--ease);
}
.masthead.is-condensed .masthead-tag { opacity: 0; }
.brand {
  justify-self: center;
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  padding-left: 0.14em; /* optically re-center: letter-spacing adds a trailing gap */
  transition: font-size 0.25s var(--ease);
}
.masthead.is-condensed .brand { font-size: 24px; }
.brand .dot { position: relative; }
.brand .dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.22em;
  width: 0.13em;
  height: 0.13em;
  background: var(--y);
  transform: translateX(-90%);
}
.masthead-actions {
  justify-self: end;
  display: flex;
  gap: 4px;
}
.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: background-color 0.15s var(--ease), transform 0.1s var(--ease);
}
.iconbtn:hover { background: var(--gray-1); }
.iconbtn:active { transform: scale(0.96); }
.iconbtn svg { width: 22px; height: 22px; }

/* reading progress (article, sits on the masthead's bottom rule) */
.progress {
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--y);
  pointer-events: none;
}

/* ============================================================
   FULLSCREEN MENU + SEARCH OVERLAYS
   ============================================================ */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), visibility 0s linear 0.22s;
}
.overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s var(--ease);
}
.overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  border-bottom: 1px solid #333;
}
.overlay-head .brand { font-size: 22px; padding-left: 0; }
.overlay-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.overlay-close svg { width: 26px; height: 26px; }
.overlay-close:active { transform: scale(0.96); }
.overlay-body {
  flex: 1;
  overflow-y: auto;
  padding: clamp(24px, 6vh, 64px) var(--gutter);
}
.overlay-nav {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2px;
}
.overlay-nav a {
  font-size: clamp(30px, 6vw, 54px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  padding: 6px 0;
  opacity: 0;
  transform: translateY(14px);
}
.overlay.is-open .overlay-nav a {
  animation: rise 0.4s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.overlay-nav a:hover .mk { background-size: 100% 32%; }
.overlay-nav .mk { background-position: 0 92%; }
.overlay-meta {
  max-width: var(--max);
  margin: 48px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--gray-3);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.overlay-meta a { padding: 8px 0; transition: color 0.15s var(--ease); }
.overlay-meta a:hover { color: var(--y); }

.search-form {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}
.search-form label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gray-3);
  margin-bottom: 14px;
}
.search-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 4px solid var(--y);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  padding: 8px 0 14px;
}
.search-input::placeholder { color: #444; }
.search-input:focus { outline: none; }
.search-hints { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.search-hints a {
  border: 2px solid #3a3a3a;
  color: var(--gray-3);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 9px 14px;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.search-hints a:hover { border-color: var(--y); color: var(--paper); }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   IMAGERY — grayscale house style, yellow on hover
   ============================================================ */

.ph {
  position: relative;
  overflow: hidden;
  background: var(--gray-2);
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  outline: 1px solid rgba(0, 0, 0, 0.08);
  outline-offset: -1px;
  pointer-events: none;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: transform 0.5s var(--ease), filter 0.4s var(--ease);
}
a:hover .ph img { transform: scale(1.03); filter: grayscale(1) contrast(1.08); }
.ph--3x2 { aspect-ratio: 3 / 2; }
.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--sq { aspect-ratio: 1; }

/* ============================================================
   SECTION HEADS
   ============================================================ */

.section {
  padding-top: clamp(28px, 5vw, 48px);
  padding-bottom: clamp(28px, 5vw, 48px);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: var(--rule);
  padding-top: 14px;
  margin-bottom: clamp(20px, 3.5vw, 32px);
}
.section-title {
  font-size: clamp(20px, 3.2vw, 28px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.section-more {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  color: var(--ink);
}
.section-more svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.section-more:hover svg { transform: translateX(4px); }

/* ============================================================
   HERO (front page lead)
   ============================================================ */

.hero {
  padding-top: clamp(24px, 4vw, 44px);
  padding-bottom: clamp(28px, 5vw, 52px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.hero-lead .kicker { margin-bottom: 14px; }
.hero-title {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.hero-excerpt {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 18px;
}
.hero-media { margin-bottom: 18px; }
.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--mute);
  font-weight: 600;
}
.byline b { color: var(--ink); font-weight: 800; }
.byline .sep { color: var(--gray-3); }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gray-2);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--y);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

.hero-side { display: grid; gap: 0; align-content: start; }
.hero-side-item {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 16px;
  padding: 18px 0;
  border-top: var(--rule-thin);
  align-items: start;
}
.hero-side-item:first-child { border-top: 0; padding-top: 0; }
.hero-side-item .kicker { margin-bottom: 6px; font-size: 11px; }
.hero-side-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.hero-side-item .ph { aspect-ratio: 1; }

/* ============================================================
   CARDS
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.card .ph { margin-bottom: 14px; }
.card .kicker { margin-bottom: 8px; }
.card-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.card-excerpt {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--mute);
  margin-bottom: 10px;
}
.card-meta {
  font-size: 12px;
  color: var(--mute);
  font-weight: 600;
}

/* opinion strip */
.opinion {
  background: var(--y);
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.opinion .section-head { border-top-color: var(--ink); }
.opinion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.opinion-card { position: relative; padding-top: 8px; }
.opinion-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: rgba(17, 17, 17, 0.6);
  margin: -14px 0 clamp(20px, 3.5vw, 30px);
  max-width: 60ch;
}
.opinion-card .qmark {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 700;
  line-height: 0.6;
  display: block;
  margin-bottom: 14px;
}
.opinion-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 14px;
}
.opinion-card .byline b { color: var(--ink); }
.opinion-card .byline { color: rgba(17, 17, 17, 0.62); }
.opinion-card .avatar { box-shadow: 0 0 0 2px var(--ink); }

/* ============================================================
   FEED (latest list + archive lists) — infinite scroll host
   ============================================================ */

.feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 4.5vw, 56px);
  align-items: start;
}

.feed { display: grid; }
.feed-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  padding: 22px 0;
  border-top: var(--rule-thin);
  align-items: start;
}
.feed-item:first-child { border-top: 0; padding-top: 0; }
.feed-item .kicker { margin-bottom: 7px; font-size: 11px; }
.feed-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feed-excerpt {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--mute);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-meta { font-size: 12px; color: var(--mute); font-weight: 600; }
.feed-item .ph { aspect-ratio: 3 / 2; }

.feed-item.is-new, .card.is-new {
  animation: rise 0.45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

.feed-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 0;
  border-top: var(--rule-thin);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.feed-more svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.feed-more:hover svg { transform: translateX(4px); }

.feed-sentinel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 0;
  border-top: var(--rule-thin);
  color: var(--mute);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.feed-sentinel .spinner {
  width: 18px;
  height: 18px;
  border: 3px solid var(--gray-2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.feed-sentinel.is-done .spinner { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.feed-end {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.feed-end::before, .feed-end::after {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--y);
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar { display: grid; gap: clamp(28px, 4vw, 44px); position: sticky; top: 72px; }
.sb-block { border-top: var(--rule); padding-top: 14px; }
.sb-label {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-label .flag { width: 10px; height: 10px; background: var(--y); }

.mostread { counter-reset: mr; display: grid; }
.mostread li { counter-increment: mr; }
.mostread a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-top: var(--rule-thin);
  align-items: start;
}
.mostread li:first-child a { border-top: 0; padding-top: 0; }
.mostread a::before {
  content: "0" counter(mr);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gray-3);
  font-variant-numeric: tabular-nums;
  transition: color 0.2s var(--ease), -webkit-text-stroke-color 0.2s var(--ease);
}
.mostread a:hover::before { color: var(--y); -webkit-text-stroke-color: var(--ink); }
.mostread-title { font-size: 15px; font-weight: 800; line-height: 1.3; }
.mostread .kicker { display: block; margin-top: 5px; font-size: 10px; color: var(--mute); }

.sb-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 12px;
  padding: 12px 0;
  border-top: var(--rule-thin);
  align-items: center;
}
.sb-list a:first-child { border-top: 0; padding-top: 0; }
.sb-list-title { font-size: 15px; font-weight: 800; line-height: 1.3; }
.sb-list .ph { aspect-ratio: 1; }
.sb-block .section-more { margin-top: 8px; min-height: 36px; }

.newsletter {
  background: var(--ink);
  color: var(--paper);
  padding: 26px 24px 28px;
}
.newsletter h3 {
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}
.newsletter p { font-size: 14px; color: var(--gray-3); line-height: 1.5; margin-bottom: 18px; }
.newsletter-row { display: flex; }
.newsletter input {
  flex: 1;
  min-width: 0;
  background: var(--paper);
  border: 0;
  padding: 12px 14px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  min-height: 46px;
}
.newsletter input:focus { outline: 3px solid var(--y); outline-offset: -3px; }
.btn-y {
  background: var(--y);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 18px;
  min-height: 46px;
  transition: background-color 0.15s var(--ease), transform 0.1s var(--ease);
}
.btn-y:hover { background: #fff04d; }
.btn-y:active { transform: scale(0.96); }

.sb-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tagchip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 2px solid var(--ink);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background-color 0.15s var(--ease), transform 0.1s var(--ease);
}
.tagchip:hover { background: var(--y); }
.tagchip:active { transform: scale(0.96); }

/* ============================================================
   ARCHIVE HEADERS (category / author / tag)
   ============================================================ */

.arch-head {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(36px, 6vw, 64px);
  padding-bottom: clamp(32px, 5vw, 56px);
}
.arch-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray-3);
  margin-bottom: 16px;
}
.arch-title {
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.arch-title .hl { color: var(--ink); padding: 0.02em 0.12em; }
.arch-desc {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--gray-3);
  max-width: 62ch;
  margin-top: 18px;
}
.arch-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-3);
}
.arch-stats b { color: var(--paper); font-variant-numeric: tabular-nums; }
.arch-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.arch-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 16px;
  border: 2px solid #3c3c3c;
  color: var(--gray-3);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.arch-chip:hover { border-color: var(--y); color: var(--paper); }
.arch-chip.is-active { background: var(--y); border-color: var(--y); color: var(--ink); }

.arch-author {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 40px);
  align-items: center;
}
.arch-avatar {
  width: clamp(96px, 14vw, 148px);
  height: clamp(96px, 14vw, 148px);
  border-radius: 50%;
  overflow: hidden;
  background: #222;
  box-shadow: 0 0 0 4px var(--y);
}
.arch-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.arch-social { display: flex; gap: 4px; margin-top: 18px; }
.arch-social a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-3);
  transition: color 0.15s var(--ease);
}
.arch-social a:hover { color: var(--y); }
.arch-social svg { width: 20px; height: 20px; }

.arch-tagmark {
  display: inline-block;
  background: var(--y);
  color: var(--ink);
  font-size: clamp(26px, 4.5vw, 46px);
  font-weight: 900;
  letter-spacing: -0.01em;
  padding: 0.1em 0.35em 0.16em;
  text-transform: none;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */

.article-head {
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(20px, 3vw, 32px);
  max-width: 860px;
  margin: 0 auto;
}
.article-head .kicker { margin-bottom: 16px; }
.article-title {
  font-size: clamp(32px, 5.6vw, 58px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.article-lede {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.article-metarow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: var(--rule);
  border-bottom: var(--rule-thin);
  padding: 14px 0;
}
.article-share { display: flex; gap: 2px; }
.article-share .iconbtn { width: 40px; height: 40px; }
.article-share svg { width: 18px; height: 18px; }

.article-hero { max-width: 1040px; margin: 0 auto; }
.figcap {
  display: flex;
  gap: 10px;
  padding: 10px 0 0;
  font-size: 12.5px;
  color: var(--mute);
  line-height: 1.45;
}
.figcap::before { content: ""; width: 22px; height: 3px; background: var(--y); flex-shrink: 0; margin-top: 6px; }
figure { margin: 0; }

/* article main + right rail */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 4vw, 64px);
}
.article-main { min-width: 0; }

/* flex (not grid) so the sticky ad's containing block is the full column height */
.rail {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
  padding-top: clamp(28px, 4vw, 44px);
}
.rail-sticky { position: sticky; top: 72px; }

.follow-card {
  background: var(--ink);
  color: var(--paper);
  padding: 24px 24px 26px;
}
.follow-card .follow-ico { width: 26px; height: 26px; color: var(--y); margin-bottom: 14px; }
.follow-card h3 {
  font-size: 19px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.follow-card p { font-size: 14px; color: var(--gray-3); line-height: 1.5; margin-bottom: 16px; }
.follow-card .btn-y { display: inline-flex; align-items: center; }

.source-card {
  border: 2px solid var(--ink);
  padding: 22px 22px 24px;
}
.source-card h3 {
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.source-card p { font-size: 13.5px; color: var(--mute); line-height: 1.5; margin-bottom: 16px; }

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 16px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color 0.15s var(--ease), transform 0.1s var(--ease);
}
.btn-google:hover { background: var(--gray-1); }
.btn-google:active { transform: scale(0.96); }
.btn-google .g-logo { width: 18px; height: 18px; flex-shrink: 0; }

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding-top: clamp(28px, 4vw, 44px);
  padding-bottom: clamp(28px, 4vw, 44px);
  font-family: var(--font-serif);
  font-size: 18.5px;
  line-height: 1.68;
  color: var(--ink-soft);
}
.article-body > * + * { margin-top: 1.35em; }
.article-body strong { color: var(--ink); }
.article-body a {
  color: var(--ink);
  font-weight: 600;
  background-image: linear-gradient(var(--y), var(--y));
  background-repeat: no-repeat;
  background-size: 100% 28%;
  background-position: 0 92%;
  transition: background-size 0.2s var(--ease);
}
.article-body a:hover { background-size: 100% 100%; }
.article-body .lead-in::first-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.4em;
  line-height: 0.82;
  float: left;
  padding: 0.06em 0.12em 0 0;
  color: var(--ink);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 1.8em;
}
.article-body figure { margin: 2em 0; }

.pullquote {
  border: 0;
  margin: 2em 0;
  padding: 0.4em 0 0.4em 28px;
  position: relative;
}
.pullquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--y);
}
.pullquote p {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-style: normal;
}
.pullquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
}

.inline-related {
  border-top: var(--rule);
  border-bottom: var(--rule);
  padding: 18px 0;
  margin: 2.2em 0;
  font-family: var(--font-display);
}
.inline-related .kicker { color: var(--mute); font-size: 11px; margin-bottom: 8px; display: block; }
.inline-related a {
  background: none;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.article-tags {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: clamp(28px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.authorcard {
  max-width: 680px;
  margin: 0 auto;
  border-top: var(--rule);
  padding: 24px 0 clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.authorcard .avatar { width: 72px; height: 72px; box-shadow: 0 0 0 3px var(--y); }
.authorcard-name { font-size: 19px; font-weight: 900; margin-bottom: 4px; }
.authorcard-role {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
  margin-bottom: 10px;
}
.authorcard-bio { font-family: var(--font-serif); font-size: 15px; line-height: 1.55; color: var(--mute); margin-bottom: 12px; }
.authorcard-link {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
}
.authorcard-link svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.authorcard-link:hover svg { transform: translateX(4px); }

/* continuous article stream */
.stream-boundary {
  background: var(--ink);
  color: var(--paper);
  margin-top: clamp(36px, 6vw, 64px);
}
.stream-boundary .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.stream-boundary .flag { width: 10px; height: 10px; background: var(--y); flex-shrink: 0; }
.stream-boundary .stream-count {
  margin-left: auto;
  color: var(--gray-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}
.stream-article { animation: rise 0.5s var(--ease) both; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--ink);
  color: var(--paper);
  margin-top: clamp(32px, 6vw, 64px);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  padding-top: clamp(36px, 6vw, 64px);
  padding-bottom: clamp(32px, 5vw, 56px);
}
.footer .brand { font-size: 26px; justify-self: start; padding-left: 0; }
.footer-claim { margin-top: 14px; font-size: 14px; color: var(--gray-3); line-height: 1.55; max-width: 34ch; }
.footer-social { display: flex; gap: 2px; margin-top: 18px; margin-left: -12px; }
.footer-social a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-3);
  transition: color 0.15s var(--ease);
}
.footer-social a:hover { color: var(--y); }
.footer-social svg { width: 20px; height: 20px; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mute);
  margin-bottom: 14px;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-3);
  transition: color 0.15s var(--ease);
}
.footer-col a:hover { color: var(--y); }
.footer-col li { display: block; }
.footer-bottom { border-top: 1px solid #2c2c2c; }
.footer-bottom .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 18px;
  padding-bottom: 22px;
  font-size: 12px;
  color: var(--mute);
  font-weight: 600;
}
.footer-bottom .yline { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .yline::before { content: ""; width: 18px; height: 3px; background: var(--y); }

/* ============================================================
   AD SLOTS (kept honest, styled quiet)
   ============================================================ */

.adslot {
  padding: 18px 0;
  display: grid;
  justify-items: center;
  gap: 6px;
}
.adslot-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray-3);
}
.adslot-box {
  width: 100%;
  max-width: 728px;
  height: 90px;
  background: var(--gray-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--gray-3);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 0 12px;
}
.adslot-id {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  color: #d2d2ce;
  word-break: break-all;
}
.adslot--opener .adslot-box { max-width: 970px; height: 250px; }
.adslot--rect .adslot-box { max-width: 300px; height: 250px; }
.adslot--half .adslot-box { max-width: 300px; height: 600px; }
.adslot--inarticle .adslot-box { max-width: 640px; height: 360px; }
.adslot--passback .adslot-box { max-width: 640px; height: 280px; }
.adslot--video .adslot-box { max-width: 640px; height: auto; aspect-ratio: 16 / 9; }
.article-body .adslot,
.feed > .adslot {
  border-top: var(--rule-thin);
  border-bottom: var(--rule-thin);
  padding: 20px 0;
  margin: 2.4em 0;
}
.feed > .adslot { margin: 0; border-bottom: 0; }

@media (max-width: 860px) {
  .only-desktop { display: none; }
}
@media (min-width: 861px) {
  .only-mobile { display: none; }
}
@media (max-width: 620px) {
  .adslot--inarticle .adslot-box,
  .adslot--passback .adslot-box { max-width: 300px; height: 250px; }
}

/* bottom anchor (GAM out-of-page) — dismissible placeholder */
.anchor-ad {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--paper);
  border-top: var(--rule);
  padding: 8px 0;
}
.anchor-ad .wrap { display: flex; align-items: center; gap: 10px; }
.anchor-ad .adslot-box { height: 74px; max-width: 728px; margin: 0 auto; flex: 1; }
.anchor-close {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  background: var(--paper);
  transition: background-color 0.15s var(--ease), transform 0.1s var(--ease);
}
.anchor-close:hover { background: var(--y); }
.anchor-close:active { transform: scale(0.96); }
.anchor-close svg { width: 16px; height: 16px; }
body.has-anchor .footer-bottom .wrap { padding-bottom: 120px; }
@media (max-width: 620px) {
  .anchor-ad .adslot-box { height: 50px; gap: 1px; }
  .anchor-ad .adslot-box .adslot-id { display: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
  .feed-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .article-layout { grid-template-columns: 1fr; }
  .rail {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: clamp(28px, 4vw, 44px);
  }
  .rail-sticky { position: static; }
  .rail .adslot--half { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 clamp(20px, 3vw, 32px);
    border-top: var(--rule);
    margin-top: 8px;
    padding-top: 4px;
  }
  .hero-side-item:first-child { border-top: var(--rule-thin); padding-top: 18px; }
  .hero-side-item:nth-child(-n + 2) { border-top: 0; }
}

@media (max-width: 860px) {
  .feed-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .card-grid, .opinion-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .masthead-tag { display: none; }
  .masthead .wrap { grid-template-columns: 1fr auto; }
  .brand { justify-self: start; }
  .arch-author { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .card-grid, .opinion-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-side-item:nth-child(2) { border-top: var(--rule-thin); padding-top: 18px; }
  .feed-item { grid-template-columns: minmax(0, 1fr) 108px; }
  .feed-item .ph { aspect-ratio: 1; order: 2; }
  .feed-title { font-size: 18px; }
  .feed-excerpt { display: none; }
  .authorcard { grid-template-columns: 1fr; }
  .article-metarow { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
  .topbar-date { display: none; }
  .topbar .wrap { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .feed-item.is-new, .card.is-new, .overlay.is-open .overlay-nav a { opacity: 1; transform: none; }
}
