@font-face {
  font-family: "Archivo Expanded";
  src: url("/assets/vendor/fonts/archivo-expanded.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/vendor/fonts/hanken.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #14110e;
  --panel: #1e1a15;
  --panel-2: #28231c;
  --line: #3a332a;
  --text: #f7f1e5;
  --soft: #d3cabb;
  --muted: #ada392;
  --accent: #f3ead9;
  --lamp: #f3ead9;
  --mount: #f3ead9;
  --screen: #fff8e8;
  --ink: #17130f;
  --spot: #e5352b;
  --display: "Archivo Expanded", "Hanken Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --live: #3ddc97;
  --warn: #ffb454;
  --danger: #ff6b6b;
  --radius: 14px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --spring: var(--ease-out);
  --tex-grain: url("/assets/tex-grain.png");
  --tex-lit: url("/assets/tex-lit.png");
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--body);
}

button {
  font: inherit;
  color: inherit;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

@media (hover: hover) {
  button:hover:not(:disabled) {
    border-color: #5a5144;
  }
}

button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
}

@media (hover: hover) {
  button.primary:hover:not(:disabled) {
    background-color: #fffaf0;
    border-color: #fffaf0;
  }
}

a {
  color: var(--text);
  text-underline-offset: 3px;
}

::selection {
  background: var(--spot);
  color: #fff;
}

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

input::placeholder {
  color: #978d7d;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0.000, 0.082, 0.253, 0.443, 0.613, 0.749, 0.850, 0.919, 0.964, 0.990, 1.004, 1.010, 1.011, 1.010, 1.008, 1.006, 1.004, 1.003, 1.002, 1.001, 1.000, 1.000, 1.000, 1.000, 1.000, 1);
  }
}

:root {
  scrollbar-color: var(--line) var(--bg);
}

button.danger {
  color: var(--danger);
}

button.active {
  border-color: var(--warn);
  color: var(--warn);
}

button:disabled {
  opacity: 0.45;
  cursor: default;
}

input[type="text"],
input[type="file"],
input[type="email"],
input[type="password"] {
  font: inherit;
  color: inherit;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

body.control header,
body.home header,
body.join header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 5;
}

body.control h1,
body.home h1,
body.join h1 {
  font-size: 17px;
  margin: 0;
}

.conn {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}

.conn::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--danger);
  margin-right: 6px;
}

.conn.on::before {
  background: var(--live);
}

main {
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  grid-template-areas:
    "add invite"
    "queue live";
  align-items: start;
}

@media (max-width: 860px) {
  main {
    grid-template-columns: 1fr;
    grid-template-areas: "invite" "add" "live" "queue";
  }
}

section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

section h2 {
  margin: 0 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

section.add {
  grid-area: add;
}

section.queue {
  grid-area: queue;
}

section.live {
  grid-area: live;
}

#upload-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

#upload-form input[type="text"] {
  flex: 1 1 180px;
}

#upload-form input[type="file"] {
  flex: 1 1 240px;
}

ol#queue {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

li.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--chip-colour, var(--line));
  border-radius: 8px;
  padding: 10px 12px;
}

li.chip.live {
  outline: 1px solid var(--mount);
}

li.chip.live::before {
  content: "";
  flex: none;
  width: 11px;
  height: 14px;
  clip-path: polygon(0 0, 45% 0, 100% 100%, 55% 100%);
  background: var(--spot);
}

li.chip.done {
  opacity: 0.55;
}

li.empty {
  color: var(--muted);
  padding: 6px 2px;
}

.chip .grow {
  flex: 1;
  min-width: 0;
}

.chip .name {
  font-weight: 600;
}

.chip .title {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.badge.live {
  color: var(--live);
  border-color: var(--live);
}

.badge.ready {
  color: var(--accent);
  border-color: var(--accent);
}

.badge.done {
  color: var(--muted);
}

.live-head {
  margin-bottom: 12px;
}

#live-name {
  font-size: 18px;
  font-weight: 600;
}

.live-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.live-controls .slide {
  flex: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  color: var(--muted);
}

.live-controls button {
  flex: 1;
}

.row {
  display: flex;
  gap: 10px;
}

.row button {
  flex: 1;
}

.notice {
  position: fixed;
  left: 16px;
  bottom: 12px;
  margin: 0;
  color: var(--warn);
  font-size: 13px;
}

body.host {
  overflow: hidden;
  background: #000;
}

#stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#page {
  max-width: 100%;
  max-height: 100%;
  background: #000;
}

#waiting {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  background: var(--bg);
}

#waiting.hidden {
  display: none;
}

#waiting h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 56px);
  letter-spacing: 0.01em;
}

#waiting p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.8vw, 20px);
}

#blackout {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

body.blackout #blackout {
  opacity: 1;
}

#conn-dot {
  position: fixed;
  right: 14px;
  bottom: 12px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--danger);
  opacity: 0.5;
}

#conn-dot.on {
  background: var(--live);
}

#hint {
  position: fixed;
  left: 16px;
  bottom: 10px;
  color: #4a5262;
  font-size: 12px;
}

body.home main,
body.join main {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#auth-form,
#create-event,
#join-form,
#reset-form,
#upload-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#auth-form .row,
#create-event {
  flex-direction: row;
}

#create-event input {
  flex: 1;
}

#events {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

li.event {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

li.event .name {
  font-weight: 600;
}

li.event .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
  font-size: 17px;
}

li.event .links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

li.event .links a {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

li.event .links a.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

#queue-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#queue-status .position {
  font-size: 22px;
  color: var(--text);
}

#queue-status .on-now {
  color: var(--live);
  font-size: 22px;
}

