/* ============================================================
   Ashley Tomblin — shared site styles
   Vercel-grade restraint over a warm editorial brand:
   one accent moment, generous whitespace, crisp hairlines.
   ============================================================ */
:root {
  --bg: #faf8f6;
  --surface: #ffffff;
  --fg: #171310;
  --muted: #6b635a;
  --faint: #938a7e;
  --line: rgba(23, 19, 16, 0.09);
  --line-strong: rgba(23, 19, 16, 0.14);
  /* one solid brand accent (a refracted rose) — used sparingly */
  --accent: #b0455f;
  /* the iris: Refract's four facets (rose, amber, leaf, sky) — reserved for a single hero moment */
  --iris: linear-gradient(115deg, #8f3a52 0%, #8a6a37 34%, #4f6f3e 66%, #2d5377 100%);
  --measure: 68ch;
  /* spacing rhythm */
  --gap: 1rem;
  --radius: 12px;
  --radius-pill: 100px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  /* the house signature: one thin iris edge along the top of every page */
  border-top: 5px solid transparent;
  border-image: var(--iris) 1;
}

a { color: inherit; }

::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

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

.iris-text {
  background: var(--iris);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* shared buttons / links ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  padding: 0.72em 1.4em;
  border-radius: var(--radius-pill);
  transition: transform 0.16s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn.primary {
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 1px 2px rgba(23, 19, 16, 0.18);
}
.btn.primary:hover { transform: translateY(-1px); opacity: 0.9; box-shadow: 0 6px 20px -10px rgba(23, 19, 16, 0.5); }
.arrow { transition: transform 0.16s var(--ease); }
.btn:hover .arrow, .tlink:hover .arrow { transform: translateX(3px); }

.tlink {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  white-space: nowrap;
  transition: color 0.16s var(--ease);
}
.tlink:hover { color: var(--fg); }

.mark {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.14rem;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  text-decoration: none;
  color: var(--fg);
  white-space: nowrap;
}
.mark .dot { color: var(--accent); }

/* animations ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   HOME (body.home) — single-viewport hero
   ============================================================ */
body.home { overflow-x: hidden; }

/* MOBILE (base): stacked — nav, photo banner, then content on clean bg */
.stage {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.photo-wrap {
  position: relative;
  /* mobile screen one: a full-viewport portrait, edge to edge. Scroll
     reveals the content on its own full screen — two deliberate screens
     instead of one cramped one. A tall frame crops the sides, not the
     shoulders, so the whole figure reads. */
  width: 100%;
  /* svh, not dvh: the small (address-bar-visible) viewport height is a
     fixed reference, so the portrait keeps one stable size instead of
     growing and shrinking as the mobile browser chrome slides in and
     out on scroll. */
  height: calc(100svh - 5px);
  overflow: hidden;
  /* studio grey up top, easing to the page cream at the base so the
     portrait melts into screen two instead of ending on a hard line */
  background: linear-gradient(to bottom, #efeaea 0%, #efeaea 66%, var(--bg) 100%);
}
.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 38%;
  z-index: 0;
  /* dissolve the bottom edge so it blends into the cream below */
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}
/* legibility wash for the nav over the top of the full-screen photo */
.photo-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 150px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(250, 248, 246, 0.88), rgba(250, 248, 246, 0));
}
/* a quiet scroll cue at the base of screen one */
.photo-wrap::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 30px; z-index: 2;
  width: 13px; height: 13px; margin-left: -7px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
  animation: scrollcue 1.9s ease-in-out infinite;
}
@keyframes scrollcue {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.55; }
  50%      { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}
.content {
  position: relative;
  z-index: 3;
  /* mobile screen two: a full screen of its own for the words to breathe */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 34px 28px max(40px, env(safe-area-inset-bottom));
}
.bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 22px 26px 14px;
}
.hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--faint);
  margin-bottom: 1rem;
}
.stage h1 {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: clamp(1.8rem, min(9vw, 5.6vh), 3.4rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  max-width: 13ch;
}
/* the one accent moment on the page: the iris, held still */
.stage h1 .turn {
  display: block;
  margin-top: 0.14em;
  line-height: 1.16;
  padding-bottom: 0.12em;
  font-style: italic;
  font-weight: 660;
  font-variation-settings: "opsz" 144, "SOFT" 90, "WONK" 1;
  background: var(--iris);
  /* extra width gives the gradient room to glide — a slow oil-slick drift */
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: irisdrift 16s ease-in-out infinite;
}
@keyframes irisdrift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.lede {
  margin-top: 1.1rem;
  max-width: 36ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 2.4vh, 1.1rem);
}
.ctarow {
  margin-top: 1.6rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* latest-essay card — the hero's single primary action */
.latest {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--fg);
  font-weight: 500;
  padding: 0.6em 1.05em;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  transition: transform 0.16s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.latest:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line-strong));
  box-shadow: 0 8px 24px -14px rgba(23, 19, 16, 0.4);
}
.latest .latest-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.6rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--faint);
}
.latest .latest-title { font-weight: 600; }
.latest .arrow { color: var(--muted); }

