/* ==========================================================================
   Kansas City News — editorial design system
   No external font or CSS dependencies: instant first paint, no layout shift.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  --ink: #12161c;
  --ink-soft: #2c333d;
  --body: #333b45;
  --muted: #667180;
  --faint: #8b95a3;
  --rule: #e3ded5;
  --rule-soft: #efece6;
  --paper: #ffffff;
  --cream: #f8f6f2;
  --cream-deep: #f1ede5;
  --accent: #b3122b;
  --accent-deep: #8d0d21;
  --accent-wash: #fdeef0;
  --navy: #0d1a2b;
  --navy-soft: #17293f;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia,
    "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --wrap: 1220px;
  --wrap-narrow: 760px;
  --wrap-article: 860px;
  --gutter: clamp(1rem, 3.2vw, 2.5rem);
  --radius: 3px;
  --radius-lg: 6px;

  --shadow-sm: 0 1px 2px rgba(18, 22, 28, 0.05);
  --shadow-md: 0 4px 18px rgba(18, 22, 28, 0.07);
  --shadow-lg: 0 18px 48px rgba(18, 22, 28, 0.11);
}

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

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

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

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.16s ease;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.014em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.15em;
}

li {
  margin-bottom: 0.35em;
}

figure {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

/* --- Utilities ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

.wrap--article {
  max-width: var(--wrap-article);
}

.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: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.muted {
  color: var(--muted);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 60;
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.utility-bar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.735rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  font-weight: 600;
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 34px;
}

.utility-bar p {
  margin: 0;
}

.utility-bar__tagline {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  font-size: 0.78rem;
}

.utility-bar__links {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.utility-bar__links a {
  color: rgba(255, 255, 255, 0.78);
}

.utility-bar__links a:hover {
  color: #fff;
}

.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 1.15rem 1.05rem;
}

.masthead__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}

.masthead__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  border-radius: 2px;
  flex: none;
}

.masthead__words {
  display: flex;
  flex-direction: column;
  line-height: 0.94;
}

.masthead__first {
  font-family: var(--serif);
  font-size: clamp(1.42rem, 3.1vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.028em;
}

.masthead__second {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.16rem;
}

.masthead__blurb {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 30ch;
  line-height: 1.5;
  border-left: 1px solid var(--rule);
  padding-left: 1.35rem;
}

.masthead__blurb span {
  display: block;
  color: var(--faint);
  font-size: 0.79rem;
  margin-top: 0.15rem;
}

.masthead__search {
  display: flex;
  align-items: center;
  border: 1px solid var(--rule);
  background: var(--cream);
  border-radius: 999px;
  padding: 0.24rem 0.28rem 0.24rem 0.9rem;
  min-width: 0;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.masthead__search:focus-within {
  border-color: var(--ink);
  background: #fff;
}

.masthead__search input {
  border: 0;
  background: transparent;
  outline: none;
  padding: 0.42rem 0.4rem;
  width: 100%;
  min-width: 0;
  font-size: 0.88rem;
}

.masthead__search input::placeholder {
  color: var(--faint);
}

.masthead__search button {
  border: 0;
  background: var(--ink);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: background 0.16s ease;
}

.masthead__search button:hover {
  background: var(--accent);
}

/* Section nav */
.section-nav {
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.section-nav__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-nav__list::-webkit-scrollbar {
  display: none;
}

.section-nav__list a {
  display: block;
  padding: 0.85rem 0.95rem;
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
}

.section-nav__list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.section-nav__list a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.section-nav__toggle {
  display: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-block: clamp(1.75rem, 3.6vw, 2.9rem) clamp(1.5rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--rule);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.4rem);
  align-items: start;
}

.lead__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-deep);
  margin-bottom: 1.35rem;
}

.lead__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.lead:hover .lead__media img {
  transform: scale(1.022);
}