#video {
  max-width: 100%;
  max-height: 100%;
  display: none;
  background: #000;
}

#video.visible {
  display: block;
}

#page.hidden {
  display: none;
}

.chip .thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c0e13;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chip .thumb.empty {
  opacity: 0.25;
}

.timer-row {
  margin-top: 10px;
  align-items: center;
}

.timer {
  flex: 1;
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  color: var(--muted);
}

.timer.over {
  color: var(--danger);
}

#nametag {
  position: fixed;
  left: 4vw;
  bottom: 6vh;
  padding: 14px 22px;
  background: rgba(10, 12, 16, 0.82);
  background: var(--ink);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  max-width: 60vw;
}

#nametag.visible {
  opacity: 1;
  transform: translateY(0);
}

#nametag-name {
  font-size: clamp(20px, 3vw, 38px);
  font-weight: 600;
}

#nametag-title {
  font-size: clamp(14px, 1.6vw, 22px);
}

body.board main {
  max-width: 1100px;
  grid-template-columns: 1fr;
}

body.board .board-name {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 600;
}

body.board .board-slide {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}

body.board #upcoming {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.board #upcoming li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(16px, 2vw, 24px);
}

body.board .chip-colour {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex: 0 0 auto;
}

body.board #upcoming .title {
  font-size: 0.75em;
}

/* ---------------------------------------------------------------------------------------
   The site. A darkened room where the only bright thing is the projected slide, and a
   queue of 35mm slide mounts that advances one click at a time. Lamp-white is for the
   screen and primary actions; the red thumb spot appears only on the mark and live state.
   ------------------------------------------------------------------------------------ */
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--lamp);
  color: var(--ink);
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.site-header {
  gap: 24px !important;
}

.brand,
.brand-small {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.wordmark {
  display: block;
  width: auto;
  margin-block: -2px;
}

body.home .brand h1 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav .nav-signin {
  color: var(--text);
}

body.signed-in .site-nav {
  display: none;
}

body.signed-in #who {
  margin-left: auto;
}

body.home main {
  display: block;
  max-width: none;
  padding: 0;
}

body.home main > section {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

body.home main > #auth,
body.home main > #dashboard,
body.home main > section:not(#landing) {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 20px 72px;
}

body.home section h2 {
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 10px;
}

/* Hero: the whole message on the first screen, with a working queue beside it */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: 1200px;
  min-height: min(calc(100svh - 57px), 780px);
  margin: 0 auto;
  padding: clamp(32px, 5vh, 64px) clamp(20px, 4vw, 48px);
}

