/* Quiet: the homepage and About. A name over a slow dark scene, then writing, then a short background.
   Loaded after style.css; it owns everything inside <main> on those two pages. */
.quiet {
  --q-ink: #eeeae2;
  --q-soft: #c4c7c1;   /* secondary text: 10.9:1 on --bg */
  --q-faint: #9fa39d;  /* dates and small meta: 6.9:1 on --bg */
  --q-line: #ffffff17;
  --q-warm: #e4d3b4;
  --q-col: calc(100% - 2 * var(--pad));  /* the same left edge as the header */
  font-size: 19px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--q-ink);
}
.quiet main { display: block; }
.quiet a:focus-visible, .quiet button:focus-visible, .quiet input:focus-visible { outline: 2px solid var(--q-warm); outline-offset: 4px; }

/* ---- Hero: the name over the scene ---- */
.qh-hero { position: relative; min-height: max(620px, 100svh); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.qh-hero .hz-canvas, .qh-hero .hz-still { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; }
.qh-hero .hz-canvas { display: block; }
.qh-hero .hz-still { display: none; }
.scene-static .qh-hero .hz-canvas[hidden] + .hz-still { display: block; }
.qh-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; z-index: -1; background: linear-gradient(#10121200, var(--bg)); pointer-events: none; }
.qh-hero-copy { width: var(--q-col); margin: 0 auto; padding-bottom: clamp(72px, 12svh, 140px); }
.qh-hero h1 {
  font: 400 clamp(76px, 12.5vw, 216px)/.86 var(--roman);
  letter-spacing: -.035em;
  margin-left: -.04em;
  text-wrap: balance;
}
.qh-line { margin-top: clamp(18px, 2.4vw, 32px); font-size: clamp(21px, 2vw, 28px); line-height: 1.3; color: var(--q-soft); }
.hz-pause {
  position: absolute; right: var(--pad); bottom: clamp(24px, 4svh, 44px);
  width: 44px; height: 44px; border: 0; border-radius: 4px; background: none; color: var(--q-faint);
  display: grid; place-items: center; opacity: .7; transition: opacity .2s, color .2s;
}
.hz-pause:hover { opacity: 1; color: var(--q-ink); }
.hz-pause span { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.hz-pause[data-state="paused"] span { width: 0; height: 0; border: 0; border-left: 11px solid currentColor; border-block: 7px solid transparent; }
/* Only the line rises in: the H1 paints at once so it stays the LCP element. */
.qh-line { animation: qh-rise 1.4s cubic-bezier(.2, .7, .2, 1) .15s both; }
@keyframes qh-rise { from { opacity: 0; transform: translateY(14px); } }

/* ---- Sections ---- */
.qh-section { width: var(--q-col); margin: 0 auto; padding-block: clamp(48px, 7vw, 96px); }
.qh-section + .qh-section { border-top: 1px solid var(--q-line); }
.qh-h2 { font: 400 clamp(44px, 5.4vw, 80px)/1 var(--roman); letter-spacing: -.02em; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---- Writing: five pieces, large ---- */
.qh-posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--q-line); }
.qh-posts li { border-bottom: 1px solid var(--q-line); }
.qh-post {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; row-gap: 10px;
  padding-block: clamp(24px, 2.8vw, 36px);
}
.qh-post-title { grid-column: 1; max-width: 22em; font: 400 clamp(30px, 3.3vw, 48px)/1.06 var(--roman); letter-spacing: -.012em; text-wrap: balance; transition: color .25s; }
.qh-post-dek { grid-column: 1; max-width: 62ch; color: var(--q-soft); font-size: 19px; line-height: 1.5; }
.qh-post time { grid-column: 2; grid-row: 1; align-self: baseline; padding-top: .5em; color: var(--q-faint); font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qh-post:hover .qh-post-title { color: var(--q-warm); }
.qh-more { margin-top: 28px; font-size: 19px; }
.qh-more a, .qh-about-link a { color: var(--q-ink); text-decoration: underline; text-decoration-color: #ffffff40; text-underline-offset: 6px; text-decoration-thickness: 1px; transition: text-decoration-color .2s; }
.qh-more a:hover, .qh-about-link a:hover { text-decoration-color: var(--q-warm); }

/* The one ask on the site: a quiet line, not a box. */
.qh-subscribe { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 2fr); gap: 16px 40px; align-items: end; }
.qh-subscribe > p { font: 400 clamp(26px, 2.4vw, 34px)/1.15 var(--roman); }
.qh-subscribe .press-form { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 12px; align-items: end; margin: 0; }
.qh-subscribe .press-field { display: grid; gap: 6px; font-size: 15px; color: var(--q-soft); }
.qh-subscribe input { width: 100%; min-height: 52px; padding: 12px 0; font: inherit; font-size: 19px; color: var(--q-ink); background: none; border: 0; border-bottom: 1px solid #ffffff40; border-radius: 0; }
.qh-subscribe input:focus { border-color: var(--q-warm); outline: none; }
.qh-subscribe .press-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qh-subscribe .press-submit { min-height: 52px; padding: 0 24px; font-size: 18px; color: var(--bg); background: var(--q-ink); border: 0; border-radius: 4px; transition: background .2s; }
.qh-subscribe .press-submit:hover { background: var(--q-warm); }
.qh-subscribe .press-submit:disabled { opacity: .6; }
.qh-subscribe .press-form-status { grid-column: 1 / -1; min-height: 1.5em; margin: 0; font-size: 16px; color: var(--q-soft); }

/* ---- Background: a few beats, the photo, what I've built ---- */
.qh-story { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(240px, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.qh-beats p { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.35; max-width: 30ch; }
.qh-beats p + p { margin-top: 1.1em; }
.qh-beats p:nth-child(2) { color: var(--q-soft); }
.qh-beats .qh-about-link { font-size: 19px; margin-top: 2.2em; }
.qh-portrait { margin: 0; justify-self: end; width: min(100%, 420px); }
.qh-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.qh-built { margin-top: clamp(64px, 8vw, 112px); }
.qh-built h3, .qh-built-h { font: 400 clamp(28px, 2.6vw, 38px)/1.1 var(--roman); margin-bottom: 20px; }
.qh-built ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--q-line); }
.qh-built li { border-bottom: 1px solid var(--q-line); }
.qh-built a { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 8px 40px; align-items: baseline; padding-block: 22px; }
.qh-built-name { font-size: 22px; transition: color .2s; }
.qh-built-note { color: var(--q-soft); }
.qh-built a:hover .qh-built-name { color: var(--q-warm); }

/* ---- About page ---- */
.ab-head { width: var(--q-col); margin: 0 auto; padding-top: clamp(150px, 18vw, 220px); padding-bottom: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(240px, 1fr); gap: clamp(40px, 7vw, 120px); align-items: end; }
.ab-head h1 { font: 400 clamp(64px, 9vw, 150px)/.9 var(--roman); letter-spacing: -.03em; }
.ab-head .qh-line { animation: none; }
.ab-head .qh-portrait { grid-row: span 2; }
.ab-body { width: var(--q-col); margin: 0 auto; padding-bottom: clamp(48px, 7vw, 96px); }
.ab-beat { display: grid; grid-template-columns: minmax(160px, .55fr) minmax(0, 1.45fr); gap: 12px clamp(32px, 6vw, 96px); padding-block: clamp(32px, 4vw, 56px); border-top: 1px solid var(--q-line); }
.ab-beat h2 { font: 400 clamp(32px, 3vw, 44px)/1.05 var(--roman); letter-spacing: -.01em; }
.ab-beat p { max-width: 62ch; font-size: 20px; line-height: 1.65; color: var(--q-soft); }
.ab-beat p:first-of-type { color: var(--q-ink); }
.ab-beat p + p { margin-top: 1em; }
.ab-beat a { color: var(--q-ink); text-decoration: underline; text-decoration-color: #ffffff40; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.ab-beat a:hover { text-decoration-color: var(--q-warm); }
.ab-body .qh-built { margin-top: 0; padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--q-line); }

@media (max-width: 860px) {
  .qh-post { grid-template-columns: 1fr; }
  .qh-post time { grid-column: 1; grid-row: 1; padding-top: 0; font-size: 15px; }
  .qh-subscribe, .qh-story, .ab-head { grid-template-columns: 1fr; }
  .qh-subscribe .press-form { grid-template-columns: 1fr 1fr; }
  .qh-subscribe .press-submit { grid-column: 1 / -1; }
  .qh-portrait { justify-self: start; width: min(100%, 360px); }
  .ab-head .qh-portrait { grid-row: auto; }
  .ab-beat { grid-template-columns: 1fr; }
  .qh-built a { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .quiet { font-size: 18px; }
  .qh-hero { min-height: max(560px, 92svh); }
  .qh-hero h1 { font-size: 21vw; }
  .qh-subscribe .press-form { grid-template-columns: 1fr; }
  .ab-head h1 { font-size: 17vw; }
}
@media (prefers-reduced-motion: reduce) {
  .qh-line { animation: none; }
}
@media print {
  .qh-hero { min-height: 0; padding-top: 60px; }
  .hz-canvas, .hz-still, .hz-pause, .qh-subscribe { display: none !important; }
}
.hz-capture .site-header, .hz-capture .qh-hero-copy, .hz-capture .hz-pause, .hz-capture .qh-hero::after { visibility: hidden; }
