/* ==========================================================================
   danielospina.info — design system
   Warm paper, deep ink, coral + teal accents. Editorial serif display,
   quiet grotesque body. No build step, no framework.
   ========================================================================== */

:root {
  --paper:        #fbf8f3;
  --paper-sunk:   #f4efe7;
  --ink:          #14110f;
  --ink-soft:     #3d352f;
  --ink-muted:    #6f6459;
  --ink-faint:    #756b60;
  --rule:         rgba(20, 17, 15, 0.13);
  --rule-strong:  rgba(20, 17, 15, 0.28);
  --coral:        #d8462c;   /* display / large text only (4.1:1) */
  --coral-ink:    #bf3b22;   /* small text: 5.1:1 on paper, 4.8:1 on sunk */
  --coral-tint:   #fbeae5;
  --teal:         #157a71;   /* small text: 4.9:1 on paper */
  --teal-tint:    #e4f2f0;
  --ink-muted-inverse: #b7ada3;

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino,
             Georgia, serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             Helvetica, Arial, sans-serif;
  --mono:    ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --measure: 68ch;
  --gutter:  clamp(1.25rem, 4vw, 3rem);
  --max:     1140px;
  --radius:  2px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.018em;
  text-wrap: balance;
  margin: 0 0 .5em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem); line-height: 1.16; }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.25; }
h4 { font-size: 1.0625rem; font-family: var(--body); font-weight: 600;
     letter-spacing: 0; line-height: 1.4; }

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em;
    text-decoration-color: var(--rule-strong); transition: color .18s var(--ease); }
a:hover { color: var(--coral); }

strong { font-weight: 600; }
em { font-style: italic; }

hr { border: 0; height: 1px; background: var(--rule); margin: 3.5rem 0; }

::selection { background: var(--coral); color: var(--paper); }

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

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