body.home section h2.hero-headline {
  font-size: clamp(44px, 6.4vw, 96px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.032em;
  margin: 0 0 22px;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 33em;
  margin: 0 0 28px;
  text-wrap: pretty;
  color: var(--soft);
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

button.large {
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 9px;
}

/* The join bar: speakers arrive with a code, so it comes first and stays small */
.room-form {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-bottom: clamp(22px, 3.4vh, 36px);
  padding: 4px 4px 4px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--panel);
  transition: border-color 160ms ease;
}

.room-form:focus-within {
  border-color: #5a5144;
}

.room-form label {
  color: var(--soft);
  font-size: 14px;
  white-space: nowrap;
}

.room-form input[type="text"] {
  width: 100px;
  min-width: 0;
  padding: 5px 6px;
  border: 0;
  background: transparent;
  font-size: 14px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.room-form input:focus-visible {
  outline: none;
}

.room-form button {
  padding: 5px 12px;
  font-size: 14px;
}

.room-form .room-error {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  margin: 0;
  font-size: 13px;
}

.quiet-link {
  padding: 10px 2px;
  color: var(--soft);
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

.quiet-link::after {
  content: " \2192";
  display: inline-block;
  margin-left: 4px;
  transition: transform 240ms var(--ease-out);
}

.quiet-link:hover {
  color: var(--text);
}

@media (hover: hover) {
  .quiet-link:hover::after {
    transform: translateX(3px);
  }
}

.hero-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.site-nav .nav-start {
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--mount);
  color: var(--ink);
  font-weight: 600;
  transition: background-color 160ms ease;
}

.site-nav .nav-start:hover {
  background: #fffaf0;
  color: var(--ink);
}

.word {
  display: inline-block;
  margin: -0.06em -0.03em -0.18em;
  padding: 0.06em 0.03em 0.18em;
  overflow: clip;
}

.word > span {
  display: inline-block;
  animation: rise 860ms var(--ease-out) both;
}

.word:nth-child(2) > span {
  animation-delay: 45ms;
}

.word:nth-child(3) > span {
  animation-delay: 90ms;
}

.word:nth-child(4) > span {
  animation-delay: 135ms;
}

.word:nth-child(5) > span {
  animation-delay: 180ms;
}

@keyframes rise {
  from {
    transform: translateY(112%);
  }
}

.hero-subtitle,
.hero-actions,
.hero-note,
.room-form,
.demo {
  animation: settle 700ms var(--ease-out) both;
}

.hero-subtitle {
  animation-delay: 260ms;
}

.hero-actions {
  animation-delay: 320ms;
}

.hero-note {
  animation-delay: 380ms;
}

.demo {
  animation-delay: 300ms;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* The queue */
.demo {
  width: 100%;
  max-width: 480px;
  margin: 0 0 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: var(--panel);
  box-shadow: inset 0 1px 0 rgba(247, 241, 229, 0.05);
}

.demo-screen {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--screen);
  color: var(--ink);
}

.demo-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4%;
  padding: 7% 8%;
  transition: opacity 180ms ease, filter 180ms ease;
}

.demo-slide.changing {
  opacity: 0;
  filter: blur(2px);
  transition-duration: 90ms;
}

.demo-slide h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 6.6cqw;
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.demo-slide p {
  margin: 0;
  color: #6c6253;
  font-size: 3.5cqw;
}

.demo-slide ul {
  margin: 0;
  padding: 0 0 0 1.1em;
  font-size: 3.7cqw;
  line-height: 1.45;
}

.demo-slide.stat h3 {
  font-size: 24cqw;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.demo-slide.stat p {
  font-size: 4.4cqw;
}

.demo-slide.quote h3 {
  font-size: 7.6cqw;
  line-height: 1.12;
}

/* Each sample deck is laid out as if a different person made it */
.demo-slide .kicker {
  font-size: 3cqw;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.74;
}

.demo-slide.title.tone-graphite {
  justify-content: flex-end;
}

.demo-slide.title.tone-paper {
  justify-content: flex-start;
}

.demo-slide.title.tone-paper h3 {
  font-size: 9.4cqw;
  font-weight: 700;
  line-height: 1;
}

.demo-slide.title.tone-sand {
  align-items: center;
  text-align: center;
}

.demo-slide .timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 3.7cqw;
}

.demo-slide .timeline li {
  display: flex;
  gap: 5%;
  padding: 1.5cqw 0;
  border-top: 1px solid color-mix(in srgb, var(--deck-ink) 28%, transparent);
}

.demo-slide .timeline b {
  flex: none;
  width: 11cqw;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.demo-slide .compare {
  display: grid;
  gap: 3.4cqw;
}

.demo-slide .compare-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1cqw;
  font-size: 3.6cqw;
}

.demo-slide .compare-row b {
  font-family: var(--display);
  font-size: 5cqw;
  font-weight: 650;
  line-height: 1;
}

.demo-slide .compare-bar {
  grid-column: 1 / -1;
  height: 2.4cqw;
  background: var(--deck-ink);
  transform-origin: left;
  animation: grow-across 520ms var(--ease-out) both;
}

@keyframes grow-across {
  from {
    transform: scaleX(0.2);
  }
}

.demo-slide pre {
  margin: 0;
  padding: 3.6cqw 4cqw;
  overflow: hidden;
  border-radius: 1.2cqw;
  background: var(--ink);
  color: var(--text);
  font: 3.5cqw/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.demo-slide .bars {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  gap: 5%;
  border-bottom: 1px solid var(--ink);
}

.demo-slide .bars span {
  flex: 1;
  background: var(--ink);
  transform-origin: bottom;
  animation: grow 520ms var(--ease-out) both;
}

.demo-slide .bars span:nth-child(2) {
  animation-delay: 40ms;
}

.demo-slide .bars span:nth-child(3) {
  animation-delay: 80ms;
}

.demo-slide .bars span:nth-child(4) {
  animation-delay: 120ms;
}

@keyframes grow {
  from {
    transform: scaleY(0.2);
  }
}

.demo-slide .bars span:first-child {
  background: var(--spot);
}

.demo-queue {
  position: relative;
  margin-top: 10px;
}

.demo-thumb {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--row);
  border-radius: 7px;
  background: var(--mount);
  transition: transform 480ms var(--spring);
}

.demo-queue {
  --row: 44px;
}

.demo-strip {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mount {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--row);
  padding: 0 12px;
  color: var(--soft);
  font-size: 14px;
  transition: color 220ms ease, opacity 220ms ease;
}

.mount-name {
  font-weight: 600;
  white-space: nowrap;
}

.mount-talk {
  overflow: hidden;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 220ms ease;
}

.mount-dot {
  flex: none;
  order: 3;
  width: 10px;
  height: 13px;
  margin-left: auto;
  clip-path: polygon(0 0, 45% 0, 100% 100%, 55% 100%);
  background: var(--spot);
  opacity: 0;
  transition: opacity 180ms ease;
}

.mount.current {
  color: var(--ink);
}

.mount.current .mount-talk {
  color: #5d5446;
}

.mount.current .mount-dot {
  opacity: 1;
}

.mount.done {
  opacity: 0.5;
}

.demo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 2px 2px 2px 12px;
}

.demo-count {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.demo-controls button {
  padding: 6px 14px;
  font-size: 14px;
}

/* Speakers' decks bring their own colour. It's the only colour on the page. */
.tone-graphite {
  --deck: #2e2820;
  --deck-ink: #f7f1e5;
  --deck-accent: #ada392;
}

.tone-paper {
  --deck: #f3ead9;
  --deck-ink: #17130f;
  --deck-accent: #8a7757;
}

.tone-sand {
  --deck: #c9bba3;
  --deck-ink: #17130f;
  --deck-accent: #5b4f3e;
}

.demo-slide[class*="tone-"],
.sketch-slide {
  background: var(--deck);
  color: var(--deck-ink);
}

.demo-slide[class*="tone-"] p {
  color: var(--deck-ink);
  opacity: 0.74;
}

.demo-slide[class*="tone-"] .bars {
  border-bottom-color: var(--deck-ink);
}

.demo-slide[class*="tone-"] .bars span {
  background: var(--deck-ink);
}

.demo-slide[class*="tone-"] .bars span:first-child {
  background: var(--deck-accent);
}

.mount-thumb,
.sketch-row > span {
  flex: none;
  width: 30px;
  height: 18px;
  border-radius: 3px;
  background: var(--deck);
  box-shadow: inset 0 0 0 1px rgb(128 116 96 / 0.55);
}

/* The phone: the same queue, from a speaker's seat */
.demo {
  position: relative;
}

.demo-phone {
  position: absolute;
  left: -92px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  gap: 5px;
  width: 112px;
  padding: 20px 9px 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.85);
  font-size: 12px;
}

