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

:root {
  --paper: #edf0ea;
  --paper-2: #e2e7e0;
  --ink: #17302e;
  --muted: #4a5d5a;
  --line: #c4cfc8;
  --teal: #1f6f6b;
  --amber: #e3a21a;
  --measure: 62ch;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

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

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--paper); padding: 8px 12px;
}
.skip:focus { left: 8px; z-index: 10; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap;
}
.wordmark {
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.wordmark span { color: var(--teal); }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--teal); }
.langs { display: flex; gap: 4px; padding-left: clamp(4px, 2vw, 16px); border-left: 1px solid var(--line); }
.langs a, .langs span {
  font-size: 0.875rem; font-weight: 600; padding: 4px 6px; border-radius: 3px; text-decoration: none;
}
.langs span { background: var(--ink); color: var(--paper); }
.langs a { color: var(--muted); }

/* Hero */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); }
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 750;
  margin: 0 0 28px; max-width: 16ch;
}
.intro { font-size: clamp(1.125rem, 1.6vw, 1.3rem); max-width: var(--measure); margin: 0 0 32px; color: var(--ink); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 4px;
  font-weight: 650; text-decoration: none; border: 2px solid var(--ink);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--teal); border-color: var(--teal); }
.btn-secondary { color: var(--ink); }
.btn-secondary:hover { background: var(--paper-2); }

/* The day strip */
.day {
  margin-left: 0; margin-right: 0;
  margin-bottom: 0;
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.day-head h2 { font-size: 1.125rem; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.day-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.day-tabs button {
  font: inherit; font-size: 0.9rem; font-weight: 550; cursor: pointer;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.day-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.day-tabs button:hover:not([aria-pressed="true"]) { border-color: var(--ink); }

.strip { display: flex; gap: 2px; height: clamp(56px, 8vw, 96px); }
.cell { flex: 1 1 0; min-width: 0; border-radius: 1px; transition: background-color 400ms ease; }
.cell.repeat { background-image: repeating-linear-gradient(135deg, transparent 0 3px, rgba(23,48,46,.55) 3px 4px); }
.gap-mark { flex: 0 0 3px; background: var(--amber); border-radius: 2px; margin: -6px 2px; }
@media (prefers-reduced-motion: reduce) { .cell { transition: none; } }

.ticks { font-variant-numeric: tabular-nums; position: relative; height: 26px; margin-top: 6px; font-size: 0.8rem; color: var(--muted); }
.ticks span { position: absolute; transform: translateX(-50%); top: 4px; }
.ticks span:first-child { transform: none; }
.ticks span:last-child { transform: translateX(-100%); }

.day-cap { margin: 14px 0 4px; font-weight: 600; max-width: var(--measure); min-height: 3.1em; }
.day-note { margin: 0; color: var(--muted); max-width: var(--measure); }

/* Sections */
section.block { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
section.block > .wrap > h2 {
  font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; line-height: 1.05;
  margin: 0 0 clamp(28px, 4vw, 48px); font-weight: 750;
}

.group + .group { margin-top: clamp(40px, 5vw, 64px); }
.group h3 { font-size: 1rem; font-weight: 700; color: var(--teal); margin: 0 0 8px; }
.svc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 8px 40px; padding: 22px 0; border-top: 1px solid var(--line); margin: 0;
}
.svc dt { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.svc dd { margin: 0; color: var(--muted); max-width: var(--measure); }
@media (max-width: 720px) { .svc { grid-template-columns: 1fr; } }

.exp-lead { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; max-width: 34ch; margin: 0 0 32px; font-weight: 500; }
.exp-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 720px) { .exp-grid { grid-template-columns: 1fr; } }
.exp-list { list-style: none; padding: 0; margin: 0; }
.exp-list li { padding: 14px 0 14px 22px; border-top: 1px solid var(--line); position: relative; }
.exp-list li::before {
  content: ""; position: absolute; left: 0; top: 1.15em; width: 10px; height: 10px;
  background: var(--teal); border-radius: 1px;
}
.stack h3 { font-size: 1rem; margin: 0 0 10px; font-weight: 700; }
.stack p { margin: 0; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(step); display: block; font-size: 2.25rem; font-weight: 750; line-height: 1; margin-bottom: 14px; color: var(--teal); }
.steps h3 { margin: 0 0 6px; font-size: 1.125rem; font-weight: 650; }
.steps p { margin: 0; color: var(--muted); }

.contact { background: var(--ink); color: var(--paper); border-top: 0; }
.contact a { color: var(--paper); }
.contact-mail {
  display: inline-block; font-size: clamp(1.75rem, 5.5vw, 4rem); font-weight: 750;
  letter-spacing: -0.035em; line-height: 1.1; margin: 8px 0 28px; word-break: break-word;
  text-decoration-color: var(--amber); text-decoration-thickness: 3px;
}
.contact-mail:hover { color: var(--amber); }
.contact p { max-width: var(--measure); margin: 0 0 8px; }
.contact .muted { color: #b9c7c1; }
.contact :focus-visible { outline-color: var(--amber); }

.site-footer { background: var(--ink); color: #b9c7c1; font-size: 0.875rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid #335350; }
.site-footer a { color: #b9c7c1; }

/* Legal page */
.legal { padding: clamp(40px, 7vw, 88px) 0; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; margin: 0 0 32px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal p, .legal dl { max-width: var(--measure); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 12px 0 0; }
.legal dt { font-weight: 650; }
.legal dd { margin: 0; }
@media (max-width: 520px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 8px; } }
