/* ============================================================================
   Application layer — page compositions built from the Echo tokens in
   ../../style.css.

   Mobile is the first-class citizen: every composition works single-column
   with 44px touch targets, then widens. Color, type, spacing and radius all
   come from the variables in style.css — nothing is hard-coded here.
   ========================================================================= */

/* — shell —————————————————————————————————————————————————————————————— */

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 clamp(var(--space-4), 4vw, var(--space-10));
}

.shell-narrow {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 clamp(var(--space-4), 4vw, var(--space-10));
}

.site-main {
  display: block;
  min-height: 50vh;
  padding-top: var(--space-6);
}

.section { margin-top: clamp(var(--space-10), 8vw, var(--space-16)); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: clamp(var(--space-4), 3vw, var(--space-6));
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.015em;
}

.section-head > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.page-title {
  margin: var(--space-4) 0 0;
  font-size: clamp(32px, 5.4vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.page-dek {
  margin: var(--space-3) 0 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  max-width: 62ch;
  text-wrap: pretty;
  color: color-mix(in srgb, var(--color-text) 76%, transparent);
}

.meta {
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 56%, transparent);
}

.meta-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* The topic micro-label: uppercase sans + tone dot. */
.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 64%, transparent);
}

.kicker-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

a.kicker:hover,
.ec-row:hover .kicker { color: var(--color-text); }

/* — masthead ——————————————————————————————————————————————————————————— */

.masthead {
  position: sticky;
  top: 0;
  z-index: var(--z-masthead);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
}

/* The WordPress admin bar pushes the page down; keep the sticky bar under it. */
body.admin-bar .masthead { top: 32px; }

@media (max-width: 782px) {
  body.admin-bar .masthead { top: 46px; }
}

.masthead-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 64px;
  padding-block: var(--space-2);
}

.masthead-brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: inherit;
  line-height: 1;
  /* A long site title must never push the search and theme buttons off the
     bar: the wordmark shrinks and ellipses instead. */
  min-width: 0;
  overflow: hidden;
}

.masthead-brand:hover { color: inherit; }

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-optical-sizing: auto;
  font-size: 26px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.brand-word .brand-dot { color: var(--color-accent-2); }

.masthead-brand:hover .brand-word { color: var(--color-accent-700); }

.brand-logo { max-height: 40px; width: auto; }

.brand-tagline {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.masthead-nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-3), 2vw, var(--space-6));
  margin-left: var(--space-4);
  min-width: 0;
}

.masthead-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-3), 2vw, var(--space-6));
  margin: 0;
  padding: 0;
  list-style: none;
}

.masthead-nav a {
  color: inherit;
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
  padding: 8px 0;
  display: inline-block;
}

.masthead-nav a:hover,
.masthead-nav .current-menu-item > a,
.masthead-nav .current-menu-parent > a { color: var(--color-accent); }

/* One level of dropdown — enough for a blog, and it works on touch because
   the parent link stays tappable. */
.masthead-nav li { position: relative; }

.masthead-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: -14px;
  display: grid;
  gap: 0;
  min-width: 210px;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.masthead-nav li:hover > .sub-menu,
.masthead-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.masthead-nav .sub-menu a {
  white-space: normal;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

.masthead-nav .sub-menu a:hover { background: color-mix(in srgb, var(--color-text) 6%, transparent); }

.masthead-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  /* Controls keep their size whatever the wordmark does. */
  flex: none;
}

.masthead-actions .masthead-cta { margin-left: var(--space-2); }

/* Round icon target shared by search, burger and theme controls. */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-text) 8%, transparent);
}

.masthead-burger { display: none; }

/* The theme toggle shows the icon of the mode it switches *to*. */
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
}

/* — masthead search panel ——————————————————————————————————————————————— */

.search-panel {
  border-top: 1px solid var(--color-divider);
  background: var(--color-bg);
}

.search-panel[hidden] { display: none; }

.search-panel-inner { padding-block: var(--space-3); }

/* — topic ribbon: the horizontally scrollable category rail ————————————— */

.topic-ribbon { border-top: 1px solid var(--color-divider); }

.topic-ribbon-track {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 8px;
  /* Soft fade at the trailing edge signals there's more to scroll. */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
}

.topic-ribbon-track::-webkit-scrollbar { display: none; }

.ribbon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 550;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ribbon-link:hover {
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-text) 7%, transparent);
}