.demo-phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 34px;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
  transform: translateX(-50%);
}

.demo-phone b {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
}

.demo-phone-file {
  overflow: hidden;
  padding: 5px 7px;
  border-radius: 5px;
  background: var(--panel-2);
  color: var(--soft);
  font-size: 10.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.demo-phone em {
  margin-top: 3px;
  font-family: var(--display);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (max-width: 1340px) {
  .demo-phone {
    display: none;
  }
}

/* Facts, where other sites would put logos we don't have */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  max-width: 1104px;
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts dt {
  margin-bottom: 3px;
  font-weight: 600;
}

.facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 1200px) {
  .facts {
    margin-inline: clamp(20px, 4vw, 48px);
  }
}

/* A statement in two tones: the claim, then the plain explanation */
body.home section h2.band-statement {
  max-width: 26em;
  font-size: clamp(26px, 2.9vw, 40px);
  line-height: 1.14;
}

.band-statement span {
  color: var(--muted);
}

/* Small pieces of the real interface */
.sketch {
  display: grid;
  align-content: center;
  gap: 6px;
  height: 196px;
  margin-bottom: 20px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: var(--panel);
  box-shadow: inset 0 1px 0 rgba(247, 241, 229, 0.05);
}

.sketch-phone {
  justify-items: center;
}

.sketch-code {
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.sketch-field,
.sketch-button {
  width: min(100%, 220px);
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--soft);
  font-size: 13px;
}

.sketch-button {
  background: var(--mount);
  color: var(--ink);
  font-weight: 600;
  text-align: center;
}

.sketch-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
}

.sketch-row b {
  font-weight: 600;
}

.sketch-row i,
.sketch-time i {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.sketch-row.live {
  background: var(--mount);
  color: var(--ink);
}

.sketch-row.live i {
  color: #5d5446;
}

.sketch-time {
  display: flex;
  align-items: baseline;
  padding: 4px 8px 0;
  font-variant-numeric: tabular-nums;
}

.sketch-time b {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 650;
}

.sketch-screen {
  display: block;
  padding: 0;
  background-color: #000;
}

.sketch-slide {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 11%;
}

.sketch-slide b {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.018em;
  line-height: 1.1;
  text-wrap: balance;
}

.sketch-slide em {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--text);
  font-size: 11px;
  font-style: normal;
}

/* Rolling digits */
.roll-digit {
  position: relative;
  display: inline-block;
  clip-path: inset(0 -0.05em);
}

.roll-size {
  visibility: hidden;
}

.roll-reel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: block;
  transition: transform 480ms var(--spring);
}

.roll-reel > span {
  display: block;
  text-align: center;
}

/* Bands below the hero */
.band {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 48px);
}

.band-rule {
  position: relative;
}

.band-rule::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(20px, 4vw, 48px);
  right: clamp(20px, 4vw, 48px);
  height: 1px;
  background: var(--line);
}

body.home section h2.band-title {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 650;
  letter-spacing: -0.026em;
  line-height: 1.06;
  margin: 0 0 clamp(28px, 3.5vw, 44px);
  text-wrap: balance;
}

/* Sections arrive with the scroll, on the compositor. Without support they are simply there. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
      animation: arrive var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 0 entry 150px;
    }
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* Three screens */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 56px);
}

.step {
  min-width: 0;
}

.step h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.014em;
  line-height: 1.18;
  text-wrap: balance;
}

.step p {
  margin: 0 0 10px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.55;
}

.step p.muted {
  color: var(--muted);
  font-size: 14px;
}

/* What goes wrong */
.trouble {
  margin: 0;
}

.trouble > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px clamp(24px, 3.5vw, 56px);
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.trouble dt {
  font-weight: 600;
}

.trouble dd {
  margin: 0;
  color: var(--soft);
  line-height: 1.5;
}

/* Pricing */
.pricing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(24px, 3vw, 36px);
}

body.home section .pricing-head h2.band-title {
  margin-bottom: 10px;
}

.pricing-blurb {
  margin: 0;
  color: var(--soft);
}

.pricing-lead {
  max-width: 34em;
  margin: 0;
  color: var(--soft);
  line-height: 1.5;
}

.pricing-soon {
  margin: 8px 0 0;
  color: var(--text);
  font-weight: 550;
}

.period {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.period button {
  position: relative;
  z-index: 1;
  min-width: 82px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 200ms ease;
}

.period button:hover:not([aria-checked="true"]) {
  color: var(--text);
}

.period button[aria-checked="true"] {
  color: var(--ink);
  font-weight: 600;
}

.period-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 2);
  border-radius: 6px;
  background: var(--mount);
  transition: transform 420ms var(--spring);
}

#pricing[data-term="year"] .period-thumb {
  transform: translateX(100%);
}

/* Every term's price sits in the same cell; the chosen one shows */
.term-stack {
  display: grid;
}

.term {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 0s linear 120ms;
}

#pricing[data-term="month"] .term[data-term-only="month"],
#pricing[data-term="year"] .term[data-term-only="year"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 240ms ease 60ms, transform 420ms var(--ease-out) 60ms, visibility 0s;
}

.plan .term strong {
  font-weight: inherit;
}

.plan-rate {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 14px;
}

