/* Design tokens for Built Endeavors.

   Style direction: Dark Cinematic (rivi-rules/design/style-catalog.md).
   Full-screen photos on black, condensed headings, and one light wood accent.
   Square corners, very few words. See style-brief.md.

   This file holds every design setting. styles.css only reads these. */

/* Fonts are hosted in fonts/ (SIL Open Font License). Each is a variable
   font: one file covers every weight used. */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/oswald-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  /* ---------- Color ----------
     Every page is dark. Text pairs must pass 4.5:1 (3:1 for large text,
     buttons, and focus). */
  --color-bg: #121211; /* page background */
  --color-surface: #1d1c1a; /* behind photos while they load */
  --color-text: #f6f3ee; /* body text, headings, buttons */
  --color-muted: #b9b2a6; /* captions and secondary text */

  --color-brand: #000000; /* must match the black in logo.png. Header,
                             projects, footer, photo viewer */
  --color-on-brand: #f6f3ee; /* text on black */
  --color-on-brand-muted: #b9b2a6;

  --color-accent: #d9a06e; /* light wood: menu underline, focus, selection */
  --color-focus: var(--color-accent);

  /* The logo is the business's own image (images/logo.png), white on a
     clear background, so it needs a dark surface behind it. */
  --logo-width: 7.5rem;
  --logo-width-wide: 8.5rem;
  --logo-width-footer: 12rem;

  /* ---------- Home page photos ---------- */
  --hero-light: 0.5; /* how bright the top photo is: 1 is full, 0 is black */
  --hero-logo: min(78vw, 42rem, 85svh); /* width of the big logo */
  --text-project: clamp(2.75rem, 1rem + 7.5vw, 8rem); /* project names */
  --parallax: 1.25; /* photo height compared with its window. Higher moves
                       more but crops more; 1 turns the movement off */
  --parallax-tall: 1.12; /* the same, for tall photos */
  --photo-min: 20rem; /* shortest a project photo gets */

  /* ---------- The frame ----------
     The signature: the beam and two posts around "Endeavors" in the logo. */
  --frame-size: clamp(0.625rem, 0.45rem + 0.9vw, 1.25rem);
  --frame-gap: clamp(0.5rem, 0.4rem + 0.6vw, 1rem);

  /* ---------- Type ----------
     At most 2 families and 3 weights. */
  --font-display: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --weight-regular: 400;
  --weight-medium: 600;
  --weight-bold: 600;
  --weight-display: 700; /* headings */

  /* Fluid scale, ratio 1.25 from an 18px body. Each step grows with the
     screen between the two sizes in its clamp(). */
  --text-xs: 0.8125rem; /* 13px: small uppercase labels */
  --text-sm: 0.9375rem; /* 15px: hints, footer, captions */
  --text-base: clamp(1.0625rem, 1.03rem + 0.16vw, 1.125rem); /* 17 to 18px */
  --text-lg: clamp(1.1875rem, 1.11rem + 0.37vw, 1.40625rem); /* to 22.5px */
  --text-xl: clamp(1.375rem, 1.24rem + 0.65vw, 1.75rem); /* to 28px */
  --text-2xl: clamp(1.625rem, 1.42rem + 1vw, 2.1875rem); /* to 35px */
  --text-3xl: clamp(2rem, 1.55rem + 2.2vw, 3.25rem); /* to 44px */
  --text-4xl: clamp(2.25rem, 1.6rem + 3.2vw, 4rem); /* to 55px */
  --text-5xl: clamp(3rem, 1.8rem + 5.6vw, 6rem); /* to 96px */

  --leading-tight: 1.08; /* display headings */
  --leading-snug: 1.25; /* smaller headings */
  --leading-body: 1.6; /* body text */

  --tracking-display: 0; /* large headings, slightly tighter */
  --tracking-label: 0.1em; /* small uppercase labels */
  --tracking-normal: 0;

  --measure: 68ch; /* longest comfortable line of body text */
  --measure-short: 40ch; /* hero subhead and other short lines */

  /* ---------- Space (8-point scale) ---------- */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.5rem; /* 24px */
  --space-6: 2rem; /* 32px */
  --space-7: 3rem; /* 48px */
  --space-8: 4rem; /* 64px */
  --space-9: 6rem; /* 96px */
  --space-10: 8rem; /* 128px */
  --space-11: 10rem; /* 160px */

  /* Section padding: 64px on phones up to 128px on desktop. */
  --space-section: clamp(var(--space-8), 2.5rem + 7.5vw, var(--space-10));
  /* Page gutter: 24px on phones, 40px on desktop. */
  --gutter: clamp(var(--space-5), 1rem + 2vw, 2.5rem);

  /* ---------- Layout ---------- */
  --content-max: 90rem; /* widest content: 1440px */
  --gallery-row: clamp(13rem, 9rem + 12vw, 22rem); /* photo row height */
  --content-narrow: 46rem; /* text pages and narrow sections */
  --photo-gap: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);
  --header-height: 5.25rem;
  --menu-width: 17rem; /* the drop-down menu on phones and small windows */
  --target-min: 2.75rem; /* 44px: main buttons and menu button */
  --target-small: 1.5rem; /* 24px: the smallest any tap target may be */


  /* ---------- Lines (corners are square) ---------- */
  --border-width: 1px;
  --border-width-strong: 2px;
  --focus-width: 3px;
  --focus-offset: 3px;


  /* ---------- Motion ----------
     150 to 250ms for feedback, 300 to 600ms for reveals. */
  --duration-fast: 200ms;
  --duration-slow: 450ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --duration-build: 600ms; /* each part of the frame */
}
