/**
 * The Geometral public site — ONE stylesheet, shared by every page.
 *
 * The colour atoms are copied verbatim from packages/identity (the app's
 * globals.css is the source of truth). Nothing here invents a colour: the
 * surfaces are the same black-mixes of the ink atom that the studio uses, so
 * the site and the product read as one system.
 */

@font-face {
  font-family: "Geist Pixel Square";
  src: url("./GeistPixelSquare.woff2") format("woff2");
  font-display: swap;
}

:root {
  /* atoms — identity PALETTE, verbatim */
  --ink: #23282e;
  --muted: #5f676e;
  --faint: #c0c5ca;
  --accent: #7c8791;
  --paper: #ffffff;
  --warm: #b4534b;   /* LOCKED to physical heat — never decoration */
  --cool: #3f79ad;   /* LOCKED to physical cool/water */

  /* the GRAPHITE register: the desk is a deep black-mix, elevation climbs
     TOWARD ink (same construction as the studio's chrome) */
  --bg: color-mix(in srgb, var(--ink) 38%, black);
  --surface: color-mix(in srgb, var(--ink) 62%, black);
  --raised: var(--ink);
  --line: color-mix(in srgb, var(--paper) 12%, transparent);
  --line-strong: color-mix(in srgb, var(--paper) 26%, transparent);
  /* pure muted sits below comfortable contrast on the deep desk in daylight */
  --dim: color-mix(in srgb, var(--muted) 65%, var(--faint));

  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 4rem 1.5rem 7rem; }
.wrap-wide { max-width: 64rem; }

/* ---- the lockup ---------------------------------------------------------- */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
             margin-bottom: 4.5rem; flex-wrap: wrap; }
.lockup { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; }
.lockup svg { color: var(--accent); }
.lockup .word { font-family: "Geist Pixel Square", ui-sans-serif, system-ui, sans-serif;
                font-size: .9375rem; letter-spacing: .16em; }
.site-nav { display: flex; gap: 1.25rem; font-size: .875rem; }
.site-nav a { color: var(--dim); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--paper); }

/* ---- type ---------------------------------------------------------------- */
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em;
     margin: 0 0 1rem; font-weight: 600; }
.lead { font-size: 1.125rem; color: var(--faint); margin: 0 0 3rem; max-width: 34rem; }
h2 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
     font-weight: 600; margin: 3rem 0 1rem; }
h3 { font-size: 1.0625rem; font-weight: 600; margin: 2rem 0 .5rem; }
p { margin: 0 0 1rem; color: var(--faint); }
strong { color: var(--paper); font-weight: 600; }
.note { font-size: .9375rem; color: var(--dim); }
.close { font-size: 1.0625rem; color: var(--paper); }
.measured { font-variant-numeric: tabular-nums; }
/* the skim line: what a scanner needs before deciding to read */
.facts { font-size: .875rem; color: var(--dim); margin: -2rem 0 2.5rem; }
.facts b { color: var(--faint); font-weight: 600; }
/* inline links in body prose: legible, not shouty */
p.note a, p a { color: var(--faint); text-decoration: none;
                border-bottom: 1px solid var(--line-strong); }
p.note a:hover, p a:hover { color: var(--paper); }

/* ---- blocks -------------------------------------------------------------- */
.card { border: 1px solid var(--line); border-radius: 13px; background: var(--surface);
        padding: 1.6rem 1.75rem; margin-bottom: 3.5rem; }
.card h2 { margin: 0 0 .6rem; font-size: 1.125rem; font-weight: 600; letter-spacing: 0;
           text-transform: none; color: var(--paper); }
.card p { margin: 0; color: var(--faint); }
.card p + p { margin-top: .9rem; font-size: .9375rem; }

ul { list-style: none; padding: 0; margin: 0 0 1rem; }
ul li { padding: .7rem 0; border-top: 1px solid var(--line); color: var(--faint); }
ul li:first-child { border-top: 0; }
ul.plain li { padding: .35rem 0; border: 0; }
ul.plain li::before { content: "·"; color: var(--accent); margin-right: .6rem; }

hr.rule { height: 1px; background: var(--line); border: 0; margin: 3.5rem 0; }

/* ---- drawings ------------------------------------------------------------ */
/* the sheets are white paper; they sit in their own frame on the graphite desk */
figure.sheet { margin: 2rem 0 2.5rem; }
/* only the DIRECT child link is the framed sheet; caption links stay text */
figure.sheet > a { display: block; border: 1px solid var(--line); border-radius: 9px;
                   overflow: hidden; background: var(--paper); }
figure.sheet img { display: block; width: 100%; height: auto; }
figure.sheet figcaption { margin-top: .7rem; font-size: .8125rem; color: var(--dim); }
figure.sheet figcaption b { color: var(--faint); font-weight: 600; }
figure.sheet figcaption a { color: var(--faint); text-decoration: none;
                            border-bottom: 1px solid var(--line-strong); }
figure.sheet figcaption a:hover { color: var(--paper); }

.sheet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; }
.sheet-grid figure.sheet { margin: 0; }
.sheet-grid + p { margin-top: 1.75rem; }

/* ---- calls to action ----------------------------------------------------- */
.cta { display: inline-block; margin-top: .5rem; background: var(--paper); color: var(--ink);
       text-decoration: none; font-weight: 600; padding: .8rem 1.4rem; border-radius: 9px; }
.cta:hover { background: var(--faint); }
.cta-ghost { background: transparent; color: var(--paper); border: 1px solid var(--line-strong); }
.cta-ghost:hover { background: var(--surface); }

footer.site-foot { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
                   font-size: .875rem; color: var(--dim); display: flex;
                   justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer.site-foot a { color: var(--faint); text-decoration: none; }

@media print {
  body { background: #fff; color: #16191c; }
  .site-nav, .cta { display: none; }
}
