/* =========================================================================
   RONYN GRAVES — styles.css
   One stylesheet for the whole site. Organised in numbered sections:

     01  Tokens (colours, type, spacing) — edit here to change the brand
     02  Reset & base
     03  Typography
     04  Surfaces & texture (leather, ink, paper)
     05  The thread (hairline + dot: the site's signature ornament)
     06  Links, buttons, focus
     07  Header & navigation
     08  Hero
     09  Sections & layout
     10  Writing entries (index + archive)
     11  Fragments
     12  Projects
     13  Article / reading pages
     14  About
     15  Contact & forms
     16  Footer
     17  404
     18  Motion & reveals
     19  Utilities
     20  Print

   Nothing here is generated. Plain CSS, no build step.
   ========================================================================= */

/* 01 ─────────────────────────────────────────────  TOKENS  */

:root {
  /* Colour — taken from the business card */
  --oxblood:        #4b090c;
  --oxblood-lit:    #63161a;
  --burgundy-dark:  #280406;
  --near-black:     #090707;
  --charcoal:       #191617;
  --charcoal-soft:  #211d1e;
  --silver:         #b8b7b5;
  --silver-bright:  #e4e2df;
  --bone:           #ddd6cb;

  /* Derived, semantic */
  --surface:        var(--near-black);
  --surface-raised: var(--charcoal);
  --text:           #cfc8bd;          /* warm off-white body text        */
  --text-strong:    var(--bone);
  --text-quiet:     #8e8781;          /* metadata; 4.6:1 on --near-black */
  --hairline:       rgba(184, 183, 181, 0.16);
  --hairline-soft:  rgba(184, 183, 181, 0.09);

  /* Type */
  --font-display: "Cormorant Garamond", "Apple Garamond", Garamond, "Times New Roman", serif;
  --font-read:    "Newsreader", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-ui:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step-eyebrow: 0.6875rem;                              /* 11px caps    */
  --step-meta:    0.75rem;                                /* 12px         */
  --step-body:    clamp(1.0625rem, 0.99rem + 0.34vw, 1.1875rem);
  --step-read:    clamp(1.125rem, 1.05rem + 0.36vw, 1.28rem);
  --step-lead:    clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem);
  --step-h3:      clamp(1.35rem, 1.15rem + 0.9vw, 1.8rem);
  --step-h2:      clamp(1.9rem, 1.4rem + 2.1vw, 3rem);
  --step-h1:      clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem);
  --step-huge:    clamp(4rem, 2rem + 12vw, 11rem);

  --tracking-caps: 0.18em;
  --leading-read:  1.72;

  /* Layout */
  --content-width: 1200px;
  --reading-width: 42rem;      /* ~700px at 16px root — prose measure */
  --gutter:        clamp(1.25rem, 5vw, 4rem);

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.875rem;
  --space-sm:  1.375rem;
  --space-md:  2.25rem;
  --space-lg:  3.5rem;
  --space-xl:  5.5rem;
  --space-2xl: clamp(5rem, 12vh, 9rem);
  --space-3xl: clamp(7rem, 18vh, 13rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --slow: 900ms;
  --med:  460ms;
  --fast: 220ms;

  --nav-h: 3.9rem;
  --nav-gap: clamp(1.1rem, 2.2vw, 2rem);
  color-scheme: dark;
}

/* 02 ─────────────────────────────────────────────  RESET & BASE  */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--near-black);
  color: var(--text);
  font-family: var(--font-read);
  font-size: var(--step-body);
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
/* Author display rules outrank the hidden attribute; this puts it back. */
[hidden] { display: none !important; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(75, 9, 12, 0.9); color: var(--silver-bright); }

/* 03 ─────────────────────────────────────────────  TYPOGRAPHY  */

.display,
h1, h2 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: 0.005em;
  color: var(--text-strong);
}

h1 { font-size: var(--step-h1); }
h2 { font-size: var(--step-h2); }

h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-h3);
  line-height: 1.18;
  color: var(--text-strong);
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--step-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-quiet);
  margin: 0;
}

.meta {
  font-family: var(--font-ui);
  font-size: var(--step-meta);
  letter-spacing: 0.06em;
  color: var(--text-quiet);
}

.lead {
  font-family: var(--font-display);
  font-size: var(--step-lead);
  font-weight: 300;
  line-height: 1.42;
  color: var(--text-strong);
}

.prose p + p { margin-top: 1.35em; }

.quiet { color: var(--text-quiet); }
em, i { font-style: italic; }

/* 04 ─────────────────────────────────────────────  SURFACES & TEXTURE  */