.lead__kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.lead__flag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.lead__title {
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  letter-spacing: -0.028em;
  margin-bottom: 0.75rem;
}

.lead__title a {
  color: var(--ink);
}

.lead:hover .lead__title a {
  color: var(--accent-deep);
}

.lead__standfirst {
  font-size: clamp(1.03rem, 1.5vw, 1.16rem);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 56ch;
  margin-bottom: 1rem;
}

.lead__meta,
.card__meta,
.side-story__meta {
  font-size: 0.775rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0;
  letter-spacing: 0.01em;
}

.lead__meta a {
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
}

.lead__meta a:hover {
  border-color: var(--accent);
}

/* Pills */
.pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  background: var(--cream-deep);
  color: var(--ink-soft);
  line-height: 1.2;
}

.pill:hover {
  color: #fff;
  background: var(--ink);
}

.pill--metro { background: #e8effc; color: #1d4ed8; }
.pill--development { background: #fbeee0; color: #b45309; }
.pill--business { background: #e3f6ee; color: #047857; }
.pill--technology { background: #efe9fd; color: #6d28d9; }
.pill--community { background: #fce8ed; color: #be123c; }
.pill--sports-culture { background: #fbf0d8; color: #a16207; }
.pill--partner-spotlight { background: #dff3f1; color: #0f766e; }
.pill--paid { background: var(--ink); color: #fff; }

/* Hero side column */
.hero__side {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding-top: 0.25rem;
}

.rail-heading {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--ink);
  margin: 0;
}

.side-story {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--rule-soft);
}

.side-story__media {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: var(--cream-deep);
  align-self: start;
}

.side-story__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.side-story:hover .side-story__media img {
  transform: scale(1.06);
}

.side-story__kicker {
  font-size: 0.655rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 0.3rem;
}

.side-story__title {
  font-size: 1.035rem;
  line-height: 1.24;
  margin-bottom: 0.4rem;
}

.side-story__title a {
  color: var(--ink);
}

.side-story:hover .side-story__title a {
  color: var(--accent-deep);
}

.hero__stat {
  margin-top: 0.35rem;
  padding: 1.15rem 1.25rem;
  background: var(--cream);
  border-left: 3px solid var(--accent);
  border-radius: 0 3px 3px 0;
}

.hero__stat-num {
  font-family: var(--serif);
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin: 0 0 0.3rem;
  letter-spacing: -0.03em;
}

.hero__stat-label {
  font-size: 0.79rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

/* ==========================================================================
   Bands & grids
   ========================================================================== */
.band {
  padding-block: clamp(2.4rem, 5vw, 4rem);
}

.band--cream {
  background: var(--cream);
  border-block: 1px solid var(--rule);
}

.band--ink {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
}

.band__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.1rem);
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--ink);
}

.band--ink .band__head {
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

.band__title {
  font-size: clamp(1.5rem, 2.9vw, 2rem);
  letter-spacing: -0.02em;
}

.band--ink .band__title {
  color: #fff;
}

.band__more {
  font-size: 0.755rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.band--ink .band__more {
  color: #f3a2ac;
}

.band__more:hover {
  color: var(--ink);
}

.band--ink .band__more:hover {
  color: #fff;
}

.band__note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.grid {
  display: grid;
  gap: clamp(1.4rem, 2.6vw, 2.1rem);
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* --- Story card ----------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-deep);
  margin-bottom: 0.95rem;
}

.card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.card:hover .card__media img {
  transform: scale(1.035);
}

.card__kicker {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.card__title {
  font-size: 1.19rem;
  line-height: 1.22;
  margin-bottom: 0.5rem;
}

.card__title a {
  color: var(--ink);
}

.card:hover .card__title a {
  color: var(--accent-deep);
}

.card__excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.card__meta {
  margin-top: auto;
  font-size: 0.745rem;
}

.card__meta span + span::before,
.card__meta time::before {
  content: "·";
  margin-right: 0.45rem;
  color: var(--faint);
}

/* --- Row story (dark band) ------------------------------------------------ */
.row-story {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.row-story__media {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: var(--navy-soft);
}

.row-story__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.row-story:hover .row-story__media img {
  transform: scale(1.06);
}

.row-story__kicker {
  font-size: 0.665rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  margin: 0 0 0.35rem;
}

.row-story__title {
  font-size: 1.13rem;
  line-height: 1.24;
  margin-bottom: 0.45rem;
}

.row-story__title a {
  color: #fff;
}

.row-story:hover .row-story__title a {
  color: #f3a2ac;
}

.row-story__excerpt {
  font-size: 0.865rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
  margin: 0;
}

/* --- Section blocks ------------------------------------------------------- */
.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.6rem);
}

.section-block {
  min-width: 0;
}

.section-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 0.85rem;
}

.section-block__head h3 {
  font-size: 1.16rem;
  letter-spacing: -0.01em;
}

.section-block__head h3 a:hover {
  color: var(--accent);
}

.section-block__count {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
}

.section-block__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.section-block__list li {
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--rule-soft);
  margin: 0;
}

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

.section-block__list a {
  display: block;
  font-family: var(--serif);
  font-size: 0.985rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.section-block__list a:hover {
  color: var(--accent);
}

.section-block__list time {
  font-size: 0.72rem;
  color: var(--faint);
}

/* --- Tag cloud ------------------------------------------------------------ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-cloud li {
  margin: 0;
}

.tag-cloud a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
}

.tag-cloud a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.tag-cloud a span {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
}

.tag-cloud a:hover span {
  color: rgba(255, 255, 255, 0.6);
}

.tag-cloud--rail a {
  padding: 0.32rem 0.62rem;
  font-size: 0.775rem;
  font-weight: 500;
  background: var(--cream);
}

/* ==========================================================================
   Page heads
   ========================================================================== */
.page-head {
  padding-block: clamp(2rem, 4.5vw, 3.4rem) clamp(1.5rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.page-head--category,
.page-head--tag {
  border-top: 4px solid var(--accent, var(--accent));
}

.page-head__kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.page-head__title {
  font-size: clamp(1.95rem, 4.4vw, 3.05rem);
  letter-spacing: -0.028em;
  margin-bottom: 0.85rem;
  max-width: 22ch;
}

.page-head__lede {
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  color: var(--muted);
  line-height: 1.62;
  max-width: 62ch;
  margin: 0;
}

.page-head__meta {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.page-head__lede a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  font-size: 0.755rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0.62rem 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--faint);
  min-width: 0;
}

.breadcrumbs a {
  color: var(--muted);
  font-weight: 600;
}

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

.breadcrumbs li:last-child span {
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 46ch;
}

/* ==========================================================================
   Article
   ========================================================================== */
.article__head {
  padding-block: clamp(2rem, 4vw, 3rem) 1.5rem;
}

.article__kicker {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.article__title {
  font-size: clamp(2.05rem, 4.9vw, 3.4rem);
  letter-spacing: -0.032em;
  line-height: 1.06;
  margin-bottom: 1rem;
}

.article__standfirst {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.9vw, 1.32rem);
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
  max-width: 58ch;
}

.article__byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}

.article__avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  overflow: hidden;
  flex: none;
  background: var(--cream-deep);
}

.article__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__author {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.article__author a {
  border-bottom: 1px solid var(--rule);
}

.article__role {
  display: block;
  font-weight: 500;
  font-size: 0.775rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.article__dates {
  margin: 0.3rem 0 0;
  font-size: 0.765rem;
  color: var(--muted);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.article__hero {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 0.6rem;
  padding-inline: var(--gutter);
}

.article__hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

.article__hero figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.755rem;
  color: var(--muted);
  padding-top: 0.6rem;
  line-height: 1.5;
}

.article__hero figcaption span {
  color: var(--ink-soft);
}

.article__layout {
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
}

/* Body typography */
.article__body {
  font-size: 1.085rem;
  line-height: 1.72;
  color: var(--body);
  min-width: 0;
}

.article__body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.5em;
  line-height: 0.82;
  font-weight: 700;
  padding: 0.06em 0.1em 0 0;
  color: var(--ink);
}

.article__body p {
  margin-bottom: 1.15em;
}

.article__body h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.62rem);
  margin: 2em 0 0.6em;
  padding-top: 0.2em;
  letter-spacing: -0.018em;
}

.article__body h3 {
  font-size: 1.16rem;
  margin: 1.6em 0 0.5em;
}

.article__body ul,
.article__body ol {
  margin-bottom: 1.3em;
  padding-left: 1.3em;
}

.article__body li {
  margin-bottom: 0.5em;
}

.article__body li::marker {
  color: var(--accent);
}

.article__body a {
  color: var(--accent-deep);
  border-bottom: 1px solid rgba(179, 18, 43, 0.28);
  font-weight: 500;
}

.article__body a:hover {
  border-bottom-color: var(--accent-deep);
  background: var(--accent-wash);
}

.article__body strong {
  color: var(--ink);
  font-weight: 700;
}

.article__body blockquote {
  margin: 1.8em 0;
  padding: 0.2em 0 0.2em 1.4em;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-size: 1.24rem;
  line-height: 1.45;
  color: var(--ink);
}

.article__body blockquote p {
  margin-bottom: 0.6em;
}

.article__body blockquote cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.callout {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem;
  margin: 1.9em 0;
  font-size: 0.96rem;
  line-height: 1.6;
}

.callout p {
  margin: 0;
}

.callout__title {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem !important;
}

.disclosure,
.sponsored-flag {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.95rem 1.15rem;
  margin: 0 0 1.8em;
}

.sponsored-flag {
  border-left: 3px solid #0f766e;
}

.sponsored-flag strong {
  color: var(--ink);
}

.sponsored-flag a {
  border-bottom: 1px solid currentColor;
}

/* Article footer bits */
.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 1.6rem;
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
}

.tag {
  font-size: 0.755rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.34rem 0.7rem;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-soft);
}