.plan-lead .plan-rate {
  color: var(--ink);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.plan {
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: var(--panel);
  box-shadow: inset 0 1px 0 rgba(247, 241, 229, 0.05);
}

.plan h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.plan .price {
  margin: 0;
  font-family: var(--display);
  font-size: 44px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.026em;
  font-variant-numeric: tabular-nums;
}

.plan .price small {
  margin-left: 2px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

.plan-alt {
  margin: 2px 0 20px;
  font-size: 14px;
}

.plan ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}

.plan li {
  margin: 0 0 7px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.45;
}

.plan-lead {
  border-color: var(--mount);
  background-color: var(--mount);
  color: var(--ink);
}

.plan-lead .muted {
  color: #5d5446;
}

.plan-lead ul {
  border-top-color: rgba(23, 19, 15, 0.18);
}

.plan-lead li {
  color: var(--ink);
}

/* FAQ */
.band-faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 3.5vw, 56px);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 15px 32px 15px 0;
  color: var(--soft);
  list-style: none;
  cursor: pointer;
  font-weight: 550;
  transition: color 160ms ease;
}

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

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

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 3px;
  width: 11px;
  height: 1.5px;
  background: var(--muted);
  transition: transform 240ms var(--ease-out);
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::after {
  transform: rotate(0deg);
}

.faq details p {
  margin: 0;
  padding: 0 32px 16px 0;
  color: var(--soft);
  line-height: 1.55;
}

@supports (interpolate-size: allow-keywords) {
  .faq {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    block-size: 0;
    overflow: hidden;
    opacity: 0;
    transition: block-size 260ms var(--ease-out), opacity 200ms ease, content-visibility 260ms allow-discrete;
  }

  .faq details[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}

/* Presses answer at once */
button:not(:disabled),
.button-link {
  transition: transform 140ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

button:active:not(:disabled),
.button-link:active {
  transform: scale(0.975);
}

button,
a,
summary,
label,
input,
select,
textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* A request is running. It waits a moment, so a quick answer doesn't flicker. */
button[aria-busy="true"] {
  opacity: 0.6;
  cursor: progress;
  transition: opacity 160ms ease 120ms;
}

/* Moving between pages: a short crossfade instead of a blank flash */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root) {
    animation-duration: 120ms;
  }

  ::view-transition-new(root) {
    animation-duration: 180ms;
  }
}

/* Confirmations and sheets arrive quickly and leave faster */
dialog.confirm,
.date-dialog {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 110ms ease, transform 110ms ease, overlay 110ms allow-discrete, display 110ms allow-discrete;
}

dialog.confirm[open],
.date-dialog[open] {
  opacity: 1;
  transform: none;
  transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out), overlay 220ms allow-discrete, display 220ms allow-discrete;
}

@starting-style {
  dialog.confirm[open],
  .date-dialog[open] {
    opacity: 0;
    transform: scale(0.97);
  }
}

dialog.confirm {
  width: min(400px, calc(100vw - 32px));
  padding: 0;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

dialog.confirm form {
  padding: 24px;
}

dialog.confirm::backdrop {
  background: rgba(10, 8, 6, 0.6);
}

dialog.confirm h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

dialog.confirm p {
  margin: 8px 0 0;
  color: var(--soft);
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

.confirm-actions button {
  min-height: 44px;
  padding-inline: 16px;
}

/* Password fields can show what's typed */
.password-field {
  position: relative;
  display: block;
}

.password-field input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 60px;
}

.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  min-width: 56px;
  padding: 0 12px;
  background: none;
  border: 0;
  font-size: 13px;
  color: var(--muted);
}

@media (hover: hover) {
  .password-toggle:hover:not(:disabled) {
    color: var(--text);
  }
}

/* Keyboard hints, where there's a keyboard */
kbd {
  display: none;
  margin-left: 8px;
  font: inherit;
  font-size: 12px;
  opacity: 0.6;
}

@media (hover: hover) and (pointer: fine) {
  kbd {
    display: inline;
  }
}

/* Room codes read in capitals as they're typed */
#room-code:not(:placeholder-shown) {
  text-transform: uppercase;
}

.scroll-mark {
  position: absolute;
  top: 0;
  width: 1px;
  height: 12px;
}

body.home header.site-header {
  background: rgba(20, 17, 14, 0.8);
  background-image: none;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: transparent;
  transition: border-color 200ms ease;
}

body.home header.site-header.scrolled {
  border-bottom-color: var(--line);
}

.site-nav {
  align-items: center;
  font-size: 15px;
}

.site-nav a,
.site-footer a {
  transition: color 160ms ease, border-color 160ms ease;
}

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

.site-nav .nav-signin {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-nav .nav-signin:hover {
  border-color: #5a5144;
}

html {
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Sign in */
body.home main > #auth {
  border-top: 1px solid var(--line);
  max-width: none;
  padding-left: max(20px, calc(50% - 240px));
  padding-right: max(20px, calc(50% - 240px));
  scroll-margin-top: 60px;
}

body.signed-in main > #auth {
  border-top: 0;
}

#auth-form {
  margin-top: 20px;
  gap: 6px;
}

#auth-form label {
  font-size: 14px;
  color: var(--soft);
  margin-top: 8px;
}

.social-signin {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* Apple's and Google's own artwork, at one size. Neither image may be restyled. */
.social-button {
  display: block;
  border-radius: 4px;
  transition: transform 140ms var(--ease-out), opacity 180ms ease;
}

.social-button img {
  display: block;
  width: 198px;
  height: 44px;
  border-radius: 4px;
}

@media (hover: hover) {
  .social-button:hover {
    opacity: 0.9;
  }
}

.social-button:active {
  transform: scale(0.975);
}

.social-button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.social-terms {
  flex-basis: 100%;
  margin: 0;
}

.social-or {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 0;
  color: var(--soft);
  font-size: 14px;
}

.social-or::before,
.social-or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.auth-actions button:not(.link) {
  min-height: 44px;
  padding-inline: 16px;
}

.auth-terms {
  margin: 12px 0 0;
}

button.link {
  background: none;
  border: 0;
  padding: 8px 4px;
  color: var(--soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fine {
  font-size: 13px;
  margin: 12px 0 0;
}

#auth-status,
#create-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--warn);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 48px) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: var(--muted);
}

/* Dashboard */
.dash-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

body.home main > #dashboard {
  max-width: 860px;
  padding-top: 40px;
}

#create-event {
  margin-top: 14px;
}

