/* Base — reset, font loading, and global typography rules. */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-variable.woff2") format("woff2-variations"),
       url("../fonts/hanken-grotesk-variable.woff2") format("woff2");
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--u-surface);
  color: var(--u-ink);
  font-family: var(--u-font);
  font-size: var(--u-fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

[hidden] {
  display: none !important;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* ---- Skip link (a11y) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--u-sp-3);
  z-index: var(--u-z-modal);
  background: var(--u-ink);
  color: var(--u-accent-ink);
  padding: var(--u-sp-2) var(--u-sp-3);
  border-radius: var(--u-radius-sm);
  font-weight: 600;
  transition: top var(--u-dur-2) var(--u-ease-out);
}

.skip-link:focus-visible {
  top: var(--u-sp-3);
}

/* ---- Focus ring: the one loud interaction, everywhere ---- */
:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--u-surface), 0 0 0 5px var(--u-focus-ring);
  border-radius: var(--u-radius-sm);
}

/* ---- Typography scale ---- */
.type-display {
  font-size: var(--u-fs-display);
  line-height: var(--u-lh-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.type-headline {
  font-size: var(--u-fs-headline);
  line-height: var(--u-lh-headline);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.type-title {
  font-size: var(--u-fs-title);
  line-height: 1.25;
  font-weight: 600;
}

.type-body {
  font-size: var(--u-fs-body-lg);
  line-height: var(--u-lh-body);
  max-width: var(--u-measure);
  color: var(--u-muted);
}

.type-label {
  font-size: var(--u-fs-label);
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.type-micro {
  font-size: var(--u-fs-micro);
  color: var(--u-muted);
}

.u-measure {
  max-width: var(--u-measure);
}

.u-muted {
  color: var(--u-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: 84rem;
  margin-inline: auto;
  padding-inline: var(--u-gutter);
}

@media (max-width: 1100px) {
  .container {
    padding-inline: var(--u-sp-6);
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: var(--u-sp-4);
  }
}

.section {
  padding-block: var(--u-sp-8);
}

@media (max-width: 640px) {
  .section {
    padding-block: var(--u-sp-6);
  }
}

.section-head {
  max-width: 42rem;
  margin-bottom: var(--u-sp-6);
}

.section-head .type-label {
  color: var(--u-muted);
  margin-bottom: var(--u-sp-2);
  display: block;
}

.section-head .type-headline {
  margin-bottom: var(--u-sp-3);
}