.tag:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.article__share {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule-soft);
}

.article__share p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
}

.article__share ul {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.article__share li {
  margin: 0;
}

.article__share a {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.72rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-soft);
}

.article__share a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.author-box {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 1.15rem;
  margin-top: 2.2rem;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
}

.author-box img {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  object-fit: cover;
}

.author-box h2 {
  font-size: 1.14rem;
  margin: 0 0 0.15rem;
}

.author-box__role {
  font-size: 0.775rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.author-box p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.author-box__expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}

.author-box__expertise span {
  font-size: 0.71rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
}

.article__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}

.article__nav-item {
  display: block;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.article__nav-item:hover {
  border-color: var(--ink);
  background: var(--cream);
}

.article__nav-item--end {
  text-align: right;
}

.article__nav-dir {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.article__nav-title {
  font-family: var(--serif);
  font-size: 0.965rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

/* Reading progress */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
}

/* ==========================================================================
   Layout with rail
   ========================================================================== */
.layout-with-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 4vw, 3.6rem);
  padding-block: clamp(1.8rem, 3.5vw, 2.8rem);
  align-items: start;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  /* Clears the sticky header (utility bar + masthead + section nav ≈ 168px). */
  top: 186px;
}

.rail-block {
  min-width: 0;
}

.rail-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.rail-list li {
  margin: 0;
  border-bottom: 1px solid var(--rule-soft);
}

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

