/* The Wrong End — site shell: base, layout, header, nav, footer, homepage.
   Colors and type sizes come from tokens.css. Breakpoint for phone layouts: 760px. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  min-height: 100vh;
  transition: background-color .25s ease, color .25s ease;
}
a { color: inherit; }
a:hover { opacity: .72; }
[hidden] { display: none !important; }
img, svg, video { max-width: 100%; height: auto; }
svg { flex: none; }
button { font: inherit; color: inherit; }

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

.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;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--bg);
  font-family: var(--font-meta); font-size: 13px; text-transform: uppercase; letter-spacing: .04em;
}
.skip-link:focus { top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--measure); }

/* ---------- Shared type helpers ---------- */
.meta {
  font-family: var(--font-meta); font-size: var(--t-meta); letter-spacing: .02em;
  text-transform: uppercase; color: var(--muted);
}
.label {
  margin: 0; font-family: var(--font-meta); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.accent { color: var(--accent); }
.wordmark-dot { color: var(--accent); }
.display { font-family: var(--font-display); font-variation-settings: 'opsz' 144; }
.icon-inline { display: inline-block; vertical-align: middle; }

/* ---------- Header ---------- */
.site-header { display: flex; flex-direction: column; }

.topbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  padding-top: 20px;
  font-family: var(--font-meta); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.topbar__actions { display: flex; gap: 20px; align-items: center; }
.topbar a { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; min-height: var(--tap); }

/* Theme toggle. The visible pill is 36px; the button itself is a 44px target. */
.theme-toggle {
  appearance: none; display: inline-flex; align-items: center; min-height: var(--tap);
  padding: 0; background: none; border: 0; cursor: pointer; color: var(--ink);
}
.theme-toggle__pill {
  display: inline-flex; gap: 8px; align-items: center; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--rule); border-radius: 999px;
  font-family: var(--font-meta); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
}
.theme-toggle--icon { justify-content: center; width: var(--tap); height: var(--tap); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle[data-current="dark"] .icon-sun { display: inline-block; }
.theme-toggle[data-current="dark"] .icon-moon { display: none; }
/* The toggle needs JS; hide it when JS is off. */
html:not(.js) .theme-toggle { display: none; }

.mast-row {
  display: flex; flex-wrap: wrap-reverse; justify-content: space-between; align-items: flex-end;
  gap: 16px 40px; padding: 28px 0 22px; border-bottom: var(--rule-heavy) solid var(--ink);
}
.masthead { text-decoration: none; display: flex; flex-direction: column; align-items: flex-end; }
.masthead__name {
  font-family: var(--font-display); font-size: var(--t-masthead); line-height: .86; font-weight: 600;
  letter-spacing: -.035em; font-variation-settings: 'opsz' 144;
}
.double-rule { height: 1px; background: var(--ink); margin-top: 3px; }

/* Primary nav (desktop) */
.site-nav__list { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tap);
  font-family: var(--font-meta); font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
}
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav__path { display: none; }

/* Compact header on inner pages */
.site-header--inner .inner-row {
  display: flex; flex-wrap: wrap-reverse; justify-content: space-between; align-items: center;
  gap: 8px 40px; padding: 18px 0 16px; border-bottom: var(--rule-thin) solid var(--ink);
}
.site-header--inner .site-nav__list { gap: 0 24px; }
.site-header--inner .site-nav a { font-size: 12px; }
.inner-row__end { display: flex; align-items: center; gap: 20px; }
.wordmark-small {
  text-decoration: none; font-family: var(--font-display); font-size: 34px; line-height: 1;
  font-weight: 600; letter-spacing: -.03em;
}

/* Phone-only header pieces */
.mbar, .mdate, .menu-toggle { display: none; }
.menu-toggle {
  appearance: none; align-items: center; gap: 10px; min-height: var(--tap); padding: 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-meta); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline-block; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); color: var(--ink);
}

/* ---------- Main / footer ---------- */
main { display: block; }
main:focus { outline: none; }

.site-footer {
  margin-top: 96px; padding: 40px 0 56px; border-top: var(--rule-heavy) solid var(--ink);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px 64px;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; }