/* Leather: colour + light are CSS; the grain is one 14 KB seamless tile.  */
.leather {
  position: relative;
  isolation: isolate;
  background-color: var(--oxblood);
  background-image:
    radial-gradient(120% 90% at 22% 6%, rgba(150, 48, 48, 0.20) 0%, rgba(150, 48, 48, 0) 52%),
    radial-gradient(90% 80% at 82% 96%, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 62%),
    linear-gradient(168deg, #4f0e11 0%, #430b0e 34%, #2e0608 74%, #1b0304 100%);
  color: var(--bone);
}
.leather::before {                       /* grain */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/leather-grain.webp");
  background-size: 148px 148px;
  mix-blend-mode: soft-light;
  opacity: 0.28;
  pointer-events: none;
  z-index: -1;
}
.leather::after {                        /* vignette + edge falloff */
  content: "";
  position: absolute;
  inset: 0;
  background:
    var(--edge-t, none),
    var(--edge-b, none),
    radial-gradient(118% 88% at 50% 40%, rgba(0, 0, 0, 0) 36%, rgba(0, 0, 0, var(--vignette, 0.72)) 100%);
  pointer-events: none;
  z-index: -1;
}
.leather :where(h1, h2, h3) { color: var(--silver-bright); }

/* The bevelled edge where leather meets ink — like the edge of the card.
   Delivered as extra background layers so it never collides with the
   vignette painted on the same pseudo-element. */
.edge-top {
  --edge-t: linear-gradient(90deg, rgba(184,183,181,0) 0%, rgba(184,183,181,0.28) 18%,
    rgba(228,226,223,0.55) 50%, rgba(184,183,181,0.28) 82%, rgba(184,183,181,0) 100%)
    left top / 100% 1px no-repeat;
}
.edge-bottom {
  --edge-b: linear-gradient(90deg, rgba(184,183,181,0) 0%, rgba(184,183,181,0.28) 18%,
    rgba(228,226,223,0.55) 50%, rgba(184,183,181,0.28) 82%, rgba(184,183,181,0) 100%)
    left bottom / 100% 1px no-repeat;
}

/* Photographic leather (graphics pack). These files already carry their own
   grain and lighting, so the procedural tile is switched off underneath. */
.leather--photo {
  --vignette: 0.42;
  --leather-photo: url("../images/footer-leather.webp");
  background-image: var(--leather-photo);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.leather--photo::before { display: none; }

.hero { --leather-photo: url("../images/hero-leather-desktop.webp"); }
@media (max-width: 43.75em) {
  .hero { --leather-photo: url("../images/hero-leather-mobile.webp"); }
}
.site-footer { --leather-photo: url("../images/footer-leather.webp"); --vignette: 0.3; }

.ink { background-color: var(--near-black); }
.ink-raised { background-color: var(--charcoal); }

/* A whisper of paper grain over content areas. Pure CSS, no request. */
.grain-fine { position: relative; isolation: isolate; }
.grain-fine::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.14;
  pointer-events: none;
  background-image: url("../images/paper-dark.webp");
  background-size: 320px 320px;
  mix-blend-mode: screen;
}

/* 05 ─────────────────────────────────────────────  THE THREAD  */
/* The card's long horizontal stroke ending in a dot with a few trailing
   particles. It is the structural device of the whole site: dividers,
   hovers, active states, footer. */

.thread {
  position: relative;
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg,
    rgba(184, 183, 181, 0) 0%,
    rgba(184, 183, 181, 0.34) 35%,
    rgba(228, 226, 223, 0.62) 78%,
    rgba(228, 226, 223, 0.62) 88%,
    rgba(184, 183, 181, 0) 100%);
}
.thread::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--silver-bright);
  box-shadow:
    10px 0 0 -1.2px rgba(228, 226, 223, 0.55),
    20px 0 0 -1.6px rgba(228, 226, 223, 0.32),
    31px 0 0 -1.8px rgba(228, 226, 223, 0.18);
}
.thread--center { margin-inline: auto; max-width: 22rem; }
.thread--short { max-width: 9rem; }

/* ── Silver sumi ink ──────────────────────────────────────────────────────
   Eight brushed strokes plus a splatter, used as punctuation: section
   endings, rules under headings, one quiet mark in the footer. Rotate them;
   never stack two large strokes in the same view. Opacity stays between
   .25 and .65 so a stroke never outweighs the text beside it. */

.rule-ink {
  display: block;
  border: 0;
  width: 100%;
  height: clamp(1.5rem, 3.2vw, 2.75rem);
  margin: 0;
  background-image: var(--ink);
  background-position: center;
  background-size: 100% auto;
  background-repeat: no-repeat;
  opacity: var(--ink-o, 0.45);
}
.ink-01 { --ink: url("../images/ink/stroke-01.png"); --ink-o: 0.5; }
.ink-02 { --ink: url("../images/ink/stroke-02.png"); }
.ink-03 { --ink: url("../images/ink/stroke-03.png"); --ink-o: 0.4; }
.ink-04 { --ink: url("../images/ink/stroke-04.png"); --ink-o: 0.38; }
.ink-05 { --ink: url("../images/ink/stroke-05.png"); --ink-o: 0.35; }
.ink-06 { --ink: url("../images/ink/stroke-06.png"); --ink-o: 0.3; }
.ink-07 { --ink: url("../images/ink/stroke-07.png"); --ink-o: 0.42; }
.ink-08 { --ink: url("../images/ink/stroke-08.png"); --ink-o: 0.38; }

.rule-ink--short { max-width: 22rem; margin-inline: 0; }

/* A scatter of dry ink, used once, on the fragments page only. */
.ink-splatter {
  display: block;
  width: min(100%, 26rem);
  aspect-ratio: 1500 / 500;
  background: url("../images/ink/splatter.png") center / contain no-repeat;
  opacity: 0.3;
}

/* On the paper reading surface silver would disappear, so the same stroke
   is inverted into dark ink on bone. */
body[data-surface="paper"] .article-main .rule-ink {
  filter: invert(1) brightness(0.4);
  opacity: 0.5;
}

/* ── Atmospheric bands ────────────────────────────────────────────────────
   Section and article headers are backgrounds only: every title, category
   and date stays in HTML. The band dissolves downward into the page. */

.band {
  position: relative;
  width: 100%;
  aspect-ratio: 1800 / 360;
  max-height: clamp(6rem, 13vw, 10.5rem);
  overflow: hidden;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.band img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(9, 7, 7, 0.5) 0%,
    rgba(9, 7, 7, 0.12) 38%,
    rgba(9, 7, 7, 0.8) 88%,
    var(--near-black) 100%);
}
.band--article {
  aspect-ratio: 1600 / 600;
  max-height: clamp(7rem, 17vw, 14rem);
  margin-bottom: 0;
}
/* Three of the supplied fields carry a signature in their lower half. Crop
   above it, so the mark is not repeated on page after page. */