.rail-list a {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.885rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.4;
}

.rail-list a:hover {
  color: var(--accent);
}

.rail-list a span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  flex: none;
}

.rail-list--titles a {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
}

.rail-list--numbered li {
  display: flex;
  gap: 0.7rem;
  padding: 0.65rem 0;
  align-items: flex-start;
}

.rail-list__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  padding-top: 0.18rem;
  flex: none;
}

.rail-list--numbered a {
  padding: 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
}

.rail-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.755rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.rail-note {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0.7rem 0 0;
}

.stat-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.stat-list li {
  margin: 0;
}

.stat-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.42rem;
  color: var(--ink);
  line-height: 1.1;
}

.stat-list span {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
  display: block;
  margin-top: 0.15rem;
}

/* ==========================================================================
   Newsletter box
   ========================================================================== */
.newsletter-box {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.76);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.newsletter-box::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(179, 18, 43, 0.42), transparent 68%);
  pointer-events: none;
}

.newsletter-box__kicker {
  font-size: 0.685rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #f3a2ac;
  margin: 0 0 0.6rem;
}

.newsletter-box__title {
  font-size: 1.28rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.newsletter-box__copy {
  font-size: 0.845rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  position: relative;
}

.newsletter-box__form {
  display: flex;
  gap: 0.4rem;
  position: relative;
}

.newsletter-box__form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-radius: 2px;
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
}