.site-footer__name { font-family: var(--font-display); font-size: 36px; line-height: 1; font-weight: 600; letter-spacing: -.03em; }
.site-footer__tagline { font-family: var(--font-meta); font-size: 12px; color: var(--muted); }
.site-footer nav { display: flex; flex-direction: column; gap: 2px; font-family: var(--font-meta); font-size: 13px; }
.site-footer nav .label { color: var(--muted); padding-bottom: 6px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: var(--tap); }
.site-footer__copy { color: var(--muted); padding-top: 10px; }

/* ---------- Generic page (About) ---------- */
.page { padding: clamp(40px, 6vw, 80px) 0 0; }
.page__title {
  margin: 0 0 32px; font-family: var(--font-display); font-size: var(--t-feature); line-height: .98;
  font-weight: 500; letter-spacing: -.028em; font-variation-settings: 'opsz' 144; text-wrap: balance;
}
.prose { max-width: var(--measure); }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1em; }
.prose p { text-wrap: pretty; }
.prose h2 { font-family: var(--font-display); font-size: var(--t-h2); line-height: 1.15; font-weight: 500; letter-spacing: -.015em; margin: 1.6em 0 0; }
.prose h3 { font-family: var(--font-meta); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 2em 0 0; }

/* ---------- Homepage ---------- */
.featured {
  display: flex; flex-wrap: wrap; gap: 40px 64px; padding: clamp(40px, 6vw, 80px) 0;
  border-bottom: var(--rule-thin) solid var(--rule);
}
.featured__body { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.kicker { display: flex; gap: 14px; align-items: center; font-family: var(--font-meta); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.kicker__label { color: var(--accent); font-weight: 700; }
.kicker__rule { width: 32px; height: 1px; background: var(--ink); }
.kicker a { color: var(--muted); text-decoration: none; }
.featured__title {
  margin: 0; font-family: var(--font-display); font-size: var(--t-feature); line-height: .98; font-weight: 500;
  letter-spacing: -.028em; text-wrap: balance; font-variation-settings: 'opsz' 144;
}
.featured__title a { text-decoration: none; }
.featured__deck {
  margin: 0; max-width: 640px; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45;
  color: var(--ink-2); font-style: italic; text-wrap: pretty;
}
.byline { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; font-family: var(--font-meta); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.read-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap);
  font-size: 19px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.featured__figure { flex: 1 1 340px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.featured__figure img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--placeholder); }
.caption { font-size: 15px; line-height: 1.4; color: var(--muted); font-style: italic; }
.caption__credit { font-style: normal; font-family: var(--font-meta); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }

.home-columns { display: flex; flex-wrap: wrap; gap: 48px 72px; padding-top: 48px; }
.stream { flex: 999 1 640px; min-width: 0; }
.stream__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; padding-bottom: 8px; }
.stream__title { margin: 0; font-family: var(--font-display); font-size: 34px; line-height: 1; font-weight: 500; letter-spacing: -.015em; }
.stream__feed { display: flex; justify-content: flex-end; padding-bottom: 20px; font-family: var(--font-meta); font-size: 12px; color: var(--muted); }
.stream__feed a { display: inline-flex; gap: 6px; align-items: center; min-height: var(--tap); text-decoration: none; }
.stream__more { display: flex; justify-content: center; padding: 40px 0 0; border-top: 3px double var(--ink); }
.stream__more a {
  display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap);
  font-family: var(--font-meta); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
}
.empty { padding: 28px 0; border-top: var(--rule-thin) solid var(--ink); color: var(--muted); font-style: italic; }