.band--crop { max-height: clamp(4.5rem, 10vw, 8rem); }
.band--crop img { object-position: center top; }

/* 06 ─────────────────────────────────────────────  LINKS, BUTTONS, FOCUS  */

a { color: inherit; text-decoration: none; }

/* Text link: a silver rule draws left to right, then the dot arrives. */
.link {
  position: relative;
  display: inline-block;
  color: var(--text-strong);
  /* Padding is weighted upward so the touch target clears 24px without
     pushing the underline away from the words. */
  padding-top: 0.4em;
  padding-bottom: 0.22em;
}
.link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  opacity: 0.28;
  transform: scaleX(1);
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--silver-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--med) var(--ease);
}
.link:hover::after,
.link:focus-visible::after { transform: scaleX(1); }

/* Understated call to action — behaves like opening a book, not a button. */
.cta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.85rem;
  font-family: var(--font-ui);
  font-size: var(--step-meta);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--silver-bright);
  padding: 0.55rem 0;
  min-height: 44px;
}
.cta__line {
  display: inline-block;
  position: relative;
  width: 2.75rem;
  height: 1px;
  background: rgba(228, 226, 223, 0.45);
  transition: width var(--med) var(--ease), background var(--med) var(--ease);
}
.cta__line::after {
  content: "";
  position: absolute;
  right: 0;
  top: -1.5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--silver-bright);
  opacity: 0;
  transition: opacity var(--med) var(--ease);
}
.cta:hover .cta__line,
.cta:focus-visible .cta__line { width: 4.5rem; background: rgba(228, 226, 223, 0.8); }
.cta:hover .cta__line::after,
.cta:focus-visible .cta__line::after { opacity: 1; }

.button {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--step-meta);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--silver-bright);
  background: transparent;
  border: 1px solid rgba(184, 183, 181, 0.32);
  border-radius: 0;
  padding: 0.95rem 1.9rem;
  min-height: 48px;
  cursor: pointer;
  transition: border-color var(--med) var(--ease), background var(--med) var(--ease), color var(--med) var(--ease);
}
.button:hover,
.button:focus-visible {
  border-color: rgba(228, 226, 223, 0.75);
  background: rgba(184, 183, 181, 0.06);
}

:focus-visible {
  outline: 1px solid var(--silver-bright);
  outline-offset: 4px;
  border-radius: 1px;
}
body[data-surface="paper"] .article-main :focus-visible { outline-color: var(--burgundy-dark); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  background: var(--burgundy-dark);
  color: var(--silver-bright);
  font-family: var(--font-ui);
  font-size: var(--step-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--hairline);
}
.skip-link:focus { top: 1rem; }

/* 07 ─────────────────────────────────────────────  HEADER & NAV  */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.site-header::before {                    /* leather washes in on scroll */
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(21, 3, 4, 0.88);
  background-image:
    linear-gradient(rgba(21, 3, 4, 0.86), rgba(21, 3, 4, 0.86)),
    url("../images/leather-grain.webp");
  background-size: auto, 130px 130px;
  background-blend-mode: normal, soft-light;
  -webkit-backdrop-filter: blur(9px) saturate(120%);
  backdrop-filter: blur(9px) saturate(120%);
  opacity: 0;
  transition: opacity var(--med) var(--ease);
  pointer-events: none;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,183,181,0.28) 50%, transparent);
  opacity: 0;
  transition: opacity var(--med) var(--ease);
}
.site-header.is-scrolled::before,
.site-header.is-scrolled::after { opacity: 1; }
.site-header.is-open::before { opacity: 1; }

.site-header__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--gutter), var(--content-width));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  transition: opacity var(--slow) var(--ease);
}
.brand__name {
  font-family: var(--font-ui);
  font-size: var(--step-eyebrow);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--silver);
}
.brand:hover .brand__name { color: var(--silver-bright); }
/* On the homepage the hero already says who this is, so the mark waits
   until the reader has scrolled past it. Only applied when JS can undo it. */
.js .home .brand { opacity: 0; pointer-events: none; }
.js .home .site-header.is-scrolled .brand { opacity: 1; pointer-events: auto; }
.js .home .brand:focus-visible { opacity: 1; pointer-events: auto; }

.nav { display: flex; align-items: center; }
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Thin rules between items, as on the brand board. */
@media (min-width: 43.8125em) {
  .nav__item { position: relative; }
  .nav__item + .nav__item::before {
    content: "";
    position: absolute;
    left: calc(var(--nav-gap) / -2);
    top: 50%;
    width: 1px;
    height: 0.8rem;
    margin-top: -0.4rem;
    background: rgba(184, 183, 181, 0.26);
  }
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-ui);
  font-size: var(--step-eyebrow);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color var(--fast) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.85rem;
  height: 1px;
  width: 100%;
  background: var(--silver-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--med) var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--silver-bright); }
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--silver-bright); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); opacity: 0.5; }

.nav__toggle { display: none; }

/* Mobile navigation */
@media (max-width: 43.75em) {
  .js .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    min-height: 44px;
    min-width: 44px;
    padding: 0 0 0 1rem;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: var(--step-eyebrow);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--silver);
  }
  .nav__bars { display: block; width: 22px; height: 9px; position: relative; }
  .nav__bars::before,
  .nav__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform var(--med) var(--ease), opacity var(--fast) linear;
  }
  .nav__bars::before { top: 0; }
  .nav__bars::after { bottom: 0; }
  [aria-expanded="true"] .nav__bars::before { transform: translateY(4px) rotate(45deg); }
  [aria-expanded="true"] .nav__bars::after { transform: translateY(-4px) rotate(-45deg); }

  .js .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    display: block;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background-color: rgba(20, 3, 4, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: max-height var(--med) var(--ease), visibility 0s linear var(--med);
  }
  .js .site-header.is-open .nav { max-height: 22rem; visibility: visible; transition-delay: 0s; }
  .js .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-sm) var(--gutter) var(--space-md);
  }
  .js .nav__item { width: 100%; border-top: 1px solid var(--hairline-soft); }
  .js .nav__item:first-child { border-top: 0; }
  .js .nav__link { width: 100%; min-height: 52px; font-size: 0.8125rem; }
  .js .nav__link::after { bottom: 1.1rem; }

  /* No JavaScript: the links simply sit under the brand. Still usable. */
  .nav__list { flex-wrap: wrap; gap: 0.9rem 1.1rem; }
}