.newsletter-box__form input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.newsletter-box__form button {
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0 0.9rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.16s ease;
}

.newsletter-box__form button:hover {
  background: #d01834;
}

.newsletter-box__fine {
  font-size: 0.71rem;
  color: rgba(255, 255, 255, 0.42);
  margin: 0.7rem 0 0;
  position: relative;
}

/* ==========================================================================
   Buttons & forms
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.865rem;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn:hover {
  border-color: var(--ink);
  background: var(--cream);
  color: var(--ink);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}

.btn--block {
  display: flex;
  width: 100%;
  margin-top: 0.6rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 640px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
  font-size: 0.94rem;
  transition: border-color 0.16s ease;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  outline: none;
}

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

.field__hint {
  font-size: 0.775rem;
  color: var(--muted);
  margin: 0;
}

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
}

.field--check input {
  width: 18px;
  height: 18px;
  margin-top: 0.18rem;
  flex: none;
  accent-color: var(--accent);
}

.field--check label {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 0.855rem;
  color: var(--muted);
  line-height: 1.5;
}

.alert {
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.6rem;
  border: 1px solid var(--rule);
}

.alert--ok {
  background: #e9f7f0;
  border-color: #b7e4cd;
  color: #14532d;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  max-width: 620px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  background: var(--paper);
}

.search-form input:focus {
  border-color: var(--ink);
  outline: none;
}

.search-status {
  font-size: 0.83rem;
  color: var(--muted);
  margin: 1.5rem 0 1.2rem;
  font-weight: 600;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-result {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.15rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}

.search-result__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 2px;
}

.search-result__kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.25rem;
}

.search-result__title {
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.search-result__excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.search-empty {
  padding: 2rem 0 3rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.pagination__step {
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.pagination__step--off {
  color: var(--faint);
  opacity: 0.5;
}

.pagination__pages {
  display: flex;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination__pages li {
  margin: 0;
}

.pagination__pages a,
.pagination__pages span {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: 0.83rem;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--ink-soft);
}

.pagination__pages a:hover {
  border-color: var(--ink);
  background: var(--cream);
}

.pagination__pages span[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pagination__count {
  text-align: center;
  font-size: 0.755rem;
  color: var(--faint);
  margin-top: 0.8rem;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Static page furniture
   ========================================================================== */
.prose {
  font-size: 1.055rem;
  line-height: 1.72;
  color: var(--body);
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
}

.prose h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  margin: 2em 0 0.55em;
}

.prose h3 {
  font-size: 1.14rem;
  margin: 1.6em 0 0.45em;
}

.prose a {
  color: var(--accent-deep);
  border-bottom: 1px solid rgba(179, 18, 43, 0.28);
  font-weight: 500;
}

