/* Terri's Glass Creations design system, base. Version 1.0, 2026-11-19.
   Load order: tokens.css, base.css, components.css, then the page's own small
   layout block. Fonts are the site's own files, served from ./fonts.
   Licenses: Fraunces is SIL Open Font License; League Script is SIL Open Font
   License (Google Fonts); Switzer is from Indian Type Foundry's Fontshare
   (free license). The owner should keep the license notes they received. */

@font-face {
  font-family: "Fraunces 72 Supersoft";
  src: url("/design-system/fonts/Fraunces72ptSuperSoft-Light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces 72 Supersoft";
  src: url("/design-system/fonts/Fraunces72ptSuperSoft-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces 72 Supersoft";
  src: url("/design-system/fonts/Fraunces72ptSuperSoft-ThinItalic.woff2") format("woff2");
  font-weight: 100; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Switzer Variable";
  src: url("/design-system/fonts/Switzer-Variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Switzer Variable";
  src: url("/design-system/fonts/Switzer-VariableItalic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "League Script";
  src: url("/design-system/fonts/LeagueScript-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
h1, h2, h3, h4, h5, h6, p, blockquote, figure, ul, ol { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; line-height: inherit; font-weight: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; margin: 0; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- Body defaults (measured: Switzer 20px, 1.5, -0.02em, ink on white) ---------- */
body {
  font-family: var(--font-sans);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  font-weight: var(--weight-regular);
  color: var(--text);
  background-color: var(--tgc-paper); /* measured: the page shows paper below the last band */
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
/* Running-text links are underlined (measured: links inside h1-h6 and p) */
:is(h1, h2, h3, h4, h5, h6, p) a { text-decoration: underline; text-underline-offset: 0.15em; }

/* Every tone paints its own surface and text */
[data-tone] { background-color: var(--surface); color: var(--text); }

/* ---------- Focus: one ring, re-pointed per tone ---------- */
:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: 3px;
}

/* ---------- Type roles ---------- */
.t-display {
  font-family: var(--font-serif);
  font-size: var(--size-display);
  font-weight: var(--weight-thin);
  font-style: italic;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
}
.t-h1 {
  font-family: var(--font-serif);
  font-size: var(--size-h1);
  font-weight: var(--weight-medium);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
}
.t-h3 {
  font-family: var(--font-serif);
  font-size: var(--size-h3);
  font-weight: var(--weight-light);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
}
.t-h4 {
  font-family: var(--font-serif);
  font-size: var(--size-h4);
  font-weight: var(--weight-regular);
  line-height: var(--leading-heading);
  letter-spacing: 0;
  text-wrap: balance;
}
.t-quote {
  font-family: var(--font-serif);
  font-size: var(--size-quote);
  font-weight: var(--weight-light);
  line-height: var(--leading-quote);
  letter-spacing: var(--tracking-body);
}
.t-ui-large {
  font-size: var(--size-ui-large);
  font-weight: var(--weight-medium);
  line-height: var(--leading-heading);
}
.t-eyebrow {
  font-size: var(--size-ui-large);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-body);
}
.t-ui-main {
  font-size: var(--size-body);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-heading);
}
.t-ui-small {
  font-size: var(--size-ui-small);
  font-weight: var(--weight-regular);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-body);
}
.t-script {
  font-family: var(--font-script);
  font-weight: var(--weight-regular);
  letter-spacing: 0;
  color: var(--tgc-sun);
}
.t-accent { color: var(--accent); }
.t-faded { color: color-mix(in srgb, var(--text) 60%, transparent); } /* white 60% on navy renders #99a9c3, 5.81:1 */

/* ---------- Page shell ---------- */
.page { overflow: clip; }
.page-main { background-color: var(--tgc-paper); position: relative; }
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
}
.grid-breakout {
  display: grid;
  grid-template-columns: var(--grid-breakout);
  column-gap: var(--grid-gap);
  row-gap: var(--grid-gap);
}
@media (max-width: 479px) {
  .grid-breakout.is-single-on-phone { grid-template-columns: var(--grid-breakout-single); }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Smooth scroll (Lenis, set up in motion.js), as on the old site */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
