/* Doughbry's inner pages: press, privacy, and the 404 page.
   Loads after base.css and intro.css and builds on their tokens and classes.
   Nothing in here restyles the shared header, footer, buttons, or chips. */

:root {
  --pg-header: 4.25rem;                         /* room kept clear for the fixed header */
  --pg-sheet: clamp(1.6rem, 4vw, 3rem);         /* how far the cream sheet rides up over the red band */
  --pg-line: rgba(20, 38, 30, 0.14);            /* quiet divider on cream */
  --pg-tri: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M39.77 10.47L60.77 46.47A9 9 0 0 1 53 60L11 60A9 9 0 0 1 3.23 46.47L24.23 10.47A9 9 0 0 1 39.77 10.47Z'/%3E%3C/svg%3E");
}

/* ---------- The red band at the top of every inner page ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--pg-header) + clamp(2.6rem, 7vw, 5.25rem));
  padding-bottom: calc(var(--pg-sheet) + clamp(2.8rem, 7vw, 5.25rem));
}
.page-hero::before {                            /* one large soft shape in deep red, like the brand art */
  content: ""; position: absolute; z-index: -2; pointer-events: none;
  right: clamp(-7rem, -5vw, -2rem); top: 50%;
  width: clamp(20rem, 58vw, 54rem); aspect-ratio: 8 / 7;
  background: url("../assets/svg/blob-a.svg") center / contain no-repeat;
  transform: translate3d(0, -46%, 0) rotate(-8deg);
}
.page-hero--b::before { background-image: url("../assets/svg/blob-b.svg"); transform: translate3d(0, -50%, 0) rotate(6deg); }
.page-hero__copy { position: relative; }
.page-hero__lede {                              /* cream on red has to stay big and bold to read well */
  max-width: 24ch;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem); line-height: 1.3; font-weight: 700; text-wrap: balance;
}

/* The one shape on the band: a rounded triangle, tilted, gently floating */
.page-hero__art {
  position: absolute; z-index: -1; pointer-events: none;
  right: max(var(--gutter), calc((100% - var(--max)) / 2));
  bottom: calc(var(--pg-sheet) + clamp(1.7rem, 5vw, 4rem));
  width: clamp(6.25rem, 23vw, 15rem);
}
.tri {
  display: block; width: 100%; height: auto; fill: currentColor;
  transform: rotate(var(--tilt, 14deg));
  animation: pg-float 7s ease-in-out infinite alternate; will-change: transform;
}
.tri--yellow { color: var(--yellow); }
.tri--lime { color: var(--lime); --tilt: -12deg; }
@keyframes pg-float {
  from { transform: translate3d(0, 0, 0) rotate(var(--tilt, 14deg)); }
  to { transform: translate3d(0, -10px, 0) rotate(calc(var(--tilt, 14deg) - 5deg)); }
}

/* ---------- The cream sheet under the band ---------- */
.page-body {
  position: relative; z-index: 1;
  margin-top: calc(-1 * var(--pg-sheet));
  border-radius: var(--pg-sheet) var(--pg-sheet) 0 0;
  padding-block: clamp(3rem, 7vw, 5.75rem) var(--section-y);
}

/* A row: its heading on the left, its content on the right. Stacks on phones. */
.row { display: grid; gap: 1.3rem clamp(2rem, 6vw, 5.5rem); }
.row + .row { margin-top: clamp(2.75rem, 6vw, 4.5rem); padding-top: clamp(2.75rem, 6vw, 4.5rem); border-top: 2px solid var(--pg-line); }
.row__body { max-width: 46rem; }
.about { font-size: var(--step-1); line-height: 1.5; font-weight: 500; }
@media (min-width: 880px) {
  .row { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); }
}

/* Links inside running text: tall enough to tap */
.tap { display: inline-block; padding-block: 0.62rem; margin-block: -0.3rem; font-weight: 700; }
.tap:hover { color: var(--forest); }

