/* Bandroom: tokens, type and the basics. */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2-variations'), url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  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: 'Archivo';
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2-variations'), url('../fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson';
  src: url('../fonts/atkinson-latin.woff2') format('woff2-variations'), url('../fonts/atkinson-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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: 'Atkinson';
  src: url('../fonts/atkinson-latin-ext.woff2') format('woff2-variations'), url('../fonts/atkinson-latin-ext.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson';
  src: url('../fonts/atkinson-latin-italic.woff2') format('woff2-variations'), url('../fonts/atkinson-latin-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Direction A: brass and black on white. Reasons in docs/DESIGN.md. */
  --ink: #111311;
  --ink-2: #2b2f2c;
  --muted: #5b5f5c;
  --faint: #6f7470;
  --bg: #ffffff;
  --panel: #f3f3ef;
  --panel-2: #e8e9e3;
  --card: #ffffff;
  --rule: #e6e7e2;
  --rule-mid: #d6d8d2;
  --rule-strong: #8d918d;
  --on-ink: #ffffff;
  --on-bright: #111311;
  --brass: #ffc21f;
  --brass-2: #f5b400;
  --brass-tint: #fff4cf;
  --brass-ink: #7a5200;
  --focus: #1f4fd1;
  --ink-block: #111311;

  /* Answers and seats: bright fills that always carry ink text. */
  --yes: #2bd67b;
  --maybe: #ffa51f;
  --no: #ff5a4e;
  --dep: #4f8bff;
  --unknown: #d3d6cf;
  --empty: #b9bcb6;
  --yes-ink: #0b7a43;
  --maybe-ink: #8a5a00;
  --no-ink: #c42b1c;
  --dep-ink: #1f4fd1;

  /* Kinds of date */
  --t-rehearsal: #e3e4df;
  --t-concert: #ffc21f;
  --t-contest: #ff8fc7;
  --t-engagement: #5be0c8;
  --t-social: #c6f36b;
  --t-other: #e3e4df;
  /* A rehearsal as a small marker, like the month view on a phone, needs more weight than its fill. */
  --t-mark: #7d827d;

  /* Type: Archivo wide and heavy for headlines, dates and big numbers. Atkinson Hyperlegible Next for reading. */
  --font-display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --font: 'Atkinson', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wide: 125%;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.25rem;
  --text-4xl: 2.875rem;
  --text-5xl: 3.75rem;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s7: 32px;
  --s8: 40px;
  --s9: 48px;
  --s10: 64px;
  --s11: 80px;
  --s12: 112px;

  /* The arch rule: rounded at the top like a band-room doorway, square at the bottom.
     The radius is about a fifth of the element's height. */
  --arch-xs: 7px 7px 0 0;
  --arch-sm: 12px 12px 0 0;
  --arch: 16px 16px 0 0;
  --arch-lg: 22px 22px 0 0;
  --arch-xl: 28px 28px 0 0;

  /* Only things that float cast a shadow: sheets, menus and toasts. */
  --shadow-pop: 0 16px 48px rgba(17, 19, 17, 0.22);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --fast: 120ms;
  --mid: 220ms;

  --rail: 264px;
  --content: 960px;
  --page-wide: 1200px;
  --topbar: 56px;
  --tabbar: 64px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #f2f3ef;
    --ink-2: #d9dbd5;
    --muted: #a8ada8;
    --faint: #8f948f;
    --bg: #0f110f;
    --panel: #1b1e1b;
    --panel-2: #252925;
    --card: #161916;
    --rule: #262a26;
    --rule-mid: #353a35;
    --rule-strong: #747974;
    --on-ink: #111311;
    --brass-2: #ffcf4d;
    --brass-tint: #2e2610;
    --brass-ink: #ffd25a;
    --focus: #8fb1ff;
    --ink-block: #232723;
    --unknown: #8a8f89;
    --empty: #5c615c;
    --yes-ink: #5fe39a;
    --maybe-ink: #ffbf5a;
    --no-ink: #ff8a7f;
    --dep-ink: #8fb1ff;
    --t-rehearsal: #3a3f3a;
    --t-other: #3a3f3a;
    --t-mark: #6b706b;
    --shadow-pop: 0 16px 48px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --ink: #f2f3ef;
  --ink-2: #d9dbd5;
  --muted: #a8ada8;
  --faint: #8f948f;
  --bg: #0f110f;
  --panel: #1b1e1b;
  --panel-2: #252925;
  --card: #161916;
  --rule: #262a26;
  --rule-mid: #353a35;
  --rule-strong: #747974;
  --on-ink: #111311;
  --brass-2: #ffcf4d;
  --brass-tint: #2e2610;
  --brass-ink: #ffd25a;
  --focus: #8fb1ff;
  --ink-block: #232723;
  --unknown: #8a8f89;
  --empty: #5c615c;
  --yes-ink: #5fe39a;
  --maybe-ink: #ffbf5a;
  --no-ink: #ff8a7f;
  --dep-ink: #8fb1ff;
  --t-rehearsal: #3a3f3a;
  --t-other: #3a3f3a;
  --t-mark: #6b706b;
  --shadow-pop: 0 16px 48px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:where(h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote) { margin: 0; }
:where(ul, ol) { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s6) 0; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
svg.i { width: 1.25em; height: 1.25em; flex: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

h1, .h1 { font-family: var(--font-display); font-stretch: var(--wide); font-weight: 800; font-size: var(--text-3xl); line-height: 1.02; letter-spacing: -0.025em; }
h2, .h2 { font-family: var(--font-display); font-stretch: 115%; font-weight: 800; font-size: var(--text-lg); line-height: 1.12; letter-spacing: -0.015em; }
h3, .h3 { font-weight: 800; font-size: var(--text-md); line-height: 1.3; }
h4, .h4 { font-weight: 700; font-size: var(--text); line-height: 1.35; }
.display { font-family: var(--font-display); font-stretch: var(--wide); font-weight: 900; letter-spacing: -0.03em; line-height: 0.95; }
.lead { font-size: var(--text-md); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: var(--text-sm); }
.xsmall { font-size: var(--text-xs); }
.strong { font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.prose { max-width: 68ch; }
.prose p + p { margin-top: var(--s3); }
.prose h2 { margin: var(--s8) 0 var(--s3); font-size: var(--text-xl); }
.prose h3 { margin: var(--s6) 0 var(--s2); }
.prose ul, .prose ol { padding-left: 1.3em; margin: var(--s3) 0; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: var(--s2); }
.pre-line { white-space: pre-line; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s3); top: -60px; z-index: 100; background: var(--brass); color: var(--on-bright); padding: var(--s2) var(--s4); border-radius: var(--arch-sm); font-weight: 800; }
.skip:focus { top: var(--s3); }

@media (min-width: 960px) {
  h1, .h1 { font-size: var(--text-4xl); }
  h2, .h2 { font-size: var(--text-xl); }
}

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