/* Stream rows (completed in Phase 3) */
.row { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 28px 0 30px; border-top: var(--rule-thin) solid var(--ink); }
.row--article { gap: 12px 40px; padding: 56px 0 60px; }
.row__meta { flex: 0 0 132px; display: flex; flex-direction: column; gap: 6px; padding-top: 5px; }
.row--article .row__meta { padding-top: 10px; }
.row__type--article { color: var(--accent); font-weight: 700; }
.row__body { flex: 999 1 440px; min-width: 0; max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.row--article .row__body { max-width: none; gap: 16px; }
.row__headline {
  margin: 0; font-family: var(--font-display); font-size: var(--t-stream-headline); line-height: 1.04;
  font-weight: 500; letter-spacing: -.02em; text-wrap: balance; max-width: 760px;
}
.row__headline a, .row__obs-headline a { text-decoration: none; }
.row__obs-headline { margin: 0; font-family: var(--font-display); font-size: 23px; line-height: 1.3; font-weight: 600; }
.row__deck { margin: 0; max-width: 620px; font-size: 19px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.row__text > * { margin: 0; }
.row__text > * + * { margin-top: 12px; }
.row__text p { font-size: var(--t-observation); line-height: var(--lh-observation); text-wrap: pretty; }
.row__foot { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--font-meta); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.row__foot--obs { gap: 16px; text-transform: none; }

/* Aside */
.home-aside { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 48px; padding-top: 8px; }
.aside-about { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; border-top: var(--rule-heavy) solid var(--ink); }
.aside-about p { margin: 0; font-size: 18px; line-height: 1.55; }
.aside-about__more { display: inline-flex; align-items: center; align-self: flex-start; min-height: var(--tap); font-family: var(--font-meta); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.aside-topics { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: var(--rule-thin) solid var(--ink); }
.aside-topics .label { margin-bottom: 6px; }
.aside-topics ul { margin: 0; padding: 0; list-style: none; }
.aside-topics li + li a { border-top: var(--rule-thin) solid var(--rule); }
.aside-topics a {
  display: flex; align-items: center; min-height: var(--tap);
  font-family: var(--font-display); font-size: 21px; text-decoration: none;
}
.aside-rss {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  background: var(--raised); border: var(--rule-thin) solid var(--ink);
}
.aside-rss a { display: inline-flex; gap: 8px; align-items: center; min-height: var(--tap); font-family: var(--font-meta); font-size: 12px; color: var(--ink-2); }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  :root { --t-body: 18px; --t-observation: 18px; --t-h2: 26px; --t-meta: 11px; }
  .container { padding: 0 20px; }

  /* Home header */
  .topbar { display: none; }
  .mbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; }
  .mbar__actions { display: flex; align-items: center; gap: 4px; }
  .menu-toggle { display: inline-flex; }
  html:not(.js) .menu-toggle { display: none; }

  .mast-row { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; padding: 0; }
  .masthead { padding: 18px 0 16px; }
  .masthead__name { font-size: 66px; line-height: .84; letter-spacing: -.04em; text-align: right; max-width: 6.2ch; }
  .mdate {
    display: flex; justify-content: space-between; padding: 10px 0;
    font-family: var(--font-meta); font-size: 11px; text-transform: uppercase; color: var(--muted);
    border-bottom: var(--rule-thin) solid var(--rule);
  }
  .mdate a { text-decoration: underline; text-underline-offset: 3px; }

  /* Mobile menu panel */
  .site-nav { border-top: var(--rule-thin) solid var(--ink); padding: 8px 0 20px; }
  .js .site-nav[data-collapsed="true"] { display: none; }
  .site-nav__list { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .site-nav li + li a { border-top: var(--rule-thin) solid var(--rule); }
  .site-nav a, .site-header--inner .site-nav a {
    display: flex; justify-content: space-between; align-items: center; min-height: 56px;
    font-family: var(--font-display); font-size: 30px; font-weight: 500; letter-spacing: -.02em; text-transform: none;
  }
  .site-nav__path { display: inline; font-family: var(--font-meta); font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--muted); }

  /* Inner header */
  /* Wordmark left, icon buttons right; the menu panel drops below. */
  .site-header--inner .inner-row { flex-wrap: wrap; padding: 4px 0; gap: 0; }
  .site-header--inner .inner-row__end { order: 1; width: 100%; flex-direction: row-reverse; justify-content: space-between; gap: 0; }
  .site-header--inner .inner-row .site-nav { order: 2; flex-basis: 100%; }
  .site-header--inner .wordmark-small { font-size: 24px; display: inline-flex; align-items: center; min-height: 48px; }
  .site-header--inner .inner-actions { display: flex; align-items: center; }
  .site-header--inner .theme-toggle { width: var(--tap); justify-content: center; }
  .site-header--inner .theme-toggle__pill { border: 0; padding: 0; min-height: 0; }
  .site-header--inner .theme-toggle .icon-moon, .site-header--inner .theme-toggle .icon-sun { width: 19px; height: 19px; }
  .site-header--inner [data-theme-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-header--inner .menu-toggle { width: var(--tap); justify-content: center; }

  .site-footer { margin: 56px 0 0; padding: 28px 0 40px; flex-direction: column; gap: 24px; }

  /* Homepage */
  .featured { flex-direction: column; gap: 18px; padding: 32px 0 36px; }
  /* In a column, flex-basis would set height: reset the desktop widths. */
  .featured__body, .featured__figure, .row__meta, .row__body { flex: none; }
  .featured__body { gap: 18px; }
  .featured__title { font-size: 40px; line-height: 1; letter-spacing: -.025em; }
  .featured__deck { font-size: 18px; line-height: 1.5; }
  .home-columns { padding-top: 36px; }
  .stream__title { font-size: 30px; }
  .row, .row--article { flex-direction: column; flex-wrap: nowrap; gap: 10px; padding: 20px 0 22px; }
  .row--article { gap: 12px; padding: 36px 0 40px; }
  .row__meta { flex: none; flex-direction: row; gap: 12px; padding-top: 0; }
  .row__headline { font-size: 31px; }
  .row__obs-headline { font-size: 21px; }
  .row__deck { font-size: 17px; }
  .aside-about { margin-top: 0; padding-top: 14px; }
  .aside-about p { font-size: 17px; }
  .aside-rss { padding: 20px; }
}

/* Menu button is phone-only */
@media (min-width: 761px) {
  .inner-actions .menu-toggle { display: none; }
}

/* =====================================================================
   Phase 3: filter, linked card, archives, observation page, topics
   ===================================================================== */

/* Filter (homepage buttons and archive links share the look) */
.filter { display: flex; gap: 24px; }
.filter__link {
  appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  padding: 12px 0 10px; min-height: var(--tap); display: inline-flex; align-items: center; cursor: pointer; text-decoration: none;
  font-family: var(--font-meta); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.filter__link[aria-pressed="true"], .filter__link[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }

/* Linked card (observations) */
.linked {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  padding: 2px 0 2px 18px; border-left: 2px solid var(--ink);
}
.linked__label { font-family: var(--font-meta); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.linked__title { font-family: var(--font-display); font-size: 24px; line-height: 1.25; font-style: italic; font-weight: 500; }
.linked__arrow { color: var(--accent); font-style: normal; }
.linked__domain { font-family: var(--font-meta); font-size: 12px; color: var(--muted); }
.linked--large { gap: 8px; padding: 4px 0 4px 22px; border-left-width: 3px; }
.linked--large .linked__title { font-size: clamp(28px, 3vw, 36px); line-height: 1.18; letter-spacing: -.01em; }
.linked--large .linked__domain { font-size: 13px; }
.row__foot--obs a { color: inherit; }

/* Archive head */
.archive-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px;
  padding: clamp(48px, 7vw, 96px) 0 28px; border-bottom: var(--rule-heavy) solid var(--ink);
}
.archive-head__text { display: flex; flex-direction: column; gap: 14px; }
.archive-head__title {
  margin: 0; font-family: var(--font-display); font-size: clamp(64px, 9vw, 128px); line-height: .85; font-weight: 500;
  letter-spacing: -.04em; font-variation-settings: 'opsz' 144;
}
.archive-head__intro { margin: 0; font-size: 20px; line-height: 1.45; font-style: italic; color: var(--ink-2); }

.archive-columns { display: flex; flex-wrap: wrap; gap: 48px 72px; padding-top: 12px; }
.archive-list { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; }
.archive-list__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 16px;
  font-family: var(--font-meta); font-size: 12px; color: var(--muted);
}
.archive-list__bar a { display: inline-flex; gap: 6px; align-items: center; min-height: var(--tap); text-decoration: none; }

.archive-month { padding-top: 28px; }
.archive-month + .archive-month { padding-top: 48px; }
.archive-month__title {
  margin: 0 0 6px; display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-display); font-size: 30px; line-height: 1; font-weight: 500; letter-spacing: -.015em;
}
.archive-month__title span { font-family: var(--font-meta); font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.archive-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.archive-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 28px; padding: 14px 0;
  border-top: var(--rule-thin) solid var(--rule);
}
.archive-row--article { gap: 4px 28px; padding: 26px 0; border-top-color: var(--ink); }
.archive-row--article + .archive-row { border-top-color: var(--ink); }
.archive-row time, .archive-row__type, .archive-row__meta {
  font-family: var(--font-meta); font-size: 12px; text-transform: uppercase; color: var(--muted);
}
.archive-row time { flex: 0 0 64px; }
.archive-row__type { flex: 0 0 110px; }
.archive-row__type--article { color: var(--accent); font-weight: 700; }
.archive-row__meta { flex: 0 0 auto; }
.archive-row__title {
  flex: 999 1 320px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 18px; line-height: 1.5; font-style: italic; text-decoration: none;
}
.archive-row--article .archive-row__title {
  white-space: normal; font-family: var(--font-display); font-size: 28px; line-height: 1.12; font-weight: 500;
  font-style: normal; letter-spacing: -.015em; text-wrap: balance;
}
.archive-row__linked { color: var(--accent); font-style: normal; }

.archive-pager {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 16px;
  border-top: 3px double var(--ink); font-family: var(--font-meta); font-size: 13px; text-transform: uppercase;
}
.archive-pager a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; }
.archive-pager__note { color: var(--muted); }