.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 4vw, 4rem); }
.section + .section,
.hero + .section,
.post-head + .article { padding-top: clamp(2rem, 4vw, 3.25rem); }
.section--sunk { background: var(--paper-sunk); }
.section--ink { background: var(--ink); color: #f2ece4; }
.section--ink a { color: #f2ece4; }
.section--ink h2 { color: #fff; }

.rule-top { border-top: 1px solid var(--rule); }

/* ----------------------------------------------------------- eyebrow ----- */
.list__item + .list__item { border-top: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--coral-ink);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.5rem;
  line-height: 1.4;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
  max-width: 6rem;
}
.section--ink .eyebrow { color: #e8a08f; }
.section--ink .eyebrow::after { background: rgba(255,255,255,.18); }
.eyebrow--plain::after { display: none; }

/* --------------------------------------------------------------- nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}
.nav__brand {
  font-family: var(--display);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav__brand span { color: var(--coral); }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(.85rem, 2vw, 1.9rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: .875rem;
  text-decoration: none;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  position: relative;
  padding-block: .35rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 500; }

.nav__cta {
  border: 1px solid var(--ink);
  padding: .5rem 1.05rem !important;
  border-radius: 999px;
  font-size: .8125rem !important;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--ink); color: var(--paper) !important; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .45rem .6rem;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  line-height: 0;
}

@media (max-width: 800px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.25rem;
  }
  .nav__links a { padding-block: .8rem; font-size: 1rem; border-bottom: 1px solid var(--rule); }
  .nav__links a::after { display: none; }
  .nav__links li:last-child a { border-bottom: 0; margin-top: .75rem; text-align: center; }
  .nav[data-open="true"] .nav__links { display: flex; }
}

/* --------------------------------------------------------------- hero ---- */
.hero { padding-block: clamp(3rem, 6vw, 6rem) clamp(2.5rem, 5vw, 5rem); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: baseline;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
}
.hero__meta .dot { color: var(--coral); }
@media (max-width: 620px) {
  .hero__meta { gap: .3rem 1rem; display: grid; }
  .hero__meta .dot { display: none; }
}
.hero__name {
  font-size: clamp(2.6rem, 1.7rem + 3.4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.hero__name em {
  font-style: italic;
  color: var(--coral);
}
.hero__lede {
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.375rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
  font-weight: 350;
}

.statement {
  font-family: var(--display);
  font-size: clamp(1.55rem, 1.1rem + 2.1vw, 2.6rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
  font-weight: 300;
}
.statement em { color: var(--coral); font-style: italic; }
.statement__source {
  display: block;
  margin-top: 1.75rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-style: normal;
}

/* -------------------------------------------------------------- intro ---- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

.prose { max-width: var(--measure); }
.prose > p:first-child {
  font-size: 1.1875rem;
  line-height: 1.65;
}
.prose p { color: var(--ink-soft); }
.prose a:not(.btn) { color: var(--ink); border-bottom: 1px solid var(--rule-strong); text-decoration: none; }
.prose a:not(.btn):hover { color: var(--coral); border-color: var(--coral); }

/* --------------------------------------------------------- fact panel ---- */
.facts { border-top: 1px solid var(--rule); }
.facts__row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: .95rem;
  border-bottom: 1px solid var(--rule);
  font-size: .9rem;
}
.facts__k {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: .3rem;
}
.facts__v { color: var(--ink-soft); }

/* -------------------------------------------------------------- cards ---- */
.grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  padding: clamp(1.4rem, 2.6vw, 2.15rem);
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.card__num {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .13em;
  color: var(--coral-ink);
}
.card h3 { margin: 0; }
.card p { margin: 0; font-size: .9375rem; color: var(--ink-muted); line-height: 1.6; }

/* Published cards — the article image carries the card, so the padding moves
   inside a body wrapper instead of sitting on the card itself. */
.card--media { padding: 0; gap: 0; }
.card--media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--paper-sunk);
}
.card--media__body {
  padding: clamp(1.1rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.card--media__kicker {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--coral-ink);
}
.card--media:hover img { opacity: .88; }
.card--media img { transition: opacity .2s ease; }

/* A wordmark has no bleed to fill the frame with — contain it and let the
   card's own paper show through, so it reads as intentional, not starved. */
.card--media--logo img {
  object-fit: contain;
  padding: clamp(1.6rem, 4vw, 3rem);
  background: var(--paper);
}

/* --------------------------------------------------------------- list ---- */
.ext-arrow {
  font-family: var(--mono);
  font-size: .72em;
  color: var(--coral-ink);
  margin-left: .1em;
}
.ext { color: var(--teal); letter-spacing: .12em; }

.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.list__item {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.1rem, 2.2vw, 1.6rem);
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
@media (max-width: 700px) {
  .list__item { grid-template-columns: 1fr; gap: .35rem; }
}
.list__where {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: .35rem;
  line-height: 1.6;
}
.list__body h3 { margin: 0 0 .3rem; }
.list__body p { margin: 0; color: var(--ink-muted); font-size: .9375rem; max-width: 58ch; }
.list__item a.title-link { text-decoration: none; }
.list__item a.title-link:hover h3 { color: var(--coral); }

/* --------------------------------------------------------- testimonials -- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  margin: 0;
  border-top: 2px solid var(--coral);
  padding-top: 1.25rem;
}
.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.125rem;
  line-height: 1.45;
  letter-spacing: -0.008em;
}
.quote figcaption {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.7;
}

/* ------------------------------------------------------------- photos ---- */
.photo-figure { margin: 0; }
.photo { position: relative; overflow: hidden; background: var(--paper-sunk); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall  { aspect-ratio: 4 / 5; }
.photo--band  { aspect-ratio: 21 / 7; }
@media (max-width: 700px) {
  .photo--band { aspect-ratio: 3 / 2; }
}
.photo-figure figcaption {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: .75rem;
}
/* full-bleed image, wrap-aligned caption */
.photo-figure--bleed figcaption {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------ buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--body);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--coral); border-color: var(--coral); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.section--ink .btn { background: #f2ece4; color: var(--ink); border-color: #f2ece4; }
.section--ink .btn:hover { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.arrow { font-family: var(--mono); font-size: .85em; }

/* ------------------------------------------------------------ writing ---- */
.post-head { padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.post-meta {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  margin-bottom: 1.5rem;
}
.post-title { max-width: 22ch; }

.article { max-width: min(var(--measure), 100%); }
.article > p,
.article > ul,
.article > ol,
.article > blockquote,
.article > h2,
.article > h3,
.article > figure { color: var(--ink-soft); }
.article > p { margin-bottom: 1.4em; font-size: 1.0625rem; line-height: 1.75; }
.article > p:first-of-type { font-size: 1.1875rem; color: var(--ink); }
.article h2 { margin-top: 2.5rem; margin-bottom: .75rem; color: var(--ink); font-size: clamp(1.4rem, 1.2rem + .9vw, 1.85rem); }
.article h3 { margin-top: 2rem; margin-bottom: .6rem; color: var(--ink); }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.article li { margin-bottom: .55em; }
.article blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--coral);
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
}
.article img { margin: 2rem 0; border: 1px solid var(--rule); }
.article a { color: var(--ink); border-bottom: 1px solid var(--rule-strong); text-decoration: none; }
.article a:hover { color: var(--coral); border-color: var(--coral); }
.article strong { color: var(--ink); }

.post-foot {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: .875rem;
  color: var(--ink-muted);
}

/* -------------------------------------------------------------- forms ---- */
.form { display: grid; gap: 1.1rem; max-width: 520px; }
.field { display: grid; gap: .4rem; }
.field label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field input, .field textarea, .field select {
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: .7rem .85rem;
  width: 100%;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible,
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-color: var(--coral);
}
.field textarea { min-height: 9rem; resize: vertical; }
.form__note { font-size: .8125rem; color: var(--ink-faint); margin: 0; }
.form__direct {
  font-size: .875rem;
  color: var(--ink-muted);
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.form__direct a { color: var(--ink); font-weight: 500; }

/* --------------------------------------------------------- callout box --- */
.callout {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--teal);
  background: var(--teal-tint);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
}
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- footer ---- */
.footer { background: var(--ink); color: #cbc2b8; padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; }
.footer a { color: #f2ece4; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.22); }
.footer a:hover { color: #fff; border-color: var(--coral); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .9rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand {
  font-family: var(--display);
  font-size: 1.375rem;
  color: #fff;
  margin: 0 0 .75rem;
}
.footer__h {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #a89e94;
  margin: 0 0 1rem;
  font-weight: 500;
}
.footer__tag { font-size: .9rem; max-width: 34ch; line-height: 1.6; color: #a89e94; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: .78rem;
  color: #8b8178;
  font-family: var(--mono);
  letter-spacing: .04em;
}

/* -------------------------------------------------------------- misc ----- */
.muted { color: var(--ink-muted); }
.muted-inverse { color: var(--ink-muted-inverse); max-width: 46ch; }
.section--ink .btn--ghost {
  background: transparent;
  color: #f2ece4;
  border-color: rgba(255,255,255,.32);
}
.section--ink .btn--ghost:hover { background: var(--coral); border-color: var(--coral); color: #fff; }

/* Six Key Interactions (about page) */
.about-sub {
  font-weight: 300;
  max-width: 26ch;
  margin-bottom: 2.5rem;
}
.six {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.six li {
  background: var(--paper);
  padding: 1.1rem 1.25rem;
  font-family: var(--display);
  font-size: 1.125rem;
  display: flex;
  align-items: baseline;
  gap: .6rem;
}
@media (max-width: 680px) { .six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .six { grid-template-columns: 1fr; } }

.closing {
  margin-top: 2rem;
  font-family: var(--display);
  font-size: 1.375rem;
  color: var(--ink);
}

/* post hero banner */
.post-hero { margin: 0 auto 2.5rem; }
.post-hero img { width: 100%; height: auto; border: 1px solid var(--rule); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: .75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

@media print {
  .nav, .footer, .btn-row { display: none; }
  body { background: #fff; color: #000; }
}

/* Quote band — a real portrait, subject on the right third, words on the left.
   A left-to-right scrim keeps the type legible without flattening the photo. */
.quote-band {
  position: relative;
  max-width: 1200px;
  margin: clamp(2rem, 5vw, 3.5rem) auto;
  overflow: hidden;
  border-radius: 2px;
  background: #14110f;
}
.quote-band img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 72% 50%;
}
.quote-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(12,10,9,.90) 0%, rgba(12,10,9,.72) 38%, rgba(12,10,9,.18) 62%, rgba(12,10,9,0) 82%);
}
.quote-band blockquote {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .9rem;
  margin: 0;
  padding: clamp(1.5rem, 5vw, 4rem);
  max-width: 36ch;
  color: #f7f2ea;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.1vw, 1.65rem);
  line-height: 1.38;
  font-style: italic;
  text-wrap: pretty;
}
.quote-band cite {
  font-family: var(--mono);
  font-style: normal;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(247,242,234,.72);
}
@media (max-width: 640px) {
  .quote-band img { aspect-ratio: 3 / 4; object-position: 70% 30%; }
  .quote-band::after { background: linear-gradient(180deg, rgba(12,10,9,.35) 0%, rgba(12,10,9,.88) 55%); }
  .quote-band blockquote { justify-content: flex-end; max-width: none; font-size: 1rem; }
}

/* Square portrait on the About page. */
.photo--portrait img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
}

/* The book — cover beside a short blurb. Cover is square and small on purpose:
   it credits the work without turning the home page into a storefront. */
.book {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.book__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(20, 17, 15, .16);
  transition: transform .25s var(--ease);
}
.book__cover:hover img { transform: translateY(-2px); }
.book__body h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: .2rem 0 .1rem;
}
.book__sub {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--ink-muted);
  margin: 0 0 .9rem;
}
.book__by {
  font-size: .9375rem;
  color: var(--ink-muted);
  margin: 0 0 1.1rem;
}
@media (max-width: 640px) {
  .book { grid-template-columns: 130px minmax(0, 1fr); align-items: start; }
}

/* Featured essay — a text card, deliberately without the article's title-card
   image, which would repeat the headline verbatim. Ink ground makes it read as
   the newest thing on the page. */
.card--feature {
  background: #14110f;
  color: #f7f2ea;
  gap: .8rem;
  justify-content: space-between;
}
.card--feature .card__kicker {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #e2705a;
}
.card--feature h3 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.25;
  margin: 0;
  color: #f7f2ea;
}
.card--feature p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.6;
  color: rgba(247, 242, 234, .72);
}
.card--feature .card__more {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f7f2ea;
  border-bottom: 1px solid rgba(247, 242, 234, .35);
  padding-bottom: .25rem;
  align-self: flex-start;
}
.card--feature:hover .card__more { border-bottom-color: #f7f2ea; }
