/* QPlot website. One stylesheet, no scripts, nothing fetched from anywhere else.
   Dark is the booth, light is the rehearsal room: the page follows the reader's own setting. */

:root {
  color-scheme: light dark;
  --surround: #f2f2f7;
  --panel: #ffffff;
  --text: #1a1a1d;
  --muted: #55555c;
  --line: #8c8c94;
  --hair: #d9d9df;
  --link: #8a4500;
  --orange: #ff9001;
  --teal: #23c4cc;
  --green: #4cc35a;
  --yellow: #ffd60a;
  --on-chip: #1a1a1d;
  --bezel: #0c0c0e;
  --display: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surround: #16161a;
    --panel: #202026;
    --text: #f2f1ee;
    --muted: #b9b8b3;
    --line: #77767c;
    --hair: #34343b;
    --link: #ffa533;
    --bezel: #050506;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--surround);
  color: var(--text);
  font: 1.0625rem/1.6 var(--body);
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
p, ul, ol { margin: 0; }
p + p { margin-top: 0.9em; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.16em; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { :focus-visible { outline-color: var(--orange); } }
main:focus { outline: none; }

.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 0.5rem; top: -4rem; background: var(--panel); color: var(--text); padding: 0.7rem 1rem; border-radius: 6px; z-index: 10; }
.skip:focus { top: 0.5rem; }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1.1rem; }
.logo { display: inline-block; }
.logo img { height: 2.6rem; width: auto; }
.site-nav ul, .site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a, .site-footer a { display: inline-block; padding-block: 0.6rem; color: var(--text); font-weight: 600; }
.site-nav a[aria-current="page"] { text-decoration-thickness: 0.2em; text-decoration-color: var(--orange); }

/* Cue chips: the stamps the app puts in a script's margin. Shape differs as well as colour, as in the app. */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.chip { display: inline-block; font: 700 0.95rem/1 var(--display); letter-spacing: 0.03em; color: var(--on-chip); padding: 0.42rem 0.6rem; border: 2px solid var(--on-chip); }
.chip.snd { background: var(--orange); border-radius: 3px; }
.chip.sfx { background: var(--teal); border-radius: 999px; padding-inline: 0.8rem; }
.chip.lx { background: var(--green); border-radius: 3px; }
.chip.fs { background: var(--yellow); border-radius: 8px; }
.chip.sb { background: #ffffff; border-radius: 3px; border-style: dashed; }
@media (prefers-color-scheme: dark) { .chip { border-color: transparent; } .chip.sb { border-color: var(--on-chip); } }

/* Home: opening */
.intro { padding-block: clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 6vw, 5rem); }
.intro .wrap { display: grid; gap: 2.5rem; align-items: center; }
.intro .lede { font-size: 1.25rem; line-height: 1.5; margin-top: 1.2rem; max-width: 34rem; }
.intro .facts { margin-top: 1rem; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.8rem; }
.button { display: inline-block; background: var(--orange); color: #1a1a1d; font: 700 1.15rem/1.2 var(--display); letter-spacing: 0.02em; padding: 0.85rem 1.4rem; border-radius: 8px; text-decoration: none; border: 2px solid #8a4500; }
.button:hover { background: #ffa533; }
@media (prefers-color-scheme: dark) { .button { border-color: var(--orange); } }

/* An iPad around a screenshot */
.device { margin: 0; background: var(--bezel); padding: 0.6rem; border-radius: 1.5rem; border: 1px solid var(--line); max-width: 24rem; justify-self: center; width: 100%; }
.device img { border-radius: 0.95rem; width: 100%; }
.intro .device { max-width: 27rem; }

/* Home: what it does */
.job { padding-block: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--hair); }
.job .wrap { display: grid; gap: 2rem; align-items: center; }
.job h2 + p { margin-top: 1rem; }
.job .text { max-width: 34rem; }
.job .more { margin-top: 1.2rem; font-weight: 600; }
@media (min-width: 48rem) {
  .intro .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
  .job .wrap { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .job:nth-of-type(odd) .device { order: -1; }
}

/* Videos */
.band { background: var(--panel); padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--hair); }
.band > .wrap > p { margin-top: 0.8rem; max-width: 40rem; }
.videos { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 2.5rem 2rem; }
@media (min-width: 48rem) { .videos { grid-template-columns: repeat(2, 1fr); } .videos li:first-child { grid-column: 1 / -1; } }
.videos h3 + p { margin-top: 0.35rem; }
.video-frame { margin-top: 0.9rem; background: #000; border-radius: 10px; aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.video-frame video { width: 100%; height: 100%; border-radius: 9px; }
.video-meta { margin-top: 0.6rem; font-size: 0.95rem; }

/* Plain pages: privacy, support, not found */
.page { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); }
.page h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); }
.page .lede { font-size: 1.2rem; margin-top: 1rem; max-width: 40rem; }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose h2 + p, .prose h1 + p { margin-top: 0.7rem; }

/* Help */
.topics { list-style: none; padding: 0; margin-top: 2.2rem; display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .topics { grid-template-columns: repeat(2, 1fr); } }
.topics > li { background: var(--panel); border: 1px solid var(--hair); border-radius: 12px; padding: 1.4rem 1.5rem 1.5rem; }
.topics h2 { font-size: 1.7rem; }
.topics h2 a { color: var(--text); }
.topics p { margin-top: 0.4rem; }
.topics ul { margin-top: 0.9rem; padding-left: 1.1rem; }
.topics li li { padding-block: 0.12rem; }
.help { display: grid; gap: 2rem; margin-top: 2rem; }
.contents { align-self: start; }
.contents h2 { font-size: 1.2rem; }
.contents ol { list-style: none; padding: 0; margin-top: 0.6rem; }
.contents a { display: inline-block; padding-block: 0.3rem; }
@media (min-width: 60rem) {
  .help { grid-template-columns: 15rem minmax(0, 44rem); gap: 4rem; }
  .contents { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; }
}
.chapter { padding-top: 2.4rem; }
.video-meta + .chapter { padding-top: 2rem; }
.chapter h2 { font-size: 1.9rem; padding-bottom: 0.5rem; border-bottom: 3px solid var(--orange); }
.chapter ul { list-style: none; padding: 0; margin-top: 0.4rem; }
.chapter li { padding-block: 0.75rem; border-bottom: 1px solid var(--hair); }
.next { margin-top: 3rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--hair); padding-block: 1.5rem 2.5rem; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 2rem; }
.site-footer p a { color: var(--text); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print { .site-nav, .video-frame, .contents, .skip { display: none; } body { background: #fff; color: #000; } }