.ribbon-link[aria-current="page"] {
  color: var(--color-bg);
  background: var(--color-text);
}

.ribbon-more {
  color: var(--color-accent-700);
  font-weight: 600;
}

/* — mobile drawer ——————————————————————————————————————————————————————— */

.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-3) var(--space-4) var(--space-8);
  animation: drawer-in 0.22s ease;
}

.drawer[hidden] { display: none; }

@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 56px;
  margin-bottom: var(--space-4);
}

.drawer-search { margin-bottom: var(--space-6); }

.drawer-section { margin-bottom: var(--space-6); }

.drawer-topics {
  display: grid;
  gap: 2px;
}

.drawer-topic {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 11px 0;
  color: inherit;
  font-family: var(--font-display);
  font-weight: var(--font-heading-weight);
  font-optical-sizing: auto;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  border-bottom: 1px solid var(--color-divider);
}

.drawer-topic:hover { color: var(--color-accent-700); }

.drawer-links {
  display: grid;
  gap: 2px;
}

.drawer-links ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.drawer-links .sub-menu { padding-left: var(--space-4); }

.drawer-links a {
  display: flex;
  align-items: center;
  padding: 10px 0;
  color: color-mix(in srgb, var(--color-text) 80%, transparent);
  font-size: 16px;
  font-weight: 500;
}

.drawer-links a:hover { color: var(--color-accent); }

.drawer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-6);
}

/* reading-progress rail on article pages */
.progress-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: var(--z-progress);
  pointer-events: none;
}

.progress-rail > span {
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* — entry rows (the shared link-row hover pattern) ——————————————————————— */

.ec-row {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ec-row:hover .ec-h { color: var(--color-accent-700); }

.ec-lift { transition: opacity 0.15s ease; }
.ec-row:hover .ec-lift { opacity: 0.85; }

.thumb {
  position: relative;
  width: 100%;
  background: var(--color-neutral-200);
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ec-row:hover .thumb img { transform: scale(1.04); }

.thumb-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--color-accent) 12%, transparent), transparent 55%),
    radial-gradient(circle at 75% 80%, color-mix(in srgb, var(--color-accent-2) 10%, transparent), transparent 50%);
}

/* — home ———————————————————————————————————————————————————————————————— */

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(var(--space-4), 3vw, var(--space-8));
  margin-top: clamp(var(--space-4), 3.5vw, var(--space-10));
  align-items: center;
}

.hero-figure {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
}

.hero-kicker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-title {
  margin: var(--space-3) 0 0;
  font-size: clamp(30px, 5.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-title a { color: inherit; }
.hero-title a:hover { color: var(--color-accent-700); }

.hero-dek {
  margin: var(--space-3) 0 0;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  max-width: 56ch;
  text-wrap: pretty;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 56%, transparent);
}

.hero-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: var(--space-4);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-accent-700);
}

.hero-more svg { transition: transform 0.2s ease; }
.ec-row:hover .hero-more svg,
.hero-more:hover svg { transform: translateX(3px); }

@media (min-width: 900px) {
  .home-hero { grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr); }
  .home-hero .hero-figure-link { order: 2; }
  .hero-figure { aspect-ratio: 4 / 3; }
}

/* Today's picks — the numbered strip under the hero. */
.picks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 var(--space-8);
  margin-top: clamp(var(--space-8), 5vw, var(--space-12));
  border-top: 1px solid var(--color-divider);
}

.pick-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 76px;
  gap: var(--space-3);
  align-items: center;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}

.pick-n {
  align-self: start;
  font-family: var(--font-display);
  font-weight: 700;
  font-optical-sizing: auto;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--color-text) 26%, transparent);
  min-width: 34px;
}

.ec-row:hover .pick-n { color: var(--color-accent); }

.pick-row h3 {
  margin: 3px 0 4px;
  font-size: 17.5px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.pick-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
}

@media (min-width: 900px) {
  .picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .picks .pick-row:nth-last-child(-n + 3) { border-bottom: 0; }
}

/* Latest grid. */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: clamp(var(--space-8), 4.5vw, var(--space-10)) var(--space-8);
}

.entry-thumb { aspect-ratio: 3 / 2; }

.entry-card .kicker-row { margin-top: var(--space-3); }