.prose a:hover {
  background: var(--accent-wash);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
  margin-bottom: 1.3em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose li::marker {
  color: var(--accent);
}

.prose strong {
  color: var(--ink);
}

.prose__figure {
  margin: 0 0 2rem;
}

.prose__figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

.prose__figure figcaption {
  font-size: 0.76rem;
  color: var(--muted);
  padding-top: 0.55rem;
}

.prose__stamp {
  font-size: 0.8rem;
  color: var(--faint);
  font-style: italic;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  margin-top: 2rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2.4rem 0;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
}

.stat-row div {
  text-align: center;
}

.stat-row strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.85rem;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-row span {
  font-size: 0.755rem;
  color: var(--muted);
  line-height: 1.3;
  display: block;
  margin-top: 0.2rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
}

.team-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 1.15rem;
  padding: 1.1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--paper);
  margin: 0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.team-card:hover {
  border-color: var(--rule);
  box-shadow: var(--shadow-md);
}

.team-card__photo {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-deep);
}

.team-card__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-card__body h3 {
  font-size: 1.12rem;
  margin-bottom: 0.15rem;
}

.team-card__role {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.team-card__bio {
  font-size: 0.855rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.team-card__meta {
  font-size: 0.755rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  gap: 0.45rem;
  color: var(--faint);
}

.team-card__meta a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
}

/* Author head */
.author-head {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(2rem, 4vw, 3rem);
}

.author-head__inner {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.author-head__photo {
  width: 160px;
  height: 160px;
  border-radius: 999px;
  object-fit: cover;
}

.author-head__expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.author-head__expertise li {
  font-size: 0.735rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
  margin: 0;
}

.author-head__contact {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 1rem 0 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.author-head__contact a {
  border-bottom: 1px solid var(--rule);
}

/* FAQ */
.faq {
  margin-top: 2.6rem;
}

.faq h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 0.85rem 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 700;
  flex: none;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0.7rem 0 0;
  max-width: 62ch;
}

/* Contact list */
.contact-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule-soft);
  margin: 0;
}

.contact-list span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.contact-list a {
  font-size: 0.885rem;
  font-weight: 600;
  color: var(--ink-soft);
  word-break: break-word;
}

.contact-address {
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 0.8rem;
}

/* Newsletter page */
.signup {
  margin-block: 2rem 1rem;
  padding: 1.75rem;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}

.signup__form {
  display: flex;
  gap: 0.5rem;
}

.signup__form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  background: var(--paper);
}

.signup__fine {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.9rem 0 0;
}

.signup__fine a {
  border-bottom: 1px solid currentColor;
}

.sample-issue {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.3rem 1.4rem;
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 1.4rem 0 2rem;
}

.sample-issue__head {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.sample-issue__foot {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  margin: 0;
}

/* Advertise */
.advertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  list-style: none;
  margin: 1.6rem 0 2.4rem;
  padding: 0;
}

.advertise-grid li {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-deep);
}

.advertise-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.advertise-grid li:hover img {
  transform: scale(1.06);
}

.advertise-grid span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 0.7rem 0.55rem;
  font-size: 0.735rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to top, rgba(9, 14, 20, 0.85), transparent);
  letter-spacing: 0.02em;
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.6rem 0 2.4rem;
}

.price-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  background: var(--paper);
}

.price-card--feature {
  border-color: var(--ink);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}

.price-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.price-card__price {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.9rem;
  letter-spacing: -0.02em;
}

.price-card__price span {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 0.25rem;
  letter-spacing: 0;
}

.price-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.855rem;
}

.price-card li {
  padding: 0.35rem 0 0.35rem 1.1rem;
  position: relative;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--muted);
  margin: 0;
}

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

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Credits table */
.credits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin-block: 1.8rem 1.5rem;
}

.credits-table thead th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0.7rem 0.6rem;
  border-bottom: 2px solid var(--ink);
}

.credits-table tbody tr {
  border-bottom: 1px solid var(--rule);
}