/* ---------- Press: fast facts ---------- */
.facts {
  margin: 0; padding: 0.45rem clamp(1.15rem, 3vw, 2rem);
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--pop);
}
.facts__row { display: grid; gap: 0.25rem 1.5rem; padding-block: 1.15rem; }
.facts__row + .facts__row { border-top: 2px solid var(--pg-line); }
.facts dt { color: var(--forest); }
.facts dd { margin: 0; font-weight: 500; }
.facts .facts__big { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); line-height: 1.15; letter-spacing: -0.01em; color: var(--forest); }
@media (min-width: 600px) {
  .facts__row { grid-template-columns: 7.75rem minmax(0, 1fr); align-items: baseline; }
  .facts dd { grid-column: 2; }
}

/* ---------- Press: logos, each on its own background ---------- */
.logos { display: grid; gap: 2.2rem 1.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.logo-card__stage {
  display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 13%;
  border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--pop);
}
.logo-card__stage--cream { background: var(--cream); }
.logo-card__stage--red { background: var(--red); }
.logo-card__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem 1rem; margin-top: 1.55rem; }
.logo-card__name { display: block; font-weight: 800; line-height: 1.25; }
.logo-card__file { display: block; color: #3d4d45; }
.logos-note { margin-top: 1.9rem; font-weight: 700; }
.plain-date { margin-top: clamp(2rem, 4vw, 2.75rem); color: #3d4d45; }

/* ---------- The closing panel: one question, one button ---------- */
.page-cta {
  display: grid; gap: 1.4rem 2rem; align-items: center;
  margin-top: clamp(3rem, 7vw, 5.5rem); padding: clamp(1.7rem, 5vw, 3.25rem);
  border: 3px solid var(--ink); border-radius: calc(var(--radius) + 6px); box-shadow: var(--pop);
}
.page-cta .btn { justify-self: start; }
@media (min-width: 720px) {
  .page-cta { grid-template-columns: minmax(0, 1fr) auto; }
  .page-cta .btn { justify-self: end; }
}

/* ---------- Privacy: a handful of plain sentences, each with a triangle ---------- */
.plain { display: grid; gap: clamp(1.5rem, 3.4vw, 2.3rem); }
.plain li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(0.85rem, 2vw, 1.35rem); align-items: start;
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1.08; letter-spacing: -0.02em;
  color: var(--forest); text-wrap: balance;
}
.plain li::before {
  content: ""; width: 0.86em; height: 0.86em; margin-top: 0.06em;
  background: var(--mark, var(--red));
  -webkit-mask: var(--pg-tri) center / contain no-repeat;
          mask: var(--pg-tri) center / contain no-repeat;
  transform: rotate(var(--turn, -10deg));
}
.plain li:nth-child(5n + 2) { --mark: var(--orange); --turn: 12deg; }
.plain li:nth-child(5n + 3) { --mark: var(--yellow); --turn: -4deg; }
.plain li:nth-child(5n + 4) { --mark: var(--lime); --turn: 16deg; }
.plain li:nth-child(5n + 5) { --mark: var(--forest); --turn: -14deg; }

/* ---------- 404: the whole screen is the red band ---------- */
.page-hero--lost {
  display: grid; align-items: center;
  min-height: 100vh; min-height: 100svh;
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}
.page-hero--lost::before { right: auto; left: 50%; top: 46%; width: clamp(24rem, 74vw, 62rem); transform: translate3d(-22%, -50%, 0) rotate(-8deg); }
.lost { display: grid; gap: clamp(1.1rem, 4vw, 3rem); align-items: center; }
.lost__art { width: min(60vw, 30rem); justify-self: center; }
.lost__pie {
  display: block; width: 100%; height: auto; overflow: visible;
  transform: rotate(-7deg);
  animation: pg-lost 7s ease-in-out infinite alternate; will-change: transform;
}
@keyframes pg-lost {
  from { transform: translate3d(0, 0, 0) rotate(-7deg); }
  to { transform: translate3d(0, -12px, 0) rotate(-3deg); }
}
@media (min-width: 860px) {
  .lost { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
  .lost__art { order: 2; width: min(100%, 31rem); justify-self: end; }
}
