/* ========================================
   Selected Writing Clips — standalone page
   Byline: RG. Self-contained (no shared site CSS/JS).
   Each clip is shown in a single art-directed treatment
   themed to its subject, carrying the full published text.
   ======================================== */

/* ---------- Base reset + tokens (standalone) ---------- */
:root {
  --color-bg: #f6f5f2;
  --color-body: #23201c;
  --color-heading: #15120e;
  --color-link: #1f6f6a;
  --color-link-hover: #154f4a;
  --content-max-width: 960px;
  --content-padding: 2rem;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
}

/* Dark theme — flips page chrome only. The art-directed clip cards
   (.dressed .theme-*) keep their own palettes in both modes. */
:root[data-theme="dark"] {
  --color-bg: #1a191d;
  --color-body: #d7d3cb;
  --color-heading: #f2efe9;
  --color-link: #5cc4b8;
  --color-link-hover: #82d8ce;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-body);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

main {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--spacing-xl) var(--content-padding);
}

h1, h2, h3, h4, h5, h6 { color: var(--color-heading); line-height: 1.2; font-weight: 700; }
p { margin-bottom: 1rem; }
a { color: var(--color-link); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-link-hover); }
a:focus-visible { outline: 2px solid var(--color-link); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }

@media (max-width: 768px) {
  :root { --content-padding: 1.25rem; }
  body { font-size: 15px; }
  main { padding: var(--spacing-lg) var(--content-padding); }
}

/* ---------- Mini site nav (Writing · Art) ---------- */
.mini-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 22px;
  background: linear-gradient(var(--color-bg) 55%, rgba(246, 245, 242, 0));
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mini-nav a { text-decoration: none; color: #8a847b; transition: color 0.2s; }
.mini-nav a:hover, .mini-nav a.active { color: var(--color-heading); }
.mini-nav a.active { border-bottom: 1px solid var(--color-heading); }
.mini-nav .div { color: rgba(128, 128, 128, 0.5); }

/* light / dark toggle button */
.theme-toggle {
  align-self: center;
  margin-left: auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(128, 128, 128, 0.35);
  background: transparent;
  color: var(--color-heading);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.theme-toggle:hover { border-color: var(--color-link); transform: scale(1.06); }
.theme-toggle:focus-visible { outline: 2px solid var(--color-link); outline-offset: 2px; }
.theme-toggle svg { width: 17px; height: 17px; display: block; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }

/* ---------- Page intro / hero ---------- */
.writing-hero {
  max-width: 760px;
  margin: 0 auto var(--spacing-xl);
  text-align: center;
}

.writing-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-link);
  margin-bottom: var(--spacing-sm);
}

.writing-hero h1 {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.writing-lede {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-body);
  margin: 0 auto var(--spacing-md);
  max-width: 640px;
}

.writing-byline-note {
  font-size: 0.95rem;
  color: var(--color-body);
  opacity: 0.75;
  font-style: italic;
}

.writing-byline-note strong {
  font-style: normal;
  color: var(--color-heading);
}

/* "How to read this page" helper for the hiring audience */
.writing-guide {
  max-width: 760px;
  margin: 0 auto var(--spacing-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.writing-guide-card {
  border: 2px solid var(--color-link);
  border-radius: 10px;
  padding: var(--spacing-md);
  background: transparent;
}

.writing-guide-card h2 {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--color-link);
}

.writing-guide-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

@media (max-width: 600px) {
  .writing-hero h1 { font-size: 2.25rem; }
  .writing-lede { font-size: 1.0625rem; }
  .writing-guide { grid-template-columns: 1fr; gap: var(--spacing-sm); }
}

/* ---------- Clip wrapper ---------- */
.clip {
  margin-bottom: calc(var(--spacing-xl) + var(--spacing-md));
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid;
  border-color: currentColor;
  border-image: none;
  scroll-margin-top: 110px;
}
.clip:last-of-type { border-bottom: none; }

/* Hairline above each clip's border (uses opacity trick) */
.clip { position: relative; }

.clip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1rem;
  margin-bottom: var(--spacing-md);
}

.clip-index {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-body);
  opacity: 0.5;
}

