/* ============================================================================
   about.html's stylesheet: the five design-system token files, then the page's
   own rules, in the order legacy/about.html has them (5 token <link>s at lines
   16-20, then the \3c style> block at lines 21-46, whose rules are copied below
   verbatim). about.html links only this file.

   Why one file instead of the five <link>s plus an inline \3c style> in
   about.html: a production build bundles an HTML entry's stylesheet <link>s
   into one CSS asset and injects its <link> at the END of <head>, after the
   inline \3c style>. The page's own rules then came before tokens/base.css and lost
   to it wherever both set a property (body font size and line height, heading
   and paragraph margins...): the built page was 194 px taller than legacy
   (parity scenario "about", 11 % of pixels). Dev was fine, because the dev
   server keeps the <link>s in place. Vite inlines these @imports (url()s
   rebased), so the cascade is the same in dev and in the build.
   ========================================================================== *//* ============================================================
   MatterMake — Webfonts
   Primary display: Titling Gothic FB (Font Bureau) — an extended
   neo-grotesque used across widths. Body: Suisse Intl.
   The connected "matter make" wordmark is custom lettering and is
   delivered as an image asset (see assets/logos), not a webfont.
   ============================================================ */

/* --- Titling Gothic FB — standard width (headings, UI) --- */
@font-face {
  font-family: "Titling Gothic FB";
  src: url("/assets/TitlingGothicFB-Regular-DbP5nGmw.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Titling Gothic FB";
  src: url("/assets/TitlingGothicFB-Medium-Dlpqwg16.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- Titling Gothic FB Std — the slightly tighter standard cut --- */
@font-face {
  font-family: "Titling Gothic FB Std";
  src: url("/assets/TitlingGothicFB-Standard-BLGpKyyZ.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Titling Gothic FB Wide — oversized numerals & big statements --- */
@font-face {
  font-family: "Titling Gothic FB Wide";
  src: url("/assets/TitlingGothicFB-WideStandard-Ba_Vl5mt.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Titling Gothic FB Ext — extended light, airy hero lettering --- */
@font-face {
  font-family: "Titling Gothic FB Ext";
  src: url("/assets/TitlingGothicFB-ExtendedLight-DROqPmzE.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* --- Suisse Intl — body copy --- */
@font-face {
  font-family: "Suisse Intl";
  src: url("/assets/SuisseIntl-Book-DxGosl3D.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* ============================================================
   MatterMake — Colour
   A stark black/white base with a single signature accent:
   terracotta-rust (#E45C44). Beyond that sits the "material
   palette" — muted clay / sand / water / olive tones drawn
   straight from the studio's renders and reef ceramics.
   Default is always black on white, lots of negative space.
   Use rust as a full-bleed field or single accent — never a
   busy multi-colour layout. Material tones support imagery,
   section tints and data, not UI chrome.
   ============================================================ */

:root {
  /* --- Base / ink --- */
  --ink: #000000;          /* primary text, lines, the mark */
  --paper: #ffffff;        /* default ground */

  /* --- Neutral grade (grey) --- */
  --grey-900: #1a1a1a;
  --grey-700: #454e4d;     /* slate — desaturated dark, secondary text */
  --grey-500: #7f7f7f;     /* mid grey — captions, meta */
  --grey-300: #d7d7cf;     /* stone — hairlines, disabled, fills */
  --grey-100: #f2f1ec;     /* faint warm grey — alt surface */

  /* --- Signature accent --- */
  --rust: #e45c44;         /* terracotta-rust — THE accent */
  --rust-deep: #854b4b;    /* brick — pressed / shadowed rust */
  --rust-tint: #fff3e1;    /* sand — warm paper, rust at 6% */

  /* --- Material palette (imagery, tints, data, diagrams) --- */
  --mat-clay: #a56559;     /* fired clay / reef ceramic */
  --mat-brick: #854b4b;    /* dark brick / patinated copper */
  --mat-sand: #fff3e1;     /* warm paper / EPS foam */
  --mat-sage: #e8eac7;     /* pale sage / planting */
  --mat-olive: #7b7055;    /* olive / timber shadow */
  --mat-water: #cce5e1;    /* soft Mediterranean water */
  --mat-mint: #ecfef7;     /* pale aqua highlight */
  --mat-mauve: #d2bfc2;    /* clay grey / dusk */
  --mat-slate: #454e4d;    /* slate green / steel */
  --mat-stone: #d7d7cf;    /* warm grey / concrete */

  /* ---------- Semantic aliases ---------- */
  --text-primary: var(--ink);
  --text-secondary: var(--grey-700);
  --text-muted: var(--grey-500);
  --text-on-ink: var(--paper);
  --text-on-rust: var(--paper);

  --surface: var(--paper);
  --surface-alt: var(--grey-100);
  --surface-sand: var(--mat-sand);
  --surface-ink: var(--ink);
  --surface-rust: var(--rust);

  --accent: var(--rust);
  --accent-hover: #d44e38;     /* rust, ~6% darker — hover */
  --accent-press: var(--rust-deep);

  --border: var(--ink);            /* hairline rule, 1px solid ink */
  --border-soft: var(--grey-300);  /* quiet divider */

  --focus-ring: var(--rust);
}

/* ============================================================
   MatterMake — Typography
   Headings & UI: Titling Gothic FB (standard). Big statements
   and the signature oversized numerals: Titling Gothic FB Wide.
   Body: Suisse Intl. Headings lean sentence-case / lowercase,
   often closed with a trailing full stop ("about us.").
   ============================================================ */

:root {
  /* --- Families --- */
  --font-display: "Titling Gothic FB", "Helvetica Neue", Arial, sans-serif;
  --font-display-wide: "Titling Gothic FB Wide", "Titling Gothic FB", "Helvetica Neue", sans-serif;
  --font-display-ext: "Titling Gothic FB Ext", "Titling Gothic FB", "Helvetica Neue", sans-serif;
  --font-body: "Suisse Intl", "Helvetica Neue", Arial, sans-serif;
  --font-numeral: "Titling Gothic FB Wide", "Titling Gothic FB", sans-serif;

  /* --- Weights --- */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;

  /* --- Type scale (px on a 1.0rem = 16px base) --- */
  --text-3xs: 0.6875rem;   /* 11 — micro labels, page numbers */
  --text-2xs: 0.75rem;     /* 12 — meta, captions */
  --text-xs: 0.8125rem;    /* 13 — small UI */
  --text-sm: 0.9375rem;    /* 15 — secondary body */
  --text-base: 1.0625rem;  /* 17 — body */
  --text-md: 1.25rem;      /* 20 — lead / large body */
  --text-lg: 1.625rem;     /* 26 — H4 / subhead */
  --text-xl: 2.25rem;      /* 36 — H3 */
  --text-2xl: 3.25rem;     /* 52 — H2 */
  --text-3xl: 4.5rem;      /* 72 — H1 */
  --text-4xl: 6.5rem;      /* 104 — display */
  --text-numeral: 12rem;   /* 192 — oversized section numerals */

  /* --- Line heights --- */
  --leading-none: 1;
  --leading-tight: 1.08;   /* display headlines */
  --leading-snug: 1.22;    /* subheads */
  --leading-body: 1.55;    /* body copy, comfortable */
  --leading-loose: 1.7;    /* multi-column body */

  /* --- Letter-spacing --- */
  --tracking-tight: -0.02em;   /* large display */
  --tracking-normal: 0;
  --tracking-wide: 0.04em;     /* labels */
  --tracking-caps: 0.14em;     /* all-caps eyebrows */

  /* ---------- Semantic roles ---------- */
  --type-display: var(--weight-regular) var(--text-4xl)/var(--leading-tight) var(--font-display-wide);
  --type-h1: var(--weight-regular) var(--text-3xl)/var(--leading-tight) var(--font-display);
  --type-h2: var(--weight-regular) var(--text-2xl)/var(--leading-tight) var(--font-display);
  --type-h3: var(--weight-medium) var(--text-xl)/var(--leading-snug) var(--font-display);
  --type-h4: var(--weight-medium) var(--text-lg)/var(--leading-snug) var(--font-display);
  --type-lead: var(--weight-regular) var(--text-md)/var(--leading-body) var(--font-body);
  --type-body: var(--weight-regular) var(--text-base)/var(--leading-body) var(--font-body);
  --type-small: var(--weight-regular) var(--text-sm)/var(--leading-body) var(--font-body);
  --type-caption: var(--weight-regular) var(--text-2xs)/var(--leading-snug) var(--font-body);
  --type-eyebrow: var(--weight-medium) var(--text-2xs)/var(--leading-none) var(--font-display);
}

/* ============================================================
   MatterMake — Spacing, layout, line & shadow
   The identity is architectural: generous margins, content
   pushed toward the page edges, a measured column grid, and
   negative space treated as material. Corners are essentially
   square. Lines do the work that shadows do elsewhere.
   ============================================================ */

:root {
  /* --- Spacing scale (4px base) --- */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4 */
  --space-2: 0.5rem;    /* 8 */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.5rem;    /* 24 */
  --space-6: 2rem;      /* 32 */
  --space-7: 3rem;      /* 48 */
  --space-8: 4rem;      /* 64 */
  --space-9: 6rem;      /* 96 */
  --space-10: 8rem;     /* 128 */

  /* --- Layout --- */
  --measure: 64ch;             /* ideal body line length */
  --page-margin: 6rem;         /* generous outer margin */
  --page-margin-sm: 1.5rem;
  --grid-columns: 12; /* @kind other */
  --grid-gutter: 1.5rem;
  --container-max: 1440px;

  /* --- Radii (near-square; the brand resists roundness) --- */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 3px;        /* default for inputs / small controls */
  --radius-pill: 999px;    /* reserved for tags / avatars only */

  /* --- Border / line --- */
  --line: 1px;
  --line-bold: 2px;
  --line-rule: 1px solid var(--ink);
  --line-soft: 1px solid var(--grey-300);

  /* --- Shadow: used sparingly. Lines first, elevation last. --- */
  --shadow-none: none;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);

  /* --- Motion: quiet, precise. No bounce. --- */
  --ease-standard: cubic-bezier(0.2, 0, 0.1, 1); /* @kind other */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --dur-fast: 120ms; /* @kind other */
  --dur-base: 200ms; /* @kind other */
  --dur-slow: 360ms; /* @kind other */

  /* --- Z layers --- */
  --z-base: 0; /* @kind other */
  --z-sticky: 100; /* @kind other */
  --z-overlay: 800; /* @kind other */
  --z-modal: 900; /* @kind other */
  --z-toast: 1000; /* @kind other */
}

/* ============================================================
   MatterMake — Base
   A light, opinionated reset that establishes the black-on-white
   ground, body type and heading rhythm. Consumers get this for
   free by linking styles.css.
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font: var(--type-body);
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  text-wrap: balance;
}

h1 { font: var(--type-h1); letter-spacing: var(--tracking-tight); }
h2 { font: var(--type-h2); letter-spacing: var(--tracking-tight); }
h3 { font: var(--type-h3); }
h4 { font: var(--type-h4); }

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--accent); }

strong, b { font-weight: var(--weight-medium); }

hr {
  border: none;
  border-top: var(--line-rule);
  margin: var(--space-6) 0;
}

::selection {
  background: var(--rust);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

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

/* ---------- A few brand utilities ---------- */

/* The signature eyebrow: small caps display label, wide tracking */
.mm-eyebrow {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Oversized section numeral — the studio's signature device */
.mm-numeral {
  font-family: var(--font-numeral);
  font-weight: var(--weight-regular);
  font-size: var(--text-numeral);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}

/* Full-bleed rust field (section dividers, covers) */
.mm-field-rust {
  background: var(--rust);
  color: var(--paper);
}
.mm-field-ink {
  background: var(--ink);
  color: var(--paper);
}
/* legacy/about.html 22-45 (the \3c style> block), verbatim */
  body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
  a { color: var(--ink); text-underline-offset: 3px; }
  a:hover { color: var(--rust); }
  header { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; padding: 0 20px; border-bottom: 1px solid var(--ink); }
  .brand { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
  .open { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 3px; background: var(--rust); color: #fff; font-family: var(--font-display); font-size: 13px; text-decoration: none; white-space: nowrap; }
  .open:hover { background: #d44e38; color: #fff; }
  main { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
  .eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; }
  .eyebrow::before { content: ""; width: 14px; height: 2px; background: var(--rust); }
  h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 7vw, 56px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 20px; }
  h2 { font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; margin: 56px 0 14px; padding-top: 14px; border-top: 1px solid var(--ink); }
  .lede { font-size: 19px; line-height: 1.5; margin: 0 0 12px; }
  p { margin: 0 0 14px; }
  ol.studies { list-style: none; padding: 0; margin: 0; counter-reset: s; }
  ol.studies li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 0 12px; padding: 14px 0; border-bottom: 1px solid var(--grey-300); }
  ol.studies li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-display); font-size: 13px; color: var(--rust); padding-top: 2px; }
  ol.studies strong { font-family: var(--font-display); font-weight: 500; display: block; }
  ol.studies span { color: var(--grey-700); font-size: 14px; }
  ul.limits { padding-left: 18px; margin: 0 0 14px; }
  ul.limits li { margin-bottom: 8px; }
  blockquote { margin: 24px 0; padding: 18px 20px; background: var(--rust-tint); border-left: 3px solid var(--rust); font-family: var(--font-display); font-size: 18px; }
  footer { border-top: 1px solid var(--ink); padding: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--font-display); font-size: 13px; }
  @media (max-width: 560px) { main { padding-top: 36px; } h2 { margin-top: 40px; } }
