/* Snip — site stylesheet.
   Every value here comes from the Snip design system v1.2: the same espresso grounds, Banana Mania ink,
   Madder for action and Clear Sky only for things that move. Hairlines, not shadows. */

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

:root {
  --ground: #0D0907;
  --surface: #17100C;
  --surface-2: #211710;
  --walnut: #2E2118;
  --line: #3A2A1E;
  --line-strong: #4A3529;
  --bed: #120C09;
  --ink: #FAE3BA;
  --ink-max: #FCF8F9;
  --ink-2: #C6A87E;
  --ink-3: #A98D68;
  --ink-4: #8A6F55;
  --wave-dim: #6B4E36;
  --action: #A21721;
  --action-hover: #B41B26;
  --action-pressed: #7C1119;
  --live: #A9D8FF;

  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 56px);
  --measure: 1160px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-enter: cubic-bezier(.05, .7, .1, 1);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--action); color: var(--ink); }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: text-decoration-color 200ms var(--ease), color 200ms var(--ease); }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--live); outline-offset: 3px; border-radius: 6px; }

img { max-width: 100%; display: block; }

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

.mono { font-family: var(--mono); }
.micro {
  font: 700 11px/1.3 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; background: var(--surface-2); padding: 10px 14px; border-radius: 10px; z-index: 10; }

/* ---------- header ---------- */

.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.top nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.top nav a { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; padding: 16px 0; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }

/* ---------- hero ---------- */

.hero { padding-block: clamp(48px, 9vw, 104px) 0; }
.hero-head { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: end; }
.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(42px, 7.2vw, 92px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink-max);
  text-wrap: balance;
}
.hero .lede { margin: 0; max-width: 34ch; font-size: 18px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.hero .status { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero .status span { font: 500 12px/1.4 var(--mono); color: var(--ink-3); letter-spacing: 0.02em; }
.hero .status span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 99px; background: var(--line-strong); margin-right: 9px; vertical-align: 2px; }
.hero .status .soon::before { background: var(--action); }

/* ---------- the live editor ---------- */

.editor { margin-top: clamp(40px, 6vw, 72px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.ed-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--surface-2); flex-wrap: wrap; }
.ed-track .t { color: var(--ink-max); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.ed-track .m { font: 400 12px/1.4 var(--mono); color: var(--ink-3); margin-top: 2px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-3); font: 400 12px/1 var(--mono); cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}
.chip[aria-pressed="true"] { background: rgba(162, 23, 33, 0.2); border-color: var(--action); color: var(--ink); }
.chip svg { width: 15px; height: 15px; }

.ed-stage { position: relative; background: var(--bed); }
.ed-stage canvas { display: block; width: 100%; height: 200px; cursor: ew-resize; touch-action: pan-y; }
.handle-target {
  position: absolute; top: 0; width: 48px; height: 100%; margin-left: -24px;
  background: transparent; border: 0; padding: 0; pointer-events: none;
}
.handle-target:focus-visible { outline: none; }
.handle-target:focus-visible::after { content: ""; position: absolute; inset: 70px 9px; border: 2px solid var(--live); border-radius: 10px; }

.pill {
  position: absolute; left: 50%; top: 12px; transform: translate(-50%, 0);
  height: 32px; padding: 0 6px 0 13px; border-radius: 999px;
  background: rgba(23, 16, 12, 0.94); border: 1px solid var(--line-strong);
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
  font: 400 11.5px/1 var(--mono); pointer-events: none;
  opacity: 0; transition: opacity 200ms var(--ease);
}
.pill.on { opacity: 1; animation: rise 200ms var(--ease-enter) both; }
.pill .h { color: var(--ink-3); font-weight: 700; letter-spacing: 0.1em; }
.pill .d { color: var(--live); }
.pill .v { color: var(--ink-max); }
.pill .n { height: 22px; padding: 0 9px; border-radius: 999px; background: rgba(162, 23, 33, 0.32); color: var(--ink); display: grid; place-items: center; font-size: 10.5px; letter-spacing: 0.04em; }
.pill .n:empty { display: none; }

.ruler { position: relative; height: 28px; border-top: 1px solid var(--surface-2); }
.ruler span { position: absolute; top: 9px; transform: translateX(-50%); font: 400 10px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.ruler i { position: absolute; top: 0; width: 1px; height: 5px; background: var(--line-strong); }

.ed-controls { display: grid; grid-template-columns: 1fr 96px 1fr auto; gap: 8px; padding: 12px 18px 18px; align-items: stretch; }
.tc { border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 14px; min-width: 0; }
.tc.len { background: var(--bed); text-align: center; }
.tc.active { border-color: var(--action); background: rgba(162, 23, 33, 0.10); }
.tc .k { font: 700 9.5px/1 var(--mono); letter-spacing: 0.16em; color: var(--ink-3); }
.tc .v { font: 500 17px/1 var(--mono); color: var(--ink); margin-top: 8px; white-space: nowrap; }
.tc.len .v { color: var(--ink-max); }
.tc.len .v small { font-size: 11px; color: var(--ink-3); }

.transport { display: flex; align-items: center; gap: 8px; padding-left: 8px; }
.round {
  width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); display: grid; place-items: center; cursor: pointer;
  transition: background 100ms var(--ease), color 200ms var(--ease), transform 100ms var(--ease);
}
.round:hover { background: var(--surface-2); color: var(--live); }
.round:active { transform: scale(0.92); }
.round[aria-pressed="true"] { color: var(--live); border-color: var(--line-strong); }
.round svg { width: 22px; height: 22px; }
.play {
  width: 60px; height: 60px; border: 0; border-radius: 999px; background: var(--action); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(250, 227, 186, 0.10) inset, 0 8px 24px rgba(162, 23, 33, 0.32);
  transition: background 100ms var(--ease), transform 100ms var(--ease);
}
.play:hover { background: var(--action-hover); }
.play:active { background: var(--action-pressed); transform: scale(0.94); }
.play svg { width: 28px; height: 28px; }
.play .i-play { margin-left: 3px; }
.play .i-pause, .play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }

.readout { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; height: 34px; border-top: 1px solid var(--surface-2); }
.readout .ph { display: flex; align-items: center; gap: 8px; font: 500 13px/1 var(--mono); color: var(--ink-3); }
.readout .ph::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--line-strong); }
.readout .ph.live { color: var(--live); }
.readout .ph.live::before { background: var(--live); }
.readout .view { font: 400 11px/1 var(--mono); color: var(--ink-3); }

.ed-note { margin: 14px 2px 0; font: 400 12px/1.6 var(--mono); color: var(--ink-3); }
.ed-note kbd { font: inherit; color: var(--ink-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }

/* ---------- sections ---------- */

.section { padding-block: clamp(72px, 11vw, 136px) 0; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head .num { font: 700 11px/1 var(--mono); letter-spacing: 0.16em; color: var(--action); }
.sec-head h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-max); white-space: nowrap; }
.sec-head .rule { flex: 1; height: 1px; background: var(--line); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.big + .three { margin-top: 44px; }

.big {
  margin: 0; max-width: 20ch;
  font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; font-weight: 600; letter-spacing: -0.03em;
  color: var(--ink-max); text-wrap: balance;
}

.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.three > div { padding: 24px 28px 0 0; }
.three > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.three h3 { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.three p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; }
.three .spec { margin-top: 16px; font: 400 12px/1.4 var(--mono); color: var(--ink-3); }

.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.shots img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.split .copy p:not(.big) { margin: 22px 0 0; max-width: 38ch; font-size: 17px; }
.formats { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.formats span { height: 30px; padding: 0 11px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); display: inline-grid; place-items: center; font: 400 12px/1 var(--mono); color: var(--ink-2); }

.dest { display: grid; gap: 6px; }
.dest > div { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.dest svg { width: 24px; height: 24px; color: var(--action); flex: 0 0 auto; }
.dest b { display: block; font-weight: 500; font-size: 16px; color: var(--ink); }
.dest small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }

.nots { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.nots li {
  display: flex; gap: 18px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(22px, 3vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-max);
}
.nots li::before { content: ""; flex: 0 0 auto; width: 18px; height: 3px; border-radius: 99px; background: var(--action); transform: translateY(-0.3em); }
.nots li span { display: block; margin-top: 6px; font-size: 16px; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--ink-2); }
.after { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 15px; }
.after .mono { font-size: 13px; color: var(--ink-3); }

/* ---------- footer ---------- */

.foot { margin-top: clamp(80px, 12vw, 140px); border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; padding-block: 28px 40px; }
.foot p { margin: 0; font: 400 12px/1.6 var(--mono); color: var(--ink-3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { font: 500 12px/1.6 var(--mono); color: var(--ink-3); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

/* ---------- documents (privacy, terms, licences) ---------- */

.doc { max-width: 760px; padding-block: clamp(48px, 8vw, 88px) 0; }
.doc h1 { margin: 16px 0 0; font-size: clamp(34px, 5vw, 48px); line-height: 1.02; font-weight: 600; letter-spacing: -0.03em; color: var(--ink-max); }
.doc .updated { margin-top: 14px; font: 400 12px/1.5 var(--mono); color: var(--ink-3); }
.doc .summary { margin: 32px 0 8px; padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--action); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 17px; line-height: 1.55; }
.doc h2 { display: flex; gap: 12px; align-items: baseline; margin: 52px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-max); }
.doc h2 .n { font: 700 11px/1 var(--mono); letter-spacing: 0.16em; color: var(--action); flex: 0 0 auto; }
.doc h3 { margin: 28px 0 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.doc p, .doc li { font-size: 17px; line-height: 1.65; }
.doc p { margin: 14px 0 0; }
.doc ul { margin: 14px 0 0; padding-left: 22px; }
.doc li { margin-top: 6px; }
.doc li::marker { color: var(--wave-dim); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc code { font: 400 0.86em var(--mono); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
.doc .caps { text-transform: uppercase; font-size: 14px; letter-spacing: 0.01em; line-height: 1.6; }

.table-wrap { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.doc table, .doc tbody, .doc tr, .doc td { display: block; }
.doc table { width: 100%; font-size: 15px; line-height: 1.55; }
.doc thead { display: none; }
.doc tr { padding: 16px 20px; border-top: 1px solid var(--line); }
.doc tr:first-child { border-top: 0; }
.doc td { padding: 0; color: var(--ink-2); }
.doc td:first-child { color: var(--ink); font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.doc td + td { margin-top: 10px; }
.doc td::before { content: attr(data-label); display: block; font: 700 10px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.doc td:first-child::before { display: none; }
@media (min-width: 760px) {
  .doc tr { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: 24px; }
  .doc td:first-child { grid-row: 1 / span 3; }
  .doc td + td { margin-top: 0; }
  .doc td + td + td { margin-top: 10px; }
  .doc td + td + td + td { margin-top: 10px; }
}
.doc .note { font-size: 14px; color: var(--ink-3); }

.doc details { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.doc summary { cursor: pointer; padding: 14px 18px; font: 500 13px/1.4 var(--mono); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; color: var(--ink-3); }
.doc details[open] summary::after { content: "\2212"; }
.doc details pre { margin: 0; padding: 18px; border-top: 1px solid var(--line); max-height: 480px; overflow: auto; white-space: pre-wrap; font: 400 12px/1.6 var(--mono); color: var(--ink-2); }

/* ---------- motion ---------- */

@keyframes rise { from { transform: translate(-50%, 12px); opacity: 0 } to { transform: translate(-50%, 0); opacity: 1 } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- small screens ---------- */

@media (max-width: 880px) {
  .hero-head, .split { grid-template-columns: 1fr; }
  .three { grid-template-columns: 1fr; border-top: 0; }
  .three > div, .three > div + div { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 22px; }
  .three > div:first-child { margin-top: 0; }
  .shots { grid-template-columns: repeat(4, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shots img { scroll-snap-align: start; }
}

@media (max-width: 620px) {
  .ed-bar, .ed-controls { padding-inline: 14px; }
  .ed-controls { grid-template-columns: 1fr 0.8fr 1fr; gap: 6px; }
  .tc { padding: 10px; }
  .tc .v { font-size: 15px; }
  .transport { grid-column: 1 / -1; justify-content: center; padding: 8px 0 0; }
  .ed-stage canvas { height: 176px; }
  .readout .view { display: none; }
}
