/* ==========================================================================
   Second Growth Works — shared styles for every *.dc.html page
   1. Tokens   2. Base   3. Shared components   4. Page sections
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg: #f4f1ea; /* page background */
  --ink: #1f1c17; /* main text, dark fills */
  --muted: #6b6358; /* labels, meta text */
  --body: #4a443b; /* intro / lede paragraphs */
  --text: #3a352d; /* long-form paragraphs */
  --accent: #8a4a2c; /* rust eyebrow labels */
  --tile: #e8e2d5; /* image tile backdrop */
  --panel: #ebe6db; /* tinted bands and boxes */
  --rule: #1f1c1722; /* hairlines */
  --rule-strong: #1f1c1733; /* darker hairlines */

  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", monospace;

  --gutter: clamp(20px, 5vw, 64px); /* page side padding */
}

/* 2. Base ------------------------------------------------------------------ */
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
a {
  color: var(--ink);
}
a:hover {
  opacity: 0.7;
}
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* 3. Shared components ----------------------------------------------------- */

/* Page wrapper */
.page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
}
.page--column {
  display: flex;
  flex-direction: column;
}

/* Header + nav (markup comes from site-layout.js) */
site-header,
site-footer {
  display: contents; /* wrappers don't affect layout */
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 28px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-logo {
  width: 66px;
  height: auto;
  display: block;
}
.brand-name {
  font-size: 22px;
  letter-spacing: 0.01em;
}
/* Very narrow phones: stack "Second Growth" over "Works" so the hamburger stays on the same row */
@media (max-width: 379.98px) {
  .brand-name {
    line-height: 1.1;
  }
  .brand-name-line {
    display: block;
  }
}
.nav {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-link {
  text-decoration: none;
}
.nav-link.is-active {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.nav-link[hidden] {
  display: none;
}

/* Hamburger button: only shown on small screens */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-right: -11px; /* line the bars up with the page edge */
  background: transparent;
  border: none;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover {
  opacity: 0.7;
}
.nav-toggle-bar {
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.site-header.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.site-header.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.site-header.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Keep the breakpoint in sync with MOBILE in site-layout.js */
@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }
  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
  }
  .site-header.is-open .nav {
    display: flex;
  }
  .nav-link {
    padding: 16px 0;
    border-top: 1px solid var(--rule);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-bar {
    transition: none;
  }
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 32px var(--gutter);
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.site-footer-links {
  display: flex;
  gap: 20px;
}
.site-footer-link {
  color: var(--muted);
  text-underline-offset: 4px;
}

/* Headings and labels */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 64px 0 40px;
}
.page-head--ruled {
  border-bottom: 1px solid var(--rule);
}
.page-head-note {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.page-title {
  font-weight: 300;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.empty-note {
  font-size: 22px;
  color: var(--muted);
  margin: 48px 0 0;
}

/* Links and buttons */
.link {
  text-underline-offset: 5px;
}
.link-muted {
  color: var(--muted);
}
.link-mono {
  font-family: var(--mono);
  font-size: 14px;
  text-underline-offset: 5px;
}
.back-link {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.btn-dark {
  background: var(--ink);
  color: var(--bg);
  padding: 16px 24px;
  text-decoration: none;
}
/* Light versions for use over dark photos */
.btn-light {
  background: var(--bg);
  color: var(--ink);
  padding: 16px 24px;
  text-decoration: none;
}
.link-light {
  color: var(--bg);
}

/* Image tile: beige box with the photo contained and centered */
.tile {
  position: relative;
  background: var(--tile);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
/* A photo placed directly in a tile is laid over the box (inside the tile's padding)
   rather than sizing it. The tile's own shape (aspect-ratio, width/height) sets its size,
   so a large photo can't stretch the box. Safari otherwise grows the tile to fit the photo. */
.tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: inherit;
}

/* Project card caption (Home + Work) */
.card-wood {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

/* Journal post meta line (Journal + Post) */
.post-meta {
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.post-tag {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* 4. Page sections --------------------------------------------------------- */

/* Home ---------------------------------------------------------------------- */
/* Full-bleed hero photo with the tagline and buttons overlaid along the bottom.
   The hero grows taller if the text needs more room (e.g. on phones). */
.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(480px, 50vw, 760px);
}
.home-hero-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%; /* crop focus: move to keep the subject in frame */
}
/* Readability: a soft blur plus a dark fade rising from the bottom edge.
   (Drawn on the hero, since an <img> can't have ::before/::after.) */
.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.home-hero::before {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  -webkit-mask-image: linear-gradient(to top, #000 0, #000 12%, transparent 32%);
  mask-image: linear-gradient(to top, #000 0, #000 12%, transparent 32%);
}
.home-hero::after {
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--ink) 80%, transparent) 0,
    color-mix(in srgb, var(--ink) 55%, transparent) 30%,
    transparent 65%
  );
}
.home-intro {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 28px 40px;
  padding: 120px var(--gutter) clamp(32px, 5vw, 64px);
  color: var(--bg);
}
.home-intro .home-tagline,
.home-intro .link-light {
  text-shadow: 0 1px 16px color-mix(in srgb, var(--ink) 40%, transparent);
}
.home-tagline {
  font-weight: 300;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.home-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.home-section {
  padding: 88px var(--gutter);
  border-top: 1px solid var(--rule);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin: 0 0 40px;
}
.section-title {
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
  margin: 0;
  letter-spacing: -0.01em;
}
.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.recent-card {
  text-decoration: none;
  display: block;
}
.recent-tile {
  aspect-ratio: 4/5;
  padding: 40px;
}
.recent-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 14px;
  font-size: 20px;
}
.story-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px 40px;
  padding: 64px var(--gutter);
  border-top: 1px solid var(--rule);
  background: var(--panel);
}
/* Phones: let the link drop below instead of squeezing the text */
@media (max-width: 720px) {
  .story-band {
    flex-wrap: wrap;
  }
}
.story-band-logo {
  width: 120px;
  height: auto;
  display: block;
  flex: none;
}
.story-band-text {
  font-weight: 300;
  font-size: 26px;
  line-height: 1.4;
  margin: 0;
  /* Fixed width that shrinks on narrower screens, so the group stays centered with the link beside it */
  flex: 0 1 60ch;
  text-wrap: pretty;
}
.story-band-link {
  white-space: nowrap;
}
.home-bottom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 64px;
  padding: 88px var(--gutter);
  border-top: 1px solid var(--rule);
}
.teaser-label {
  margin: 0 0 20px;
}
.teaser-list {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--rule-strong);
}
.teaser-item {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--rule-strong);
  text-decoration: none;
  font-size: 22px;
}
.teaser-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  flex: none;
}
.cta-panel {
  background: var(--ink);
  color: var(--bg);
  padding: 48px;
}
.cta-title {
  font-weight: 300;
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 18px;
}
.cta-text {
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 32px;
  color: #d8d1c4;
  max-width: 560px;
}
.cta-link {
  color: var(--bg);
}