.clip-format {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-link);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}

.clip-outlet {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-heading);
}
.clip-outlet .clip-date {
  font-weight: 400;
  opacity: 0.7;
}

.clip-source {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.clip-source::after { content: " \2197"; }

/* ---------- Tabs ---------- */
.clip-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: var(--spacing-lg);
  background: rgba(128, 128, 128, 0.12);
  border-radius: 999px;
}

.clip-tab {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-body);
  opacity: 0.7;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  min-height: 40px;
}

.clip-tab:hover { opacity: 1; }

.clip-tab[aria-selected="true"] {
  background: var(--color-bg);
  color: var(--color-link);
  opacity: 1;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.16);
}

.clip-tab:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

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

/* small caption under the panel, shared */
.clip-note {
  margin-top: var(--spacing-md);
  font-size: 0.82rem;
  opacity: 0.6;
  font-style: italic;
}

/* =====================================================
   VERSION 1 — "CLEAN READ"
   Theme-integrated editorial layout. Respects palette
   + typeface switcher. Simple, but designed.
   ===================================================== */
.read {
  max-width: 680px;
}

.read-title {
  font-size: 2.1rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.read-byline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--color-body);
  opacity: 0.85;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid;
  border-color: currentColor;
}
.read-byline .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-link); flex: 0 0 auto;
}
.read-byline .orig { opacity: 0.7; font-style: italic; }

.read-deck {
  font-size: 1.3rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--color-heading);
  margin-bottom: var(--spacing-lg);
}

.read-body p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* Drop cap on the opening paragraph */
.read-body > p.lead::first-letter {
  float: left;
  font-size: 3.4rem;
  line-height: 0.8;
  font-weight: 700;
  padding: 0.1rem 0.6rem 0 0;
  color: var(--color-link);
}

.read-body h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-link);
  margin: var(--spacing-lg) 0 var(--spacing-sm);
  padding-left: 0.85rem;
  border-left: 3px solid var(--color-link);
}

.read-pull {
  font-size: 1.35rem;
  line-height: 1.5;
  font-style: italic;
  font-weight: 500;
  color: var(--color-link);
  margin: var(--spacing-lg) 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 4px solid var(--color-link);
}

/* Q&A styling for interview clips (clean read) */
.read-qa { margin-bottom: 1.4rem; }
.read-qa .q {
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.4rem;
}
.read-qa .a {
  font-size: 1.0625rem;
  line-height: 1.8;
}
.read-qa .a p { margin-bottom: 0.75rem; }

@media (max-width: 600px) {
  .read-title { font-size: 1.65rem; }
  .read-deck { font-size: 1.125rem; }
  .read-body p, .read-qa .a { font-size: 1rem; line-height: 1.7; }
  .read-pull { font-size: 1.15rem; }
}

/* =====================================================
   VERSION 2 — "DRESSED UP"
   Self-contained, art-directed. Each theme carries its
   own palette + type so it reads the same on any site
   palette. Web-safe font stacks only (no network fonts).
   ===================================================== */
.dressed {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}
.dressed .d-inner { padding: clamp(1.5rem, 5vw, 3.25rem); }
.dressed .d-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  opacity: 0.9;
}
.dressed .d-title {
  line-height: 1.05;
  margin-bottom: 1rem;
}
.dressed .d-byline {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
  opacity: 0.85;
}
.dressed .d-body p { margin-bottom: 1.1rem; }
.dressed .d-pull { margin: 1.75rem 0; }

