/* @font-face-reglerna nedan infogas av build_webb.py (beror på om
   typsnitten levereras variabla eller som fasta vikter). */
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/Fraunces-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1E2226;
  --warm: #EDEAE4;
  --steel: #9AA6B0;
  --brass: #B8955A;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--warm);
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
}

main.page {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: left;
}

p, h1 { margin: 0; }

.etikett {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-variation-settings: 'opsz' 14;
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--steel);
}

.rubrik {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-variation-settings: 'opsz' 72, 'wght' 400, 'SOFT' 0, 'WONK' 0;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  line-height: 1.1;
  color: var(--warm);
  margin-top: 20px;
}

.linje {
  width: 64px;
  height: 2px;
  background: var(--brass);
  margin: 32px 0 28px 0;
}

.brodtext {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-variation-settings: 'opsz' 14;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--steel);
}

.brodtext + .brodtext { margin-top: 16px; }

.knapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  padding: 14px 28px;
  min-height: 44px;
  border-radius: 4px;
  background: var(--brass);
  color: var(--bg);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-variation-settings: 'opsz' 14;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}

.knapp:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 2px;
}

.rad {
  margin-top: 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-variation-settings: 'opsz' 14;
  font-size: 1rem;
  color: var(--steel);
}

.textlank {
  color: var(--warm);
  text-decoration: underline;
}

.textlank:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 2px;
}

.sidfot {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px 24px 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-variation-settings: 'opsz' 14;
  font-size: 13px;
  color: var(--steel);
}
