/* Halbnord — base layer: tokens, reset, typography, utilities */

@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --nox: #1A1F26;
  --frost: #EEF0F0;
  --moss: #2F3F2E;
  --ridge: #6B7773;
  --sky: #3C5066;
  --rust: #3C5066;
  --line: #D2D6D4;
  --shade: #2A2F36;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --w-page: 1280px;
  --w-narrow: 880px;
  --r: 4px;
  --shadow-soft: 0 1px 0 rgba(26,31,38,0.04), 0 8px 24px rgba(26,31,38,0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--nox);
  background: var(--frost);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
img { font-style: italic; color: var(--ridge); }

a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--moss); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  color: var(--nox);
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--sans); letter-spacing: 0.01em; text-transform: uppercase; color: var(--ridge); }

p { margin: 0 0 1.2em; max-width: 70ch; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin: 0.3em 0; }

strong { color: var(--nox); font-weight: 600; }
em { font-style: italic; }

::selection { background: var(--moss); color: var(--frost); }

/* Containers */
.wrap { width: 100%; max-width: var(--w-page); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: var(--w-narrow); margin: 0 auto; padding: 0 24px; }

/* Section spacing */
.band { padding: 80px 0; }
.band--tight { padding: 56px 0; }
.band--big { padding: 112px 0; }
@media (min-width: 768px) {
  .band { padding: 112px 0; }
  .band--tight { padding: 72px 0; }
  .band--big { padding: 160px 0; }
}
.band--dark { background: var(--nox); color: var(--frost); }
.band--dark h1, .band--dark h2, .band--dark h3 { color: var(--frost); }
.band--dark h4 { color: rgba(238,240,240,0.65); }
.band--dark a { color: #D0D6D6; }
.band--moss { background: var(--moss); color: var(--frost); }
.band--moss h1, .band--moss h2, .band--moss h3 { color: var(--frost); }

/* Eyebrow / kicker */
.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 16px;
}
.band--dark .kicker, .band--moss .kicker { color: #B7C9B6; }

/* Lede paragraph */
.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.45;
  color: var(--shade);
  max-width: 60ch;
}
.band--dark .lede, .band--moss .lede { color: rgba(238,240,240,0.85); }

/* Buttons (called .cta in this project) */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  background: var(--nox);
  color: var(--frost);
  border: 1.5px solid var(--nox);
  border-radius: var(--r);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.cta:hover { background: var(--moss); border-color: var(--moss); color: var(--frost); transform: translateY(-1px); }
.cta--ghost { background: transparent; color: var(--nox); }
.cta--ghost:hover { background: var(--nox); color: var(--frost); }
.cta--frost { background: var(--frost); color: var(--nox); border-color: var(--frost); }
.cta--frost:hover { background: var(--moss); color: var(--frost); border-color: var(--moss); }
.cta__arrow { display: inline-block; width: 14px; height: 10px; }

/* Skip link */
.jump-nav {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  background: var(--nox);
  color: var(--frost);
  padding: 10px 14px;
  border-radius: var(--r);
  transition: top 0.2s;
}
.jump-nav:focus { top: 16px; color: var(--frost); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Visually hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Animation primitives */
.io-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.io-fade.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .io-fade { opacity: 1; transform: none; }
}
