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

html {
  -webkit-text-size-adjust: 100%;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* The browser default stylesheet bolds h1-h6; since only Maison Neue
   Book (400) is loaded, that would trigger synthetic/faux bold. */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
}

/* Maison Neue Book — the only weight in use sitewide, so font-weight
   stays at 400 everywhere (no bold cut is loaded; requesting 700 would
   trigger the browser's synthetic/faux bold, which looks off for a
   licensed display font). */
@font-face {
  font-family: "Maison Neue";
  src: url("/fonts/MaisonNeueBook.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Design tokens — per design system spec */
:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-text-muted: #757575;
  --color-border: #e2e2e2;
  --color-accent: #111111;

  --font-body: "Maison Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --font-size-xs: 0.85rem;   /* ~13.6px — text-block pills (badges + skills) */
  --font-size-sm: 0.875rem;
  --font-size-base: 1.25rem; /* 20px — text-block copy (heading/body/credits);
                                drops to 1rem (16px) on phones, see below */
  --font-size-h2: 1.25rem;   /* 20px — header superhead, project titles/subtitles,
                                the contact/sticky-title pills. Nav text and image
                                captions are sized independently. */
  --font-size-nav: 1rem;     /* 16px */

  --line-height-heading: 1.34;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;

  --nav-height: 3.5rem;
  --radius-block: 0.5rem;
}

/* Text-block copy (heading/body/credits, all sized off --font-size-base)
   drops from 20px to 16px on phones so a long card isn't such a tall
   scroll. Scoped to the token so every consumer follows in lockstep;
   nothing else on the page reads --font-size-base for visible text (all
   other elements set their own size), so this only affects the cards. */
@media (max-width: 40rem) {
  :root {
    --font-size-base: 1rem;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--current-bg, var(--color-bg));
  transition: background-color 0.6s ease;
}
