/*
 * GjenLek — landingssiden på www.gjenlek.no.
 *
 * Tokenene er fra designpakken (Tillegg C), ikke fra app/globals.css. De to
 * flatene er med vilje to tjenester: appen kan ikke lese denne filen, og denne
 * siden kan ikke lese Tailwind-tokenene. `tests/unit/landing.test.ts` holder
 * derfor det som *må* være likt — navnet, selskapet, adressene — i takt med
 * lib/config/, og lar fargene være egne. Samme avveining som
 * lib/design/share-image.ts gjør mot satori.
 *
 * Dette er holdesiden fra steg 1 (infrastruktur). Designet fra pakken bygges i
 * steg 2; da vokser denne filen, men tokenene under står.
 */

/* Archivo er selvhostet, ikke hentet fra Google Fonts.
 * En <link> til fonts.googleapis.com sender hver besøkendes IP-adresse til
 * Google — en databehandler personvernerklæringen ikke nevner, og som ingen
 * har samtykket til. unicode-range gjør at latin-ext bare hentes når den
 * trengs, så norsk og engelsk koster én fil per vekt. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/archivo-400-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/archivo-400-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: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/archivo-600-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/archivo-800-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/archivo-800-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;
}

:root {
  --accent: #1d402d;
  --accent-800: #0e2117;
  --accent-100: #edf0e4;
  --mustard: #e4a030;
  --mustard-100: #fbebcf;
  --rust: #a85527;
  --text: #000004;
  --bg: #fff9ec;
  --surface: #ffffff;
  --divider: #e8e0ce;
  --neutral-700: #5f5a50;
  --radius-lg: 20px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

header {
  border-bottom: 1px solid var(--divider);
}

.bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.lang {
  margin-left: auto;
  display: flex;
  gap: 4px;
  font-size: 14px;
}

.lang a {
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--neutral-700);
}

.lang a[aria-current="true"] {
  background: var(--accent-100);
  color: var(--accent-800);
  font-weight: 600;
}

main {
  padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 80px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--mustard-100);
  color: #5c3e12;
  font-size: 13px;
  font-weight: 600;
}

.tag span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mustard);
}

h1 {
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 22px 0 0;
  max-width: 12ch;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.lede {
  font-size: 18px;
  line-height: 28px;
  color: var(--neutral-700);
  max-width: 46ch;
  margin: 22px 0 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 36px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
}

.cta:hover {
  background: #183626;
}

.note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--neutral-700);
}

footer {
  border-top: 1px solid var(--divider);
}

.feet {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px 0;
  font-size: 13px;
  color: var(--neutral-700);
}

.feet nav {
  display: flex;
  gap: 20px;
}

.feet a {
  color: inherit;
}
