/* Lockr: one monospace voice, Rothko black, purple frame. Values from the Palette board. */

/* IBM Plex Mono, served from this site (SIL Open Font License, fonts/OFL.txt). */
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-600.woff2') format('woff2'); }
:root {
  --chapel: #0B090B;   /* page background */
  --upper: #141015;    /* demo panel */
  --seagram: #1D1420;  /* sidebar */
  --sienna: #3A2218;   /* highlighted passage */
  --divider: #3B2540;  /* hairlines, current page */
  --frame: #7A4E86;    /* sidebar edge, input line, focus */
  --mauve: #A98BB5;    /* links, citations, logo */
  --muted: #9A8F98;    /* labels, secondary text */
  --text: #E8E2E6;     /* body text */
  --source: #C9C0C6;   /* quoted source text */
  --faint: #6F6670;    /* waitlist placeholders */
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { background: var(--chapel); }
body { margin: 0; color: var(--text); font-family: var(--mono); font-size: 16px; line-height: 24px; }
a { color: var(--mauve); text-decoration: none; }
a:hover { color: var(--text); font-weight: 600; }
:focus-visible { outline: 2px solid var(--frame); outline-offset: 2px; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: 600; color: var(--mauve); }
h1 { font-size: 16px; }
h2 { font-size: 14px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--seagram); padding: 8px 16px; z-index: 2; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Claims we haven't tested yet stay hidden until config.js turns them on. */
[data-claim] { display: none; }

/* Until answers are recorded, show "coming soon" wording; lockr.js adds .demo-ready. */
html:not(.demo-ready) [data-ready], html.demo-ready [data-soon] { display: none !important; }
.facts > div { display: contents; }

/* Wording that depends on whether the ask box is live or recorded (config.js askMode). */
.mode-live [data-recorded], .mode-recorded [data-live] { display: none !important; }
.claims-on [data-claim] { display: revert; }

/* Layout: left sidebar, content fills the page, no boxes. */
.shell { display: flex; min-height: 100vh; }
.side { width: 216px; flex-shrink: 0; background: var(--seagram); border-right: 2px solid var(--frame); padding: 48px 0; display: flex; flex-direction: column; }
.side a { padding: 8px 24px; }
.side a[aria-current="page"] { color: var(--text); background: var(--divider); }
.side .short { display: none; }
main { flex-grow: 1; min-width: 0; padding: 48px 64px; display: flex; flex-direction: column; gap: 48px; }
main.gap-40 { gap: 40px; }
main.gap-64 { gap: 64px; }

.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 22px; }
.lede { max-width: 72ch; }
.lede strong { color: var(--mauve); }
.phone-only { display: none; }

.logo { margin: 0; font: 26px/30px var(--mono); color: var(--mauve); }
.diagram { margin: 0; font: 13px/16px var(--mono); color: var(--text); overflow-x: auto; }
.diagram.big { font-size: 15px; line-height: 20px; }
.hi { color: var(--mauve); }

.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.gap-16 { gap: 16px; }
.stack > h2 { margin-bottom: 16px; }
.stack.gap-16 > h2 { margin-bottom: 0; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 80px; align-content: start; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; align-content: start; }
.cols2.wide-gap { column-gap: 80px; }
.steps p { display: flex; gap: 16px; }
.steps p > span:first-child { color: var(--muted); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; column-gap: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* Ask box: a prompt on a single purple line. */
.ask { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--frame); }
.ask label { color: var(--mauve); }
.ask input { flex-grow: 1; min-width: 0; height: 56px; background: transparent; border: none; color: var(--text); font: 20px var(--mono); padding: 0; outline: none; }
.ask input::placeholder { color: var(--muted); }
.cur { color: var(--mauve); animation: lockr-blink 1.1s steps(1) infinite; }
.ask input:focus ~ .cur, .ask input:not(:placeholder-shown) ~ .cur { visibility: hidden; }
@keyframes lockr-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cur { animation: none; } }

.bracket { height: 48px; padding: 0 8px; background: transparent; color: var(--mauve); border: none; font: 600 16px var(--mono); cursor: pointer; }
.bracket:hover { color: var(--text); }
.bracket:disabled { color: var(--muted); cursor: wait; }
.try { padding: 0; background: none; border: none; font: inherit; color: var(--mauve); text-align: left; cursor: pointer; }
.try:hover { color: var(--text); font-weight: 600; }

/* Answer view */
.asked { font-size: 22px; line-height: 32px; }
.asked span { color: var(--mauve); }
#result h2 { font-size: 16px; }
.source-text { color: var(--source); }
.sources h2:not(:first-child) { margin-top: 16px; }
mark { background: var(--sienna); color: var(--text); }

/* Waitlist */
.waitlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 80px; align-content: start; }
.waitlist > .form-col { grid-column: span 2; display: flex; flex-direction: column; gap: 40px; }
.waitlist > .next { padding-top: 112px; }
.submit-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.submit-row .bracket { padding: 0; font-size: 18px; }
a.join { display: inline-flex; align-items: center; font-size: 18px; }
a.join:hover { color: var(--text); }

.phone-only.stack { display: none; }

/* Plain text pages (privacy) */
.prose { max-width: 72ch; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { margin-top: 16px; }

@media (max-width: 1200px) {
  main { padding: 40px; }
  .cols3, .cols2.wide-gap, .waitlist { column-gap: 40px; }
  .cols2.diagrams { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
}

/* Phone: follows the Mobile board. The sidebar becomes a top bar. */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .shell { flex-direction: column; }
  .side { width: auto; flex-direction: row; border-right: none; border-bottom: 2px solid var(--frame); padding: 0 8px; overflow-x: auto; }
  .side a { padding: 12px 10px; white-space: nowrap; }
  .side .long { display: none; }
  .side .short { display: inline; }
  main, main.gap-40, main.gap-64 { padding: 32px 16px; gap: 32px; }
  .phone-only { display: revert; }
  .phone-only.stack { display: flex; }
  .desk-only { display: none; }
  .logo { font-size: 13px; line-height: 15px; }
  .ask { gap: 10px; }
  .ask input { height: 52px; font-size: 16px; }
  .cur { display: none; }
  .bracket { font-size: 15px; padding: 0; }
  .asked { font-size: 18px; line-height: 28px; }
  .cols3, .cols2, .waitlist { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .waitlist > .form-col { grid-column: auto; }
  .waitlist > .next { padding-top: 0; }
  .diagram { font-size: 11px; line-height: 14px; }
  .diagram.big { font-size: 9px; line-height: 12px; }
  .try-list .try { padding: 10px 0; }
  .try-list.stack { gap: 0; }
  .try-list.stack > h2 { margin-bottom: 8px; font-size: 15px; }
}