.notice.banner {
  position: static;
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-size: 15px;
}

.plan-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.plan-state {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.plan-state strong {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.plan-state .muted {
  font-size: 14px;
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* A lapsed subscription: where you stand comes first, above the plan */
.plan-notice {
  flex: 1 0 100%;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  color: var(--soft);
  font-size: 15px;
  text-wrap: pretty;
}

.plan-notice.hidden {
  display: none;
}

.plan-notice::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--warn);
}

.plan-notice strong {
  color: var(--text);
  font-weight: 600;
}

li.event .links button {
  padding: 6px 10px;
}

li.event .links button.danger {
  margin-left: auto;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

li.event .links button.danger:hover:not(:disabled) {
  border-color: var(--line);
  color: var(--danger);
}

.pass-note {
  font-size: 13px;
  margin: 4px 0 8px;
}

/* Control: the add form shares its row with the invite panel */
body.control #upload-form {
  flex-direction: column;
  align-items: stretch;
}

body.control #upload-form input[type="text"],
body.control #upload-form input[type="file"],
body.control #upload-form button {
  flex: none;
  width: 100%;
  min-width: 0;
}

#invite-copy {
  white-space: nowrap;
}

.room-error {
  margin: 8px 0 0;
  color: var(--warn);
  font-size: 14px;
}

.band,
#auth {
  scroll-margin-top: 56px;
}

/* Control: inviting speakers */
section.invite {
  grid-area: invite;
}

.invite-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

#invite-qr {
  width: 132px;
  height: 132px;
  flex: none;
  border-radius: 6px;
  image-rendering: pixelated;
}

.invite-text {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.invite-text .row {
  flex-wrap: wrap;
}

.invite-code {
  font-family: var(--body);
  font-size: 30px;
  font-weight: 650;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--text);
}

.invite-link {
  overflow-wrap: anywhere;
  font-size: 13px;
  color: var(--soft);
}

.button-link {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

/* Projector: waiting screen */
#waiting-join {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 28px;
  max-width: calc(100vw - 48px);
  text-align: left;
}

#waiting-join > div {
  min-width: 0;
}

#waiting-qr {
  flex: none;
  width: min(32vh, 320px);
  height: min(32vh, 320px);
  border-radius: 8px;
  image-rendering: pixelated;
}

#waiting .waiting-lead {
  margin: 0;
  max-width: 16em;
  font-family: var(--display);
  font-size: clamp(24px, 3.4vh, 40px);
  font-weight: 650;
  line-height: 1.1;
  color: var(--text);
}

/* Big enough to read from the back of a room */
#waiting .waiting-code {
  margin: 0.12em 0 0.1em;
  font-family: var(--body);
  font-size: min(13vh, 9vw);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--text);
}

#waiting .waiting-url {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(16px, 2.2vh, 24px);
  color: var(--soft);
}

/* Terms and privacy */
body.legal main {
  display: block;
  max-width: 720px;
  padding: 40px 20px 72px;
}

body.legal h2 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 8px;
}

body.legal h3 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.012em;
  margin: 34px 0 8px;
}

body.legal p,
body.legal li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--soft);
  max-width: 68ch;
}

body.legal ul {
  padding-left: 1.2em;
}

body.legal header {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

/* The logo's material, from the Blender plates: plaster on dark fills, lit pixels on cream.
   Slides stay clean, so nothing here touches the stage or the demo screen. */
body:not(.host),
body header,
section:not(#landing),
.demo,
.plan:not(.plan-lead),
#waiting {
  background-image: var(--tex-grain);
}

button.primary,
.plan-lead {
  background-image: var(--tex-lit);
}

/* Speaker photos are rounded squares, like every small mark. These load after PR 9's rules. */
img.avatar {
  border-radius: 7px;
  background: var(--panel-2);
}

img.avatar.avatar-large {
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 16px;
}

.slot-row img.avatar {
  flex: none;
  margin-right: 0;
}

.slot-row:has(img.avatar) select {
  flex: 1 1 0;
}

/* Profile tab */
#panel-profile {
  max-width: 480px;
}

#panel-profile .profile-photo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}

#panel-profile .profile-photo .row {
  align-items: center;
  margin: 0;
}

#panel-profile #profile-form .row {
  margin-top: 10px;
}

#panel-profile .delete-account {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

#panel-profile .delete-account summary {
  color: var(--muted);
  font-size: 14px;
}

#panel-profile .delete-account summary:hover {
  color: var(--danger);
}

/* Changing the running order: a quiet handle, and arrows for keyboard and touch */
#queue .chip.movable {
  cursor: grab;
}

#queue .chip.movable:active {
  cursor: grabbing;
}

#queue .drag-handle {
  flex: none;
  width: 8px;
  height: 14px;
  background-image: radial-gradient(circle at center, var(--muted) 1px, transparent 1.25px);
  background-size: 4px 4.67px;
  opacity: 0.7;
  transition: opacity 160ms ease;
}

#queue button.move {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

#queue button.move:hover:not(:disabled) {
  border-color: var(--line);
  color: var(--text);
}

#queue button.move:disabled {
  opacity: 0.25;
}

