/* Record Wall — tokens and shell of docs/styleguide.md. Always dark (FO D-15, W-07): no light theme, no theme switch.
 * No inline styles anywhere (CSP style-src 'self'). Fonts: self-hosted WOFF2 from /fonts/ (styleguide 1.2, decision Sijmen
 * 25 Nov 2026; files copied by scripts/copy-fonts.mjs); the system stacks of the styleguide stay as the fallback. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin-600-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/figtree-latin-400-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/figtree-latin-600-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #121110;
  --paneel: #1d1b18;
  --paneel2: #272420;
  --inkt: #f0eadd;
  --zacht: #a79f8e;
  --lijn: #38342d;
  --accent: #e8a935;
  --tip: #7fc8ff;
  --oud: #8d8577;
  --hout: #d9b98a;
  --hout2: #b8915c;
  --noten: #6b4226;
  --mat: #0b0a09;
  --on-accent: #17130b;
  --kop: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --tekst: Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rail: 76px;
  --rail-narrow: 84px; /* 600 to 819 px: wide enough for the whole word "Instellingen" at 12 px (decision Sijmen, 26 Nov 2026) */
  --tabbar: 64px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--inkt);
  font: 400 16px/1.45 var(--tekst);
}
h1,
h2,
h3 {
  font-family: var(--kop);
  margin: 0;
}
h1,
.title {
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.1;
  margin: 0;
}
h2 {
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
}
h3 {
  font-weight: 600;
  font-size: 1.1rem;
}
p {
  margin: 0;
}
.sub {
  color: var(--zacht);
  font-size: 0.9rem;
}
.error {
  margin: 0;
  color: var(--accent);
}
a {
  color: var(--tip);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* 16 px in every field: iOS does not zoom into it (styleguide 1.4) */
input,
select,
textarea {
  font: 400 16px/1.3 var(--tekst);
}

/* ---- page frame (shell/views/layout.eta) ---- */
.page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: calc(18px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 28px
    max(16px, env(safe-area-inset-left));
}
.with-nav .page {
  padding-bottom: calc(var(--tabbar) + 28px + env(safe-area-inset-bottom));
}
.bare .page {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}
.back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--tip);
  text-decoration: none;
  font-weight: 600;
}
.back::before {
  content: '\2039';
  margin-right: 6px;
  font-size: 1.4rem;
  line-height: 1;
}

/* ---- navigation: tab bar on the phone, rail on iPad and computer, one list (shell/nav.mjs) ---- */
.nav {
  position: fixed;
  z-index: 10;
  background: var(--mat);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  left: 0;
  right: 0;
  bottom: 0;
  min-height: var(--tabbar);
  padding: 8px max(4px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom))
    max(4px, env(safe-area-inset-left));
  border-top: 1px solid var(--lijn);
}
.nav-item {
  min-height: 44px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--zacht);
  text-decoration: none;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.2;
  border-radius: 8px;
}
.nav-icon {
  font-size: 1.2rem;
  line-height: 1;
}
.nav-label {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.nav-item {
  position: relative;
}
/* NR-05: number badge on Uitgelicht (unseen songs and videos); hidden at 0 by not being rendered */
.nav-badge {
  position: absolute;
  top: 0;
  left: calc(50% + 6px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.nav-item[aria-current='page'] {
  color: var(--accent);
}
@media (min-width: 600px) {
  .nav {
    top: 0;
    right: auto;
    bottom: 0;
    width: var(--rail-narrow);
    min-height: 0;
    grid-auto-flow: row;
    grid-auto-rows: 52px;
    align-content: start;
    gap: 6px;
    padding: calc(16px + env(safe-area-inset-top)) 2px 16px max(2px, env(safe-area-inset-left));
    border-top: 0;
    border-right: 1px solid var(--lijn);
    font-size: 0.75rem;
  }
  .nav-item {
    min-height: 52px;
  }
  /* the label stays 12 px (0.75rem, decision Sijmen, 26 Nov 2026); the rail is wide enough for the longest word, never broken inside it */
  .nav-label {
    font-size: 0.75rem;
    overflow-wrap: normal;
  }
  .with-nav .page {
    margin-left: var(--rail-narrow);
    padding-bottom: 28px;
  }
}
@media (min-width: 820px) {
  .nav {
    width: var(--rail);
  }
  .with-nav .page {
    margin-left: var(--rail);
  }
  .nav-icon {
    font-size: 1.25rem;
  }
  .nav-label {
    font-size: inherit;
  }
}
@media (min-width: 1200px) {
  :root {
    --rail: 96px;
  }
  .nav-item {
    font-size: 0.74rem;
  }
}

/* FO: A-04, W-07 (R03-I fix V-3, WCAG 2.2 SC 2.4.11) — on the phone the tab bar is fixed over the bottom of the page: a focused element that scrolls into view stops above it.
 * Set on the focused element, not as scroll-padding on the page: scroll-padding would also move the targets of the A-Z bar and other in-page jumps. */
@media (max-width: 599.98px) {
  :focus-visible {
    scroll-margin-bottom: calc(var(--tabbar) + max(20px, env(safe-area-inset-bottom)) + 16px);
  }
}

/* ---- buttons ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--lijn);
  font: 600 1rem var(--tekst);
  text-decoration: none;
  cursor: pointer;
}
.button.primary {
  width: 100%;
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.button.secondary {
  background: var(--paneel2);
  color: var(--inkt);
}
.button.wide {
  width: 100%;
}

/* ---- placeholders of destinations built in later parts ---- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 26px 16px;
  border: 1px dashed var(--lijn);
  border-radius: 12px;
  color: var(--zacht);
  font-size: 0.9rem;
}
.empty h2 {
  color: var(--inkt);
  font-size: 1.1rem;
}
.empty-glyph {
  font-size: 2rem;
  line-height: 1;
}

/* ---- settings screen (styleguide 3.6) ---- */
.settings {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1100px;
}
.title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-icon {
  width: 36px;
  height: 36px;
  border-radius: 22%;
  border: 1px solid var(--lijn);
  flex: none;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px 28px;
  align-items: start;
}
.block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.block h2 {
  font-size: 1.1rem;
  font-weight: 600;
}
.regel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.regel-tekst {
  font-size: 0.9rem;
}
.seg {
  display: inline-flex;
  align-self: flex-start;
  height: 32px;
  border: 1px solid var(--lijn);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paneel);
}
.seg button {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--inkt);
  font: 600 0.82rem var(--tekst);
  cursor: pointer;
}
.seg button + button {
  border-left: 1px solid var(--lijn);
}
.seg button.on {
  background: var(--accent);
  color: var(--on-accent);
}
.link-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  border-top: 1px solid var(--lijn);
  padding: 6px 0;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}
