/* madebypwr — shared tokens for both surfaces.
   Stage: studio cyc-wall grey. Colour on this surface comes from the work, never the chrome.
   Storefront: cold porcelain. Its action colour is Stage's grey, so the two read as one system. */

@font-face {
  font-family: "Syne";
  src: url("../fonts/syne.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spline Sans Mono";
  src: url("../fonts/spline-sans-mono.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Syne", "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, Consolas, monospace;

  /* Type scale, 1.333 at the display end, tightening toward body copy */
  --t-xs: 0.78rem;
  --t-sm: 0.875rem;
  --t-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --t-lg: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --t-xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --t-2xl: clamp(2.5rem, 1.7rem + 3.6vw, 4.5rem);
  --t-3xl: clamp(3rem, 1.6rem + 6.2vw, 7rem);

  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.75rem;
  --s-4: 3rem;
  --s-5: 5rem;
  --s-6: 8rem;

  --r-sm: 5px;
  --r-lg: 12px;
  --measure: 64ch;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --wide: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.55;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.028em; line-height: 1.04; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.2em; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { width: min(100% - (var(--gutter) * 2), var(--wide)); margin-inline: auto; }

/* Build Log signature — monospace is reserved for real data: money, duration, version.
   It is never used as a decorative label above a heading. */
.data { font-family: var(--mono); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.data-sm { font-family: var(--mono); font-size: var(--t-xs); font-variant-numeric: tabular-nums; color: var(--muted); }

.duration { font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); white-space: nowrap; }
.duration::before { content: "●"; margin-right: 0.45em; font-size: 0.7em; vertical-align: 0.15em; }

.money { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* Interactive elements clear the 44px touch floor without inflating inline links */
button, .action, input, textarea, select { font: inherit; }
.action, button.action { min-height: 48px; display: inline-flex; align-items: center; gap: 0.6em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.footer-contact { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.footer-contact a { font-family: var(--mono); font-size: var(--t-xs); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
