/*
Theme Name: GLP-1.sucks
Theme URI: https://glp1.sucks
Author: Prototype build
Author URI: https://glp1.sucks
Description: An editorial healthcare publication theme. Off-white paper, near-black ink and a single claret accent, with a marker system that labels illustrative content wherever it appears. Ships with demo articles and patient stories — all of it fictional. Registers a Patient Story post type and needs no plugins.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: glp1-sucks
Tags: blog, editorial, news, two-columns, custom-menu, featured-images, translation-ready, threaded-comments
*/

/* ============================================================
   Design tokens. Rebranding means editing this block, the logo
   in assets/img, and the strings in inc/demo-data.php.
   ============================================================ */

:root {
  --paper: #fbfbfa;
  --surface: #ffffff;
  --ink: #15171a;
  --ink-soft: #3e4146;
  --muted: #6e6c67;
  --rule: #dfddd8;
  --accent: #8c1d33;
  --accent-soft: #f6eef0;

  --display: "Newsreader", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 78rem;
  --read: 42rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(140, 29, 51, 0.16); }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .wrap { padding: 0 2rem; } }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.25rem;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---------------- the marker (signature element) ---------------- */

.tag-illustrative {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.tag-illustrative::before {
  content: "";
  width: 7px; height: 7px;
  flex: 0 0 auto;
  transform: rotate(45deg);
  border: 1px solid var(--accent);
}
.tag-illustrative.compact { font-size: 9.5px; }

/* ---------------- masthead ---------------- */

.masthead {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--rule);
  background: rgba(251, 251, 250, 0.95);
}
.admin-bar .masthead { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .masthead { top: 46px; } }

.masthead .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }
.brand {
  flex-shrink: 0; text-decoration: none; color: inherit;
  display: flex; align-items: center; gap: 0.7rem;
}
.brand img { width: auto; height: 38px; }
@media (min-width: 768px) { .brand img { height: 42px; } }

.brand-mark { height: 30px; width: auto; flex: 0 0 auto; }
@media (min-width: 768px) { .brand-mark { height: 34px; } }

.brand-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.brand-name {
  font-family: var(--display); font-weight: 600;
  font-size: 1.4rem; line-height: 1; letter-spacing: -0.02em;
  color: var(--ink); white-space: nowrap;
}
@media (min-width: 768px) { .brand-name { font-size: 1.6rem; } }
.brand-strap {
  font-family: var(--mono); font-size: 8.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); line-height: 1; white-space: nowrap;
}
/* Below this the strapline competes with the nav controls for room. */
@media (max-width: 420px) {
  .brand-strap { display: none; }
  .brand-name { font-size: 1.25rem; }
}

.nav-primary { margin-left: auto; display: none; }
@media (min-width: 1024px) { .nav-primary { display: block; } }
.nav-primary ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-primary a {
  font-size: 14.5px; font-weight: 500; text-decoration: none;
  color: var(--ink-soft); padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.nav-primary a:hover,
.nav-primary .current-menu-item > a { color: var(--ink); border-bottom-color: var(--accent); }

.head-actions { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
@media (min-width: 1024px) { .head-actions { margin-left: 0.75rem; } }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--rule); border-radius: 3px;
  background: none; cursor: pointer; color: var(--ink);
  padding: 0.5rem 0.75rem;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: border-color 0.18s;
}
.btn-ghost:hover { border-color: var(--ink); }
.nav-toggle { display: inline-flex; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.search-inline { display: none; align-items: center; gap: 0.5rem; }
.search-inline.open { display: flex; }
.search-inline input[type="search"] {
  width: 10rem; border: 1px solid var(--rule); border-radius: 3px;
  background: var(--surface); padding: 0.5rem 0.75rem;
  font-family: var(--sans); font-size: 14px;
}
@media (min-width: 640px) { .search-inline input[type="search"] { width: 14rem; } }
.search-inline input:focus { outline: none; border-color: var(--ink); }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 50; display: none; }
.drawer.open { display: block; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(21, 23, 26, 0.4); border: 0; width: 100%; cursor: pointer; }
.drawer-panel {
  position: absolute; inset-block: 0; right: 0;
  width: min(22rem, 90vw);
  background: var(--surface);
  overflow-y: auto;
  box-shadow: -12px 0 40px -20px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column;
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--rule); padding: 1rem 1.25rem;
}
.drawer-panel nav { padding: 1rem 1.25rem 2rem; }
.drawer-panel nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-panel nav > ul > li > a {
  display: block; padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display); font-size: 1.25rem;
  text-decoration: none; color: var(--ink);
}
.drawer-topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

