/* ==========================================================================
   SITEKICKSTUDIO — Base / Reset
   ========================================================================== */

/* ---- Typography: Nohemi variable (self-hosted) ----
   A single file covers every weight (wght axis 100–900). The original
   .ttf is served unmodified: the license (Nohemi/License/EULA.pdf) does
   not allow altering the files. The metric overrides match the vertical
   rhythm of Site Designer. */
@font-face {
  font-family: "Nohemi";
  src: url("../assets/fonts/nohemi/Nohemi-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  size-adjust: 96%;
  ascent-override: 93%;
  descent-override: 21%;
  line-gap-override: 0%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  /* The fixed bar is ~70px tall: when jumping to an anchor or moving focus
     with Tab, the browser keeps this offset so nothing ends up hidden
     (WCAG 2.4.11 Focus Not Obscured). */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

/* No double-tap delay on mobile, and an on-brand tap highlight. */
a, button, summary, label, input, textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: var(--sk-ember-soft);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-h1);
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection {
  background: var(--sk-ember);
  color: var(--text-on-accent);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-pill);
}

:focus-visible {
  outline: 2px solid var(--sk-ember);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Skip link: off-screen until it receives focus via Tab. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--bg);
  font-weight: var(--fw-strong);
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* <main> receives focus from the skip link; it needs no focus ring. */
main:focus { outline: none; }

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: var(--fs-micro);
  font-weight: var(--fw-strong);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  font-feature-settings: "case";
  color: var(--text-dim);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sk-ember);
  box-shadow: 0 0 10px var(--sk-ember-glow);
}

.text-dim { color: var(--text-dim); }

/* ---- Scroll reveal primitives ----
   Gated on html.js (set inline in <head>): without JS nothing is hidden. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: transform, opacity;
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