/* ---- Theme 1 · Ruth E. Carter / Afrofuturism (regal gold + aubergine) ---- */
.theme-carter {
  background:
    radial-gradient(120% 80% at 50% -10%, #3a1d63 0%, #1c0f33 55%, #120821 100%);
  color: #f3e7cf;
}
.theme-carter .d-band {
  height: 10px;
  background: repeating-linear-gradient(
    45deg, #e8c35a 0 14px, #b8862f 14px 28px, #7d4bc4 28px 42px, #2a9d8f 42px 56px);
}
.theme-carter .d-inner { font-family: Georgia, 'Times New Roman', serif; }
.theme-carter .d-kicker { color: #e8c35a; }
.theme-carter .d-title {
  font-family: 'Didot', 'Bodoni MT', Georgia, serif;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  color: #f6ecd6;
  letter-spacing: 0.005em;
}
.theme-carter .d-title b { color: #e8c35a; font-weight: 700; }
.theme-carter .d-byline { color: #d8c9e8; }
.theme-carter .d-body { font-size: 1.06rem; line-height: 1.85; color: #ece0c9; }
.theme-carter .d-body p:first-of-type::first-letter {
  float: left; font-size: 4rem; line-height: 0.78;
  padding: 0.1rem 0.65rem 0 0; color: #e8c35a;
  font-family: 'Didot', 'Bodoni MT', Georgia, serif;
}
.theme-carter .d-pull {
  border: 1px solid #e8c35a;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  background: rgba(232, 195, 90, 0.06);
  font-size: 1.3rem;
  font-style: italic;
  color: #f3e3bd;
  text-align: center;
}
.theme-carter .d-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem;
}
.theme-carter .d-tags span {
  font-family: Georgia, serif; font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: #1c0f33; background: #e8c35a;
  padding: 0.3rem 0.8rem; border-radius: 999px; font-weight: 700;
}

/* ---- Theme 2 · Keith Coogan / 80s-90s star (Memphis marquee) ---- */
.theme-coogan {
  background: #fcf3e2;
  color: #20223a;
  position: relative;
}
.theme-coogan .d-marquee {
  background: #20223a;
  padding: 1.5rem 1rem;
  text-align: center;
  border-bottom: 6px solid #ff5e7a;
}
.theme-coogan .d-bulbs {
  display: flex; justify-content: center; gap: 0.55rem; margin-bottom: 0.75rem;
}
.theme-coogan .d-bulbs i {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ffd23f; box-shadow: 0 0 8px #ffd23f;
}
.theme-coogan .d-marquee .d-title {
  font-family: 'Arial Black', 'Helvetica Neue', Impact, sans-serif;
  font-size: clamp(1.7rem, 5vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #fcf3e2;
  letter-spacing: 0.01em;
  margin: 0;
  text-shadow: 3px 3px 0 #ff5e7a, 6px 6px 0 #36c5d6;
}
.theme-coogan .d-inner {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  position: relative; z-index: 1;
}
.theme-coogan .d-kicker { color: #d6336c; }
.theme-coogan .d-byline { color: #4a4d6b; }
.theme-coogan .d-body { font-size: 1.04rem; line-height: 1.8; color: #2a2c45; }
.theme-coogan .d-pull {
  font-family: 'Arial Black', Impact, sans-serif;
  font-size: 1.45rem; line-height: 1.25; text-transform: uppercase;
  color: #20223a; background: #ffd23f;
  border: 3px solid #20223a; border-radius: 4px;
  padding: 1.1rem 1.3rem; transform: rotate(-1.2deg);
  box-shadow: 6px 6px 0 #36c5d6;
}
.theme-coogan .d-shapes { display: flex; gap: 0.6rem; margin-top: 2rem; }
.theme-coogan .d-shapes i { width: 26px; height: 26px; display: inline-block; }
.theme-coogan .d-shapes .s1 { background: #ff5e7a; border-radius: 50%; }
.theme-coogan .d-shapes .s2 { background: #36c5d6; transform: rotate(45deg); }
.theme-coogan .d-shapes .s3 {
  width: 0; height: 0; background: transparent;
  border-left: 13px solid transparent; border-right: 13px solid transparent;
  border-bottom: 24px solid #ffd23f;
}

/* ---- Theme 3 · Joe Reitman / "Creating From the Shards" (gritty noir) ---- */
.theme-reitman {
  background: #0c0c0e;
  color: #d7d3cb;
  position: relative;
}
.theme-reitman .d-band {
  height: 8px;
  background: linear-gradient(90deg, #c4302b 0 50%, #2f6b3f 50% 100%);
  clip-path: polygon(0 0,100% 0,100% 60%,96% 100%,90% 40%,84% 100%,78% 45%,
    70% 100%,62% 50%,54% 100%,46% 45%,38% 100%,30% 50%,22% 100%,14% 45%,8% 100%,0 60%);
}
.theme-reitman .d-inner { font-family: 'Courier New', Courier, monospace; }
.theme-reitman .d-kicker { color: #c4302b; }
.theme-reitman .d-title {
  font-family: 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-weight: 800; font-size: clamp(1.9rem, 5vw, 3.1rem);
  color: #f0ece4; text-transform: uppercase; letter-spacing: 0.02em;
}
.theme-reitman .d-title b { color: #c4302b; }
.theme-reitman .d-byline { color: #8a857c; font-family: 'Courier New', monospace; }
.theme-reitman .d-body {
  font-family: Georgia, serif; font-size: 1.05rem; line-height: 1.85; color: #cfcbc2;
}
.theme-reitman .d-pull {
  position: relative;
  font-family: 'Arial Narrow', sans-serif; font-weight: 700;
  font-size: 1.4rem; line-height: 1.3; color: #f0ece4;
  background: #141416; border-left: 4px solid #c4302b;
  padding: 1.2rem 1.4rem;
  clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 96%);
}
.theme-reitman .d-pull::before { content: "\201C"; color: #c4302b; }
.theme-reitman .d-credits {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed #3a3a3e;
  font-family: 'Courier New', monospace; font-size: 0.8rem;
  letter-spacing: 0.05em; color: #7d7870; text-transform: uppercase;
}

/* ---- Theme 4 · Patrick Gallagher / Q&A "18 Year Grind" (studio interview) ---- */
.theme-gallagher {
  background: linear-gradient(160deg, #161c24 0%, #0e131a 100%);
  color: #e3e8ee;
}
.theme-gallagher .d-clap {
  display: flex; align-items: center; gap: 0.75rem;
  background: #0a0e13; padding: 1rem 1.5rem;
  border-bottom: 3px solid #e0a73c;
}
.theme-gallagher .d-clap .stripes {
  flex: 1; height: 22px;
  background: repeating-linear-gradient(115deg, #e3e8ee 0 16px, #0a0e13 16px 32px);
  border-radius: 2px;
}
.theme-gallagher .d-clap .tag {
  font-family: 'Courier New', monospace; font-size: 0.72rem; letter-spacing: 0.12em;
  color: #e0a73c; text-transform: uppercase; white-space: nowrap;
}
.theme-gallagher .d-inner { font-family: 'Helvetica Neue', Arial, sans-serif; }
.theme-gallagher .d-kicker { color: #e0a73c; }
.theme-gallagher .d-title {
  font-family: Georgia, serif; font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3rem); color: #f3f6fa;
}
.theme-gallagher .d-byline { color: #95a3b3; }
.theme-gallagher .qa { margin-bottom: 1.4rem; }
.theme-gallagher .qa .q {
  display: inline-block;
  font-size: 0.95rem; font-weight: 700; color: #0e131a;
  background: #e0a73c; border-radius: 8px 8px 8px 0;
  padding: 0.7rem 1rem; margin-bottom: 0.75rem; max-width: 90%;
}
.theme-gallagher .qa .a {
  font-size: 1.03rem; line-height: 1.8; color: #d4dbe3;
  border-left: 2px solid #2a3744; padding-left: 1rem;
}
.theme-gallagher .qa .a p { margin-bottom: 0.8rem; }
.theme-gallagher .d-grind {
  margin-top: 2rem; padding: 1rem 1.25rem; border: 1px solid #2a3744;
  border-radius: 10px; font-size: 0.9rem; color: #aeb9c6;
  display: flex; align-items: center; gap: 0.8rem;
}
.theme-gallagher .d-grind b { color: #e0a73c; font-size: 1.4rem; }

/* ---- Theme 5 · Connor Ratliff / "Conspiracies" (corkboard case file) ---- */
.theme-ratliff {
  background:
    radial-gradient(circle at 20% 20%, rgba(0,0,0,0.05) 0 2px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,0.05) 0 2px, transparent 2px),
    #c9a25e;
  background-size: 26px 26px, 32px 32px, auto;
  color: #2b2117;
}
.theme-ratliff .d-stamp {
  text-align: center; padding: 1.25rem 1rem 0;
}
.theme-ratliff .d-stamp span {
  display: inline-block;
  font-family: 'Courier New', monospace; font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: #b03a2e; border: 3px solid #b03a2e; border-radius: 6px;
  padding: 0.35rem 1rem; transform: rotate(-3deg); opacity: 0.85;
}
.theme-ratliff .d-inner { font-family: 'Courier New', Courier, monospace; }
.theme-ratliff .d-kicker { color: #8a3024; }
.theme-ratliff .d-title {
  font-family: 'Courier New', monospace; font-weight: 700;
  font-size: clamp(1.6rem, 4.6vw, 2.6rem); color: #241b12; line-height: 1.12;
}
.theme-ratliff .d-byline { color: #5a4a35; }
/* pinned index cards */
.theme-ratliff .card {
  position: relative;
  background: #fdfaf2;
  color: #2b2117;
  border-radius: 3px;
  padding: 1.4rem 1.5rem 1.25rem;
  margin: 1.75rem 0;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  transform: rotate(-0.5deg);
}
.theme-ratliff .card:nth-child(even) { transform: rotate(0.6deg); }
.theme-ratliff .card::before { /* push pin */
  content: ""; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff6b5e, #b03a2e);
  box-shadow: 0 2px 3px rgba(0,0,0,0.4);
}
.theme-ratliff .card h3 {
  font-family: 'Courier New', monospace; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #b03a2e;
  margin-bottom: 0.6rem;
}
.theme-ratliff .card p {
  font-family: Georgia, serif; font-size: 1rem; line-height: 1.75; margin-bottom: 0.85rem;
}
.theme-ratliff .card p:last-child { margin-bottom: 0; }
.theme-ratliff .d-pull {
  font-family: Georgia, serif; font-style: italic; font-size: 1.2rem;
  line-height: 1.55; color: #fdfaf2; background: #2b2117;
  padding: 1.2rem 1.4rem; border-radius: 4px; border-left: 5px solid #b03a2e;
}
.theme-ratliff .d-tune {
  margin-top: 1.75rem; text-align: center;
  font-family: 'Courier New', monospace; font-size: 0.85rem; letter-spacing: 0.08em;
  color: #5a4a35; text-transform: uppercase;
}

/* ---------- Hire CTA band ---------- */
.writing-cta {
  margin-top: var(--spacing-xl);
  text-align: center;
  border: 2px solid var(--color-link);
  border-radius: 12px;
  padding: var(--spacing-lg);
}
.writing-cta h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.writing-cta p {
  max-width: 520px; margin: 0 auto var(--spacing-md);
  font-size: 1.05rem; opacity: 0.9;
}
.writing-cta .cta-row {
  display: flex; flex-wrap: wrap; gap: var(--spacing-sm); justify-content: center;
}
.writing-cta .btn-primary {
  display: inline-block; padding: 0.85rem 2rem; font-weight: 600;
  color: var(--color-bg); background: var(--color-link); border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); transition: all 0.25s ease;
}
.writing-cta .btn-primary:hover {
  color: var(--color-bg); background: var(--color-link-hover);
  transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.writing-cta .btn-ghost {
  display: inline-block; padding: 0.85rem 2rem; font-weight: 600;
  color: var(--color-link); border: 2px solid var(--color-link); border-radius: 8px;
  transition: all 0.25s ease;
}
.writing-cta .btn-ghost:hover {
  background: var(--color-link); color: var(--color-bg); transform: translateY(-2px);
}

/* ---------- Minimal standalone footer ---------- */
.writing-foot {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--spacing-lg) var(--content-padding) var(--spacing-xl);
  text-align: center;
  border-top: 1px solid rgba(128, 128, 128, 0.25);
}
.writing-foot p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.6;
}
.writing-foot .to-top {
  display: inline-block;
  margin-top: var(--spacing-md);
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--color-link);
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.writing-foot .to-top:hover,
.writing-foot .to-top:focus-visible {
  color: var(--color-bg);
  background: var(--color-link);
  border-color: var(--color-link);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .theme-coogan .d-pull,
  .theme-ratliff .card,
  .theme-ratliff .d-stamp span { transform: none; }
}
