/* ============================================================================
   Page compositions
   Source of truth: docs/brianprice-design-visual-spec.md § 7
   ========================================================================== */

/* ------------------------------------------------------- Home · about ---- */
/* 60/40 colour block: sand block with the bio, portrait to the right. */
.about {
  padding-block: var(--s8);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
  gap: var(--s7);
  align-items: start;
}

.about__copy { max-width: 60ch; }
.about__copy h2 { margin-bottom: var(--s3); }

.about__lead {
  font-family: var(--font-display);
  font-variation-settings: var(--display-variation);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.1;
  margin-bottom: var(--s2);
}

.about__copy p + p,
.about__copy .about__block { margin-top: var(--s3); }
.about__block { margin-top: var(--s5); }
.about__block .eyebrow { color: var(--ink-soft); margin-bottom: var(--s2); }

.about__portrait { margin: 0; }
.about__portrait figcaption { margin-top: var(--s2); }

@media (max-width: 899px) {
  .about { padding-block: var(--s6); }
  .about__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .about__portrait { max-width: 420px; }
}

/* --------------------------------------------------- Gallery · L1 · MID -- */
.gallery-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s5);
}

.gallery-note .eyebrow { color: var(--ink-soft); }

/* ------------------------------------------------ Case detail · L2 · AFT - */
.case-body {
  padding-block: var(--s7) var(--s8);
}

.case-body h2 {
  margin-top: var(--s7);
  margin-bottom: var(--s3);
}

.case-body h2:first-child { margin-top: 0; }

.case-body h3 {
  margin-top: var(--s5);
  margin-bottom: var(--s2);
}

.case-body p + p { margin-top: var(--s3); }

.case-body .read > p,
.case-body .read > ul { max-width: var(--measure); }

.case-lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink);
}

/* Process beats get a numbered rule in the project tint. */
.beat {
  margin-top: var(--s6);
  padding-left: var(--s4);
  border-left: 4px solid var(--tint);
}

.beat > .eyebrow { color: var(--tint-deep); margin-bottom: var(--s1); }
.beat h3 { margin-top: 0; }

.snapshot-bar { padding-block: var(--s5); }

.reflection {
  padding-block: var(--s7);
}

.reflection blockquote {
  margin: 0;
  max-width: 46ch;
  font-family: var(--font-display);
  font-variation-settings: var(--display-variation);
  font-weight: 900;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
}

.reflection .eyebrow { color: var(--ink-soft); margin-bottom: var(--s3); }
.reflection p { margin-top: var(--s3); max-width: 58ch; }

/* --------------------------------------------------- Contact · L∞ · SKY -- */
.contact-sky {
  position: relative;
  min-height: min(84vh, 760px);
  min-height: min(84svh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--sky);
  border-bottom: var(--ringer);
}

.contact-sky__plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.contact-sky__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.contact-card {
  background: var(--gold);
  color: var(--ink);
  border: var(--ringer);
  box-shadow: var(--shadow-hard-lg);
  padding: var(--s6);
  max-width: 640px;
  margin: var(--s7) 0 var(--s7) var(--gutter);
}

.contact-card h1 { margin-bottom: var(--s3); }
.contact-card p { max-width: 48ch; }
.contact-card p + p { margin-top: var(--s3); }

.contact-card__email {
  display: inline-block;
  margin-top: var(--s4);
  font-family: var(--font-display);
  font-variation-settings: var(--display-variation);
  font-weight: 900;
  font-size: clamp(1.25rem, 2.4vw, 1.875rem);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 4px solid var(--rust);
  word-break: break-word;
}

.contact-card__email:hover { color: var(--rust-deep); }

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 2px solid rgba(42, 32, 24, 0.35);
  list-style: none;
  padding-left: 0;
}

.contact-meta li { font-size: 0.9375rem; }

@media (max-width: 767px) {
  .contact-sky { min-height: 0; }
  .contact-card {
    margin: var(--s6) var(--gutter);
    padding: var(--s5) var(--s4);
  }
}

/* ------------------------------------------------------------------ 404 -- */
.notfound {
  position: relative;
  min-height: min(76vh, 680px);
  min-height: min(76svh, 680px);
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  border-bottom: var(--ringer);
}

.notfound img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notfound__inner {
  position: relative;
  z-index: 2;
  padding: var(--s6) var(--gutter);
}

.notfound h1 {
  font-size: var(--type-billboard);
  line-height: 0.95;
  color: var(--paper-warm);
  text-shadow: 6px 6px 0 var(--box);
}

/* The road interstitial is pale where this copy sits, so it takes ink — only
   the billboard headline is light, and that one carries a hard ink shadow. */
.notfound p {
  margin: var(--s4) auto var(--s5);
  max-width: 44ch;
  color: var(--ink);
  font-weight: 500;
}