/* 08 ─────────────────────────────────────────────  HERO  */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + var(--space-lg)) var(--gutter) var(--space-xl);
  text-align: center;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 46rem;
  /* Slightly off-centre: the signature sits where a hand would place it. */
  transform: translateX(-2%);
}
.hero__signature {
  position: relative;
  width: min(74vw, 820px);
  margin: 0 auto;
  aspect-ratio: 1041 / 407;
}
.hero__signature img {
  width: 100%;
  height: auto;
  /* Ink sitting on the surface, not metal floating above it. */
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
}
@media (max-width: 43.75em) {
  .hero__signature { width: min(90vw, 620px); }
}
/* STORIES · POEMS · FRAGMENTS — small caps, widely tracked, quiet. */
.hero__eyebrow {
  --dot-gap: clamp(0.9rem, 3vw, 2.1rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: var(--dot-gap);
  margin: clamp(1.75rem, 4.5vh, 3rem) 0 0;
  font-family: var(--font-ui);
  font-size: clamp(0.6875rem, 0.62rem + 0.28vw, 0.8125rem);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: rgba(228, 226, 223, 0.82);
}
.hero__eyebrow span { position: relative; }
.hero__eyebrow span + span::before {
  content: "";
  position: absolute;
  left: calc(var(--dot-gap) / -2);
  top: 0.72em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
}
.hero__statement {
  margin: clamp(0.9rem, 2.2vh, 1.5rem) auto 0;
  max-width: 34rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 0.92rem + 0.55vw, 1.3rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(233, 227, 219, 0.76);
}

/* A hairline descends from the tagline to the way in. */
.hero__enter {
  margin-top: clamp(1.75rem, 4.5vh, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 2vh, 1.35rem);
}
.hero__drop {
  display: block;
  position: relative;
  width: 1px;
  height: clamp(2.25rem, 6vh, 3.5rem);
  background: linear-gradient(180deg, rgba(228, 226, 223, 0) 0%, rgba(228, 226, 223, 0.45) 100%);
}
.hero__drop::after {
  content: "";
  position: absolute;
  bottom: -1.5px;
  left: -1.5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--silver-bright);
}

@keyframes ink-in { to { opacity: var(--ink-o, 0.45); } }

/* 09 ─────────────────────────────────────────────  SECTIONS & LAYOUT  */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--content-width));
  margin-inline: auto;
}
.wrap--narrow { max-width: 52rem; }
.wrap--reading { max-width: var(--reading-width); }

.section { padding-block: var(--space-2xl); }
.section--tight { padding-block: var(--space-xl); }
.section--tall { padding-block: var(--space-3xl); }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.section__head .eyebrow { flex: 0 0 auto; }

.statement {
  max-width: 40rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.5rem);
  line-height: 1.34;
  color: var(--text-strong);
  text-wrap: balance;
}
.statement + .statement__note {
  margin-top: var(--space-md);
  max-width: 34rem;
  color: var(--text-quiet);
}

/* Asymmetric editorial pair: metadata left, prose right. */
.pair {
  display: grid;
  gap: var(--space-sm) var(--space-lg);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 56.25em) {
  .pair { grid-template-columns: 12rem minmax(0, 1fr); }
  .pair--wide { grid-template-columns: 16rem minmax(0, 1fr); }
}

/* 10 ────────────────────────────────────────────  WRITING ENTRIES  */

.entries { border-top: 1px solid var(--hairline-soft); }

.entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xs) var(--space-lg);
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--hairline-soft);
  transition: background-color var(--med) var(--ease);
}
.entry::before {                       /* the thread, drawn on hover */
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(228,226,223,0.55), rgba(228,226,223,0.12));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--slow) var(--ease);
}
.entry:hover::before,
.entry:focus-within::before { transform: scaleX(1); }
.entry:hover,
.entry:focus-within { background-color: rgba(184, 183, 181, 0.022); }

.entry__meta {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.entry__category {
  font-family: var(--font-ui);
  font-size: var(--step-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--silver);
}
.entry__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem);
  line-height: 1.12;
  color: var(--text-strong);
  margin-top: 0.35rem;
}
.entry__title a::after {               /* whole row is clickable */
  content: "";
  position: absolute;
  inset: 0;
}
.entry__excerpt {
  margin-top: 0.75rem;
  max-width: 44rem;
  color: var(--text);
  opacity: 0.86;
}
.entry__excerpt em { color: var(--text-strong); }

@media (min-width: 56.25em) {
  .entry {
    grid-template-columns: 11rem minmax(0, 1fr) 6rem;
    align-items: start;
  }
  .entry__meta { flex-direction: column; gap: 0.4rem; }
  .entry__time { justify-self: end; text-align: right; padding-top: 0.35rem; }
}
@media (max-width: 56.1875em) {
  .entry__time { margin-top: 0.6rem; }
}

/* Featured entry on the homepage — larger, with room to breathe. */
.entry--featured .entry__title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
.entry--featured .entry__excerpt { font-size: 1.05em; }