/* Work ---------------------------------------------------------------------- */
.work-main {
  flex: 1;
  padding: 0 var(--gutter);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 48px 28px;
  padding-bottom: 96px;
}
.work-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.work-tile {
  aspect-ratio: 4/5;
  padding: 36px;
}
.work-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 14px;
}
.work-card-title {
  font-size: 22px;
}
.work-card-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.work-detail {
  padding: 40px 0 96px;
}
.work-detail-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  margin-top: 36px;
  align-items: flex-start;
}
.work-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 2 1 480px;
  min-width: 0;
  max-width: 100%;
  container-type: inline-size; /* lets .work-photo size itself from this column's width */
}
.work-photo {
  /* Square (100cqi = column width) but never taller than the screen: leaves room for the
     header and back link above, so the whole photo is visible on load. Always full width.
     The photo shrinks to fit inside (see .tile > img). */
  height: min(100cqi, max(320px, 100svh - 230px));
  padding: clamp(24px, 5vw, 64px);
}
.thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.thumb {
  width: 88px;
  height: 88px;
  padding: 8px;
  border: none;
  outline: 1.5px solid transparent;
  outline-offset: 2px;
  cursor: pointer;
}
.thumb.is-active {
  outline-color: var(--ink);
}
.work-info {
  position: sticky;
  top: 32px;
  flex: 1 1 300px;
  min-width: 0;
}
.work-title {
  font-weight: 300;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.specs {
  display: grid;
  grid-template-columns: 90px 1fr;
  row-gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  border-top: 1px solid var(--rule-strong);
  padding-top: 16px;
}
.specs-label {
  color: var(--muted);
}
.work-note {
  font-size: 20px;
  line-height: 1.55;
  margin: 28px 0 0;
  color: var(--body);
  text-wrap: pretty;
}
.work-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 14px;
}

