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

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

@font-face {
  font-family: Fraunces;
  src: url("fonts/fraunces.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #101315;
  --panel: #1a2021;
  --graphite: #273137;
  --chalk: #f2f1eb;
  --muted: #aeb8b6;
  --line: #394443;
  --sage: #acc7a7;
  --copper: #d6a188;
  --lime: #ddf895;
  --ice: #a9e4e6;
  --iris: #b6a8f4;
  --focus: var(--ice);
  --signal-spectrum: linear-gradient(115deg, var(--sage), var(--ice), var(--iris), var(--copper), var(--lime));
  --sans: Schibsted, system-ui, sans-serif;
  --serif: Fraunces, Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --gutter: clamp(18px, 4vw, 64px);
  --radius: 26px;
  background: var(--ink);
  color: var(--chalk);
  font: 16px/1.5 var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.shell {
  width: min(100% - var(--gutter) * 2, 1440px);
  margin-inline: auto;
}

.masthead {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  color: var(--chalk);
  text-decoration: none;
  white-space: nowrap;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.055em;
}

.wordmark img { width: 36px; height: 36px; }

.pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #53605e;
  border-radius: 999px;
  padding: 8px 17px;
  background: transparent;
  color: var(--chalk);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.pill:hover { border-color: var(--sage); background-color: var(--panel); }
.pill:disabled { opacity: .65; cursor: default; }
.pill.primary { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.pill.primary:hover:not(:disabled) { background: #eafaaf; }

.mode-switch {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #14191a;
}

.mode-switch a {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding-inline: 14px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  color: var(--muted);
}

.mode-switch a:hover { color: var(--chalk); }
.mode-switch [aria-current="page"] { background: var(--graphite); color: var(--chalk); }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sage);
  font: 12px/1.45 var(--mono);
  letter-spacing: .10em;
  text-transform: uppercase;
}

.signal-bars {
  width: 24px;
  height: 14px;
  flex: none;
  background: currentColor;
  clip-path: polygon(0 40%, 9% 40%, 9% 60%, 0 60%, 0 40%, 22% 26%, 31% 26%, 31% 74%, 22% 74%, 22% 26%, 44% 0, 53% 0, 53% 100%, 44% 100%, 44% 0, 66% 20%, 75% 20%, 75% 80%, 66% 80%, 66% 20%, 88% 40%, 97% 40%, 97% 60%, 88% 60%, 88% 40%);
}

.display {
  margin: 0;
  font-size: clamp(64px, 8.6vw, 136px);
  line-height: .87;
  font-weight: 700;
  letter-spacing: -.067em;
}

.display em {
  display: block;
  margin-top: .11em;
  color: var(--lime);
  font-family: var(--serif);
  font-size: .99em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.065em;
}

.signal-plate {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(#b3ceb312 1px, transparent 1px) center / 44px 44px,
    linear-gradient(90deg, #b3ceb312 1px, transparent 1px) center / 44px 44px,
    radial-gradient(ellipse at 68% 28%, #363252 0%, transparent 52%),
    radial-gradient(ellipse at 53% 77%, #34504b 0%, #171f21 65%, #101416);
}

.signal-plate::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 51% 49%, transparent 27%, #d2eaa51c 33%, #9d95e736 36%, #b9705a37 39%, transparent 48%),
    radial-gradient(ellipse at 50% 49%, transparent 36%, #7ddad328 39%, transparent 43%);
  transform: rotate(-28deg);
}

.signal-plate::after {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  --corner: linear-gradient(#e2f5df65 0 0);
  background:
    var(--corner) left top / 12px 1px, var(--corner) left top / 1px 12px,
    var(--corner) right top / 12px 1px, var(--corner) right top / 1px 12px,
    var(--corner) left bottom / 12px 1px, var(--corner) left bottom / 1px 12px,
    var(--corner) right bottom / 12px 1px, var(--corner) right bottom / 1px 12px;
  background-repeat: no-repeat;
}

.signal-plate canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 660px) {
  .masthead { min-height: 66px; gap: 9px; }
  .wordmark { gap: 6px; font-size: 16px; }
  .wordmark img { width: 27px; height: 27px; }
  .mode-switch a { padding-inline: 10px; }
}

@media (forced-colors: active) {
  .mode-switch [aria-current="page"] { text-decoration: underline; }
}
