/* about.css — dedicated /about.html subpage.
   Standalone stylesheet: about.html does NOT load styles/index.css, so the
   @font-face blocks and the design tokens are redeclared here, pointing at the
   same files in assets/fonts/. Values copied verbatim from styles/index.css.

   NOTE: styles/index.css USES var(--rule), var(--hairline), var(--muted),
   var(--font-display), var(--font-mono) but never declares them anywhere —
   there is no :root block in that file and index.html loads no other
   stylesheet. Reported, not touched. This file declares them properly. */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: 'Geist Variable';
  src: url('../assets/fonts/geist-latin-wght-normal.woff2') format('woff2-variations'), url('../assets/fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Geist Mono Variable';
  src: url('../assets/fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations'), url('../assets/fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

/* PP Editorial New — display face, >=32px only. Ultralight 200 and Ultrabold
   800 are the ONLY weights that exist. Never request 400. Every rule below
   that names this family sets a font-size whose clamp() floor is >= 32px. */
@font-face {
  font-family: 'PP Editorial New';
  src: url('../assets/fonts/PPEditorialNew-Ultralight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'PP Editorial New';
  src: url('../assets/fonts/PPEditorialNew-UltralightItalic.otf') format('opentype');
  font-weight: 200;
  font-style: italic;
  font-display: block;
}

/* ----------------------------------------------------------------- tokens */
:root {
  --bg: #0a0a0a;
  --fg: #f0f0f0;
  --accent: #7FA9FF;
  --rule: rgba(255, 255, 255, 0.15);
  --hairline: rgba(255, 255, 255, 0.08);
  --muted: rgba(255, 255, 255, 0.45);

  /* Text tones. --muted (0.45) computes to 4.49:1 on --bg, a hair under the
     4.5:1 AA floor, so it is used for decoration only — never for a run of
     reading text. These two clear AA comfortably (7.3:1 and 10.8:1). */
  --label-fg: rgba(255, 255, 255, 0.62);
  --prose-fg: rgba(255, 255, 255, 0.74);

  --font-display: 'PP Editorial New', Georgia, serif;
  --font-text: 'Geist Variable', system-ui, sans-serif;
  --font-mono: 'Geist Mono Variable', ui-monospace, monospace;

  --gutter: clamp(1.5rem, 5vw, 5rem);
  --maxw: 1280px;
}

/* ------------------------------------------------------------------- base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  min-height: 100%;
  scrollbar-width: none;
  -webkit-text-size-adjust: 100%;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a {
  color: inherit;
}

/* Visible focus everywhere. */
:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* -------------------------------------------------------------- skip link */
.skip {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  padding: 0.85rem 1.4rem;
}

.skip:focus {
  transform: translate(-50%, 0);
}

/* ----------------------------------------------------------------- header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--hairline);
  background: rgba(10, 10, 10, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-head .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
}

.brand {
  font-family: var(--font-text);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--fg);
  white-space: nowrap;
}

.brand-dot {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2.4rem);
}

.nav a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--label-fg);
  padding-block: 0.25rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--fg);
}

.nav a[aria-current='page'] {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

/* ------------------------------------------------------------------- hero */
.hero {
  padding-block: clamp(5rem, 18vh, 12rem) clamp(4rem, 12vh, 8rem);
}

.hero-title {
  /* PP Editorial New at weight 200. clamp() floor 2.75rem = 44px, so this
     never drops under the display face's 32px floor at any viewport. */
  font-family: var(--font-display);
  font-weight: 200;
  font-style: normal;
  font-size: clamp(2.75rem, 7.2vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--fg);
  max-width: 16ch;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hero-standfirst {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  font-family: var(--font-text);
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--prose-fg);
  max-width: 34ch;
  text-wrap: pretty;
}

/* --------------------------------------------------------------- sections */
.section {
  padding-block: clamp(4rem, 11vh, 8rem);
}

.section:last-of-type {
  padding-bottom: clamp(5rem, 14vh, 10rem);
}

/* ( LABEL ) — mono, uppercase, 0.18em, with a hairline running to the edge. */
.label {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--label-fg);
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.label::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: var(--hairline);
}

/* --------------------------------------------------------------- timeline */
.timeline {
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.tl-item {
  display: grid;
  grid-template-columns: minmax(0, 7rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--hairline);
}

.tl-marker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--label-fg);
  line-height: 1.9;
  white-space: nowrap;
}

.tl-item:last-child .tl-marker {
  color: var(--accent);
}

.tl-text {
  font-family: var(--font-text);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: -0.005em;
  color: var(--prose-fg);
  max-width: 62ch;
  text-wrap: pretty;
}

/* ----------------------------------------------------------------- fumble */
.fumble {
  background: linear-gradient(180deg, rgba(127, 169, 255, 0.045), transparent 55%);
}

.fumble-block {
  border-left: 1px solid var(--accent);
  padding-left: clamp(1.4rem, 4vw, 3.5rem);
  margin-left: clamp(0rem, 7vw, 8rem);
}

.fumble-title {
  /* Display face, weight 200. clamp() floor 2.4rem = 38.4px. */
  font-family: var(--font-display);
  font-weight: 200;
  font-style: normal;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--fg);
  max-width: 18ch;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.fumble-body {
  margin-top: clamp(2rem, 5vw, 3.25rem);
  max-width: 58ch;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fumble-body p {
  font-family: var(--font-text);
  font-size: clamp(1.02rem, 1.4vw, 1.25rem);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: -0.005em;
  color: var(--prose-fg);
  text-wrap: pretty;
}

/* The single-line beat lands harder at full brightness and a size up. */
.fumble-body .fumble-beat {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--fg);
  padding-block: 0.75rem;
}

.pull {
  margin-top: clamp(2.75rem, 7vw, 5rem);
  border-top: 1px solid var(--rule);
  padding-top: clamp(2rem, 4vw, 3rem);
  /* Measured in rem, NOT ch: .pull inherits the 16px body size, so a ch-based
     max-width here sizes against Geist at 16px and squeezed the 52px display
     quote into five stub lines. */
  max-width: 46rem;
}

.pull p {
  /* Display face, weight 200 italic. clamp() floor 2.1rem = 33.6px. */
  font-family: var(--font-display);
  font-weight: 200;
  font-style: italic;
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-wrap: balance;
  overflow-wrap: break-word;
}

/* ------------------------------------------------------------------ cards */
/* 1px gap over a hairline background draws the grid rules for free. */
.cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.card {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  min-height: clamp(9rem, 16vw, 12rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: background 0.4s ease;
}

.card:hover {
  background: #101010;
}

.card-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-text {
  margin-top: auto;
  font-family: var(--font-text);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: -0.005em;
  color: var(--prose-fg);
  text-wrap: pretty;
}

/* -------------------------------------------------------------------- now */
.now-body {
  max-width: 30ch;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.now-body p {
  font-family: var(--font-text);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-wrap: pretty;
}

.now-body p + p {
  color: var(--prose-fg);
}

/* ----------------------------------------------------------------- footer */
.site-foot {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.25rem 2rem;
}

.site-foot a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--label-fg);
  transition: color 0.3s ease;
}

.site-foot a:hover {
  color: var(--accent);
}

.foot-mark {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .now-body {
    margin-left: 0;
    max-width: 26ch;
  }
}

@media (max-width: 768px) {
  /* Timeline collapses to one column: marker sits above its prose. */
  .tl-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }

  .tl-marker {
    line-height: 1.2;
  }

  .fumble-block {
    margin-left: 0;
  }

  .site-head .wrap {
    padding-block: 1.1rem;
  }

  .nav {
    gap: 1rem;
  }

  .nav a {
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }
}

@media (max-width: 520px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    min-height: 0;
  }

  .brand {
    font-size: 0.85rem;
  }
}

/* -------------------------------------------------------------- motion */
/* CSS-only, and only when motion is welcome. Without this block every element
   is at its resting state already — nothing depends on the animation running. */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  }

  .rise-1 {
    animation-delay: 0.05s;
  }

  .rise-2 {
    animation-delay: 0.18s;
  }

  .rise-3 {
    animation-delay: 0.32s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(1.1rem);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}
