/* ═══════════════════════════════════════════════════════
   INFO PAGE — info.html only. Loaded AFTER style.css and
   about-overlay.css, which it reuses for fonts, the nav, the
   custom cursor and the newsletter overlay. This file undoes
   the storybook's scroll-lock and supplies the reading layout.
   Plain long scroll: dark text on white (was the site's light grey #e5e3df until 2026-10-19).
═══════════════════════════════════════════════════════ */

/* style.css locks html/body (overflow hidden, 100% height, black) for the
   storybook — this page is a normal scrolling document instead. */
html,
body {
  height: auto;
  min-height: 100%;
  overflow: visible;
  overscroll-behavior: auto;
  background: #fff;
}

/* Newsletter overlay open: stop the page scrolling behind it. */
body.about-open {
  overflow: hidden;
}

/* Nav is the same white SVG set as the storybook, forced to black here
   (the storybook does this per-section via --logo-filter; this page is
   always the light variant). */
.logo,
.mail-link,
.linkedin-link,
.about-toggle,
.info-link {
  filter: brightness(0);
}

/* Fixed header band in the page colour so copy slides cleanly UNDER the
   fixed nav instead of running through the icons. Sits below the nav
   (z 200) and the overlay (z 250). */
:root {
  --info-bar-h: calc(1.6rem + var(--nav-h) + 1.4rem);
  --info-gutter: calc(1.8rem + var(--nav-h) * 0.3125);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--info-bar-h);
  background: #fff;
  z-index: 150;
}

/* ── Reading column ────────────────────────────────────── */
/* Left edge aligns with the logo's ink (artboard padding is 62.5/200 of
   --nav-h, hence the 0.3125 in --info-gutter). */
.info-copy {
  font-family: 'Domine', Georgia, serif;
  /* Same size as .body-text on the storybook slides. */
  font-size: clamp(1.7618rem, 1.9087vw, 2.2023rem);
  font-weight: 400;
  line-height: 1.35;
  color: #171716;
  text-align: left;
  max-width: calc(66ch + 2 * var(--info-gutter));
  padding: calc(var(--info-bar-h) + 2.5rem) var(--info-gutter) 8rem;
}

/* style.css gives bare h1/h2/p storybook styling (centred, capped, white
   or Whyte) — reset it for this page. */
.info-copy h1,
.info-copy h2,
.info-copy p {
  font-family: inherit;
  line-height: inherit;
  color: inherit;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.info-copy h1 {
  /* ~70% of the storybook h1's size (first pass was too big). A +8%
     bump was tried and reverted — too big. Brand blue, per user. */
  font-size: clamp(1.924rem, 2.5694vw, 2.3638rem);
  color: rgb(0, 35, 255);
  font-weight: 700;
  margin-bottom: 1.1em;
  text-wrap: balance;
}

.info-copy h2 {
  font-size: inherit;
  font-weight: 700;
  margin-top: 2.4em;
  margin-bottom: 1.1em;
  text-wrap: balance;
}

.info-copy p {
  font-size: inherit;
  font-weight: 400;
  margin-bottom: 1.1em;
  text-wrap: pretty;
}

.info-copy p.lead {
  font-weight: 700;
}

/* ── Breakpoints: mirror the nav's own margins so the gutter keeps
   tracking the logo's left edge. ───────────────────────── */
@media (max-width: 768px) {
  :root {
    --info-bar-h: calc(max(1rem, env(safe-area-inset-top, 0px) + 0.7rem) + var(--nav-h) + 1rem);
    --info-gutter: calc(max(1.2rem, env(safe-area-inset-left, 0px) + 1rem) + var(--nav-h) * 0.3125);
  }

  .info-copy {
    font-size: clamp(1.1012rem, 3.9641vw, 1.7618rem);
  }

  /* x0.7 of the old value, but floored at ~1.15x the body floor so the
     title never ends up smaller than the text under it on small phones. */
  .info-copy h1 {
    font-size: clamp(1.2664rem, 4.0081vw, 1.9732rem);
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  :root {
    --info-bar-h: calc(max(0.5rem, env(safe-area-inset-top, 0px) + 0.4rem) + var(--nav-h) + 0.8rem);
    --info-gutter: calc(max(0.8rem, env(safe-area-inset-left, 0px) + 0.6rem) + var(--nav-h) * 0.3125);
  }

  .info-copy {
    font-size: clamp(0.9910rem, 3.1566vh, 1.4682rem);
  }

  .info-copy h1 {
    font-size: clamp(1.1048rem, 3.4693vh, 1.7985rem);
  }
}

/* ── Cursor ────────────────────────────────────────────────
   The storybook cursor is a down-arrow, tilted -45deg (pointing
   down-right) on nav hover. On this page it's flipped 180deg so it
   points up-left like a normal macOS pointer: -45 + 180 = 135deg. */
.cursor-tilt.tilted {
  transform: rotate(135deg);
}