.archive-aside { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 44px; padding-top: 28px; }
.archive-aside__topics { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: var(--rule-heavy) solid var(--ink); }
.archive-aside__topics .label { margin-bottom: 8px; }
.archive-aside__topics a {
  display: flex; justify-content: space-between; align-items: center; min-height: var(--tap);
  font-family: var(--font-display); font-size: 21px; text-decoration: none; border-bottom: 1px solid var(--rule);
}
.archive-aside__topics a:last-child { border-bottom: 0; }
.archive-aside__topics a span { font-family: var(--font-meta); font-size: 11px; color: var(--muted); }
.archive-aside__topics a[aria-current="page"], .archive-aside__years a[aria-current="page"] {
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.archive-aside__years { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: var(--rule-thin) solid var(--ink); }
.archive-aside__years .label { margin-bottom: 4px; }
.archive-aside__years div { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.archive-aside__years a {
  display: inline-flex; align-items: center; min-height: var(--tap); font-family: var(--font-display); font-size: 32px;
  letter-spacing: -.02em; color: var(--muted); text-decoration: none;
}
.archive-aside__years a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.archive-aside__feeds {
  display: flex; flex-direction: column; gap: 2px; padding: 20px; background: var(--raised); border: 1px solid var(--ink);
  font-family: var(--font-meta); font-size: 13px;
}
.archive-aside__feeds .label { margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.archive-aside__feeds a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* Topics index */
.topic-list { list-style: none; margin: 0; padding: 0; }
.topic-list__item {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; padding: 26px 0; border-bottom: var(--rule-thin) solid var(--rule);
}
.topic-list__name { flex: 1 1 240px; font-family: var(--font-display); font-size: 40px; line-height: 1.05; font-weight: 500; letter-spacing: -.02em; text-decoration: none; }
.topic-list__count, .topic-list__latest { font-family: var(--font-meta); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.topic-list__latest a { color: var(--ink); text-transform: none; font-family: var(--font-body); font-size: 16px; font-style: italic; }

/* Observation permalink */
.observation { max-width: var(--measure); margin: 0 auto; padding-top: clamp(48px, 7vw, 96px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px 10px; font-family: var(--font-meta); font-size: 12px; color: var(--muted); }
.breadcrumb a { color: inherit; }
.observation__article {
  margin-top: 28px; padding-top: 28px; border-top: var(--rule-heavy) solid var(--ink);
  display: flex; flex-direction: column; gap: 24px;
}
.observation__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.observation__time { margin: 0; font-family: var(--font-meta); font-size: 15px; font-weight: 700; text-transform: uppercase; }
.observation__label { font-family: var(--font-meta); font-size: 12px; text-transform: uppercase; color: var(--accent); }
.observation__headline {
  margin: 0; font-family: var(--font-display); font-size: clamp(32px, 4vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; text-wrap: balance;
}
.article-body.observation__body { font-size: 21px; line-height: 1.62; }
.article-body.observation__body > * { width: auto; margin: 0; }
.article-body.observation__body > * + * { margin-top: 22px; }
.observation__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 16px 0;
  border-top: var(--rule-thin) solid var(--ink); border-bottom: var(--rule-thin) solid var(--rule);
  font-family: var(--font-meta); font-size: 12px; color: var(--muted);
}
.observation__topics a { color: var(--ink); text-transform: uppercase; }
.observation__permalink { color: inherit; word-break: break-all; }

.obs-pager { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px 40px; }
.obs-pager__link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.obs-pager__link--next { text-align: right; align-items: flex-end; }
.obs-pager__label { font-family: var(--font-meta); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.obs-pager__text { font-size: 17px; line-height: 1.5; font-style: italic; }

.more-obs { margin-top: 80px; padding-top: 16px; border-top: var(--rule-heavy) solid var(--ink); display: flex; flex-direction: column; }
.more-obs__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 8px; }
.more-obs__head a { display: inline-flex; gap: 6px; align-items: center; min-height: var(--tap); font-family: var(--font-meta); font-size: 12px; color: var(--muted); }
.more-obs__item { display: flex; flex-direction: column; gap: 10px; padding: 22px 0; border-top: var(--rule-thin) solid var(--rule); }
.more-obs__item time { font-family: var(--font-meta); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.more-obs__item h3 { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 1.3; font-weight: 600; }
.more-obs__item h3 a, .more-obs__item p a { text-decoration: none; }
.more-obs__item p { margin: 0; font-size: 18px; line-height: 1.6; }

@media (max-width: 760px) {
  .linked__title { font-size: 21px; }
  .linked--large { padding-left: 16px; }
  .linked--large .linked__title { font-size: 26px; }

  .archive-head { padding: 36px 0 20px; gap: 16px; }
  .archive-head__title { font-size: 72px; }
  .archive-head__intro { font-size: 18px; }
  .filter { gap: 18px; overflow-x: auto; }
  .archive-list__bar { font-size: 11px; }
  .archive-month__title { padding-top: 12px; border-top: var(--rule-heavy) solid var(--ink); justify-content: space-between; font-size: 26px; }
  .archive-month { padding-top: 20px; }
  .archive-month + .archive-month { padding-top: 32px; }
  .archive-row, .archive-row--article { flex-direction: column; gap: 4px; padding: 14px 0; }
  .archive-row--article { padding: 22px 0; }
  .archive-row time, .archive-row__type { flex: none; }
  .archive-row__title { flex: none; width: 100%; white-space: normal; }
  .archive-row--article .archive-row__title { font-size: 24px; }
  .archive-row { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; }
  .archive-row__title, .archive-row__meta { grid-column: 1 / -1; }
  .archive-aside { padding-top: 0; gap: 32px; }
  .archive-aside__topics a { font-size: 19px; }
  .archive-aside__years a { font-size: 28px; }
  .topic-list__name { font-size: 32px; }

  .observation { padding-top: 32px; }
  .breadcrumb { font-size: 11px; gap: 4px 8px; }
  .observation__article { margin-top: 18px; padding-top: 18px; gap: 20px; }
  .observation__time { font-size: 13px; }
  .article-body.observation__body { font-size: 19px; }
  .article-body.observation__body > * + * { margin-top: 18px; }
  .observation__foot { flex-direction: column; gap: 6px; padding: 12px 0; font-size: 11px; }
  .obs-pager { margin-top: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .obs-pager__text { font-size: 15px; }
  .more-obs { margin-top: 48px; padding-top: 12px; }
  .more-obs__item { padding: 18px 0; gap: 8px; }
}
