/*
 * WordPress port note – the only change made to this frozen stylesheet.
 *
 * In the prototype this file sat at prototype/css/base.css with the fonts at
 * prototype/assets/fonts/, so the four @font-face sources read
 * "../assets/fonts/…". In the theme the stylesheet lives at assets/css/ and the
 * fonts at assets/fonts/, so the same four files are one level up: "../fonts/…".
 * Same faces, same files, same rendering – only the relative path changed.
 */

/* ==========================================================================
   Base – reset, document defaults, typography, focus, media
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */
/* Self-hosted so the site makes no third-party requests (DSGVO-friendly).
   Both families are variable fonts; the declared ranges cover every weight
   used in the approved design. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ reset */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-text);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* -------------------------------------------------------- semantic type */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-strong);
  text-wrap: balance;
}

h1 {
  font-size: var(--font-size-display-1);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-display-tight);
  letter-spacing: var(--letter-spacing-display);
}

h2 {
  font-size: var(--font-size-display-2);
  line-height: var(--line-height-display);
  letter-spacing: var(--letter-spacing-display);
}

h3 {
  font-size: var(--font-size-heading-sm);
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-heading);
}

p {
  text-wrap: pretty;
}

strong,
b {
  font-weight: var(--font-weight-semibold);
}

/* ------------------------------------------------------------------ links */

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-gold-deep);
}

/* ------------------------------------------------------------------ media */

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

/*
  <picture> only selects a source; it must not become a box of its own,
  otherwise the image inside loses the sizing of its media container.
*/
picture {
  display: contents;
}

img,
video {
  height: auto;
}

svg {
  fill: none;
}

/* -------------------------------------------------------------- form base */

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

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

/* -------------------------------------------------------------- accessibility */

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

/* On ink surfaces the deep gold does not carry enough contrast. */
.site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.surface-ink :focus-visible,
.surface-ink-raised :focus-visible {
  outline-color: var(--color-gold-light);
}

::selection {
  background-color: var(--color-gold-light);
  color: var(--color-ink);
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------- reduced motion */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
