@font-face {
  font-family: "Nyght Serif";
  src: url("/fonts/nyght-serif/NyghtSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Artboards built by helpers. Overflow's palette, at native size. */
.ab {
  --ink: oklch(14.8% 0.020 258);
  --text: oklch(20% 0.019 258);
  --muted: oklch(50.5% 0.012 258);
  --faint: oklch(61% 0.010 258);
  --line: oklch(90% 0.004 258);
  --surface: oklch(97.5% 0.002 258);
  --accent: oklch(78% 0.122 258.1);
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
  color: var(--text);
  font: 400 12px/16px Schibsted Grotesk, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ab img { display: block; object-fit: cover; }
.ab svg { flex-shrink: 0; color: inherit; }

/* Shared bits */
.ab-row { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 16px; border-radius: 8px; }
.ab-row + .ab-row { margin-top: 2px; }
.ab-row-n { width: 12px; color: var(--faint); text-align: center; }
.ab-row img { width: 48px; height: 48px; border-radius: 6px; }
.ab-row-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ab-row-text b { font-weight: 500; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-row-text span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-row-d { color: var(--muted); font-variant-numeric: tabular-nums; }
.ab-play { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 99px; background: var(--accent); color: var(--ink); }
.ab-ib { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--surface); color: var(--muted); }
.ab-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); font-weight: 500; }
.ab-btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.ab-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--surface); color: var(--muted); font-weight: 500; }
.ab-chip.on { background: var(--ink); color: #fff; }

/* System boards (tokens / components / specs) */
.ab-sys { padding: 24px; }
.ab-kicker { font-size: 10px; line-height: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.ab-sys-title { margin: 18px 0 10px; font-weight: 600; font-size: 13px; color: var(--ink); }
.ab-kicker + .ab-sys-title { margin-top: 10px; }
.ab-swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ab-sw { display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; align-items: center; }
.ab-sw i { grid-row: span 2; width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1px #0000000f; }
.ab-sw b { font-weight: 500; }
.ab-sw span { font-size: 9.5px; line-height: 12px; color: var(--faint); white-space: nowrap; }
.ab-type > div { display: grid; grid-template-columns: 112px 1fr; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); }
.ab-type > div > span { font-size: 10px; color: var(--faint); }
.ab-type b { color: var(--ink); white-space: nowrap; overflow: hidden; }
.ab-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-chips span { padding: 4px 8px; border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 11px; }
.ab-comp-line { display: flex; align-items: center; gap: 8px; }
.ab-comp-card { margin: 0 -8px; padding: 4px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.ab-comp-card .ab-row:first-child { background: var(--surface); }
.ab-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); color: var(--faint); }

.ab-spec-stage { position: relative; margin: 0 -8px; padding: 22px 0 46px 30px; border-radius: 12px; background: repeating-linear-gradient(45deg, #f6f7f8 0 6px, #fff 6px 12px); }
.ab-spec-row { background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px #f0457a55; }
.ab-redlines { position: absolute; left: 0; top: 0; width: 100%; height: 150px; overflow: visible; }
.ab-redlines path { fill: none; stroke: #f0457a; stroke-width: 1; stroke-dasharray: 220; stroke-dashoffset: var(--draw, 0); transition: stroke-dashoffset 900ms cubic-bezier(.16,1,.3,1); }
.ab-redlines text { fill: #f0457a; font: 600 9px/1 Schibsted Grotesk, sans-serif; opacity: var(--label, 1); transition: opacity 400ms 300ms; }
.ab-specs.is-drafting { --draw: 220; --label: 0; }
.ab-spec-notes { display: grid; gap: 6px; margin-top: 14px; }
.ab-spec-notes div { display: grid; grid-template-columns: 64px 1fr; padding-top: 6px; border-top: 1px solid var(--line); }
.ab-spec-notes b { font-weight: 500; color: var(--ink); }
.ab-spec-notes span { color: var(--muted); }

/* Exploration A: editorial */
.ab-ed { background: #f4efe4; color: #1e1b16; padding: 28px 32px; font-family: "Schibsted Grotesk", sans-serif; }
.ab-ed-top { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #8b8172; }
.ab-ed-title { margin-top: 34px; font: 400 64px/0.92 "Nyght Serif", Georgia, serif; letter-spacing: -.01em; }
.ab-ed-title em { font-style: italic; }
.ab-ed-rule { height: 1px; margin: 22px 0 14px; background: #1e1b1633; width: 250px; }
.ab-ed-foot { display: flex; flex-direction: column; gap: 10px; width: 250px; }
.ab-ed-foot p { margin: 0; font-size: 12px; line-height: 17px; color: #4f483c; }
.ab-ed-foot span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #8b8172; }
.ab-ed-cover { position: absolute; right: 32px; top: 64px; width: 150px; height: 190px; filter: sepia(.25) contrast(1.05); }

/* Exploration B: immersive */
.ab-im { background: #000; }
.ab-im > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ab-im-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #0000 30%, #000a 100%); transition: background 900ms ease; }
.ab-im.is-dim .ab-im-shade { background: linear-gradient(180deg, #0006 0%, #000d 100%); }
.ab-im-copy { position: absolute; left: 28px; bottom: 26px; right: 28px; color: #fff; display: flex; flex-direction: column; gap: 6px; }
.ab-im-copy > span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.ab-im-copy b { font: 600 44px/1 Schibsted Grotesk, sans-serif; letter-spacing: -.03em; }
.ab-im-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; opacity: .85; }
.ab-im-meta .ab-play { width: 32px; height: 32px; }

/* Exploration C: minimal (warms up when steered) */
.ab-min { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #fff; transition: background 900ms ease; }
.ab-min img { width: 112px; height: 112px; border-radius: 10px; margin-bottom: 10px; box-shadow: 0 12px 24px -12px #0006; }
.ab-min b { font: 600 22px/26px Schibsted Grotesk, sans-serif; letter-spacing: -.02em; color: var(--ink); transition: color 900ms ease; }
.ab-min > span { color: var(--muted); transition: color 900ms ease; }
.ab-min-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; height: 30px; padding: 0 14px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 500; transition: background 900ms ease; }
.ab-min.is-warm { background: #fbeee2; }
.ab-min.is-warm b { color: #4a2512; }
.ab-min.is-warm > span { color: #9a6a4e; }
.ab-min.is-warm .ab-min-cta { background: #d9683a; }

/* Phone frames for state screens */
.ab-phone { width: 195px; height: 422px; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 25px 50px -12px #00000040; }
.ab-phone-in { width: 390px; height: 844px; transform: scale(.5); transform-origin: 0 0; display: flex; flex-direction: column; font: 400 15px/20px Schibsted Grotesk, sans-serif; color: oklch(20% 0.019 258); }
.ab-status { display: flex; justify-content: space-between; padding: 18px 32px 8px; font-size: 15px; }
.ab-status span { letter-spacing: 2px; font-size: 11px; }
.ab-phone-nav { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 12px; }
.ab-phone-nav b { font-weight: 600; font-size: 17px; }
.ab-tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 0 30px; border-top: 1px solid oklch(90% 0.004 258); font-size: 11px; color: oklch(61% 0.010 258); }
.ab-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ab-tabbar .on { color: oklch(20% 0.019 258); }
.ab-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 40px; text-align: center; }
.ab-state b { font-size: 20px; line-height: 26px; font-weight: 600; }
.ab-state p { margin: 0 0 10px; color: oklch(50.5% 0.012 258); }
.ab-state .ab-btn { height: 44px; padding: 0 22px; font-size: 15px; }
.ab-vinyl { position: relative; width: 120px; height: 120px; margin-bottom: 16px; }
.ab-vinyl i { position: absolute; border-radius: 99px; border: 2px dashed oklch(85% 0.006 258); }
.ab-vinyl i:nth-child(1) { inset: 0; }
.ab-vinyl i:nth-child(2) { inset: 24px; }
.ab-vinyl i:nth-child(3) { inset: 50px; border-style: solid; background: oklch(78% 0.122 258.1); border-color: transparent; }
.ab-skel-head { display: flex; gap: 16px; align-items: flex-end; padding: 8px 20px 24px; }
.ab-skel-head > div, .ab-skel-row > div { display: flex; flex-direction: column; gap: 8px; }
.ab-skel-list { display: flex; flex-direction: column; gap: 14px; padding: 0 20px; }
.ab-skel-row { display: flex; align-items: center; gap: 14px; }
.sk { display: block; border-radius: 6px; background: linear-gradient(90deg, #eef0f2 0%, #f8f9fa 40%, #eef0f2 80%) 0 0 / 300% 100%; animation: ab-shimmer 1.6s linear infinite; }
@keyframes ab-shimmer { to { background-position: -300% 0; } }
.ab-state-err { flex: 0 0 auto; padding-top: 90px; padding-bottom: 30px; }
.ab-err-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 99px; background: #fdecec; color: #d64545; font-weight: 700; font-size: 26px; margin-bottom: 6px; }
.ab-err-cached { margin: 8px 12px 0; padding-top: 12px; border-top: 1px solid oklch(90% 0.004 258); opacity: .55; }
.ab-err-label { padding: 0 16px 6px; font-size: 12px; color: oklch(61% 0.010 258); text-transform: uppercase; letter-spacing: .06em; }
.ab-phone .ab-row-text b { font-size: 15px; }
.ab-phone .ab-row-text span { font-size: 13px; }

/* Race & pick: covers */
.ab-cov { display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; gap: 4px; }
.ab-cov-a { background: #2c55d4; color: #fff; }
.ab-cov-a img { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.2); }
.ab-cov-a b { position: relative; font: 700 30px/0.95 Schibsted Grotesk, sans-serif; letter-spacing: -0.03em; }
.ab-cov-a span { position: relative; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.ab-cov-b { background: #f1ebde; color: #1b1a17; justify-content: space-between; }
.ab-cov-b b { font: 800 54px/0.84 Schibsted Grotesk, sans-serif; letter-spacing: -0.05em; text-transform: uppercase; }
.ab-cov-b span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #8b8172; }
.ab-cov-c { background: #15181f; color: #f3efe6; align-items: center; justify-content: center; gap: 14px; }
.ab-disc { width: 132px; height: 132px; border-radius: 99px; background: repeating-radial-gradient(circle, #23272f 0 2px, #1a1d24 2px 4px); display: grid; place-items: center; box-shadow: 0 10px 30px -10px #000; }
.ab-disc i { width: 46px; height: 46px; border-radius: 99px; background: #e8743b; box-shadow: inset 0 0 0 18px #e8743b, inset 0 0 0 20px #15181f; }
.ab-cov-c b { font: 600 15px/1 Schibsted Grotesk, sans-serif; letter-spacing: -0.01em; }
.ab-cov-d { display: grid; grid-template-columns: 1fr 1fr; padding: 0; gap: 0; }
.ab-cov-d img { width: 100%; height: 120px; }
.ab-cov-d b { position: absolute; left: 50%; top: 50%; translate: -50% -50%; padding: 8px 12px; border-radius: 99px; background: #fff; color: #111; font: 600 13px/1 Schibsted Grotesk, sans-serif; white-space: nowrap; box-shadow: 0 8px 20px -8px #0008; }

/* Critic loop: accessible track list (starts failing, fixes switch on) */
.ab-a11y { padding: 22px; }
.ab-a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ab-a11y-head b { font: 600 18px/22px Schibsted Grotesk, sans-serif; color: var(--ink); }
.ab-wcag { padding: 3px 8px; border-radius: 99px; background: var(--surface); color: var(--faint); font-size: 10px; font-weight: 600; transition: background 400ms, color 400ms; }
.ab-a11y.is-pass .ab-wcag { background: #dff3ea; color: #1f7a5a; }
.ab-a11y-row { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px; border-radius: 8px; transition: height 500ms cubic-bezier(.16,1,.3,1), box-shadow 300ms; }
.ab-a11y-row .n { width: 10px; color: #c9ccd2; font-size: 11px; transition: color 400ms; }
.ab-a11y-row img { width: 30px; height: 30px; border-radius: 5px; transition: width 500ms, height 500ms; }
.ab-a11y-row .ab-row-text b { font-size: 13px; }
.ab-a11y-row .ab-row-text span { color: #c3c7ce; font-size: 11px; transition: color 400ms; }
.ab-a11y-play { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 99px; background: var(--surface); color: var(--muted); transition: width 500ms, height 500ms, background 400ms; }
.ab-a11y.fix-contrast .ab-row-text span { color: #5c6370; }
.ab-a11y.fix-contrast .n { color: #6b717c; }
.ab-a11y.fix-target .ab-a11y-row { height: 62px; }
.ab-a11y.fix-target .ab-a11y-row img { width: 44px; height: 44px; }
.ab-a11y.fix-target .ab-a11y-play { width: 44px; height: 44px; background: var(--accent); color: var(--ink); }
.ab-a11y.fix-focus .ab-a11y-row.is-first { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #4d94fb; }

@media (prefers-reduced-motion: reduce) {
  .sk { animation: none; }
}