.credits-table td,
.credits-table tbody th {
  padding: 0.8rem 0.6rem;
  vertical-align: top;
  text-align: left;
  font-weight: 400;
}

.credits-table tbody th {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}

.credits-table img {
  width: 140px;
  border-radius: 2px;
}

.credits-table__src {
  font-size: 0.75rem;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}

.credits-table__uses {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
}

.credits-table__uses li {
  margin: 0 0 0.25rem;
}

.credits-table__uses a {
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}

.credits-table__uses a:hover {
  color: var(--accent);
}

.credits-note {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 70ch;
  padding-bottom: 3rem;
}

.credits-note a {
  border-bottom: 1px solid currentColor;
}

/* 404 */
.notfound {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.notfound__code {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 14vw, 9rem);
  font-weight: 700;
  line-height: 0.85;
  color: var(--cream-deep);
  margin: 0 0 0.5rem;
  letter-spacing: -0.05em;
}

.notfound__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.8rem;
}

.notfound__copy {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 1.8rem;
}

.notfound__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.notfound__latest h2 {
  font-size: 0.75rem;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 0.5rem;
}

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

.notfound__latest li {
  border-bottom: 1px solid var(--rule-soft);
  margin: 0;
}

.notfound__latest a {
  display: block;
  padding: 0.65rem 0;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  padding-top: clamp(2.6rem, 5vw, 3.8rem);
  margin-top: clamp(1rem, 3vw, 2rem);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 0.85fr));
  gap: clamp(1.8rem, 3.5vw, 3rem);
  padding-bottom: 2.6rem;
}

.site-footer__brand .masthead__logo {
  margin-bottom: 1rem;
}

.masthead__logo--footer .masthead__first {
  color: #fff;
}

.masthead__logo--footer .masthead__second {
  color: #f3a2ac;
}

.site-footer__brand p {
  font-size: 0.855rem;
  line-height: 1.6;
  max-width: 38ch;
  margin-bottom: 1.1rem;
}

.site-footer address {
  font-style: normal;
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.48);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__col h2 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f3a2ac;
  margin-bottom: 0.9rem;
}

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

.site-footer__col li {
  margin: 0 0 0.5rem;
}