/* ventures ------------------------------------------------- */
.ventures { flex: 0 0 auto; max-width: 36rem; margin-top: 1.6rem; }
.vlabel {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--faint);
  margin-bottom: 0.9rem;
}
.vlist { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.vlist a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  color: var(--fg);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.36em 0.9em 0.36em 0.42em;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  transition: transform 0.16s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.favi {
  width: 22px; height: 22px; border-radius: 50%;
  object-fit: cover; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(23, 19, 16, 0.08);
}
.favi.mono {
  display: flex; align-items: center; justify-content: center;
  background: #16120e;
  color: var(--brand, #aebcff);
  font-family: "Fraunces", serif; font-weight: 700; font-size: 11px; line-height: 1;
}
.favi.mono.two { font-size: 9px; letter-spacing: 0.02em; }
.favi.house {
  position: relative;
  background: #16120e;
}
.favi.house::after {
  content: ""; position: absolute; inset: 0;
  background: var(--brand, #aebcff);
  -webkit-mask: url(../images/icons/house.svg) center / 64% no-repeat;
          mask: url(../images/icons/house.svg) center / 64% no-repeat;
}
.vlist a .ext {
  font-size: 0.72em; opacity: 0.45; color: var(--brand, var(--fg));
  transition: transform 0.16s var(--ease), opacity 0.2s var(--ease);
}
.vlist a:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand, var(--fg)) 45%, var(--line-strong));
  box-shadow: 0 8px 22px -12px color-mix(in srgb, var(--brand, #1a1410) 55%, transparent);
}
.vlist a:hover .ext { transform: translate(2px, -2px); opacity: 1; }

/* logo cloud — every brand I've built, one quiet ink ---------
   A Vercel-style row: each mark keeps its own identity (a real
   vector wordmark where one exists, otherwise the brand's own
   typeface) but renders in a single muted ink, normalized to a
   shared cap height so the row reads as one calm family. */
.logos { flex: 0 0 auto; max-width: 42rem; margin-top: 1.6rem; }
.logos-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--faint);
  margin-bottom: 1.25rem;
}
/* marquee — the row drifts slowly leftward, looping seamlessly, with
   faded edges (Vercel logo-cloud). Two identical tracks sit side by
   side; each slides one full width, so the second is exactly where the
   first began when the loop repeats. Pauses on hover and for anyone
   who prefers reduced motion. */
.logo-marquee {
  display: flex;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.logo-cloud {
  list-style: none;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2.6rem;
  padding-right: 2.6rem;
}
.logo-track { animation: logo-scroll 42s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes logo-scroll { to { transform: translateX(-100%); } }
.logo-cloud li { display: flex; flex: 0 0 auto; }
/* reduced motion — no drift; let the row be swiped through by hand,
   drop the seam-clone and the edge fade so nothing is hidden. */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .logo-track[aria-hidden="true"] { display: none; }
}
.wm {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--faint);
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s var(--ease), transform 0.16s var(--ease);
}
.wm:hover { color: var(--fg); transform: translateY(-1px); }
.wm .wm-dot { color: inherit; }

/* text wordmarks — set in each brand's own face, tuned to a common cap height */
.wm-refract  { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.66rem; letter-spacing: -0.01em; }
.wm-ozark    { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 1.42rem; letter-spacing: 0; }
.wm-kontrast { font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 600; font-size: 1.32rem; letter-spacing: 0.04em; text-transform: uppercase; }
.wm-aura     { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 1.72rem; }

/* vector wordmarks — inlined SVGs painted in the single ink via
   currentColor, each sized by its main cap height (not raw artwork
   height) so caps sit level with the text marks. */
.wm-svg { display: block; width: auto; fill: currentColor; }
.wm-faye        { height: 1.62rem; }
.wm-littlesugar { height: 0.82rem; }
.wm-ledger      { height: 1.85rem; }

@media (max-width: 819px) {
  .logo-cloud { gap: 2rem; padding-right: 2rem; }
  .wm-refract     { font-size: 1.5rem; }
  .wm-ozark       { font-size: 1.28rem; }
  .wm-kontrast    { font-size: 1.18rem; }
  .wm-aura        { font-size: 1.56rem; }
  .wm-faye        { height: 1.5rem; }
  .wm-littlesugar { height: 0.74rem; }
  .wm-ledger      { height: 1.68rem; }
}