/* ---------------- buttons ---------------- */

.btn-solid {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 3px; cursor: pointer;
  padding: 0.85rem 1.5rem;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.18s;
}
.btn-solid:hover { opacity: 0.9; }

.link-rule {
  display: inline-block;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.25rem;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  transition: color 0.18s, border-color 0.18s;
}
.link-rule:hover { color: var(--accent); border-color: var(--accent); }

.link-underline {
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.25s ease;
}
.link-underline:hover { background-size: 100% 1px; }

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

.hero { border-bottom: 1px solid var(--rule); background: var(--surface); }
.hero-grid { display: grid; gap: 2.5rem; padding: 3.5rem 0; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 5rem; padding: 5rem 0; }
}
.hero h1 {
  margin: 1.25rem 0 0;
  font-size: clamp(2.6rem, 6vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
}
.hero h1 .accent { color: var(--accent); }
.hero-intro { margin: 1.75rem 0 0; max-width: 52ch; font-size: 1.125rem; line-height: 1.6; color: var(--ink-soft); }
.hero-ctas { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.hero-note { align-self: end; border-top: 2px solid var(--ink); padding-top: 1.5rem; }
@media (min-width: 1024px) {
  .hero-note { border-top: 0; border-left: 2px solid var(--ink); padding: 0 0 0 2rem; }
}
.hero-note p { margin: 0.75rem 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* ---------------- section headings ---------------- */

.section { padding: 4rem 0; }
.section-tight { padding: 0 0 4rem; }
.section-alt { background: var(--surface); border-block: 1px solid var(--rule); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1rem 2rem;
  border-bottom: 1px solid var(--rule); padding-bottom: 1.25rem;
}
.section-head h2 { margin-top: 0.75rem; font-size: clamp(1.9rem, 3vw, 2.25rem); line-height: 1.15; }
.section-head p { margin: 0.75rem 0 0; max-width: 56ch; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }

/* ---------------- lead article ---------------- */

.lead { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .lead { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; } }
.lead-media { order: -1; background: var(--accent-soft); overflow: hidden; }
@media (min-width: 1024px) { .lead-media { order: 2; } }
.lead-media img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; transition: transform 0.6s ease; }
.lead:hover .lead-media img { transform: scale(1.02); }
.lead-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.lead h2 { margin: 1rem 0 0; font-size: clamp(2.1rem, 4.5vw, 3.1rem); line-height: 1.05; }
.lead h2 a { text-decoration: none; }
.lead-standfirst { margin: 1.25rem 0 0; max-width: 48ch; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); }

.cat-link {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
}
.cat-link:hover { text-decoration: underline; }

.byline { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.75rem; }
.byline img { width: 2.25rem; height: 2.25rem; border-radius: 50%; }
.byline-text { font-family: var(--mono); font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.byline-text strong { color: var(--ink); font-weight: 500; }

/* ---------------- card grid ---------------- */

.grid { display: grid; gap: 3rem 2rem; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card { display: flex; flex-direction: column; height: 100%; }
.card-media { display: block; overflow: hidden; background: var(--accent-soft); }
.card-media img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; flex: 1; padding-top: 1.25rem; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; }
.card-meta .mins { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card h3 { margin: 0.65rem 0 0; font-size: 1.45rem; line-height: 1.2; }
.card h3 a { text-decoration: none; }
.card p.excerpt { margin: 0.65rem 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.card-foot { display: flex; align-items: center; gap: 0.6rem; margin-top: auto; padding-top: 1.25rem; }
.card-foot img { width: 1.75rem; height: 1.75rem; border-radius: 50%; }
.card-foot span { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ---------------- patient story cards ---------------- */

.story-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .story-grid { grid-template-columns: repeat(3, 1fr); } }

.story-card {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--rule); background: var(--surface);
  overflow: hidden; transition: border-color 0.2s;
}
.story-card:hover { border-color: rgba(21, 23, 26, 0.3); }

/* The photo is a banner, not a thumbnail. An environmental shot squeezed
   into a small circle reads as a dark smudge and carries no information. */
.story-card-media { display: block; overflow: hidden; background: var(--accent-soft); }
.story-card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.5s ease; }
.story-card:hover .story-card-media img { transform: scale(1.03); }

.story-card-head { display: flex; align-items: flex-start; gap: 1rem; padding: 1.35rem 1.5rem 0; }
.story-card h3 { font-size: 1.15rem; line-height: 1.25; }
.story-card h3 a { text-decoration: none; }
.journey {
  margin: 0.35rem 0 0;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.story-card blockquote {
  margin: 1.25rem 1.5rem 0; padding-left: 1rem;
  border-left: 2px solid var(--accent);
  font-family: var(--display); font-size: 1.0625rem; line-height: 1.35; color: var(--ink);
}
.story-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-top: auto; padding: 1.5rem;
}
.story-card-foot a {
  flex: 0 0 auto;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
.story-card-foot a:hover { color: var(--accent); }

/* ---------------- topic chips ---------------- */

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-block;
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.11em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft);
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------------- topic list ---------------- */

.topic-grid { display: grid; gap: 0.5rem 2.5rem; }
@media (min-width: 640px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .topic-grid { grid-template-columns: repeat(3, 1fr); } }
.topic {
  display: block; text-decoration: none;
  border-top: 2px solid var(--ink); padding: 1.25rem 0;
  transition: border-color 0.18s;
}
.topic:hover { border-color: var(--accent); }
.topic-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.topic h3 { font-size: 1.2rem; line-height: 1.2; transition: color 0.18s; }
.topic:hover h3 { color: var(--accent); }
.topic .count { font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); }
.topic p { margin: 0.5rem 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

/* ---------------- page headers ---------------- */

.page-head { border-bottom: 1px solid var(--rule); background: var(--surface); padding: 2.5rem 0; }
@media (min-width: 1024px) { .page-head { padding: 3.5rem 0; } }
.page-head h1 { margin-top: 0.75rem; font-size: clamp(2.4rem, 4.5vw, 3rem); line-height: 1.1; }
.page-head .standfirst { margin: 1rem 0 0; max-width: 58ch; font-size: 1.125rem; line-height: 1.6; color: var(--ink-soft); }

.breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.25rem 0.5rem; list-style: none; margin: 0; padding: 0;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { color: var(--rule); }
.breadcrumbs [aria-current] { color: var(--ink); }

/* Listing banner. Wide and shallow so it reads as a masthead band rather than
   competing with the article covers in the grid below it. */
.page-banner { margin: 2rem 0 0; overflow: hidden; background: var(--accent-soft); }
.page-banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 680px) { .page-banner img { aspect-ratio: 16 / 9; } }

/* ---------------- article ---------------- */

.article-head { border-bottom: 1px solid var(--rule); background: var(--surface); }
.article-head .inner { padding: 2.5rem 0; }
@media (min-width: 1024px) { .article-head .inner { padding: 3.5rem 0; } }
.article-head h1 {
  margin: 1rem 0 0; max-width: 19ch;
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.02;
}
.article-head .standfirst { margin: 1.5rem 0 0; max-width: 56ch; font-size: 1.25rem; line-height: 1.55; color: var(--ink-soft); }
.article-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 2rem; }
.article-head-meta .byline { margin-top: 0; }
.article-cover { margin: 0; padding-bottom: 2.5rem; }
@media (min-width: 1024px) { .article-cover { padding-bottom: 3.5rem; } }
.article-cover img { width: 100%; object-fit: cover; }

