@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ink: #121110;
  --ink-2: #1a1816;
  --line: #2c2824;
  --paper: #f3ebe0;
  --muted: #a39a8f;
  --green: #3d7a52;
  --green-text: #6fb487;
  --copper: #c06a34;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 17px/1.6 "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--paper); }
:focus-visible { outline: 2px solid var(--green-text); outline-offset: 3px; border-radius: 4px; }

/* Top bar, shared by every page */
.bar {
  max-width: 1040px; margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.bar nav { display: flex; gap: 22px; font-size: 15px; }
.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--paper); }

/* Home */
.hero { max-width: 1040px; margin: 0 auto; padding: 64px 24px 0; }
.hero h1 {
  font-size: clamp(64px, 12vw, 132px); line-height: 0.92; font-weight: 800;
  letter-spacing: -0.045em; margin: 0 0 28px;
}
.hero .lede { max-width: 34em; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--paper); margin: 0 0 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 10px;
  font-weight: 600; font-size: 16px; text-decoration: none; color: var(--paper);
  border: 1px solid var(--line); background: var(--ink-2);
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.btn:hover { border-color: #4a443d; color: var(--paper); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: #46885d; border-color: #46885d; }

/* The perch: a pixel branch drawn like the stem of the logo, with the bird sitting on its tip */
.perch { position: relative; max-width: 1040px; margin: 64px auto 0; padding: 0 24px; height: 104px; }
.perch svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 40px; }
.perch svg rect { fill: var(--copper); }
.perch .bird { position: absolute; right: calc(24px + 7%); bottom: 16px; width: 63px; height: 84px; }
@media (prefers-reduced-motion: no-preference) {
  .perch svg { animation: grow 900ms var(--ease-out) 150ms both; }
  .perch .bird { animation: land 480ms var(--ease-out) 900ms both; }
}
@keyframes grow { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes land { from { transform: translateY(-14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.facts {
  max-width: 1040px; margin: 0 auto; padding: 56px 24px 24px;
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; border-top: 1px solid var(--line);
}
.facts h2 { font-size: 15px; font-weight: 600; color: var(--muted); margin: 0 0 22px; letter-spacing: 0; }
.does { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; }
.does h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -0.01em; }
.does p { margin: 0; color: var(--muted); font-size: 16px; }
.data { border-left: 3px solid var(--copper); padding-left: 24px; }
.data ul { list-style: none; padding: 0; margin: 0 0 18px; }
.data li { margin: 0 0 12px; font-size: 16px; }
.site-foot { max-width: 1040px; margin: 0 auto; padding: 40px 24px 56px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; gap: 44px; }
  .does { grid-template-columns: 1fr; }
  .perch { margin-top: 48px; height: 88px; }
  .perch .bird { width: 48px; height: 64px; right: 28px; }
  .bar nav { gap: 16px; }
}

/* Legal documents */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 24px 64px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 8px; }
.doc h1 + p em { color: var(--muted); font-style: normal; font-size: 14px; }
.doc h2 { font-size: 21px; letter-spacing: -0.01em; margin: 44px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.doc p, .doc li { color: #e2d9cd; }
.doc strong { color: var(--paper); }
.doc ul { padding-left: 20px; }
.doc li { margin: 7px 0; }
.doc li::marker { color: var(--copper); }
.doc .table { overflow-x: auto; margin: 16px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 600; }

@media (prefers-color-scheme: light) {
  body.light-ok { --ink: #fbf7f1; --ink-2: #f3ece2; --line: #e3dace; --paper: #1c1714; --muted: #6f655c; --green-text: #2f6a44; color-scheme: light; }
  body.light-ok .doc p, body.light-ok .doc li { color: #2a2420; }
}