/* entrance — hero rises in when its screen enters the viewport. On desktop
   the content is visible at load, so it plays on arrival; on mobile it
   fires as you scroll from the portrait into screen two. Gated behind .js
   (added only when motion is allowed) so no-JS / reduced-motion visitors
   see everything immediately. */
.js .hero .eyebrow,
.js .hero h1,
.js .hero .lede,
.js .hero .ctarow,
.js .ventures,
.js .logos {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .content.in-view .hero .eyebrow,
.js .content.in-view .hero h1,
.js .content.in-view .hero .lede,
.js .content.in-view .hero .ctarow,
.js .content.in-view .ventures,
.js .content.in-view .logos {
  opacity: 1;
  transform: none;
}
.js .content.in-view .hero h1      { transition-delay: 0.10s; }
.js .content.in-view .hero .lede   { transition-delay: 0.22s; }
.js .content.in-view .hero .ctarow { transition-delay: 0.32s; }
.js .content.in-view .ventures,
.js .content.in-view .logos        { transition-delay: 0.42s; }

/* home desktop — split: nav top-left, contained photo panel right, content centered */
@media (min-width: 820px) {
  body.home { overflow: hidden; }
  .stage { display: block; position: relative; height: calc(100dvh - 5px); }
  .bar {
    position: absolute; top: 0; left: 0; width: 50%;
    padding: 40px clamp(40px, 5vw, 84px) 0;
    z-index: 4;
  }
  .photo-wrap {
    position: absolute; top: 0; right: 0; left: auto;
    width: 46%; height: 100%; min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: -1px 0 0 var(--line);
    background: #efeaea;
  }
  .photo { object-fit: cover; object-position: 50% 30%; -webkit-mask-image: none; mask-image: none; }
  .photo-wrap::before, .photo-wrap::after { display: none; }
  .content {
    position: relative; height: 100%; min-height: 0;
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 96px clamp(40px, 5vw, 84px) 64px;
    padding-right: 50%;
  }
  .stage h1 { font-size: clamp(1.7rem, min(3vw, 5.6vh), 2.7rem); max-width: 16ch; }
  .lede { font-size: 1.04rem; }
  .ventures { max-width: 100%; margin-top: 1.8rem; }
}

/* ============================================================
   INTERIOR PAGES (blog + posts)
   ============================================================ */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px clamp(22px, 5vw, 64px) 96px;
}
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 0;
  margin-bottom: clamp(3rem, 9vh, 6rem);
}
.links { display: flex; gap: 1.7rem; align-items: center; }

/* blog index ---------------------------------------------- */
.blog-head { max-width: var(--measure); margin-bottom: 0.6rem; }
.blog-head h1 { max-width: 16ch; }
.head-avatar {
  height: clamp(140px, 16vw, 180px);
  width: auto;
  display: block;
  margin-bottom: 1.3rem;
  transform: rotate(-4deg);
}
.blog-head .eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.68rem; font-weight: 600;
  margin-bottom: 1.1rem;
  color: var(--faint);
}
.blog-head h1 {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
}
.blog-sub { color: var(--muted); max-width: 54ch; margin-top: 1.3rem; font-size: 1.06rem; line-height: 1.6; }
.placeholder-note {
  margin-top: 1.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 0.7em 1em;
  max-width: 52ch;
}

.post-list { list-style: none; margin-top: clamp(2.6rem, 7vh, 4rem); border-top: 1px solid var(--line); }
.post-card { border-bottom: 1px solid var(--line); }
.post-card a {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  text-decoration: none;
  padding: 1.8rem 0.4rem;
  border-radius: var(--radius);
  transition: padding 0.18s var(--ease), background 0.18s var(--ease);
}
.post-card a:hover { padding-left: 1.1rem; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.post-card time { color: var(--faint); font-size: 0.84rem; font-weight: 500; letter-spacing: 0.02em; padding-top: 0.5rem; white-space: nowrap; }
.post-card h2 {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 40, "WONK" 0;
}
.post-card p { color: var(--muted); margin-top: 0.5rem; max-width: 56ch; font-size: 0.98rem; line-height: 1.6; }
.post-card .ext { color: var(--faint); font-size: 1.15rem; align-self: center; transition: transform 0.16s var(--ease), color 0.2s var(--ease); }
.post-card a:hover .ext { transform: translateX(4px); color: var(--fg); }

/* cross-brand posts ---------------------------------------- */
/* Writing that lives on a brand's own site, deep-linked from the main list.
   The chip mirrors the home-page venture chips — set brand color via --brand. */
.post-card .card-tags {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--fg);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3em 0.85em 0.3em 0.36em;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.brand-chip .favi { width: 20px; height: 20px; }
.post-card a:hover .brand-chip {
  border-color: color-mix(in srgb, var(--brand, var(--fg)) 45%, var(--line-strong));
  box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--brand, #1a1410) 55%, transparent);
}

@media (max-width: 680px) {
  .post-card a { grid-template-columns: 1fr; gap: 0.4rem; padding: 1.4rem 0.2rem; }
  .post-card time { padding-top: 0; }
  .post-card .ext { display: none; }
  /* the row arrow is hidden on mobile, so spell out new-tab links on their
     own line — keyed off target="_blank" so only links that truly leave the
     site are flagged (a brand chip alone doesn't mean external). */
  .post-card a[target="_blank"] .card-tags::after {
    content: "Opens in new tab \2197";
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--faint);
    white-space: nowrap;
  }
}

