/* site-tokens.css: the one shared foundation for every goldstine.org page (1 Dec 2026).
   Sections keep their own forms; their measurements come from here so the site reads as one.
   Names start with --g- so they never collide with a section's own local variables.
   Rule: a section may use a value that is not here only with a comment saying why. */
:root{
  /* type: two families, seven sizes */
  --g-font-display: GoldstineChillax, "Chillax", system-ui, sans-serif;
  --g-font-text: GoldstineSynonym, "Synonym", system-ui, sans-serif;
  --g-t-display: clamp(44px, 6.4vw, 104px);
  --g-t-h1: clamp(36px, 4.4vw, 74px);
  --g-t-h2: clamp(30px, 3.6vw, 58px);
  --g-t-h3: clamp(20px, 1.6vw, 26px);
  --g-t-lead: clamp(17px, 1.35vw, 20px);
  --g-t-body: clamp(15px, 1.05vw, 17px);
  --g-t-label: 12px;
  --g-lh-tight: 1.02;
  --g-lh-head: 1.1;
  --g-lh-body: 1.55;
  --g-track-head: -.03em;
  --g-track-label: .12em;

  /* space: one side margin, one width, three section rhythms */
  --g-edge: clamp(20px, 4.4vw, 72px);
  --g-max: 1320px;
  --g-measure: 62ch;
  --g-sec-hero: clamp(100px, 11vw, 170px);
  --g-sec: clamp(80px, 9vw, 140px);
  --g-sec-tight: clamp(56px, 6vw, 96px);
  --g-gap-head: clamp(28px, 3.4vw, 56px); /* section opening to section body */
  --g-gap: clamp(14px, 1.6vw, 24px);

  /* radii: four steps */
  --g-r-sm: 6px;
  --g-r-ctl: 14px;
  --g-r-card: 22px;
  --g-r-pill: 999px;

  /* colour: one light and one dark ground for every section, named accents */
  --g-paper: #eef0eb;
  --g-paper-raised: #f6f7f3;
  --g-ink: #0f1519;
  --g-ink-raised: #18212b;
  --g-ink-soft: rgba(15, 21, 25, .66);
  --g-paper-soft: rgba(238, 240, 235, .7);
  --g-line: rgba(15, 21, 25, .12);
  --g-line-dark: rgba(238, 240, 235, .14);
  --g-coral: #e1503f;
  --g-ember: #b0301f;
  --g-amber: #e8961a;
  --g-teal: #10a091;
  --g-pine: #08695f;
  --g-indigo: #5659e3;
  --g-accent: var(--g-coral); /* a page or venture sets its own */

  /* motion: two curves, three durations */
  --g-ease: cubic-bezier(.2, .8, .2, 1);
  --g-ease-spring: cubic-bezier(.3, 1.4, .4, 1);
  --g-d-1: .2s;
  --g-d-2: .4s;
  --g-d-3: .8s;

  /* touch */
  --g-tap: 44px;
}

/* The shared section opening: label (optional), heading, one-line lead, on the same column everywhere.
   Sections opt in with class="g-open"; the body of each section keeps its own form. */
.g-open{max-width:var(--g-max);margin:0 auto var(--g-gap-head);padding:0 var(--g-edge);box-sizing:border-box}
.g-open .g-label{display:block;margin:0 0 14px;font:600 var(--g-t-label)/1.2 var(--g-font-text);letter-spacing:var(--g-track-label);text-transform:uppercase;color:var(--g-accent)}
.g-open .g-title{margin:0;max-width:18ch;font:500 var(--g-t-h2)/var(--g-lh-head) var(--g-font-display);letter-spacing:var(--g-track-head);text-wrap:balance}
.g-open .g-lead{margin:18px 0 0;max-width:var(--g-measure);font:400 var(--g-t-lead)/var(--g-lh-body) var(--g-font-text);opacity:.74;text-wrap:pretty}

/* the three actions */
.g-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:var(--g-tap);padding:0 22px;border-radius:var(--g-r-pill);font:600 15px/1 var(--g-font-text);text-decoration:none;white-space:nowrap;background:var(--g-ink);color:var(--g-paper);transition:transform var(--g-d-1) var(--g-ease),background var(--g-d-1) var(--g-ease)}
.g-btn:hover{transform:translateY(-1px)}
.g-btn.is-quiet{background:transparent;color:inherit;box-shadow:inset 0 0 0 1px currentColor}
.g-link{display:inline-flex;align-items:center;gap:8px;min-height:var(--g-tap);font:600 15px/1 var(--g-font-text);color:inherit;text-decoration:none}
.g-link::after{content:"\2192";transition:transform var(--g-d-1) var(--g-ease)}
.g-link:hover::after{transform:translateX(3px)}

/* phone floor: nothing scrolls sideways, media never overflows */
@media (max-width: 767px){
  html,body{overflow-x:clip}
  img,video,canvas,svg,iframe{max-width:100%}
}
@media (prefers-reduced-motion: reduce){
  :root{--g-d-1:.01s;--g-d-2:.01s;--g-d-3:.01s}
}