.article-layout { display: grid; gap: 3rem; padding: 3rem 0; }
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: 13rem minmax(0, var(--read)) 1fr; gap: 4rem; padding: 4rem 0; }
}

.toc { order: 2; }
@media (min-width: 1024px) { .toc { order: 1; position: sticky; top: 7rem; align-self: start; } }
.toc ol { list-style: none; margin: 1rem 0 0; padding: 0; border-left: 1px solid var(--rule); }
.toc a {
  display: block; margin-left: -1px;
  border-left: 2px solid transparent; padding-left: 1rem;
  font-size: 14px; line-height: 1.35; color: var(--ink-soft); text-decoration: none;
  transition: border-color 0.18s, color 0.18s;
}
.toc a:hover { border-color: var(--accent); color: var(--ink); }

.article-body { order: 1; }
@media (min-width: 1024px) { .article-body { order: 2; } }
.article-aside { order: 3; }

.prose p { margin: 0 0 1.5rem; font-size: 1.125rem; line-height: 1.72; color: var(--ink-soft); }
.prose > p:first-of-type::first-letter {
  float: left; font-family: var(--display); font-weight: 600;
  font-size: 4.25rem; line-height: 0.78;
  padding: 0.35rem 0.6rem 0 0; color: var(--accent);
}
.prose h2 { margin-top: 3rem; font-size: 1.6rem; line-height: 1.2; scroll-margin-top: 7rem; }
.prose h3 { margin-top: 2.25rem; font-size: 1.2rem; }
.prose ul, .prose ol { margin: 0 0 1.5rem; padding-left: 1.35rem; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); }
.prose li + li { margin-top: 0.65rem; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-underline-offset: 2px; }
.prose img { margin: 1.5rem 0; }