/* article (post) ------------------------------------------ */
.article { max-width: var(--measure); margin: 0; }
.article-head { margin-bottom: 2.6rem; }
.article-head time {
  display: block; color: var(--faint); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem;
}
.article-head h1 {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
}
.article-head .dek { color: var(--muted); font-size: 1.2rem; margin-top: 1.1rem; line-height: 1.5; }

/* full-bleed post header (image / SVG + title overlay) */
.nav-only { padding-bottom: 0; }
.nav-only .topnav { margin-bottom: 14px; }

/* mobile nav: masthead treatment — mark on top, then a hairline-ruled
   nav row with the links distributed across the full width */
@media (max-width: 560px) {
  .topnav, .bar { flex-wrap: wrap; row-gap: 0.55rem; }
  .mark { white-space: nowrap; font-size: 1.2rem; }
  .links { gap: 1.15rem; }
  .topnav { margin-bottom: clamp(2rem, 6vh, 3.4rem); }
  .topnav .links {
    flex-basis: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.7rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line);
  }
  .topnav .tlink { font-size: 0.84rem; }
  /* stack the "Latest essay" label above the title so it doesn't scrunch */
  .latest { flex-direction: column; align-items: flex-start; gap: 0.3rem; border-radius: 16px; }
}
.post-hero {
  position: relative;
  width: 100%;
  height: clamp(360px, 60vh, 640px);
  overflow: hidden;
  background: #16120e;
}
.post-hero > img,
.post-hero > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(10, 8, 9, 0.82) 0%,
    rgba(10, 8, 9, 0.55) 26%,
    rgba(10, 8, 9, 0.15) 52%,
    rgba(10, 8, 9, 0) 78%);
}
.post-hero.is-graphic .post-hero-scrim {
  background: linear-gradient(100deg,
    rgba(8, 6, 7, 0.97) 0%,
    rgba(8, 6, 7, 0.85) 32%,
    rgba(8, 6, 7, 0.40) 58%,
    rgba(8, 6, 7, 0.05) 80%,
    rgba(8, 6, 7, 0) 100%);
}
.post-hero-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 64px) clamp(1.8rem, 5vh, 3.4rem);
  color: #fff;
}
.post-hero-text time {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.9rem;
}
.post-hero-text h1 {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  max-width: 20ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}
.post-hero-text .dek {
  margin-top: 1rem;
  max-width: 54ch;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.4);
}
.post-body { margin-top: clamp(2.4rem, 6vh, 3.6rem); }

/* lead image on a post */
.article-figure { margin: clamp(2.4rem, 6vh, 3.4rem) 0; }
.article-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  background: #ece9e5;
  box-shadow: 0 1px 0 rgba(23, 19, 16, 0.06), 0 24px 48px -32px rgba(23, 19, 16, 0.3);
}
.article-figure svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(23, 19, 16, 0.06), 0 24px 48px -32px rgba(23, 19, 16, 0.3);
}
/* portrait-orientation photos shown whole, not cropped to 16:9 */
.article-figure.portrait img {
  aspect-ratio: auto;
  object-fit: contain;
  width: 100%;
  max-width: none;
}
.article-figure figcaption {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.45;
}

.prose { font-size: 1.12rem; line-height: 1.75; color: #2a231d; }
.prose strong { font-weight: 600; }
.prose p > strong:first-child { color: var(--fg); }
.prose > * + * { margin-top: 1.3em; }
.prose p { max-width: var(--measure); }
.prose h2 {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  margin-top: 2.4em;
  font-variation-settings: "SOFT" 40;
}
.prose h3 { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.3rem; margin-top: 1.8em; }
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.3rem;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.42;
  color: var(--fg);
}
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose hr { border: none; height: 1px; background: var(--line); margin: 2.6em 0; }

