/* NO HALT WORKS — shared styles
   Tokens (source of truth: brand colour palette), self-hosted fonts, base + page rules. */

:root {
  /* ---- Neutrals (iron) ---- */
  --nhw-iron:        #14171A;  /* primary background */
  --nhw-iron-deep:   #0b0d0f;  /* deepest black — hero / full-bleed grounds */
  --nhw-panel:       #1B2024;  /* surfaces, chips, cards on iron */
  --nhw-panel-2:     #0F1316;  /* recessed / inset wells */
  --nhw-slate:       #2B3034;  /* mark base, secondary panels */
  --nhw-steel:       #4A5052;  /* arm / structural strokes */
  --nhw-ash:         #B9BDBD;  /* light steel; body text on dark */
  --nhw-weld:        #FBF9F6;  /* foreground / weld-white */
  --nhw-muted:       #8A9092;  /* secondary / caption text */
  --nhw-muted-dim:   #5C6264;  /* tertiary: fine print, legal, footnotes */
  --nhw-line:        rgba(255,255,255,0.08); /* hairline dividers on iron */

  /* ---- Accent: weld heat (use sparingly) ---- */
  --nhw-persimmon:   #D65D33;  /* BRAND accent — weld trail, links, "WORKS", active */
  --nhw-persimmon-2: #B86343;
  --nhw-amber:       #F2A93C;
  --nhw-positive:    #7BB58E;
  --nhw-negative:    #C77B7B;

  /* ---- Semantic aliases ---- */
  --bg:              var(--nhw-iron);
  --surface:         var(--nhw-panel);
  --surface-inset:   var(--nhw-panel-2);
  --text:            var(--nhw-weld);
  --text-body:       var(--nhw-ash);
  --text-muted:      var(--nhw-muted);
  --text-dim:        var(--nhw-muted-dim);
  --accent:          var(--nhw-persimmon);
  --link:            var(--nhw-persimmon);
  --border:          var(--nhw-line);
  --warning:         var(--nhw-amber);
}

/* ---- Self-hosted fonts (SIL Open Font License; see /fonts/) ---- */
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/archivo-black-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Share Tech Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/share-tech-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/libre-franklin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/libre-franklin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/libre-franklin-900.woff2') format('woff2');
}

/* ---- Base ---- */
html { color-scheme: dark; background: var(--nhw-iron); -webkit-text-size-adjust: 100%; }
html.deep { background: var(--nhw-iron-deep); }
html.smooth { scroll-behavior: smooth; }
body { margin: 0; }

/* Landing is a two-panel pager — hide the (JS-driven) scrollbar there. */
html.deep { scrollbar-width: none; }              /* Firefox */
html.deep::-webkit-scrollbar { width: 0; height: 0; display: none; }  /* WebKit/Chromium */

/* The hero photo appears at once over the matching dark hero ground (preloaded
   + small, never loads "top-to-bottom"). The mark + wordmark then snap in just
   after, then the scroll cue. Pure CSS — visible by default if anything fails. */
.hero-centre { animation: fall-in .7s cubic-bezier(.2,.7,.2,1) .5s both; }
.scroll-cue  { animation: rise-in .35s ease-out .75s both; }
@keyframes fall-in {            /* logo + name drop in from above */
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rise-in {            /* scroll cue rises from below */
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-centre, .scroll-cue { animation: none; }
  html.smooth { scroll-behavior: auto; }
}

/* ---- Landing: footer contact links ---- */
footer a[data-lnk] { text-decoration: none; cursor: pointer; transition: color .15s ease; }
footer [data-lnk="mail"] { color: var(--nhw-ash); }
footer [data-lnk="priv"] { color: var(--nhw-muted); }
footer [data-lnk]:hover,
footer [data-lnk]:focus-visible { color: var(--nhw-persimmon); }

/* ---- Privacy: document + TOC links ---- */
a[data-doc-link] {
  color: var(--nhw-weld);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--nhw-weld) 28%, transparent);
  transition: color .15s ease, border-color .15s ease;
}
a[data-doc-link]:hover,
a[data-doc-link]:focus-visible { color: var(--nhw-persimmon); border-bottom-color: var(--nhw-persimmon); }
a[data-toc] { color: var(--nhw-muted); text-decoration: none; transition: color .15s ease; }
a[data-toc]:hover,
a[data-toc]:focus-visible { color: var(--nhw-persimmon); }
footer a[data-toc] { color: var(--nhw-ash); }
a[data-home] { text-decoration: none; }

/* Standalone link (404 page) */
a.home-link { color: var(--nhw-ash); text-decoration: none; transition: color .15s ease; }
a.home-link:hover, a.home-link:focus-visible { color: var(--nhw-persimmon); }

.pp-body p { margin: 0 0 18px; }
.pp-body ul { margin: 0 0 22px; padding: 0; list-style: none; }
.pp-body ul li { position: relative; padding: 0 0 0 22px; margin: 0 0 11px; }
.pp-body ul li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 5px; height: 5px; background: var(--nhw-muted); transform: rotate(45deg);
}
.pp-body ul li strong { color: var(--nhw-weld); font-weight: 600; }
