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

:root {
  --sky-top: #1f2b52;
  --sky-mid: #4f6392;
  --sky-low: #8d84a8;
  --ridge-far: #8a99bb;
  --ridge-mid: #b4c0d7;
  --snow: #f1f4f8;
  --lunar: #efe7d2;
  --ink: #17213a;
  --ink-soft: #505b77;
  --line: #d6deea;
  --on-sky: #f4f1ea;
  --on-sky-soft: #c9d0e2;
  --focus: #5a72b8;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky-top: #0b1028;
    --sky-mid: #26345f;
    --sky-low: #6f6487;
    --ridge-far: #33416a;
    --ridge-mid: #1f2a48;
    --snow: #0f1526;
    --ink: #e5e9f2;
    --ink-soft: #9aa4bd;
    --line: #232d48;
    --focus: #a9b9ea;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--snow); padding: 0.5rem 0.75rem; z-index: 10; }

/* Sky: header, headline and the landscape share one dusk gradient */
.sky {
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 52%, var(--sky-low) calc(100% - 3px), var(--snow) calc(100% - 3px));
  color: var(--on-sky);
}

.bar {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg { width: 22px; height: 22px; }

.bar nav { display: flex; gap: 1.5rem; }
.bar nav a { color: var(--on-sky-soft); text-decoration: none; font-size: 0.95rem; padding: 0.25rem 0; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--on-sky); }

.intro {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) 1.5rem 0;
}

.intro h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.6rem, 7vw, 5.25rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.intro p {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  color: var(--on-sky-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.land {
  display: block;
  width: 100%;
  height: clamp(240px, 40vw, 560px);
  margin-top: clamp(-1rem, -2vw, 0rem);
  margin-bottom: -1px;
}

.mark {
  font-family: "Schibsted Grotesk", -apple-system, sans-serif;
  font-weight: 600;
  font-size: 420px;
  letter-spacing: -0.05em;
  fill: var(--lunar);
  fill-opacity: 0.9;
}

.moon { fill: var(--lunar); }

@media (prefers-reduced-motion: no-preference) {
  .mark { animation: settle 3.2s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .moon-group { animation: rise 3.2s ease-out both; }
}

@keyframes settle {
  from { transform: translateY(-70px); }
  to { transform: translateY(0); }
}

@keyframes rise {
  from { transform: translateY(24px); }
  to { transform: translateY(0); }
}

/* Body */
main { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

.row {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) 2.4fr;
  gap: 1rem 3rem;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }

.row h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.row .lead {
  margin: 0;
  max-width: 30ch;
  text-wrap: balance;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.22;
  font-weight: 450;
  letter-spacing: -0.02em;
}

.row p { margin: 0; max-width: 36rem; }
.row .lead + p { margin-top: 1rem; color: var(--ink-soft); }

.lines { list-style: none; margin: 0; padding: 0; max-width: 36rem; }
.lines li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.lines li:first-child { padding-top: 0.25rem; }
.lines li span { display: block; color: var(--ink-soft); font-size: 1rem; letter-spacing: 0; margin-top: 0.15rem; }

.mail {
  display: inline-block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  font-weight: 450;
}

/* Footer */
footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
footer p { margin: 0; }
footer address { font-style: normal; }
footer nav { display: flex; gap: 1.5rem; align-items: flex-start; }

/* Legal pages: a slim dusk band, then a reading column */
.sky.slim .land { height: clamp(90px, 14vw, 180px); margin-top: 1.5rem; }

.doc { max-width: 40rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem clamp(3rem, 7vw, 5rem); }
.doc h1 { margin: 0 0 1rem; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; font-weight: 500; letter-spacing: -0.03em; }
.doc h2 { margin: 2.5rem 0 0.5rem; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.doc p { margin: 0 0 1rem; color: var(--ink-soft); }
.doc .note { margin-top: 1.5rem; padding: 1.25rem 1.4rem; border-left: 2px solid var(--ridge-far); background: color-mix(in srgb, var(--ridge-mid) 22%, transparent); color: var(--ink); }
.doc .meta { margin-top: 2.5rem; font-size: 0.92rem; }

@media (max-width: 720px) {
  .row { grid-template-columns: 1fr; gap: 0.9rem; }
  .mark { font-size: 290px; }
  .mark-pos { transform: translateY(-50px); }
  .moon-group { display: none; }
  .bar nav { gap: 1.1rem; }
}

.row .aside { margin-top: 1rem; color: var(--ink-soft); }
footer .copy { margin-top: 0.75rem; }