.article-sign {
  max-width: var(--measure);
  margin: 3rem 0 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.article-sign img {
  height: clamp(92px, 11vw, 116px); width: auto; flex: 0 0 auto;
  transform: rotate(-4deg);
}
.article-sign span {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.95rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}
/* one-screen home on phones: tighter type and spacing below the portrait */
@media (max-width: 819px) {
  .stage h1 { font-size: clamp(2.1rem, 10vw, 3.1rem); max-width: 15ch; }
  .stage .eyebrow { margin-bottom: 1rem; font-size: 0.66rem; }
  .lede { margin-top: 1.1rem; font-size: 1.04rem; line-height: 1.55; max-width: 40ch; }
  .ctarow { margin-top: 1.6rem; gap: 0.8rem 1.1rem; }
  .latest { padding: 0.62em 1.05em; font-size: 0.9rem; }
  .ventures { margin-top: 2.4rem; }
  .vlabel { margin-bottom: 1.6rem; }
}

/* ventures marquee — quiet on mobile: no pills, muted wordmarks,
   auto-scroll with faded edges. Desktop keeps the brand chips. */
.vmarquee .vlist.clone { display: none; }
@media (max-width: 819px) {
  .ventures { max-width: none; }
  .vmarquee {
    overflow: hidden;
    margin: 0 -26px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }
  .vtrack { display: flex; width: max-content; gap: 2.2rem; animation: vscroll 30s linear infinite; }
  .vmarquee .vlist, .vmarquee .vlist.clone { display: flex; flex-wrap: nowrap; gap: 2.2rem; }
  .vmarquee .vlist a {
    background: none; border: none; box-shadow: none; padding: 0;
    color: var(--fg); opacity: 0.8; font-size: 0.88rem; white-space: nowrap;
  }
  .vmarquee .vlist a .ext { display: none; }
  .vmarquee .favi { width: 20px; height: 20px; }
}
@keyframes vscroll { to { transform: translateX(calc(-50% - 1.1rem)); } }
@media (prefers-reduced-motion: reduce) {
  .vtrack { animation: none; }
  .vmarquee { overflow-x: auto; }
}

/* the pull-through: every essay hands you the next one */
.next-post {
  display: block;
  max-width: var(--measure);
  margin-top: 3rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.16s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.next-post:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line-strong));
  box-shadow: 0 12px 30px -18px rgba(23, 19, 16, 0.35);
}
.next-post .np-label {
  display: block;
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.66rem; font-weight: 700;
  color: var(--faint);
  margin-bottom: 0.6rem;
}
.next-post .np-title {
  display: block;
  font-family: "Fraunces", serif; font-weight: 700; font-size: 1.35rem;
  letter-spacing: -0.02em; line-height: 1.2; color: var(--fg);
}
.next-post .np-dek { display: block; margin-top: 0.45rem; font-size: 0.94rem; color: var(--muted); line-height: 1.55; }
.next-post:hover .arrow { transform: translateX(3px); }

.site-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 8vh, 5rem);
  padding-top: 1.5rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.article-note {
  max-width: var(--measure);
  margin: 2.2rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--muted);
}
.article-note a { color: inherit; }
.article-foot {
  max-width: var(--measure);
  margin: 2.4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
.about-figure img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 25%;
  display: block;
  box-shadow: 0 1px 0 rgba(23, 19, 16, 0.06), 0 24px 48px -32px rgba(23, 19, 16, 0.3);
}
.about-figure figcaption { margin-top: 0.7rem; font-size: 0.82rem; color: var(--muted); font-style: italic; }

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: clamp(2rem, 5vh, 3rem) 0 0.6rem;
}
.photo-grid img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: #16120e;
  box-shadow: 0 1px 0 rgba(23, 19, 16, 0.06), 0 24px 48px -32px rgba(23, 19, 16, 0.3);
}
.photo-grid + figcaption { font-size: 0.82rem; color: var(--muted); font-style: italic; }

.about-section { margin-top: clamp(2.6rem, 6vh, 4rem); border-top: 1px solid var(--line); padding-top: 2.4rem; }
.about-section h2 {
  font-family: "Fraunces", serif; font-weight: 700; font-size: 1.55rem;
  letter-spacing: -0.02em; margin-bottom: 1.3rem; font-variation-settings: "SOFT" 40;
}
.about-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { order: -1; max-width: 340px; }
}