/* Fallback rhythm for element types without an explicit margin above (figure,
   table, embeds). Note the low specificity: `*` contributes nothing, so this
   selector scores (0,1,0) and cannot override a rule like `.prose p` at
   (0,1,1) — which is why paragraphs and lists carry their own margin instead
   of relying on this. */
.prose > * + * { margin-top: 1.5rem; }
.prose > *:last-child { margin-bottom: 0; }

.prose blockquote.pull {
  margin: 2.25rem 0; padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--accent);
}
.prose blockquote.pull p {
  margin: 0 !important; font-family: var(--display);
  font-size: 1.4rem; line-height: 1.32; color: var(--ink);
}
.prose blockquote.pull cite {
  display: block; margin-top: 0.75rem;
  font-family: var(--mono); font-size: 10.5px;
  font-style: normal; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted);
}

.prose .callout {
  margin: 2.5rem 0; padding: 1.25rem;
  border: 1px solid rgba(140, 29, 51, 0.25);
  background: var(--accent-soft);
}
.prose .callout .tag {
  margin: 0 !important; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.prose .callout .tag::before {
  content: ""; display: inline-block;
  width: 7px; height: 7px; margin-right: 0.4rem;
  transform: rotate(45deg); border: 1px solid var(--accent);
}
.prose .callout p + p { margin: 0.6rem 0 0 !important; font-size: 14.5px; line-height: 1.6; }

.prose .questions {
  margin: 2.5rem 0; border-top: 2px solid var(--ink); padding-top: 1.25rem;
}
.prose .questions ul { list-style: none; margin: 1rem 0 0 !important; padding: 0; }
.prose .questions li {
  position: relative; padding-left: 1.5rem;
  font-size: 1.0625rem; line-height: 1.4; color: var(--ink);
}
.prose .questions li::before {
  content: ""; position: absolute; left: 0; top: 0.45rem;
  width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--accent);
}

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 3rem; }
.tag-list a {
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.tag-list a:hover { border-color: var(--ink); color: var(--ink); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 2.5rem; }
.share a, .share button {
  border: 1px solid var(--rule); border-radius: 999px;
  background: none; cursor: pointer;
  padding: 0.4rem 0.9rem;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  transition: border-color 0.18s, color 0.18s;
}
.share a:hover, .share button:hover { border-color: var(--ink); color: var(--ink); }

.author-card { display: flex; gap: 1.25rem; margin-top: 3rem; border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.author-card img { width: 3.5rem; height: 3.5rem; border-radius: 50%; flex: 0 0 auto; }
.author-card h2 { margin-top: 0.4rem; font-size: 1.15rem; }
.author-card p { margin: 0.5rem 0 0; max-width: 52ch; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }

.factbox {
  border: 1px solid var(--rule); background: var(--surface); padding: 1.35rem;
}
@media (min-width: 1024px) { .factbox { position: sticky; top: 7rem; } }
.factbox img { width: 3.4rem; height: 3.4rem; border-radius: 50%; margin-bottom: 0.9rem; }
.factbox dl { margin: 1rem 0 0; font-family: var(--mono); font-size: 12.5px; }
.factbox dt { color: var(--muted); }
.factbox dd { margin: 0.15rem 0 0.9rem; color: var(--ink); }

.disclaimer-box { border: 1px solid var(--rule); background: var(--surface); padding: 1.25rem 1.5rem; }
.disclaimer-box p { margin: 0.6rem 0 0; max-width: 68ch; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.disclaimer-box a { color: var(--accent); }

.notice-box {
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  padding: 1rem 1.25rem;
  max-width: 62ch;
}
.notice-box p { margin: 0.5rem 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }

/* ---------------- story page ---------------- */

.story-head-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .story-head-grid { grid-template-columns: 1fr auto; gap: 4rem; } }
.story-portrait { width: 100%; max-width: 22rem; aspect-ratio: 16 / 10; object-fit: cover; order: -1; }
@media (min-width: 1024px) { .story-portrait { width: 22rem; order: 0; } }
.story-quote {
  margin: 2rem 0 0; max-width: 46ch; padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
  font-family: var(--display); font-size: 1.5rem; line-height: 1.3; color: var(--ink);
}

/* ---------------- pagination ---------------- */

.pagination { margin-top: 3.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.pagination .page-numbers {
  border: 1px solid var(--rule); border-radius: 3px;
  padding: 0.65rem 1rem;
  font-family: var(--mono); font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-decoration: none; color: var(--ink);
}
.pagination .page-numbers:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.empty { padding: 4rem 1rem; text-align: center; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------------- newsletter ---------------- */

.newsletter { padding: 3.5rem 0; }
.newsletter-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .newsletter-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.newsletter h2 { margin-top: 0.75rem; font-size: clamp(1.9rem, 3vw, 2.25rem); }
.newsletter p.blurb { margin: 1rem 0 0; max-width: 46ch; color: var(--ink-soft); }
.newsletter form { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .newsletter form { flex-direction: row; } }
@media (min-width: 768px) { .newsletter .form-col { padding-top: 2.75rem; } }
.newsletter input[type="email"] {
  flex: 1; width: 100%;
  border: 1px solid var(--rule); border-radius: 3px;
  background: var(--surface); padding: 0.85rem 1rem;
  font-family: var(--sans); font-size: 15px;
}
.newsletter input:focus { outline: none; border-color: var(--ink); }
.form-note { margin-top: 0.75rem; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------------- footer ---------------- */

.site-footer { margin-top: 6rem; border-top: 1px solid var(--rule); background: var(--surface); }
.footer-grid { display: grid; gap: 2.5rem; border-top: 1px solid var(--rule); padding: 3.5rem 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.footer-grid .brand { gap: 0.7rem; }
.footer-grid .brand-mark { height: 34px; }
.footer-grid img.logo { height: 2.5rem; width: auto; }
.footer-grid .about { margin: 1rem 0 0; max-width: 34ch; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.footer-grid h2 { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.footer-grid ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.footer-grid li + li { margin-top: 0.65rem; }
.footer-grid ul a { font-size: 15px; color: var(--ink-soft); text-decoration: none; }
.footer-grid ul a:hover { color: var(--ink); text-decoration: underline; }

.footer-legal { border-top: 1px solid var(--rule); padding: 2rem 0; }
.footer-legal p { margin: 0; max-width: 70ch; font-family: var(--mono); font-size: 11.5px; line-height: 1.7; color: var(--muted); }
.footer-legal p strong { color: var(--ink); font-weight: 500; }
.footer-legal ul {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  list-style: none; margin: 1.25rem 0 0; padding: 0;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--ink); }

/* ---------------- comments & misc WP ---------------- */

.comments-area { margin-top: 3rem; border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.comment-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.comment-list li { border-bottom: 1px solid var(--rule); padding-bottom: 1.25rem; margin-bottom: 1.25rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.sticky, .bypostauthor { }