.entry-title {
  margin: 9px 0 7px;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.entry-dek {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

/* Topic chips — the home "browse by topic" cloud and the topics index. */
.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--color-surface);
  color: inherit;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.005em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.topic-chip:hover {
  background: var(--color-accent-100);
  color: var(--color-accent-800);
}

.topic-chip .topic-count {
  font-size: 12px;
  font-weight: 600;
  color: color-mix(in srgb, currentColor 55%, transparent);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: var(--space-3);
}

.topic-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 64px;
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: var(--font-heading-weight);
  font-optical-sizing: auto;
  font-size: 18px;
  letter-spacing: -0.01em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.topic-card:hover {
  background: var(--color-accent-100);
  color: var(--color-accent-800);
}

.topic-card .topic-count {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: color-mix(in srgb, currentColor 55%, transparent);
}

/* Newsletter band. */
.newsletter {
  margin-top: clamp(var(--space-10), 8vw, var(--space-16));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(var(--space-4), 4vw, var(--space-10));
  align-items: center;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 5vw, var(--space-12)) clamp(var(--space-4), 5vw, var(--space-12));
}

@media (min-width: 900px) {
  .newsletter { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}

.newsletter h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.015em;
  max-width: 18ch;
}

.newsletter h2 em {
  font-style: italic;
  color: var(--color-accent-2);
}

.newsletter p {
  margin: var(--space-3) 0 0;
  font-size: 16px;
  line-height: 1.6;
  max-width: 48ch;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.newsletter-form .input {
  flex: 1 1 220px;
  background: var(--color-bg);
  border-radius: 999px;
  padding-inline: var(--space-4);
}

.newsletter-note {
  margin: var(--space-2) 0 0;
  font-size: 12.5px;
  color: color-mix(in srgb, var(--color-text) 52%, transparent);
}

.newsletter-note a { color: inherit; text-decoration: underline; }

/* Sidebar variant used in the article rail. */
.newsletter-mini {
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

.newsletter-mini h3 {
  margin: 0 0 var(--space-2);
  font-size: 20px;
}

.newsletter-mini p {
  margin: 0 0 var(--space-3);
  font-size: 14px;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
}

.newsletter-mini .newsletter-form { flex-direction: column; align-items: stretch; }
.newsletter-mini .newsletter-form .input { flex: none; }

/* A static front page's own copy, printed above the magazine sections. */
.home-intro {
  max-width: 62ch;
  margin-top: var(--space-6);
}

/* — breadcrumb —————————————————————————————————————————————————————————— */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  margin-top: var(--space-4);
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}

.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb [aria-current="page"] { color: var(--color-text); }

/* — article ————————————————————————————————————————————————————————————— */

/*
 * The reading frame: prose sits in a centered, fixed measure with breathing
 * room on both sides; the rails take whatever is left.
 */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--measure));
  gap: clamp(var(--space-6), 4vw, var(--space-10));
  margin-top: clamp(var(--space-4), 3.5vw, var(--space-8));
  justify-content: center;
  align-items: start;
}

@media (min-width: 1025px) {
  .article-layout {
    grid-template-columns: minmax(0, var(--measure)) minmax(250px, 320px);
    justify-content: center;
  }
}

@media (min-width: 1181px) {
  .article-layout {
    grid-template-columns: minmax(160px, 1fr) minmax(0, var(--measure)) minmax(250px, 1fr);
  }
}

.article-rail {
  display: none;
  position: sticky;
  top: var(--masthead-offset);
}

@media (min-width: 1181px) {
  .article-rail { display: block; }
}

.article-rail-right {
  display: grid;
  gap: var(--space-6);
  align-content: start;
}

@media (min-width: 1025px) {
  .article-rail-right {
    position: sticky;
    top: var(--masthead-offset);
  }
}

.toc {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--color-divider);
}

.toc a {
  padding: 6px 0 6px var(--space-3);
  font-size: 13.5px;
  line-height: 1.45;
  text-decoration: none;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
  transition: color 0.2s ease;
}

.toc a:hover { color: var(--color-accent-700); }

/* The heading currently in view, marked by the scroll observer. */
.toc a.is-current {
  color: var(--color-text);
  font-weight: 600;
  box-shadow: -2px 0 0 0 var(--color-accent);
}

.toc .toc-h3 { padding-left: calc(var(--space-3) + var(--space-3)); font-size: 13px; }

/* Collapsible in-page contents for readers below the rail breakpoint. */
.toc-mobile {
  margin: var(--space-6) 0 0;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.toc-mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 50px;
  padding: 10px var(--space-4);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 68%, transparent);
  cursor: pointer;
  list-style: none;
}

