@font-face {
  font-family: Rubik;
  src: url('./rubik-latin.woff2') format('woff2');
  font-weight: 400 900;
  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: Rubik;
  src: url('./rubik-cyrillic.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light;
  --bg: #f2f1eb;
  --desk: var(--bg);
  --paper: #fffefa;
  --ink: #182025;
  --muted: #48525c;
  --line: #ccc9bc;
  --blue: #203c99;
  --rose: #992d4f;
  --berry: var(--rose);
  --accent: var(--blue);
  --wash: #e8edfc;
  --berry-wash: #f9e9ee;
  --cobalt: #2449ba;
  --field: #f8f9f8;
  --field-border: #7c878e;
  --paper-edge: #dbe0dd;
  --primary: #1c3da9;
  --primary-hover: #173794;
  --primary-ink: #fff;
  --button-outline: var(--primary);
  --cover: #2449ba;
  --card-edge: #2845a0;
  --card-ink: #fff;
  --card-rule: #e0e8ff;
  --spy-card-rule: #ffc0d0;
  --grid-blue: #cbd9ff;
  --grid-berry: #f3c2d0;
  --grid-neutral: #e0e3e3;
  --grid-stop: #19202b;
  --grid-team-ink: #182025;
  --font-table: Rubik, 'Segoe UI', system-ui, sans-serif;
  font: 16px/1.5 var(--font-table);
  background: var(--bg);
  color: var(--ink);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #12171d;
  --paper: #1c242d;
  --ink: #f4f6f5;
  --muted: #b5c0c9;
  --line: #3d4958;
  --blue: #bdcfff;
  --rose: #ffb3c7;
  --wash: #263757;
  --berry-wash: #412938;
  --field: #151d25;
  --field-border: #758293;
  --paper-edge: #0e1118;
  --primary: #bfcfff;
  --primary-hover: #d2ddff;
  --primary-ink: #162743;
  --grid-blue: #324e99;
  --grid-berry: #73354d;
  --grid-neutral: #454e59;
  --grid-stop: #111518;
  --grid-team-ink: #f4f6f5;
}

h1, h2, h3 { font-family: var(--font-table); }
h1, h2 { letter-spacing: -.047em; font-weight: 730; }
a { color: var(--blue); }
.wrap { width: min(100% - 80px, 1200px); }
main { padding-bottom: clamp(36px, 6vw, 70px); }
.masthead { min-height: 76px; margin-bottom: clamp(19px, 3.6vw, 45px); border-bottom: 1px solid var(--line); }
.brand { gap: 8px; color: var(--blue); text-decoration: none; }
.brand svg { flex: none; }
.brand span { font-size: 1.19rem; font-weight: 730; letter-spacing: -.045em; }
.brand:hover span { color: var(--blue); }
.header-actions .button { background: transparent; }
.header-actions .button:hover { border-color: var(--field-border); }
.header-actions .theme-button { color: var(--ink); }
.header-actions .profile-button { border-color: var(--field-border); }
.header-actions .header-button svg { display: none; }

.button { border-radius: 8px; font-weight: 600; }
.primary { border-color: var(--button-outline); }
.primary:hover:not(:disabled) { border-color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
input, select, textarea { accent-color: var(--blue); }
.room-input { text-transform: uppercase; font-family: var(--font-table); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  background: var(--paper);
}

@media (max-width: 980px) { .wrap { width: calc(100% - 46px); } }
@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .masthead { min-height: 60px; margin-bottom: 18px; }
  .brand { gap: 5px; }
  .brand span { font-size: 1.05rem; }
  .brand svg { width: 28px; height: 28px; }
  .header-actions { gap: 5px; }
  .header-actions .header-button { padding-inline: 8px; }
}
@media (max-width: 370px) {
  .header-actions .header-button { min-width: 44px; padding: 0; }
  .header-actions .header-button svg { display: block; }
  .header-actions .header-button > span { display: none; }
}

@supports (padding: env(safe-area-inset-bottom)) {
  body { padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
  .table-footer { margin-bottom: env(safe-area-inset-bottom); }
}