@media (hover: hover) and (pointer: fine) {
  #queue .chip.movable:hover .drag-handle {
    opacity: 1;
  }

  #queue .chip.movable button.move {
    opacity: 0;
    transition: opacity 120ms ease;
  }

  #queue .chip.movable:hover button.move:not(:disabled),
  #queue .chip.movable:focus-within button.move:not(:disabled),
  #queue button.move:focus-visible {
    opacity: 1;
  }

  #queue .chip.movable:hover button.move:disabled,
  #queue .chip.movable:focus-within button.move:disabled {
    opacity: 0.25;
  }
}

/* Remove stays quiet until it's wanted, like the plan page and dashboard */
#queue .chip button.danger {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

#queue .chip button.danger:hover:not(:disabled) {
  border-color: var(--line);
  color: var(--danger);
}

/* Queue rows wrap inside their panel instead of crowding the name */
#queue .chip {
  flex-wrap: wrap;
}

#queue .chip .grow {
  flex: 1 1 200px;
}

@media (max-width: 860px) {
  body.control main {
    grid-template-columns: minmax(0, 1fr);
  }

  #queue .chip .grow .title {
    white-space: normal;
  }
}

/* Applied by control.js while dragging, once it sets these classes */
#queue .chip.dragging {
  opacity: 0.45;
}

#queue .chip.drop-before {
  box-shadow: 0 -2px 0 var(--mount);
}

#queue .chip.drop-after {
  box-shadow: 0 2px 0 var(--mount);
}

@media (max-width: 600px) {
  .plan-actions,
  .plan-actions .buy select {
    width: 100%;
  }

  .plan-actions .buy {
    flex: 1 0 100%;
  }

  .plan-actions button {
    flex: 1 1 0;
    white-space: nowrap;
  }
}

/* Small screens */
@media (max-width: 900px) {
  .hero,
  .steps,
  .plans,
  .band-faq,
  .trouble > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: 0;
  }

  .demo {
    max-width: 560px;
    margin: 0;
  }
}

@media (max-width: 900px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body.speaking-page #who {
    display: none;
  }

  .site-nav a:not(.nav-signin) {
    display: none;
  }

  .room-form label {
    font-size: 13px;
  }

  .room-form input[type="text"] {
    width: 86px;
  }

  #waiting-join {
    flex-direction: column;
    text-align: center;
  }

  .invite-body {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
  }
}

/* Board */
body.board header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

body.board header h1 {
  font-family: var(--display);
  font-size: 19px;
  margin: 0;
}

body.board section {
  background: var(--panel);
  border: 0;
}

/* Speaker page: mostly used one-handed on a phone */
body.join main {
  display: block;
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

body.join section {
  background: transparent;
  border: 0;
  padding: 0;
}

body.join section h2 {
  text-transform: none;
  letter-spacing: -0.02em;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 8px;
}

body.join form {
  margin-top: 18px;
}

body.join #upload-form {
  flex-direction: column;
  align-items: stretch;
}

body.join input[type="text"],
body.join input[type="file"],
body.join #upload-form input[type="text"],
body.join #upload-form input[type="file"] {
  flex: none;
  width: 100%;
  min-width: 0;
  padding: 12px;
  font-size: 16px;
}

body.join button.primary {
  width: 100%;
  padding: 13px;
  font-size: 17px;
}

body.join .auth-actions button.primary {
  width: auto;
  padding: 8px 16px;
  font-size: inherit;
}

body.join .row {
  display: block;
  margin-top: 4px;
}

#join-status,
#upload-status {
  margin-top: 12px;
}

#queue-status {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  background: var(--lamp);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

li.event .code {
  font-family: var(--body);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

input[type="number"] {
  font: inherit;
  color: inherit;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

/* The plan and billing period in the plan bar */
.plan-actions .buy select {
  max-width: 100%;
}

/* Planning: the organizer's calendar and the speaker's extra steps */
select,
input[type="date"],
input[type="time"],
input[type="number"] {
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  font: inherit;
  max-width: 100%;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--lamp);
}
#queue-status {
  margin-bottom: 1.5rem;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.6rem 0 0.2rem;
}
.field-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--soft);
}
.plan-block {
  margin-bottom: 1.5rem;
}

/* Join: a speaker's status, then steps of equal weight */
#upload-step #queue-status:not(:empty) {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

#upload-step #queue-status .position {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

#upload-step h2 {
  margin: 0 0 10px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

#upload-step .plan-block {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

#upload-step #plan-link {
  padding-bottom: 0;
  border-bottom: 0;
}

#upload-form {
  margin-bottom: 20px;
}
.plan-block select {
  width: 100%;
}
body.plan-page main {
  display: block;
  max-width: 760px;
  margin-inline: auto;
}
body.plan-page section {
  margin-bottom: 1.5rem;
}
.window-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
}
.window-form label {
  display: grid;
  gap: 0.3rem;
  color: var(--soft);
}
.window-form input[type="number"] {
  width: 7rem;
}
.readiness {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.slot-day {
  margin: 1.25rem 0 0.5rem;
}
.slot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.slot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
}
.slot-time {
  min-width: 5.5rem;
  font-variant-numeric: tabular-nums;
}
.slot-row select {
  flex: 1 1 10rem;
  min-width: 0;
}
.slot-deck {
  flex: 0 0 auto;
}
.slot-row button {
  margin-left: auto;
  padding: 5px 8px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}

.slot-row button:hover:not(:disabled) {
  border-color: var(--line);
  color: var(--danger);
}