.toc-mobile summary::-webkit-details-marker { display: none; }

.toc-mobile summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.toc-mobile[open] summary::after { transform: rotate(-135deg); }

.toc-mobile .toc {
  border-left: 0;
  padding: 0 var(--space-4) var(--space-3);
}

.toc-mobile .toc a {
  padding-left: 0;
  border-top: 1px solid var(--color-divider);
  padding-block: 10px;
  box-shadow: none;
}

@media (min-width: 1181px) {
  .toc-mobile { display: none; }
}

.share-block h6 { margin: 0 0 var(--space-1); }

.article-rail .share-block { margin-top: var(--space-8); }

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-left: -6px;
}

.share-row .icon-btn { width: 40px; height: 40px; }

.article-share-inline {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
}

@media (min-width: 1181px) {
  .article-share-inline { display: none; }
}

.article-title {
  margin: var(--space-4) 0 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.article-dek {
  margin: var(--space-3) 0 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

.byline {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-6) 0;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}

.avatar {
  border-radius: 50%;
  background: var(--color-accent-100);
  flex: none;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-display);
  font-weight: var(--font-heading-weight);
  font-size: 15px;
  color: var(--color-accent-800);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-lg { width: 60px; height: 60px; font-size: 20px; }

.byline-name {
  font-size: 15px;
  font-weight: 600;
}

.byline-name a { color: inherit; }
.byline-name a:hover { color: var(--color-accent-700); }

.article-figure {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  margin-top: var(--space-6);
}

.article-figure-caption { margin-top: var(--space-2); }

.author-bio {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

.section-tight { margin-top: var(--space-8); }

.byline-name-lg { font-size: 18px; }

.author-bio p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.6;
  max-width: 62ch;
  color: color-mix(in srgb, var(--color-text) 76%, transparent);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.tag-row .tag {
  text-decoration: none;
  min-height: 38px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-6);
}

.related-grid .thumb { aspect-ratio: 3 / 2; }

.related-grid h3 {
  margin: 6px 0 5px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

/* Previous/next article nav under the post. */
.post-nav {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

@media (min-width: 761px) {
  .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.post-nav a {
  display: block;
  color: inherit;
}

.post-nav h6 { margin-bottom: 6px; }

.post-nav .post-nav-title {
  font-family: var(--font-display);
  font-weight: var(--font-heading-weight);
  font-size: 18px;
  line-height: 1.2;
}

.post-nav a:hover .post-nav-title { color: var(--color-accent-700); }
.post-nav-next { text-align: right; }

/* — prose (the rendered post body) —————————————————————————————————————— */

.prose {
  font-family: var(--font-prose);
  font-size: clamp(17px, 1.15vw, 19px);
  line-height: 1.78;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  margin-top: var(--space-6);
}

.prose > :first-child { margin-top: 0; }

.prose p { margin: 0 0 var(--space-4); }

/* Magazine drop cap on the opening paragraph. first-of-type rather than
   first-child, so a post that opens with a heading or a photograph still
   gets one on the first line of real copy. */
.prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3.35em;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--color-accent-700);
}

.prose h2 {
  margin: clamp(var(--space-8), 5vw, 56px) 0 var(--space-3);
  font-size: clamp(25px, 2.4vw, 32px);
  letter-spacing: -0.012em;
}

.prose h3 {
  margin: var(--space-8) 0 var(--space-3);
  font-size: clamp(21px, 1.9vw, 25px);
  letter-spacing: -0.01em;
}

.prose h4 { margin: var(--space-6) 0 var(--space-2); }

.prose ul,
.prose ol {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-6);
}

.prose li { margin-bottom: var(--space-2); }

.prose blockquote,
.prose .wp-block-quote {
  margin: var(--space-8) 0;
  padding: var(--space-1) 0 var(--space-1) var(--space-6);
  border: 0;
  border-left: 3px solid var(--color-accent-2);
  font-style: italic;
  font-size: clamp(19px, 1.9vw, 22px);
  line-height: 1.5;
  letter-spacing: -0.008em;
}

.prose blockquote cite,
.prose .wp-block-quote cite {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-sans);
  font-size: 13px;
  font-style: normal;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}

.prose .wp-block-pullquote {
  margin: var(--space-8) 0;
  padding: var(--space-6) 0;
  border-top: 2px solid var(--color-divider);
  border-bottom: 2px solid var(--color-divider);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.25;
}