/* Archive filters (enhanced by JS; hidden entirely when JS is off) */
.filters { display: none; }
.js .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--hairline-soft);
  margin-bottom: var(--space-md);
}
.filter {
  position: relative;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem 0;
  min-height: 44px;
  font-family: var(--font-ui);
  font-size: var(--step-eyebrow);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-quiet);
  transition: color var(--fast) var(--ease);
}
.filter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  height: 1px;
  background: var(--silver-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--med) var(--ease);
}
.filter:hover { color: var(--silver); }
.filter[aria-pressed="true"] { color: var(--silver-bright); }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }
.filter-empty { padding-block: var(--space-lg); color: var(--text-quiet); }

/* 11 ─────────────────────────────────────────────  FRAGMENTS  */

.fragments { max-width: 46rem; }

.fragment {
  position: relative;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  border-left: 1px solid var(--hairline-soft);
  transition: border-color var(--med) var(--ease);
}
/* Uneven vertical rhythm — these were not written on a schedule. */
.fragment:nth-child(3n+1) { margin-top: clamp(2.5rem, 7vh, 5rem); }
.fragment:nth-child(3n+2) { margin-top: clamp(3.5rem, 11vh, 8rem); }
.fragment:nth-child(3n+3) { margin-top: clamp(2rem, 5vh, 3.5rem); }
.fragment:first-child { margin-top: 0; }
.fragment:nth-child(4n+2) { margin-left: clamp(0rem, 6vw, 5rem); }
.fragment:nth-child(5n+3) { margin-left: clamp(0rem, 3vw, 2.5rem); }

.fragment::before {                    /* a small silver mark appears */
  content: "";
  position: absolute;
  left: -2.5px;
  top: 0.7em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--silver-bright);
  opacity: 0;
  transition: opacity var(--med) var(--ease);
}
.fragment:hover::before,
.fragment:focus-within::before { opacity: 1; }
.fragment:hover,
.fragment:focus-within { border-color: rgba(184, 183, 181, 0.34); }

.fragment__text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.25rem, 1.05rem + 1.1vw, 1.9rem);
  line-height: 1.44;
  color: var(--text-strong);
  text-wrap: pretty;
}
.fragment__text em { font-style: italic; }
.fragment__meta { margin-top: 0.9rem; }

/* Occasional variation, so the page does not look typeset by a machine. */
.fragment--aside .fragment__text {
  font-family: var(--font-read);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  font-style: italic;
  color: var(--text);
}
.fragment--wide .fragment__text { letter-spacing: 0.02em; }

/* Fragment cards — three surfaces in rotation, so the page is not one long
   black field. Bone stays a minority surface, one card in three. */
.fcards {
  display: grid;
  gap: 1px;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline-soft);
}
@media (min-width: 46em) {
  .fcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.fcard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: clamp(13rem, 24vw, 17rem);
  padding: clamp(1.5rem, 3.2vw, 2.25rem);
  transition: color var(--med) var(--ease);
}
.fcard__text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.4;
  text-wrap: pretty;
}
.fcard__meta { font-family: var(--font-ui); font-size: var(--step-meta); letter-spacing: 0.14em; }

.fcard--dark { background-color: #0e0c0c; color: var(--text-strong); }
.fcard--dark .fcard__meta { color: var(--text-quiet); }

.fcard--oxblood { background-color: #3a070a; color: #ece5dc; }
.fcard--oxblood .fcard__meta { color: rgba(236, 229, 220, 0.66); }

.fcard--bone {
  background-color: var(--bone);
  background-image: url("../images/paper-bone.webp");
  background-size: 340px 340px;
  background-blend-mode: luminosity;
  color: #241d1b;
}
.fcard--bone .fcard__meta { color: #5f554e; }
.fcard--bone ::selection { background: rgba(75, 9, 12, 0.18); color: #17110f; }

/* 12 ─────────────────────────────────────────────  PROJECTS  */

.projects { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }

.project {
  position: relative;
  display: grid;
  gap: var(--space-md);
  padding: clamp(1.75rem, 4vw, 3rem);
  background-color: var(--charcoal);
  border: 1px solid var(--hairline-soft);
  border-radius: 0;
  transition: border-color var(--med) var(--ease), transform var(--med) var(--ease);
}
.project:hover,
.project:focus-within {
  border-color: rgba(184, 183, 181, 0.3);
  transform: translateY(-1px);
}
@media (min-width: 50em) {
  .project { grid-template-columns: minmax(0, 1fr) 22rem; align-items: center; gap: var(--space-lg); }
  .project:nth-child(even) .project__art { order: -1; }
}
.project__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-ui);
  font-size: var(--step-eyebrow);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-quiet);
}
.project__status::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--silver);
  opacity: 0.8;
}
.project__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  margin-top: 0.6rem;
  color: var(--text-strong);
}
.project__body { margin-top: var(--space-sm); max-width: 38rem; }
.project__foot { margin-top: var(--space-md); display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); align-items: baseline; }
.project__art {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--hairline-soft);
  border-radius: 0;
  overflow: hidden;
  background: var(--burgundy-dark);
}
.project__art img { width: 100%; height: 100%; object-fit: cover; }
/* The oxblood cover field carries a full signature. Crop into the leather
   and brushed stroke below it, so the mark is not repeated down the page. */
.project__art--oxblood img { object-fit: none; object-position: 24% 100%; }

/* 13 ─────────────────────────────────────────────  ARTICLE / READING  */

.article-head { padding-top: calc(var(--nav-h) + clamp(3rem, 10vh, 7rem)); }
.article-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.25rem;
  margin-top: var(--space-sm);
}
.article-head__title {
  margin-top: var(--space-sm);
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3.6rem);
  text-wrap: balance;
}
.article-head__sub {
  margin-top: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: var(--step-lead);
  line-height: 1.4;
  color: var(--text-quiet);
  max-width: 34rem;
}
.article-head .thread { margin-top: var(--space-lg); }