.dot-off {
  background: #6b6559;
}
.dot-on {
  background: #c9743a;
}
.dot-warn {
  background: #d9a441;
}
/* compact button of a connection row (styleguide 1.4: 36 px high, mockup s19 `.knop.klein`) */
.button.small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.82rem;
  white-space: nowrap;
}
.link-message {
  margin: 0 0 8px 24px;
}
.link-message.fout {
  color: var(--accent);
}
.back-link {
  color: var(--inkt);
}
.dot-free {
  background: var(--tip);
}
.link-help {
  font-size: 0.82rem;
}
.version {
  font: 800 1.05rem/1.3 var(--kop);
  white-space: nowrap;
}
.line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  border-top: 1px solid var(--lijn);
  font-size: 0.9rem;
}
.source {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--lijn);
}
.youtube-privacy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--lijn);
}
.youtube-privacy h3,
.youtube-privacy p {
  margin: 0;
}
.source-notice {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--lijn);
}
.source-notice a {
  color: var(--accent);
}
.sync {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.button[disabled] {
  opacity: 0.55;
  cursor: default;
}
.steps {
  background: var(--paneel);
  border: 1px solid var(--lijn);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.steps ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}
.actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
}
.actions form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---- confirm step of "Overal afmelden" (B-S7): a centred dialog, and the same actions on the confirm page ---- */
dialog.confirm {
  width: min(92vw, 380px);
  padding: 20px 18px;
  border: 1px solid var(--lijn);
  border-radius: 14px;
  color: var(--inkt);
  background: var(--paneel);
  box-shadow: 0 16px 40px #000c;
}
dialog.confirm:not([open]) {
  display: none;
}
dialog.confirm::backdrop {
  background: #000a;
}
dialog.confirm h2 {
  margin: 0 0 8px;
}
.confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  max-width: 420px;
}
dialog.confirm .confirm-actions {
  max-width: none;
}
.confirm-actions .button {
  width: 100%;
}

/* ---- sign-in screens: record spines in a small wooden cabinet (s19, s20), decoration only ---- */
.spines {
  width: 100%;
  max-width: 300px;
  background: var(--mat);
  border-radius: 5px 5px 2px 2px;
  overflow: hidden;
  box-shadow: 0 12px 28px #000a;
}
.spines-top {
  height: 12px;
  background: linear-gradient(
    180deg,
    #f0dbb2 0 2px,
    var(--hout) 2px 7px,
    #c3a073 7px 8px,
    var(--hout) 8px 10px,
    #8c6a3d 10px 12px
  );
}
.spines-cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px 6px 0;
}
.spines-cell {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 92px;
  padding: 0 3px;
  background: #181614;
  overflow: hidden;
}
.spines-cell i {
  flex: none;
  width: 5px;
  height: 85%;
  border-radius: 1px 1px 0 0;
  background: hsl(18 55% 40%);
}
.spines-cell i:nth-child(4n + 2) {
  width: 7px;
}
.spines-cell i:nth-child(5n + 3) {
  width: 4px;
}
.spines-cell i:nth-child(3n) {
  height: 95%;
}
.spines-cell i:nth-child(7n + 1) {
  height: 78%;
}
.spines-cell i:nth-child(12n + 1) {
  background: hsl(42 52% 44%);
}
.spines-cell i:nth-child(12n + 2) {
  background: hsl(200 48% 38%);
}
.spines-cell i:nth-child(12n + 3) {
  background: hsl(330 45% 40%);
}
.spines-cell i:nth-child(12n + 4) {
  background: hsl(150 42% 34%);
}
.spines-cell i:nth-child(12n + 5) {
  background: hsl(265 44% 42%);
}
.spines-cell i:nth-child(12n + 6) {
  background: hsl(95 40% 38%);
}
.spines-cell i:nth-child(12n + 7) {
  background: hsl(5 52% 40%);
}
.spines-cell i:nth-child(12n + 8) {
  background: hsl(220 46% 44%);
}
.spines-cell i:nth-child(12n + 9) {
  background: hsl(60 42% 40%);
}
.spines-cell i:nth-child(12n + 10) {
  background: hsl(300 40% 40%);
}
.spines-cell i:nth-child(12n + 11) {
  background: hsl(175 44% 36%);
}
.spines-floor {
  height: 8px;
  background: linear-gradient(180deg, var(--hout) 0 5px, #8c6a3d 5px 8px);
}
.dimmed {
  opacity: 0.45;
  width: 100%;
  display: flex;
  justify-content: center;
}
.bare .page > * {
  max-width: 100%;
}
.bare .button.primary {
  min-width: 240px;
}