.prose img,
.prose video,
.prose iframe,
.prose svg {
  display: block;
  max-width: 100%;
  height: auto;
  margin: var(--space-6) 0;
}

.prose figure { margin: var(--space-6) 0; }
.prose figure img { margin: 0; }

.prose img,
.prose video,
.prose iframe { border-radius: var(--radius-lg); }

.prose pre {
  margin: var(--space-6) 0;
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
}

.prose code {
  font-size: 0.88em;
  overflow-wrap: break-word;
}

.prose :not(pre) > code {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: var(--space-6) 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 15px;
}

.prose th,
.prose td {
  min-width: 140px;
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
  text-align: left;
}

.prose th { font-weight: 650; }

.prose a {
  color: var(--color-accent-700);
  text-decoration: underline;
  overflow-wrap: break-word;
}

/* A heading you can link to: the anchor appears on hover, never in print. */
.prose .heading-anchor {
  margin-left: 8px;
  font-family: var(--font-sans);
  font-size: 0.6em;
  font-weight: 400;
  text-decoration: none;
  color: var(--color-neutral-500);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.prose h2:hover .heading-anchor,
.prose h3:hover .heading-anchor,
.prose .heading-anchor:focus-visible { opacity: 1; }

/* — WordPress content classes ——————————————————————————————————————————— */

.prose .alignleft {
  float: left;
  margin: var(--space-2) var(--space-6) var(--space-4) 0;
  max-width: 50%;
}

.prose .alignright {
  float: right;
  margin: var(--space-2) 0 var(--space-4) var(--space-6);
  max-width: 50%;
}

.prose .aligncenter {
  margin-inline: auto;
  text-align: center;
}

.prose .alignnone { max-width: 100%; }

/* Wide and full-bleed media break out of the reading measure. */
.prose .alignwide {
  width: calc(100% + 2 * clamp(0px, 6vw, 110px));
  max-width: none;
  margin-inline: clamp(0px, -6vw, -110px);
}

.prose .alignfull {
  width: calc(100% + 2 * clamp(0px, 8vw, 150px));
  max-width: none;
  margin-inline: clamp(0px, -8vw, -150px);
}

@media (max-width: 760px) {
  .prose .alignleft,
  .prose .alignright {
    float: none;
    margin-inline: 0;
    max-width: 100%;
  }

  .prose .alignwide,
  .prose .alignfull {
    width: 100%;
    margin-inline: 0;
  }
}

.prose .wp-caption { max-width: 100%; }

.prose .wp-caption-text,
.prose figcaption,
.prose .blocks-gallery-caption {
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.5;
  margin-top: var(--space-2);
  text-align: left;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}

.prose .wp-block-image { margin: var(--space-6) 0; }

.prose .wp-block-gallery,
.prose .wp-block-columns { margin: var(--space-6) 0; }

.prose .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.prose .wp-block-separator {
  margin: var(--space-8) auto;
  border: 0;
  height: 1px;
  background: var(--color-divider);
}

.prose .wp-block-embed iframe { margin: 0; }

.prose .wp-block-embed__wrapper { margin: var(--space-6) 0; }

/* Multi-page posts (<!--nextpage-->). */
.page-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
  font-family: var(--font-sans);
  font-size: 14px;
}

.page-links a,
.page-links > span:not(.page-links-title) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: 999px;
  background: var(--color-surface);
  color: inherit;
}

.page-links a:hover { background: var(--color-accent-100); color: var(--color-accent-800); }

.more-link {
  display: inline-block;
  margin-top: var(--space-2);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
}

/* — list pages (category, tag, blog, author) ———————————————————————————— */

.list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(var(--space-8), 6vw, 96px);
  margin-top: clamp(var(--space-6), 4vw, var(--space-10));
  align-items: start;
}