.site-footer__col a {
  font-size: 0.855rem;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-block: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.755rem;
  color: rgba(255, 255, 255, 0.42);
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__legal {
  max-width: 60ch;
  line-height: 1.55;
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
    align-items: start;
    border-top: 1px solid var(--rule);
    padding-top: 1.6rem;
  }

  .hero__side .rail-heading,
  .hero__stat {
    grid-column: 1 / -1;
  }

  .layout-with-rail {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
  }

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .advertise-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .masthead {
    grid-template-columns: 1fr auto;
    gap: 0.9rem;
  }

  .masthead__blurb {
    display: none;
  }

  .masthead__search {
    grid-column: 1 / -1;
    width: 100%;
  }

  .utility-bar__tagline {
    display: none;
  }

  .section-nav__toggle {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: none;
    border: 0;
    padding: 0.85rem 0;
    font-size: 0.775rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
  }

  .section-nav__burger {
    width: 16px;
    height: 2px;
    background: var(--ink);
    position: relative;
    display: block;
  }

  .section-nav__burger::before,
  .section-nav__burger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 2px;
    background: var(--ink);
  }

  .section-nav__burger::before { top: -5px; }
  .section-nav__burger::after { top: 5px; }

  .section-nav__inner {
    flex-wrap: wrap;
  }

  .section-nav__list {
    display: none;
    width: 100%;
    flex-direction: column;
    border-top: 1px solid var(--rule);
    padding-block: 0.4rem;
  }

  body.nav-open .section-nav__list {
    display: flex;
  }

  .section-nav__list a {
    padding: 0.62rem 0.2rem;
    border-bottom: 0;
    margin-bottom: 0;
  }

  .grid--3,
  .grid--2,
  .team-grid,
  .price-cards,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero__side,
  .rail {
    grid-template-columns: 1fr;
  }

  .article__nav {
    grid-template-columns: 1fr;
  }

  .article__nav-item--end {
    text-align: left;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .advertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .author-head__inner {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .author-head__photo {
    width: 104px;
    height: 104px;
  }

  .search-result {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .team-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16.5px;
  }

  .article__body {
    font-size: 1.04rem;
  }

  .utility-bar__links li:first-child {
    display: none;
  }

  .side-story,
  .row-story {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .pagination__pages {
    display: none;
  }

  .pagination {
    justify-content: space-between;
  }

  .article__share {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .credits-table thead {
    display: none;
  }

  .credits-table,
  .credits-table tbody,
  .credits-table tr,
  .credits-table td,
  .credits-table tbody th {
    display: block;
    width: 100%;
  }

  .credits-table tbody tr {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .credits-table img {
    width: 100%;
  }

  .search-result {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
    padding: 1.1rem;
  }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .site-header,
  .site-footer,
  .rail,
  .newsletter-box,
  .article__share,
  .article__nav,
  .band--ink,
  .progress-bar,
  .breadcrumbs {
    display: none !important;
  }

  body {
    font-size: 11pt;
    color: #000;
  }

  .article__body {
    max-width: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ==========================================================================
   Dark mode — respects the OS setting, keeps the editorial palette
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f0ec;
    --ink-soft: #d8d5cf;
    --body: #c3c0b9;
    --muted: #9a978f;
    --faint: #7d7a73;
    --rule: #2b3038;
    --rule-soft: #23272e;
    --paper: #101418;
    --cream: #161b21;
    --cream-deep: #1c2229;
    --accent: #f2546b;
    --accent-deep: #ff7d8f;
    --accent-wash: #2a1a20;
    --navy: #0a0f14;
    --navy-soft: #121a22;
    --shadow-md: 0 4px 18px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
  }

  .utility-bar {
    background: #05080b;
  }

  .masthead__mark {
    background: var(--accent);
    color: #101418;
  }

  .masthead__search {
    background: var(--cream);
  }

  .masthead__search button {
    background: var(--accent);
    color: #101418;
  }

  .section-nav__list a[aria-current="page"] {
    color: var(--accent);
  }

  .lead__title a,
  .card__title a,
  .section-block__list a,
  .rail-list--numbered a {
    color: var(--ink);
  }

  .pill {
    background: #232a33;
    color: #cfd4db;
  }

  .pill--metro { background: #16233a; color: #8fb4ff; }
  .pill--development { background: #2e2318; color: #f0b26b; }
  .pill--business { background: #12291f; color: #6ee7b7; }
  .pill--technology { background: #241c36; color: #c4b5fd; }
  .pill--community { background: #2f1a21; color: #fda4af; }
  .pill--sports-culture { background: #2b2415; color: #fcd34d; }
  .pill--partner-spotlight { background: #10302c; color: #5eead4; }

  .tag,
  .tag-cloud a {
    background: var(--cream);
    border-color: var(--rule);
    color: var(--ink-soft);
  }

  .callout,
  .disclosure,
  .sponsored-flag,
  .hero__stat,
  .author-box,
  .signup,
  .sample-issue,
  .price-card {
    background: var(--cream);
    border-color: var(--rule);
  }

  .price-card--feature {
    border-color: var(--ink);
  }

  .btn {
    background: var(--cream);
    border-color: var(--rule);
    color: var(--ink);
  }

  .btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #101418;
  }

  .alert--ok {
    background: #12291f;
    border-color: #1d5a3c;
    color: #a7f3d0;
  }

  .notfound__code {
    color: #1e242c;
  }

  .site-footer {
    background: #05080b;
  }

  .article__body > p:first-of-type::first-letter {
    color: var(--ink);
  }
}
