/* Binder Gallery - theme v1
   Single stylesheet. Dark only, mobile-first, no external fonts.
   Contrast ratios noted next to each colour token were computed against
   --bg (#0B0D12) and verified to meet WCAG 2.1 AA. */

:root {
  /* Surfaces - from the brand kit (brand/README.md, 5 Nov 2026) */
  --bg: #0E1024;              /* brand background */
  --bg-raised: #14172E;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #F3F4FA;            /* 17.11:1 AA */
  --text-dim: #AAB0C6;        /*  8.71:1 AA */
  --text-faint: #8F96AE;      /*  6.39:1 AA */

  /* Crimson.
     --accent is the brand crimson #E63946. White on it measures 4.17:1,
     BELOW the 4.5:1 AA minimum, so it is used only where no text sits on
     it (rules, bars, the note border).
     --accent-btn is the fill under white text (5.02:1 AA).
     --accent-text is for type and links (7.49:1 AA); brand crimson as text
     is 4.51:1, which passes but with no margin for error. */
  --accent: #E63946;
  --accent-btn: #D12F3C;
  --accent-deep: #B9202C;
  --accent-text: #FF7A85;     /*  7.49:1 on --bg, 6.55:1 on panel - AA */

  /* Brand gold - 11.15:1 on --bg, AA either way */
  --gold: #F2C13E;

  /* Radii: 16-24 */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;

  --maxw: 44rem;
  --gap: 1rem;

  --font: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN",
    system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Soft crimson glow at the top, cheap and static */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 60vh;
  background: radial-gradient(
    90% 70% at 50% -20%,
    rgba(230, 57, 70, 0.18),
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-header {
  padding-block: 1.25rem 0.5rem;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  flex-wrap: wrap;
}

main { padding-block: 1rem 2.5rem; }

section + section { margin-top: 2.5rem; }

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  display: block;
}

/* ---------- Language switcher ---------- */

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.1875rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang a,
.lang span {
  display: block;
  padding: 0.3125rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-dim);
}

.lang a:hover { color: var(--text); }

.lang [aria-current="true"] {
  background: var(--accent-btn);
  color: #fff;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
h2 { font-size: clamp(1.375rem, 5vw, 1.625rem); margin-top: 0; }
h3 { font-size: 1.0625rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.125rem;
  color: var(--text-dim);
  max-width: 34rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.5rem;
}

a { color: var(--accent-text); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #FF8296; }

strong { font-weight: 800; }

/* ---------- Panels ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
}

.panel + .panel { margin-top: 0.75rem; }

.note {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  padding: 1rem 1.125rem;
  color: var(--text-dim);
}

.note strong { color: var(--text); }

.note-pro { border-left-color: var(--gold); }
.note-pro strong { color: var(--gold); }

/* ---------- Contact block ---------- */

.contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-md);
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-btn);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-deep); color: #fff; }

.btn-quiet {
  background: var(--panel);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-quiet:hover { background: var(--panel-strong); color: var(--text); }

.btn[aria-disabled="true"] {
  background: var(--panel);
  border-color: var(--border);
  color: var(--text-faint);
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0.625rem; }

.faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.faq summary {
  padding: 1rem 1.125rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.375rem;
  line-height: 1;
  font-weight: 700;
  color: var(--accent-text);
}

.faq details[open] summary::after { content: "\2013"; }

.faq details[open] summary { color: var(--text); }

.faq .answer {
  padding: 0 1.125rem 1.125rem;
  color: var(--text-dim);
}

.faq .answer ol,
.faq .answer ul { margin: 0 0 1rem; padding-left: 1.25rem; }

.faq .answer li { margin-bottom: 0.375rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem 2.5rem;
  color: var(--text-faint);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.legal { margin: 0 0 0.75rem; max-width: 46rem; }
.legal:last-child { margin-bottom: 0; }

/* Fine print outside the footer */
.fine {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-faint);
  max-width: 38rem;
}

.contact + .fine { margin-top: 1rem; }

/* ---------- Accessibility ---------- */

:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-btn);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 800;
  z-index: 10;
}

.skip:focus {
  left: 0;
  color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --text-dim: #D6DCE6;
    --text-faint: #C3CAD6;
    --border: rgba(255, 255, 255, 0.28);
  }
}

/* ---------- Router page (/, /support before language is known) ---------- */

.router {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.router .choices {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.router .lede { margin-inline: auto; }

.router .more {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
}

@media (min-width: 40rem) {
  body { font-size: 1.09375rem; }
  .contact { flex-direction: row; align-items: center; gap: 0.75rem; }
  .panel { padding: 1.5rem; }
}