@media (min-width: 1025px) {
  .list-layout { grid-template-columns: minmax(0, 1fr) minmax(270px, 330px); }
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.list-rows {
  display: flex;
  flex-direction: column;
}

.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.list-rows > .list-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.list-row .thumb {
  aspect-ratio: 16 / 9;
  order: -1;
  border-radius: var(--radius-lg);
}

.list-row h3 {
  margin: 8px 0;
  font-size: clamp(22px, 2.4vw, 27px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.list-row p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  max-width: 62ch;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
}

@media (min-width: 761px) {
  .list-row {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: clamp(var(--space-4), 3vw, var(--space-8));
    padding-block: var(--space-8);
  }

  .list-row .thumb {
    aspect-ratio: 3 / 2;
    order: 0;
  }
}

.chip-row {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 13.5px;
  font-weight: 550;
  padding: 8px 17px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--color-surface);
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.chip:hover {
  background: var(--color-neutral-200);
  color: var(--color-text);
}

.chip[aria-current="page"] {
  background: var(--color-text);
  color: var(--color-bg);
}

.chip[aria-current="page"]:hover {
  background: var(--color-neutral-800);
  color: var(--color-bg);
}

.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-10);
  font-size: 15px;
  flex-wrap: wrap;
}

.pagination a,
.pagination .current,
.pagination .dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pagination a:hover {
  background: var(--color-surface);
  color: var(--color-accent-700);
}

.pagination .current {
  font-weight: 650;
  background: var(--color-text);
  color: var(--color-bg);
}

.pagination .dots { color: color-mix(in srgb, var(--color-text) 40%, transparent); }

.most-read {
  display: flex;
  flex-direction: column;
}

.most-read-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: var(--space-2);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}

.most-read-row:last-of-type { border-bottom: 0; }

.most-read-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-optical-sizing: auto;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--color-text) 30%, transparent);
}

.most-read-row:hover .most-read-n { color: var(--color-accent); }

.most-read-title {
  font-family: var(--font-display);
  font-weight: var(--font-heading-weight);
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.008em;
}

/* Boxed rail modules (widgets, newsletter mini, latest). */
.rail-box {
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

.rail-box > :last-child { margin-bottom: 0; }

/* — widgets (the rail widget area) —————————————————————————————————————— */

.widget {
  font-size: 15px;
}

.widget + .widget { margin-top: var(--space-6); }

.widget .widget-title,
.widget h2 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
}

.widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget li {
  padding-block: 7px;
  border-bottom: 1px solid var(--color-divider);
}

.widget li:last-child { border-bottom: 0; }

.widget a { color: inherit; }
.widget a:hover { color: var(--color-accent-700); }

.widget .wp-block-search__inside-wrapper { gap: var(--space-2); }

/* — search —————————————————————————————————————————————————————————————— */

.search-head {
  margin: clamp(var(--space-8), 6vw, var(--space-12)) auto 0;
  max-width: 720px;
  text-align: center;
}

.search-head h1 {
  margin: 0 0 var(--space-4);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.015em;
}

.search-hero {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 6px 6px 6px var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-hero:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent);
}

.search-hero .input {
  font-size: 17px;
  min-height: 48px;
  background: transparent;
  border: 0;
  padding-inline: var(--space-2);
  font-weight: 500;
}

.search-hero .input:focus-visible { outline: none; }

.search-hero .btn { flex: none; }

.search-count {
  display: block;
  margin-top: var(--space-4);
  text-align: center;
  font-size: 14px;
}

/* — comments ———————————————————————————————————————————————————————————— */

.comments-area {
  margin-top: clamp(var(--space-10), 7vw, var(--space-12));
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.comments-title {
  margin: 0 0 var(--space-6);
  font-size: clamp(24px, 2.6vw, 30px);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin: 0 0 var(--space-8);
  padding: 0;
  list-style: none;
}

.comment-list .children {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: var(--space-4) 0 0 var(--space-4);
  padding-left: var(--space-4);
  list-style: none;
  border-left: 2px solid var(--color-divider);
}

.comment-item { list-style: none; }

.comment {
  display: flex;
  gap: var(--space-3);
}

.comment-content { min-width: 0; }

.comment-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.comment-author {
  font-size: 15px;
  font-weight: 600;
}

.comment-author a { color: inherit; }

.comment-body {
  margin: 5px 0 0;
  font-size: 15px;
  line-height: 1.65;
  max-width: 62ch;
}

.comment-body > :last-child { margin-bottom: 0; }

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.comment-actions a {
  padding: 6px 0;
  font-size: 13px;
  font-weight: 600;
}

.comment-awaiting-moderation {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 13px;
  color: var(--color-accent-2);
}

.comment-respond {
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

.comment-reply-title {
  margin: 0 0 var(--space-4);
  font-size: 22px;
}

.comment-reply-title small {
  margin-left: var(--space-2);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
}

.comment-form {
  display: grid;
  gap: var(--space-3);
}

.comment-form p { margin: 0; }

.comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--color-text);
  caret-color: var(--color-accent);
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}