.article {
  font-family: var(--font-read);
  font-size: var(--step-read);
  line-height: var(--leading-read);
  color: var(--text);
  padding-block: var(--space-lg) var(--space-2xl);
  max-width: var(--reading-width);
  margin-inline: auto;
  hyphens: none;
}
.article > * + * { margin-top: 1.5em; }
.article p { text-wrap: pretty; }
.article h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  margin-top: 2.2em;
  line-height: 1.2;
}
.article h3 { margin-top: 2em; font-size: 1.25em; }
.article .eyebrow {
  font-family: var(--font-ui);
  font-size: var(--step-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-quiet);
  margin-top: 0;
}
.article a:not(.link):not(.cta) {
  color: var(--text-strong);
  border-bottom: 1px solid rgba(184,183,181,0.4);
  transition: border-color var(--fast) var(--ease);
}
.article a:not(.link):not(.cta):hover { border-color: var(--silver-bright); }
.article strong { font-weight: 500; color: var(--text-strong); }
.article ul, .article ol { padding-left: 1.4em; }
.article li + li { margin-top: 0.5em; }

/* Drop the first line into small caps rather than a drop cap. */
.article__opening::first-line {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.06em;
  color: var(--text-strong);
}

.epigraph {
  max-width: 30rem;
  margin-inline: auto;
  padding-left: 1.25rem;
  border-left: 1px solid var(--hairline);
  font-family: var(--font-read);
  font-style: italic;
  font-size: 0.95em;
  color: var(--text-quiet);
}
.epigraph cite { display: block; margin-top: 0.6em; font-style: normal; font-family: var(--font-ui); font-size: var(--step-meta); letter-spacing: 0.06em; }

.pull-quote {
  margin-block: 2.4em;
  padding-block: 0.4em;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.15rem);
  line-height: 1.32;
  color: var(--text-strong);
  text-align: left;
  border: 0;
}
.pull-quote::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  background: var(--silver);
  opacity: 0.6;
  margin-bottom: 0.8em;
}

blockquote:not(.pull-quote):not(.epigraph) {
  margin-block: 1.8em;
  padding-left: 1.5rem;
  border-left: 1px solid var(--hairline);
  color: var(--text-strong);
  font-style: italic;
}

/* Section break: three diminishing silver dots (the card's trailing marks) */
.break {
  display: block;
  border: 0;
  margin-block: 3em;
  height: 4px;
  background:
    radial-gradient(circle, var(--silver-bright) 40%, transparent 45%) 50% 50% / 4px 4px no-repeat,
    radial-gradient(circle, rgba(184,183,181,0.6) 40%, transparent 45%) calc(50% - 22px) 50% / 3px 3px no-repeat,
    radial-gradient(circle, rgba(184,183,181,0.35) 40%, transparent 45%) calc(50% + 22px) 50% / 3px 3px no-repeat;
}
.break--rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,183,181,0.35), transparent);
}

/* Poetry keeps its own line breaks and its own measure. */
.poem {
  font-family: var(--font-read);
  font-size: 1.02em;
  line-height: 1.85;
  margin-block: 2em;
}
.poem__stanza {
  /* Long lines wrap with a hanging indent instead of breaking the shape. */
  padding-left: 1.4em;
  text-indent: -1.4em;
}
.poem__stanza + .poem__stanza { margin-top: 1.9em; }
.poem--indent .poem__stanza:nth-child(even) { padding-left: 2.5rem; }
.poem__title {
  font-family: var(--font-display);
  font-size: 1.35em;
  font-weight: 400;
  margin-bottom: 1em;
  color: var(--text-strong);
}

figure.figure { margin-block: 2.5em; }
figure.figure img { width: 100%; border: 1px solid var(--hairline-soft); }
figcaption {
  margin-top: 0.9rem;
  font-family: var(--font-ui);
  font-size: var(--step-meta);
  letter-spacing: 0.04em;
  color: var(--text-quiet);
}

/* Link cards — articles, books, websites, and social posts. A card rather
   than a live embed: no third-party scripts, no trackers, no consent banner. */
.linkcard {
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 1.4rem);
  align-items: stretch;
  margin-block: 2em;
  padding: clamp(0.9rem, 2.5vw, 1.25rem);
  border: 1px solid var(--hairline-soft);
  background: rgba(184, 183, 181, 0.03);
  transition: border-color var(--med) var(--ease), background var(--med) var(--ease);
}
.linkcard:hover,
.linkcard:focus-visible {
  border-color: rgba(184, 183, 181, 0.3);
  background: rgba(184, 183, 181, 0.055);
}
.linkcard__thumb { flex: 0 0 clamp(4.5rem, 18vw, 7rem); }
.linkcard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--hairline-soft);
}
.linkcard__body { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.linkcard__kind {
  font-family: var(--font-ui);
  font-size: var(--step-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-quiet);
}
.linkcard__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.2;
  color: var(--text-strong);
}
.linkcard__note { font-size: 0.92em; color: var(--text); opacity: 0.85; }
.linkcard__host {
  margin-top: 0.15rem;
  font-family: var(--font-ui);
  font-size: var(--step-meta);
  letter-spacing: 0.06em;
  color: var(--text-quiet);
}
.article a.linkcard { border-bottom: 0; }

/* Video: a still card until the reader presses play. Nothing is requested
   from YouTube — not a thumbnail, not a cookie — until then. */
