/* Borrowed color theme (chosen by Alex 2026-12-04). Loaded after style.css on every page; only overrides.
   A quiet charcoal and soft-white base; every colour comes from the four projects. Round dots. */
:root {
  --night: #1b1c1f;
  --on-night: #f2f2f0;
  --on-night-2: rgba(242, 242, 240, .62);
  --line-night: rgba(242, 242, 240, .15);

  --paper: #f2f2f0;
  --ink: #1b1c1f;
  --ink-2: #5b5c60;
  --line: rgba(27, 28, 31, .13);

  /* on dark: Spots mint. Each light section sets its own, darker project colour below. */
  --accent: #3fd1b8;
  --accent-deep: #0f7f6c;
  --accent-ink: #0f2a30;

  /* hero dots: Spots, Regions, Inside Out, Brainwidth */
  --dot-shape: round;
  --dot-size: .74;
  --dot-hues: #3fd1b8, #f08a84, #e9a26a, #4aa8ff;
}

/* each light section borrows one project's colour, deepened for text on soft white */
.intro { --accent: #0f8f7a; --accent-deep: #0b6f5f; }               /* Spots */
.work { --accent: #c4524b; --accent-deep: #a63f39; }                /* Regions coral */
.contact.paper { --accent: #b5652a; --accent-deep: #96511f; --accent-ink: #fff; }   /* Inside Out amber */
.footer { --accent: #4aa8ff; }                                      /* Brainwidth */

/* round full stops */
.dot { position: relative; color: transparent; }
.dot::after {
  content: ""; position: absolute; left: .02em; bottom: .23em;
  width: .19em; height: .19em; border-radius: 50%; background: var(--accent);
}

/* softer, wider headings (were 900 weight at 62% width) */
.display { font-weight: 700; font-stretch: 108%; font-size: clamp(64px, 10.5vw, 180px); line-height: .84; letter-spacing: -.03em; }
.stats__num { font-weight: 300; font-stretch: 100%; }

/* the four project colours as a quiet row of dots under the intro stats */
.stats { position: relative; }
.intro .label-row > span:last-child::after {
  content: ""; display: inline-block; width: 52px; height: 10px; margin-left: 12px; vertical-align: middle;
  background:
    radial-gradient(circle, #0f8f7a 4px, transparent 4.5px) 0 50% / 13px 10px no-repeat,
    radial-gradient(circle, #c4524b 4px, transparent 4.5px) 13px 50% / 13px 10px no-repeat,
    radial-gradient(circle, #b5652a 4px, transparent 4.5px) 26px 50% / 13px 10px no-repeat,
    radial-gradient(circle, #0066cc 4px, transparent 4.5px) 39px 50% / 13px 10px no-repeat;
}

.footer__mark { color: #2a2b2f; }

/* "Say hello." ends in the same round full stop (its letters are split into spans by main.js) */
.contact__title .ch-wrap:last-child .ch { position: relative; color: transparent; }
.contact__title .ch-wrap:last-child .ch::after {
  content: ""; position: absolute; left: .02em; bottom: .2em;
  width: .19em; height: .19em; border-radius: 50%; background: var(--accent);
}

/* the dot font (preloader count, ticker, clock) with round dots, if the font has its roundness setting */
.doto, .preloader [data-count] { font-variation-settings: "ROND" 100; }

/* ---------- loading screen (Borrowed color) ---------- */
.preloader { --count-ink: #f2f2f0; }
.preloader__count { position: relative; }
.preloader.has-dot-count [data-count] { color: transparent; }
.preloader__dots { position: absolute; pointer-events: none; }
/* the progress line becomes a row of dots in the four project colours, one quarter each */
.preloader__bar {
  position: relative; height: 12px; background: none; overflow: visible;
  -webkit-mask: radial-gradient(circle at 6px 6px, #000 4.4px, transparent 5px) 0 0 / 16px 12px repeat-x;
          mask: radial-gradient(circle at 6px 6px, #000 4.4px, transparent 5px) 0 0 / 16px 12px repeat-x;
}
.preloader__bar span { display: none; }
.preloader__bar::before { content: ""; position: absolute; inset: 0; background: rgba(242, 242, 240, .13); }
.preloader__bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #3fd1b8 0 25%, #f08a84 25% 50%, #e9a26a 50% 75%, #4aa8ff 75%);
  clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0);
}
/* the four project names above their quarter, lighting up as the count passes them */
.preloader__projects {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--gutter) + 26px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; color: var(--on-night-2);
}
.preloader__projects span { opacity: .3; transition: opacity .3s, color .3s; }
.preloader__projects span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: currentColor; }
.preloader[data-step="1"] .preloader__projects span:nth-child(-n+1),
.preloader[data-step="2"] .preloader__projects span:nth-child(-n+2),
.preloader[data-step="3"] .preloader__projects span:nth-child(-n+3),
.preloader[data-step="4"] .preloader__projects span { opacity: 1; }
.preloader__projects span:nth-child(1) { color: #3fd1b8; }
.preloader__projects span:nth-child(2) { color: #f08a84; }
.preloader__projects span:nth-child(3) { color: #e9a26a; }
.preloader__projects span:nth-child(4) { color: #4aa8ff; }

/* ==========================================================================
   Type: Jost (owner decision 2026-12-04, Alex: "Use Jost"). Futura-style geometric, the mid-century classic. SIL OFL, self-hosted:
   assets/fonts/OFL-jost.txt. Replaces Archivo (text) and JetBrains Mono (labels); Doto stays for the dots.
   ========================================================================== */
@font-face {
  font-family: "Jost"; src: url("../fonts/jost-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost"; src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --sans: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Jost", ui-sans-serif, system-ui, sans-serif;
  --hero-font: "Jost", sans-serif;
  --hero-this-weight: 450;
}
/* labels: spaced capitals instead of a coding font */
.mono { font-weight: 500; letter-spacing: .16em; font-size: 11.5px; }
/* headings: Futura-style medium weights (Jost has no width axis, so the old stretch values do nothing) */
.display { font-weight: 600; letter-spacing: -.02em; line-height: .86; }
.contact__title { font-weight: 600; letter-spacing: -.03em; }
.project__name { font-weight: 600; letter-spacing: -.015em; line-height: .92; }
.stats__num { font-weight: 300; letter-spacing: -.02em; }
.intro__statement { font-weight: 400; letter-spacing: -.01em; }
