/* Reset + global typography + shared helpers.
   v3 "Nordiskt dagsljus": light base with ink text; warm gold is the accent.
   Band theming happens via the scoped custom properties in tokens.css. */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tx);
  background: var(--c-dagsljus);
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--tx);
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; }

/* Prose links are ink + underline; gold shows on hover — links look like links */
p a,
li a:not(.btn),
dd a {
  color: var(--c-granit);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color var(--speed);
}

p a:hover,
li a:not(.btn):hover,
dd a:hover {
  color: var(--c-gran-djup);
}

:focus-visible {
  outline: 2px solid var(--c-gran-djup);
  outline-offset: 2px;
}

::selection {
  background: var(--c-dis);
  color: var(--c-granit);
}

/* The mono "facts voice": kickers, captions, data */
.over {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gran-djup);
  margin-bottom: 14px;
}

/* Layout helpers */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

/* Simple responsive grids */
.grid-2 {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Scroll-reveal (js/reveal.js adds .is-visible). Gated on html.js — added by
   main.js — so content is never hidden when JS is blocked or fails. */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