.video {
  position: relative;
  margin-block: 2em;
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, rgba(33,29,30,0.95), rgba(12,10,10,0.95));
  border: 1px solid var(--hairline-soft);
}
.video__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--text-strong);
}
.video__mark {
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid rgba(228, 226, 223, 0.5);
  border-radius: 50%;
  position: relative;
  transition: border-color var(--med) var(--ease);
}
.video__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-left: 0.85rem solid rgba(228, 226, 223, 0.8);
  border-top: 0.55rem solid transparent;
  border-bottom: 0.55rem solid transparent;
}
.video__play:hover .video__mark { border-color: var(--silver-bright); }
.video__label {
  font-family: var(--font-ui);
  font-size: var(--step-meta);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  max-width: 28ch;
  text-align: center;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Footnotes */
.footnote-ref {
  font-family: var(--font-ui);
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
  color: var(--silver);
  border: 0 !important;
  /* Padding widens the tappable area; the matching negative margin means the
     surrounding sentence does not move. */
  padding: 0.9em 0.75em;
  margin: -0.9em -0.6em;
}
.footnotes a {
  display: inline-block;
  padding: 0.35em 0.5em;
  margin: -0.35em -0.2em;
}
.footnotes {
  margin-top: 3.5em;
  padding-top: 1.75em;
  border-top: 1px solid var(--hairline-soft);
  font-size: 0.88em;
  color: var(--text-quiet);
}
.footnotes ol { padding-left: 1.2em; }
.footnotes li { margin-top: 0.7em; }
.footnotes li::marker { color: var(--silver); font-family: var(--font-ui); font-size: 0.8em; }

/* Reading surface toggle */
.reading-controls { display: none; }
.js .reading-controls { display: inline-flex; }
.surface-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem 0;
  min-height: 44px;
  font-family: var(--font-ui);
  font-size: var(--step-meta);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-quiet);
  transition: color var(--fast) var(--ease);
}
.surface-toggle:hover { color: var(--text-strong); }

/* Paper reading surface. The toggle sets data-surface on <body>, but only
   the article region changes: navigation and footer keep the leather world. */
body[data-surface="paper"] .article-main {
  --text: #2b2523;
  --text-strong: #17110f;
  --text-quiet: #5f554e;
  --hairline: rgba(40, 4, 6, 0.24);
  --hairline-soft: rgba(40, 4, 6, 0.13);
  background-color: var(--bone);
  background-image: url("../images/paper-bone.webp");
  background-size: 340px 340px;
  background-blend-mode: luminosity;
  color: var(--text);
}
/* On paper, the navigation needs its own dark ground to stay legible. */
body[data-surface="paper"] .site-header::before,
body[data-surface="paper"] .site-header::after { opacity: 1; }
body[data-surface="paper"] .article-main ::selection { background: rgba(75, 9, 12, 0.18); color: #17110f; }
body[data-surface="paper"] .article a:not(.link):not(.cta) { border-bottom-color: rgba(40,4,6,0.35); }
body[data-surface="paper"] .article-main .break {
  background:
    radial-gradient(circle, #4b090c 40%, transparent 45%) 50% 50% / 4px 4px no-repeat,
    radial-gradient(circle, rgba(75,9,12,0.55) 40%, transparent 45%) calc(50% - 22px) 50% / 3px 3px no-repeat,
    radial-gradient(circle, rgba(75,9,12,0.3) 40%, transparent 45%) calc(50% + 22px) 50% / 3px 3px no-repeat;
}
body[data-surface="paper"] .article-main .thread { background: linear-gradient(90deg, rgba(40,4,6,0), rgba(40,4,6,0.35) 40%, rgba(40,4,6,0.5) 88%, rgba(40,4,6,0)); }
body[data-surface="paper"] .article-main .thread::after { background: var(--burgundy-dark); box-shadow: 10px 0 0 -1.2px rgba(40,4,6,0.5), 20px 0 0 -1.6px rgba(40,4,6,0.3), 31px 0 0 -1.8px rgba(40,4,6,0.16); }
body[data-surface="paper"] .article-main .pull-quote::before { background: var(--burgundy-dark); }

/* Reading progress: a hairline that fills as you read. */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, rgba(184,183,181,0.2), var(--silver-bright));
  z-index: 120;
  pointer-events: none;
}

/* Related reading */
.related { border-top: 1px solid var(--hairline-soft); }

/* 14 ─────────────────────────────────────────────  ABOUT  */

.about-grid { display: grid; gap: var(--space-lg); align-items: start; }
@media (min-width: 56.25em) {
  .about-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(3rem, 7vw, 6rem); }
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--hairline-soft);
  background: var(--charcoal);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Editorial treatment: desaturated with a burgundy cast. */
  filter: grayscale(1) contrast(1.05) brightness(0.92);
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(75,9,12,0.22), rgba(9,7,7,0.38));
  mix-blend-mode: multiply;
}
/* Supplied edge mask: the print darkens and wears at its borders.
   The distressed silver frame overlay is the alternative — use one, not both. */
.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url("../images/overlays/portrait-dark-edge-mask.png") center / 100% 100% no-repeat;
  pointer-events: none;
}
.portrait__caption { margin-top: 0.9rem; }

.credo { display: grid; gap: 0.35rem; }
.credo p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.35rem, 1.1rem + 1.3vw, 2rem);
  line-height: 1.3;
  color: var(--text-strong);
}

/* 15 ─────────────────────────────────────────────  CONTACT & FORMS  */