.comment-form textarea { min-height: 120px; resize: vertical; }

.comment-form input:focus-visible,
.comment-form textarea:focus-visible {
  border-color: var(--color-accent);
  outline-offset: 0;
}

.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13.5px;
}

.comment-form .comment-form-cookies-consent label { margin: 0; }

.comment-form input[type="submit"] {
  justify-self: start;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-bg);
}

.comment-form input[type="submit"]:hover { background: var(--color-accent-600); }

.comment-notes,
.comment-form .form-submit + p,
.logged-in-as {
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}

.no-comments {
  font-size: 15px;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}

/* — status pages (404, empty archive) ——————————————————————————————————— */

.status-page {
  max-width: 620px;
  margin: clamp(var(--space-10), 10vw, var(--space-16)) auto;
  text-align: center;
}

.status-page .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-2);
}

.status-page h1 {
  margin: var(--space-3) 0 var(--space-4);
  font-size: clamp(30px, 5vw, 46px);
}

.status-page .page-dek { margin-inline: auto; }

.status-page .search-hero { margin-top: var(--space-6); }

.status-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

/* — footer —————————————————————————————————————————————————————————————— */

.site-footer {
  margin-top: clamp(var(--space-12), 10vw, 140px);
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding: clamp(var(--space-8), 6vw, var(--space-12)) 0 var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(var(--space-6), 4vw, var(--space-10));
}

@media (min-width: 761px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1025px) {
  .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); }
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 14px;
}

.footer-col h6 { margin: 0 0 var(--space-2); }

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: color-mix(in srgb, var(--color-text) 76%, transparent);
  padding: 6px 0;
  display: inline-block;
}

.footer-col a:hover { color: var(--color-accent); }

.footer-brand {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-optical-sizing: auto;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: inherit;
  text-wrap: balance;
}

.footer-brand .brand-dot { color: var(--color-accent-2); }

.footer-tagline {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}

.footer-blurb {
  margin: var(--space-3) 0 0;
  font-size: 14px;
  line-height: 1.65;
  max-width: 36ch;
  color: color-mix(in srgb, var(--color-text) 68%, transparent);
}

.footer-social {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  margin-top: clamp(var(--space-6), 5vw, var(--space-10));
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  font-size: 12.5px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}

.footer-bottom nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--color-accent); }

/* — responsive folds ———————————————————————————————————————————————————— */

@media (max-width: 1099px) {
  .masthead-nav { display: none; }
  .masthead-burger { display: inline-flex; }
}

body.no-dropcap .prose > p:first-of-type::first-letter {
  float: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  padding: 0;
  color: inherit;
}

@media (max-width: 760px) {
  .masthead-bar { gap: var(--space-2); }
  .brand-word { font-size: 22px; }
  .brand-tagline { display: none; }
  .masthead-cta { display: none; }

  .section { margin-top: var(--space-8); }

  .prose > p:first-of-type::first-letter { font-size: 3em; }

  .author-bio { grid-template-columns: 44px 1fr; padding: var(--space-4); }

  .comment-respond { padding: var(--space-4); }

  .comment-list .children {
    margin-left: 0;
    padding-left: var(--space-3);
  }

  .post-nav-next { text-align: left; }
}

/* — motion & imagery ——————————————————————————————————————————————————— */

@media (prefers-reduced-motion: reduce) {
  .ec-lift,
  .thumb img,
  .progress-rail > span,
  .drawer,
  .hero-more svg { transition: none !important; animation: none !important; }

  .ec-row:hover .thumb img { transform: none; }
}

/* Photographs dim slightly on the dark ground so they sit on the page
   instead of glaring off it. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .thumb img,
  :root:not([data-theme="light"]) .prose img { filter: brightness(0.9); }
}

:root[data-theme="dark"] .thumb img,
:root[data-theme="dark"] .prose img { filter: brightness(0.9); }

/* — print —————————————————————————————————————————————————————————————— */

@media print {
  .masthead,
  .site-footer,
  .article-rail,
  .article-rail-right,
  .toc-mobile,
  .progress-rail,
  .share-row,
  .comments-area,
  .newsletter,
  .post-nav,
  .skip-link { display: none !important; }

  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 11pt; }
  .prose a { text-decoration: none; }
}