/* Story --------------------------------------------------------------------- */
/* One tree drawing split in two: the trunk rises behind the hero, the roots
   spread behind the chapters. Both render at the same width so they meet at the seam. */
.story-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 72px var(--gutter) clamp(140px, 16vw, 220px);
}
.story-trunk,
.story-roots img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max(100%, 760px);
  height: auto;
  max-width: none;
  display: block;
  pointer-events: none;
}
.story-trunk {
  bottom: 0;
}
/* Soft paper-colored halo that keeps the hero text readable over the trunk */
.story-hero-glow {
  --glow-pad: clamp(24px, 5vw, 72px);
  position: relative;
  width: 100%;
  max-width: min(900px, max(80%, 560px));
  box-sizing: border-box;
  padding: var(--glow-pad) clamp(8px, 4vw, 64px);
  margin: calc(-1 * var(--glow-pad)) 0;
  background: radial-gradient(
    closest-side,
    var(--bg) 62%,
    color-mix(in srgb, var(--bg) 82%, transparent) 78%,
    transparent 100%
  );
}
.story-hero-text {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(28px, 4vw, 44px) clamp(12px, 3vw, 40px) clamp(32px, 4.5vw, 52px);
  /* Paper backing (same as .chapter-text) so the trunk lines never cross the text where
     the halo is too narrow, mostly 380–850px wide */
  border-radius: 40px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  box-shadow: 0 0 32px 20px color-mix(in srgb, var(--bg) 86%, transparent);
}
.story-hero-logo {
  width: clamp(180px, 24vw, 300px);
  height: auto;
  display: block;
  margin: 0 0 28px;
}
/* "Cuong Bui / is Second Growth", with a short rust rule underneath */
.story-byline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0 0 36px;
  font-weight: inherit;
}
.story-byline::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-top: 22px;
}
.story-name {
  font-size: min(clamp(30px, 3.8vw, 48px), 8cqi);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.story-name-sub {
  font-size: clamp(17px, 1.7vw, 20px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  color: var(--body);
}
.story-eyebrow {
  margin: 0 0 20px;
}
/* Font sizes also scale with the halo width (cqi) so the text never overflows it */
.story-title {
  font-weight: 300;
  font-size: min(clamp(24px, 3vw, 38px), 7cqi);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.story-lede {
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.5;
  margin: 0;
  max-width: 440px;
  color: var(--body);
  text-wrap: pretty;
}
.story-chapters {
  position: relative;
  z-index: 1;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
}
/* Roots fade out toward the bottom of the chapters */
.story-roots {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0,
    rgba(0, 0, 0, 0.75) 30%,
    rgba(0, 0, 0, 0.4) 70%,
    transparent 94%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0,
    rgba(0, 0, 0, 0.75) 30%,
    rgba(0, 0, 0, 0.4) 70%,
    transparent 94%
  );
}
.story-roots img {
  top: 0;
}
.chapter {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: 88px 0;
}
/* Rule between chapters only, so the trunk runs straight into the roots */
.chapter + .chapter {
  border-top: 1px solid var(--rule);
}
/* Paper backing so the text stays readable over the roots */
.chapter-text {
  position: relative;
  max-width: 70ch;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  box-shadow: 0 0 44px 36px color-mix(in srgb, var(--bg) 86%, transparent);
  border-radius: 40px;
}
.chapter-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 16px;
}
.chapter-title {
  font-weight: 400;
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.1;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
/* Chapter paragraphs: plain <p> tags, spaced apart, last one flush */
.chapter-text p {
  font-size: 20px;
  line-height: 1.6;
  margin: 0 0 18px;
  color: var(--text);
  text-wrap: pretty;
}
.chapter-text p:last-child {
  margin-bottom: 0;
}
.chapter-photo {
  aspect-ratio: 4/3;
  padding: 32px;
}

.chapter-no-photo {
  position: relative;
  display: flex;
  justify-content: center;
  /* padding: clamp(96px, 12vw, 152px) 0; */
  /* border-top: 1px solid #1f1c1722; */
  text-align: center;
  /* max-width: 70ch; */
}
/* Photo gallery inside a chapter tile (images or muted looping videos): first one is
   large on the left, the next two stack on the right. Sized for portrait (3:4) photos. */
.chapter-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 9/8;
}
.chapter-gallery > * {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  object-fit: cover;
}
.chapter-gallery > :first-child {
  grid-row: span 2;
}
/* Stacked variant: first two images are landscape and stack on the left at their
   natural shape (never cropped); the last image is portrait and fills the right column. */
.chapter-gallery--stacked {
  grid-template-columns: 1fr 0.9fr;
  grid-template-rows: auto auto;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
}
.chapter-gallery--stacked > * {
  height: auto;
}
.chapter-gallery--stacked > :first-child {
  grid-row: auto;
}
.chapter-gallery--stacked > :last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 100%;
  contain: size; /* let the left column set the height */
}
.photo-placeholder {
  background: var(--tile);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: #8a8275;
  text-align: center;
  padding: 24px;
}
.story-closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  padding: 96px var(--gutter);
  border-top: 1px solid var(--rule);
  background: var(--panel);
}
.story-closing-text {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.3;
  margin: 0;
  max-width: 640px;
}
.story-actions {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* Journal ------------------------------------------------------------------- */
.journal-main {
  flex: 1;
  padding: 0 var(--gutter) 96px;
}
.journal-list {
  display: flex;
  flex-direction: column;
}
.journal-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.journal-cover {
  flex: 1 1 280px;
  aspect-ratio: 4/3;
  padding: 24px;
}
.journal-entry-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 2 1 360px;
  min-width: 0;
}
.journal-entry-title {
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}
.journal-excerpt {
  font-size: 19px;
  line-height: 1.5;
  margin: 0;
  color: var(--body);
  max-width: 620px;
  text-wrap: pretty;
}
.read-more {
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Post ---------------------------------------------------------------------- */
.post-main {
  flex: 1;
  padding: 48px var(--gutter) 96px;
}
.post-header {
  max-width: 720px;
  margin: 48px auto 0;
}
.post-header-meta {
  margin: 0 0 20px;
}
.post-title {
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
  text-wrap: balance;
}
.post-cover {
  max-width: 1080px;
  margin: 0 auto 56px;
  aspect-ratio: 16/10;
  padding: clamp(24px, 5vw, 56px);
}
.post-body {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.post-paragraph {
  font-size: 21px;
  line-height: 1.65;
  margin: 0;
  color: #2c2822;
  text-wrap: pretty;
}
.post-heading {
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 24px 0 0;
}
.post-quote {
  font-style: italic;
  font-weight: 300;
  font-size: 30px;
  line-height: 1.3;
  margin: 16px 0;
  padding: 0 0 0 28px;
  border-left: 1px solid var(--ink);
  color: var(--ink);
}
.post-figure {
  margin: 16px 0;
}
.post-figure-frame {
  padding: 32px;
}
/* No fixed shape: this tile takes its height from the photo, so keep the photo in flow */
.post-figure-frame img {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  max-height: 640px;
}
.post-caption {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

/* Contact ------------------------------------------------------------------- */
.contact-main {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(48px, 7vw, 96px);
  padding: 72px var(--gutter) 96px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.contact-title {
  margin: 0 0 24px;
}
.contact-lede {
  font-size: 22px;
  line-height: 1.5;
  margin: 0;
  color: var(--body);
  max-width: 480px;
  text-wrap: pretty;
}
.contact-details {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  row-gap: 14px;
  font-family: var(--mono);
  font-size: 14px;
  border-top: 1px solid var(--rule-strong);
  padding-top: 20px;
  max-width: 480px;
}
.contact-label {
  color: var(--muted);
}
.contact-link {
  text-underline-offset: 4px;
}
.contact-email {
  overflow-wrap: anywhere;
}
.commission-box {
  background: var(--panel);
  padding: clamp(24px, 5vw, 36px);
  max-width: 480px;
  box-sizing: border-box;
}
.commission-status {
  margin: 0 0 14px;
}
.commission-title {
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 16px;
}
.commission-steps {
  margin: 0;
  padding: 0 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
}
.commission-lead {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin: 20px 0 0;
}
.contact-thanks {
  border-top: 2px solid var(--ink);
  padding-top: 28px;
}
.contact-thanks-title {
  font-weight: 300;
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 16px;
}
.contact-thanks-text {
  font-size: 20px;
  line-height: 1.5;
  margin: 0;
  color: var(--body);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-top: 2px solid var(--ink);
  padding-top: 28px;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.chip.is-active {
  background: var(--ink);
  color: var(--bg);
}
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid #1f1c1766;
  padding: 10px 0;
  font-size: 20px;
  outline: none;
}
.field-textarea {
  line-height: 1.5;
  resize: vertical;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.btn-submit {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  background: var(--ink);
  color: var(--bg);
  padding: 16px 28px;
  border: none;
  cursor: pointer;
}
.form-error {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