.form { max-width: 34rem; display: grid; gap: var(--space-sm); }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-family: var(--font-ui);
  font-size: var(--step-eyebrow);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-quiet);
}
.field input,
.field textarea {
  width: 100%;
  background: rgba(184, 183, 181, 0.035);
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  padding: 0.85rem 0.75rem;
  min-height: 48px;
  font-family: var(--font-read);
  font-size: 1rem;
  color: var(--text-strong);
  transition: border-color var(--med) var(--ease), background var(--med) var(--ease);
}
.field textarea { min-height: 11rem; resize: vertical; line-height: 1.6; }
.field input:hover,
.field textarea:hover { background: rgba(184, 183, 181, 0.055); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--silver-bright);
  background: rgba(184, 183, 181, 0.06);
}
.field input:focus-visible,
.field textarea:focus-visible { outline: 1px solid var(--silver-bright); outline-offset: 2px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(143, 135, 129, 0.7); }
.field--error input,
.field--error textarea { border-bottom-color: #c96a6a; }
.field__error {
  font-family: var(--font-ui);
  font-size: var(--step-meta);
  color: #d98b8b;
}
.field__error:empty { display: none; }

/* Honeypot: hidden from people, visible to careless robots. Clipped rather
   than pushed off-canvas, so it never widens the page. */
.trap {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.form__status {
  font-family: var(--font-ui);
  font-size: var(--step-meta);
  letter-spacing: 0.06em;
  color: var(--text-quiet);
  min-height: 1.2em;
}
.form__status[data-state="error"] { color: #d98b8b; }
.form__status[data-state="ok"] { color: var(--silver-bright); }

.contact-direct { margin-top: var(--space-lg); }

/* 16 ─────────────────────────────────────────────  FOOTER  */

.site-footer { position: relative; padding-block: var(--space-xl) var(--space-lg); }
.site-footer__top {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}
@media (min-width: 50em) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xl); }
}
.site-footer__signature { width: clamp(180px, 34vw, 260px); height: auto; opacity: 0.72; }
.site-footer__line {
  margin-top: var(--space-sm);
  max-width: 22rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(221, 214, 203, 0.62);
}
.footer-nav { display: grid; gap: 0.15rem; }
.footer-nav a {
  display: inline-block;
  padding: 0.45rem 0;
  min-height: 40px;
  font-family: var(--font-ui);
  font-size: var(--step-meta);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(221, 214, 203, 0.72);
  transition: color var(--fast) var(--ease);
}
.footer-nav a:hover { color: var(--silver-bright); }

.site-footer__bottom {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-family: var(--font-ui);
  font-size: var(--step-meta);
  letter-spacing: 0.06em;
  color: rgba(221, 214, 203, 0.66);
}

/* The dot. It does something. */
.dot {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.dot::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(228, 226, 223, 0.55);
  box-shadow: 0 0 0 0 rgba(228, 226, 223, 0.25);
  transition: background var(--med) var(--ease), box-shadow var(--med) var(--ease), transform var(--med) var(--ease);
}
.dot:hover::before { background: var(--silver-bright); box-shadow: 0 0 8px 1px rgba(228, 226, 223, 0.35); }
.dot-reveal {
  margin-top: var(--space-sm);
  max-width: 30rem;
  font-family: var(--font-read);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(221, 214, 203, 0.75);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.dot-reveal[hidden] { display: none; }
.dot-reveal.is-visible { opacity: 1; transform: none; }

/* 17 ─────────────────────────────────────────────  404  */

.page-404 {
  min-height: 100svh;
  min-height: 100vh;
  background-color: var(--near-black);
  background-image: url("../images/misc/404-background.webp");
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  text-align: center;
  /* Extra bottom padding lifts the text clear of the brushed stroke that
     crosses the lower third of the supplied field. */
  padding: calc(var(--nav-h) + var(--space-lg)) var(--gutter) clamp(8rem, 26vh, 15rem);
}
.page-404__number {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-huge);
  line-height: 0.85;
  color: rgba(228, 226, 223, 0.9);
  letter-spacing: 0.02em;
}
.page-404__body { margin-top: var(--space-md); max-width: 26rem; margin-inline: auto; }

/* 18 ─────────────────────────────────────────────  MOTION & REVEALS  */

.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.js .reveal-stagger > * { opacity: 0; transform: translateY(12px); }
.js .reveal-stagger.is-in > * {
  opacity: 1;
  transform: none;
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.js .reveal-stagger.is-in > *:nth-child(2) { transition-delay: 90ms; }
.js .reveal-stagger.is-in > *:nth-child(3) { transition-delay: 180ms; }
.js .reveal-stagger.is-in > *:nth-child(4) { transition-delay: 270ms; }
.js .reveal-stagger.is-in > *:nth-child(5) { transition-delay: 360ms; }
.js .reveal-stagger.is-in > *:nth-child(n+6) { transition-delay: 430ms; }

/* Hero opening sequence. Driven by CSS alone so that a failed script can
   never leave the hero blank; JavaScript only times the specular pass. */
.js .hero__signature { animation: sig-in 1700ms 150ms var(--ease) both; }
.js .hero__statement { animation: rise 1100ms 800ms var(--ease) both; }
.js .hero__enter { animation: rise 1100ms 1150ms var(--ease) both; }

@keyframes sig-in {
  from { opacity: 0; filter: blur(3px); }
  to   { opacity: 1; filter: blur(0); }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal,
  .js .reveal-stagger > *,
  .js .hero__signature,
  .js .hero__statement,
  .js .hero__enter { opacity: 1 !important; transform: none !important; }
  .hero__signature::after { opacity: 0.75; animation: none; }
  .progress { display: none; }
}

/* 19 ─────────────────────────────────────────────  UTILITIES  */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.stack-xs > * + * { margin-top: var(--space-xs); }
.stack-sm > * + * { margin-top: var(--space-sm); }
.stack-md > * + * { margin-top: var(--space-md); }
.stack-lg > * + * { margin-top: var(--space-lg); }
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.no-js-only { display: none; }
html:not(.js) .no-js-only { display: block; }

/* 20 ─────────────────────────────────────────────  PRINT  */

@media print {
  .site-header, .site-footer, .progress, .particles, .related, .cta { display: none !important; }
  body { background: #fff; color: #000; }
  .article { max-width: none; font-size: 11pt; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