/* On phones: time, photo and speaker on one line, deck status and Remove on the next */
@media (max-width: 600px) {
  .slot-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .slot-row:has(img.avatar) {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .slot-row .slot-deck {
    grid-column: 1 / -2;
    grid-row: 2;
    white-space: nowrap;
  }

  .slot-row button {
    grid-column: -2 / -1;
    grid-row: 2;
    justify-self: end;
    margin-left: 0;
  }
}

/* Speaking: a speaker's schedule and calendar */
textarea {
  width: 100%;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  font: inherit;
  resize: vertical;
}
.dash-links {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.details-form {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}
.details-form label {
  display: grid;
  gap: 0.3rem;
  width: 100%;
  color: var(--soft);
}
.event-where {
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.event-details,
.talk-notes {
  white-space: pre-line;
  margin: 0 0 0.75rem;
}
body.speaking-page main {
  display: block;
  max-width: 880px;
  margin-inline: auto;
}
.speaking-nav {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  white-space: nowrap;
}
body.speaking-page section {
  padding: 0;
  background: none;
  border: 0;
}
body.speaking-page #who {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#signin-form input {
  width: 100%;
}
#signin-form .field-label {
  margin-top: 14px;
  font-size: 14px;
}
#signin-form .field-label:first-child {
  margin-top: 0;
}
body.plan-page header .button-link {
  flex: 0 0 auto;
  width: auto;
  margin-left: auto;
}
body.speaking-page .month-bar h2 {
  color: var(--text);
  font-size: 1.25rem;
  letter-spacing: 0;
  text-transform: none;
}
.speaking-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.tabs button {
  background: transparent;
  border-color: transparent;
}
.tabs button:not([aria-selected="true"]) {
  color: var(--muted);
}

.tabs button[aria-selected="true"] {
  background: var(--mount);
  border-color: var(--mount);
  color: var(--ink);
  font-weight: 600;
}
.talks {
  display: grid;
  gap: 0.75rem;
}
.talks-title {
  margin: 1.5rem 0 0.75rem;
}
#past {
  margin-top: 1.5rem;
}
#past summary {
  cursor: pointer;
  color: var(--soft);
  margin-bottom: 0.75rem;
}
.talk {
  padding: 1rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.talk h3 {
  margin: 0 0 0.35rem;
}
.talk-when {
  margin: 0 0 0.35rem;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}
.talk-where {
  margin: 0 0 0.35rem;
}
.talk-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}
.talk-facts:last-child {
  margin-bottom: 0;
}
.empty-note {
  margin: 0;
  padding: 1rem 0;
}
.month-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.month-bar h2 {
  margin: 0;
}
.month-moves {
  display: inline-flex;
  gap: 0.4rem;
}
.month-grid {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}
.month-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.month-week + .month-week {
  border-top: 1px solid var(--line);
}
.month-head {
  padding: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}
button.month-day {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.25rem;
  min-width: 0;
  min-height: 6.25rem;
  padding: 0.4rem;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
}
button.month-day:first-child {
  border-left: 0;
}
button.month-day:hover:not(:disabled) {
  background: var(--panel-2);
}
button.month-day:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: -2px;
}
button.month-day.other-month {
  color: var(--muted);
}
button.month-day.selected {
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px #5a5144;
}
.month-number {
  display: inline-grid;
  place-items: center;
  align-self: flex-start;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 7px;
  font-variant-numeric: tabular-nums;
}
.month-day.today .month-number {
  color: var(--ink);
  background: var(--lamp);
  font-weight: 600;
}
.month-chips {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.month-chip,
.month-more {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.75rem;
}
.month-chip {
  padding: 0.1rem 0.3rem;
  color: var(--ink);
  background: var(--lamp);
  border-radius: 4px;
}
.month-chip.own {
  color: var(--text);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--muted);
}
.month-more {
  color: var(--muted);
}
.month-dots {
  display: none;
  gap: 0.2rem;
}
.month-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--lamp);
}
.month-dot.own {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--soft);
}
.day-panel {
  margin-top: 1.25rem;
}
.day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.day-head h3 {
  margin: 0;
}
.date-dialog {
  width: min(32rem, calc(100vw - 2rem));
  padding: 1.25rem;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.date-dialog::backdrop {
  background: rgb(0 0 0 / 0.6);
}
.date-dialog h2 {
  margin: 0 0 1rem;
}
#date-form {
  display: grid;
  gap: 0.75rem;
}
#date-form label {
  display: grid;
  gap: 0.3rem;
  color: var(--soft);
}
.date-times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.date-times label {
  flex: 1 1 8rem;
}
.date-times input {
  width: 100%;
}
@media (max-width: 640px) {
  button.month-day {
    align-items: center;
    min-height: 3.25rem;
    padding: 0.25rem 0;
  }
  .month-number {
    align-self: center;
  }
  .month-chips {
    display: none;
  }
  .month-dots {
    display: inline-flex;
  }
}

/* Speaker profiles: a name and a photo, seen by hosts */
.avatar {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}
.avatar-large {
  width: 5rem;
  height: 5rem;
  margin: 0 0 0.75rem;
}
.avatar.hidden {
  display: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.profile-photo .row label {
  cursor: pointer;
}
input.visually-hidden:focus-visible + label {
  outline: 2px solid var(--lamp);
}
#profile-form input {
  width: 100%;
}
.delete-account {
  margin-top: 2rem;
}
.delete-account summary {
  cursor: pointer;
  color: var(--soft);
}

/* Changing the running order */
.chip.movable {
  cursor: grab;
}
.drag-handle {
  flex: 0 0 auto;
  width: 0.6rem;
  height: 1.1rem;
  background-image: radial-gradient(var(--muted) 1px, transparent 1px);
  background-size: 0.3rem 0.3rem;
}
button.move {
  padding-inline: 0.6rem;
}
