/* davidridd.com
   Layout: short pages with one reading measure for prose, a wider bleed for the
   book, thin hairlines as breaks, and the bold lowercase-with-period section
   labels carried over from Ridd's portfolio.
   Palette: Ridd's own charcoal and cream, with a burnt-orange accent.
   To change the accent, edit --accent and --accent-2 below; nothing else. */

@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #272624;
  --bg-2: #211f1d;
  --ink: #edebe6;
  --ink-2: #b6b2aa;
  --ink-3: #98948b;
  --rule: #3a3834;
  --accent: #e2833a;
  --accent-2: #f0a065;
  --accent-ink: #1d1c1a;
  --sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 5vw, 48px);
  --measure: 62ch;
  --nav-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--accent); }
a:hover { color: var(--accent-2); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
em, i { font-style: italic; }
strong { font-weight: 600; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.measure { max-width: var(--measure); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: .6em 1em; border-radius: 4px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Type roles ---------- */
.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.sec-title {
  font-size: clamp(2.6rem, 1.6rem + 3vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.sec-title .dot { color: var(--accent); }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); font-weight: 400; }
.muted { color: var(--ink-2); }
.small { font-size: .9375rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: .95em 1.35em; border-radius: 4px; text-decoration: none;
  border: 1px solid transparent; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink-3); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.arrow-link { font-weight: 600; text-decoration: none; color: var(--accent-2); }
.arrow-link::after { content: " \2192"; }
.arrow-link:hover { text-decoration: underline; color: var(--ink); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(39, 38, 36, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  color: var(--ink); text-decoration: none;
  font-weight: 700; letter-spacing: .18em; font-size: .9375rem; text-transform: uppercase;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 26px; height: 26px; color: var(--ink); flex: none; }
.brand small { font-weight: 500; letter-spacing: .14em; font-size: .6875rem; color: var(--ink-3); margin-left: .25rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .5em; }
.nav-links .btn { padding: .6em 1em; font-size: .9rem; }
.nav-links a.btn-primary { color: var(--accent-ink); }
.nav-links a.btn-primary:hover { color: var(--accent-ink); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule); color: var(--ink);
  width: 42px; height: 42px; border-radius: 4px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .2s ease, opacity .2s ease; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1rem;
  }
  .nav-links li { border-top: 1px solid var(--rule); }
  .nav-links li:first-child { border-top: 0; }
  .nav-links a { display: block; padding: .9rem 0; font-size: 1.05rem; }
  .nav-links a[aria-current="page"] { text-decoration: none; color: var(--accent-2); }
  .nav-links .btn { margin-top: .75rem; justify-content: center; text-align: center; }
  .nav-links li.cta { border-top: 0; }
  .site-header[data-open="true"] .nav-links { display: flex; }
  .site-header[data-open="true"] .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-header[data-open="true"] .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header[data-open="true"] .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Sections ---------- */
section { padding-block: clamp(3.5rem, 6vw, 5rem); }
section.tint { background: var(--bg-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
section.tint + section.tint { border-top: 0; }
.sec-head { display: grid; gap: .75rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec-head .lead { max-width: var(--measure); margin-top: .25rem; }
.sec-head .row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; }
.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) 0; }
.page-head .sec-head { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 4vw, 3.5rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.hero-text { border-left: 1px solid var(--ink-3); padding-left: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: 1.4rem; min-width: 0; }
.hero h1 {
  font-size: clamp(2.5rem, 1.3rem + 4.2vw, 4.3rem);
  letter-spacing: -0.03em; line-height: 1.02;
}
.hero h1 .hl { color: var(--accent); }
.hero .lead { max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem 1.25rem; align-items: center; }
.hero-photo { margin: 0; justify-self: end; width: min(100%, 420px); min-width: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 4px; }
.hero-photo figcaption { margin-top: .75rem; font-size: .8125rem; color: var(--ink-3); letter-spacing: .06em; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; justify-self: start; width: min(100%, 300px); }
  .hero-photo img { aspect-ratio: 1 / 1; object-position: 50% 25%; }
}

/* Proof strip */
.proof {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem;
  border-top: 1px solid var(--rule); padding-top: 1.75rem;
}
.proof div { display: grid; gap: .25rem; align-content: start; min-width: 0; }
.proof dt { font-size: 2rem; font-weight: 600; line-height: 1; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.proof dd { margin: 0; font-size: .875rem; color: var(--ink-2); }
@media (max-width: 720px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.clients { margin-top: 1.75rem; font-size: .9375rem; color: var(--ink-2); line-height: 1.8; }
.clients span { display: inline-block; margin-right: .75rem; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Book ---------- */
.book-grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.book-cover { margin: 0; width: min(100%, 360px); justify-self: center; }
.book-cover-sticky { position: sticky; top: calc(var(--nav-h) + 2rem); }
.book-cover img { width: 100%; border-radius: 3px; box-shadow: 0 40px 70px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.05); }
.book-body { display: grid; gap: 1.25rem; min-width: 0; }
.book-title { font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.2rem); line-height: 1.02; letter-spacing: -0.03em; }
.book-sub { font-size: 1.2rem; color: var(--ink-2); line-height: 1.4; font-weight: 400; }
.book-meta { display: grid; gap: .25rem; font-size: .9375rem; color: var(--ink-2); }
.book-meta strong { color: var(--ink); font-weight: 600; }
.book-meta .credit em { color: var(--accent-2); font-style: normal; font-weight: 600; }
.epigraph {
  border-left: 2px solid var(--accent); padding-left: 1.1rem; margin: 0;
  font-size: 1.3rem; line-height: 1.4; color: var(--ink); font-weight: 500; letter-spacing: -0.01em;
}
.epigraph cite { display: block; margin-top: .5rem; font-style: normal; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.epigraph cite a { color: var(--ink-3); }
.epigraph cite a:hover { color: var(--accent-2); }
.verdict { margin-top: clamp(2rem, 4vw, 3rem); max-width: 60rem; }
.book-actions { display: flex; flex-wrap: wrap; gap: .8rem 1.25rem; align-items: center; margin-top: .25rem; }
.book-teaser .book-cover { width: min(100%, 280px); }
@media (max-width: 820px) {
  .book-grid { grid-template-columns: 1fr; }
  .book-cover, .book-teaser .book-cover { justify-self: start; width: min(100%, 240px); }
  .book-cover-sticky { position: static; }
}

/* Case-study list on the book page */
.checklist { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2.5rem; max-width: 60rem; }
.checklist li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .75rem; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: .9rem; }
.checklist li::before { content: "\2014"; color: var(--accent); font-weight: 600; }
.checklist strong { color: var(--ink); display: block; font-weight: 600; }
@media (max-width: 720px) { .checklist { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.service { border-top: 1px solid var(--ink-3); padding-top: 1.4rem; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: .9rem; align-content: start; min-width: 0; transition: border-color .25s ease; }
.service:hover, .service:focus-within { border-top-color: var(--accent); }
.s-icon { display: block; width: 42px; height: 42px; color: var(--ink-3); transition: color .25s ease, transform .25s ease; }
.s-icon svg { width: 100%; height: 100%; display: block; }
.service:hover .s-icon, .service:focus-within .s-icon { color: var(--accent); transform: translateY(-3px); }
.service h2, .service h3 { font-size: 1.6rem; }
.service p { color: var(--ink-2); }
.service .price { font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.service .price span { color: var(--accent-2); }
.avail { display: inline-flex; align-items: center; gap: .55rem; font-size: .875rem; font-weight: 500; color: var(--ink); }
.avail::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(226, 131, 58, .22); flex: none; animation: avail-pulse 2.4s ease-out infinite; }
@keyframes avail-pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 131, 58, .55); }
  70% { box-shadow: 0 0 0 8px rgba(226, 131, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 131, 58, 0); }
}
.service .body { display: grid; gap: .9rem; align-content: start; }
.service .avail { margin-top: -.2rem; }
.services-note { margin-top: 2.5rem; color: var(--ink-2); max-width: var(--measure); }
@media (max-width: 820px) { .services { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; list-style: none; }
.steps li { display: grid; gap: .5rem; align-content: start; min-width: 0; border-top: 1px solid var(--rule); padding-top: 1.2rem; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 1.25rem; font-weight: 600; color: var(--accent); line-height: 1; letter-spacing: .04em;
}
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--ink-2); font-size: .9875rem; }
@media (max-width: 820px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Application (apply page) ---------- */
.prompts { list-style: none; counter-reset: q; display: grid; gap: 0; max-width: 60rem; border-top: 1px solid var(--rule); }
.prompts li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.prompts li::before { counter-increment: q; content: counter(q, decimal-leading-zero); color: var(--accent); font-weight: 600; font-size: .9375rem; letter-spacing: .06em; padding-top: .15rem; }
.prompts strong { color: var(--ink); font-weight: 600; }
.apply-actions { display: flex; flex-wrap: wrap; gap: .8rem 1.25rem; align-items: center; margin-top: 2rem; }
.apply-note { margin-top: 1rem; max-width: var(--measure); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem 1.25rem; align-items: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; max-width: 60rem; border-top: 1px solid var(--rule); }
.faq div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: .5rem 2.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.faq h2, .faq h3 { font-size: 1.15rem; font-weight: 600; }
.faq p { color: var(--ink-2); }
@media (max-width: 720px) { .faq div { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
section.quotes { padding-block: clamp(2.5rem, 5vw, 4rem); }
.carousel { display: grid; gap: 1.5rem; justify-items: center; }
.slides { display: grid; width: 100%; }
.js .slides { overflow: hidden; transition: height .35s ease; }
.slides .quote { grid-area: 1 / 1; align-self: start; transition: opacity .45s ease; }
.js .slides .quote:not(.is-active) { opacity: 0; visibility: hidden; pointer-events: none; }
.no-js .slides { gap: 3rem; }
.no-js .slides .quote { grid-area: auto; }
.carousel-nav { display: none; align-items: center; gap: 1.25rem; }
.js .carousel-nav[data-count]:not([data-count="1"]) { display: flex; }
.c-btn { background: none; border: 1px solid var(--rule); color: var(--ink-2); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; display: grid; place-items: center; transition: border-color .15s ease, color .15s ease; }
.c-btn:hover { border-color: var(--accent); color: var(--accent-2); }
.dots { display: flex; gap: .1rem; }
.dots button { width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rule); transition: background-color .15s ease, transform .15s ease; }
.dots button[aria-selected="true"]::before { background: var(--accent); transform: scale(1.2); }
.dots button:hover::before { background: var(--ink-3); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.quote { max-width: 62ch; margin: 0 auto; text-align: center; display: grid; gap: 1rem; justify-items: center; }
.quote .mark { font-size: 3.5rem; line-height: .45; color: var(--accent); font-weight: 700; }
.quote blockquote { margin: 0; font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); line-height: 1.55; font-weight: 400; text-wrap: pretty; }
.quote figcaption { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.quote figcaption em { font-style: italic; text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--ink); font-weight: 500; }
.quote figcaption a { color: var(--ink); text-decoration: none; }
.quote figcaption a:hover { color: var(--accent-2); text-decoration: underline; }

/* ---------- Work ---------- */
/* ---------- The shelf (Work page) ---------- */
.shelf { list-style: none; display: flex; flex-wrap: wrap; gap: 3rem 1.5rem; padding: 1rem .75rem 0; margin: 0 -.75rem; }
.shelf li { position: relative; flex: none; width: calc(20% - 1.2rem); }
.shelf li::after { content: ""; position: absolute; left: -.75rem; right: -.75rem; top: 260px; height: 2px; background: var(--ink-3); }
.shelf a { display: grid; grid-template-rows: 260px auto; gap: 1rem; text-decoration: none; color: var(--ink-2); }
.shelf .cover { position: relative; z-index: 1; align-self: end; justify-self: center; max-height: 260px; max-width: 100%; width: auto; height: auto; display: block; border-radius: 2px; box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .7); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease; }
.shelf picture.cover img { max-height: 260px; max-width: 100%; width: auto; height: auto; display: block; border-radius: 2px; }
.shelf .cover-plain { height: 260px; }
.shelf .cover-plain { width: 100%; display: grid; align-content: end; gap: .4rem; padding: 1rem .9rem; background: linear-gradient(90deg, #3b3934 0, #46433d 9px, #2f2d2a 11px, #34322e 100%); border: 1px solid var(--rule); color: var(--ink); }
.shelf .cover-plain .t { font-weight: 700; font-size: .95rem; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.shelf .cover-plain .a { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.shelf a:hover .cover, .shelf a:focus-visible .cover { transform: translateY(-12px) rotate(-1.5deg); box-shadow: 0 26px 32px -12px rgba(0, 0, 0, .75); }
.shelf .cap { font-size: .875rem; line-height: 1.35; }
.shelf .cap strong { display: block; color: var(--ink); font-weight: 600; transition: color .2s ease; }
.shelf .cap .role { display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: .2rem 0 .15rem; }
.shelf a:hover .cap strong, .shelf a:focus-visible .cap strong { color: var(--accent-2); }
@media (prefers-reduced-motion: reduce) { .shelf a:hover .cover, .shelf a:focus-visible .cover { transform: none; } }
@media (max-width: 640px) { .shelf { gap: 2.25rem 1rem; } .shelf li { width: calc(50% - .5rem); } .shelf li::after { left: -.5rem; right: -.5rem; } }

.work { list-style: none; border-top: 1px solid var(--rule); }
.work li {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: .5rem 2.5rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--rule);
}
.work .role { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding-top: .3rem; }
.work h2 { font-size: 1.35rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.work h2 span { font-size: .9375rem; color: var(--ink-2); font-style: normal; font-weight: 400; display: block; margin-top: .3rem; letter-spacing: 0; }
.work p { color: var(--ink-2); margin-top: .55rem; max-width: var(--measure); }
.work h2 a { color: var(--ink); text-decoration: none; }
.work h2 a::after { content: " \2197"; font-size: .7em; color: var(--accent); font-style: normal; }
.work h2 a:hover { color: var(--accent-2); text-decoration: underline; }
@media (max-width: 720px) { .work li { grid-template-columns: 1fr; gap: .35rem; } }

/* ---------- Own writing ---------- */
.writing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.writing > div { border-top: 1px solid var(--ink-3); padding-top: 1.4rem; display: grid; gap: .8rem; align-content: start; min-width: 0; }
.writing h3 { font-size: 1.6rem; }
.writing .tag { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.writing p { color: var(--ink-2); }
.story-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem .75rem; font-size: 1.15rem; font-weight: 500; font-style: italic; }
.story-list li + li::before { content: "\00B7"; color: var(--accent); margin-right: .75rem; font-style: normal; }
@media (max-width: 720px) { .writing { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-text { display: grid; gap: 1.1rem; max-width: var(--measure); min-width: 0; }
.about-text p { color: var(--ink-2); }
.about-text p:first-of-type { color: var(--ink); font-size: 1.15rem; }
.about-side { display: grid; gap: 1.5rem; }
.about-side img { width: min(100%, 320px); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 4px; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); font-size: .9375rem; }
.facts dt { color: var(--accent); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding-top: .2rem; }
.facts dd { margin: 0; color: var(--ink); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-inner { display: grid; gap: 1.5rem; justify-items: center; max-width: 46rem; margin-inline: auto; }
.contact h1, .contact h2 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); letter-spacing: -0.03em; line-height: 1.02; }
.contact .lead { max-width: 44ch; }
.contact-email { font-size: 1.05rem; }
.contact-email a { font-weight: 600; }
.socials { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; margin-top: .5rem; }
.socials a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.socials a:hover { color: var(--ink); }
.expect { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; text-align: left; max-width: 60rem; margin-inline: auto; }
.expect li { border-top: 1px solid var(--rule); padding-top: 1rem; color: var(--ink-2); }
.expect strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: .25rem; }
@media (max-width: 720px) { .expect { grid-template-columns: 1fr; } }

/* CTA band (every page except contact) */
.cta-band { background: var(--bg-2); border-top: 1px solid var(--rule); padding-block: clamp(3rem, 7vw, 5rem); text-align: center; }
.cta-band .inner { display: grid; gap: 1.1rem; justify-items: center; max-width: 42rem; margin-inline: auto; }
.cta-band h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); letter-spacing: -0.025em; }
.cta-band p { color: var(--ink-2); }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1.25rem; align-items: center; margin-top: .4rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 2.5rem; font-size: .875rem; color: var(--ink-3); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.footer-grid .brand { font-size: .8125rem; }
.site-footer p { margin: 0; }
.site-footer .tag { color: var(--ink-2); font-size: 1rem; font-weight: 500; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-links a { color: var(--ink-3); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
