:root {
  color-scheme: light;
  --ink: #2f2f2f;
  --black: #252423;
  --orange: #ff832f;
  --orange-strong: #ff7518;
  --peach: #ffc7a1;
  --soft: #fff1e8;
  --paper: #faf8f6;
  --white: #fff;
  --muted: #615953;
  --line: #e7ded7;
  --radius: 15px;
  --body: "Avenir Next", Avenir, system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 500 1rem/1.55 var(--body); }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
button { color: inherit; border: 1px solid transparent; border-radius: 8px; padding: .6rem .9rem; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--orange-strong); outline-offset: 3px; }
.primary { background: var(--orange); color: var(--black); font-weight: 750; }
.primary:not(:disabled):hover { background: var(--peach); }
.quiet { background: var(--white); border-color: var(--line); font-weight: 650; }
.quiet:not(:disabled):hover { background: var(--soft); border-color: var(--peach); }
button[aria-pressed="true"].quiet { background: var(--soft); border-color: var(--orange); color: var(--black); }
h1, h2, h3, p, figure, dl, dd, blockquote { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
h1 { font-size: clamp(2.35rem, 4.15vw, 4.2rem); font-weight: 820; letter-spacing: -.065em; }
h2 { font-size: 1.35rem; font-weight: 780; letter-spacing: -.035em; }
h3 { font-size: .94rem; font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted, .micro { color: var(--muted); }
.micro { font-size: .875rem; }
.eyebrow { text-transform: uppercase; font-size: .78rem; letter-spacing: .14em; font-weight: 820; color: #983d04; }

.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; min-height: 74px; padding: .75rem 2rem; background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: .72rem; text-decoration: none; font-size: 1.18rem; line-height: 1; font-weight: 820; letter-spacing: -.03em; }
.brand small { display: block; margin-top: .28rem; color: var(--muted); font-size: .58rem; font-weight: 850; letter-spacing: .14em; }
.mark { display: flex; width: 39px; height: 39px; align-items: end; justify-content: center; gap: 3px; padding-bottom: 10px; background: var(--orange); border-radius: 9px; }
.mark i { display: block; width: 4px; background: var(--black); border-radius: 2px; height: 7px; }
.mark i:nth-child(2) { height: 12px; }
.mark i:nth-child(3) { height: 18px; }
.topnav, .top-actions { display: flex; gap: .5rem; align-items: center; }
.top-actions { justify-content: end; grid-column: -2; }
.nav-button { background: transparent; font-weight: 720; color: var(--muted); }
.nav-button[aria-pressed="true"] { background: var(--soft); color: #823602; }
.status { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; font-size: .83rem; font-weight: 700; color: var(--muted); }
.status i { display: inline-block; width: .5rem; height: .5rem; border: 1px solid currentColor; border-radius: 50%; }
.status.is-live { color: #8c3a04; }
.status.is-live i { background: var(--orange-strong); color: var(--orange-strong); }

.workspace { max-width: 1440px; min-height: calc(100dvh - 74px); margin-inline: auto; }
.agenda-slide, .jump-list { list-style: none; margin: 0; padding: 0; }
.agenda-slide button, .agenda-entry { display: flex; width: 100%; text-align: left; align-items: baseline; background: transparent; gap: .62rem; }
.agenda-slide span, .jump-list span { font: 600 .77em var(--mono); color: var(--muted); }
.agenda-slide button:hover { background: var(--soft); }
.workspace-main { padding: 1.8rem clamp(1rem, 2.5vw, 2.6rem) 2rem; min-width: 0; }
.workbar { display: flex; min-height: 2rem; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.breadcrumbs { font-size: .87rem; font-weight: 750; }
.breadcrumbs span { color: var(--muted); }
.workgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, .41fr); gap: clamp(.8rem, 2vw, 1.5rem); align-items: start; }
.canvas-column { min-width: 0; }
.slide { min-height: min(62vh, 650px); display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; padding: clamp(1.5rem, 3.9vw, 4rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.slide-intro { max-width: 67ch; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.35rem); }
.slide-note { border-left: 3px solid var(--orange); background: var(--soft); padding: .74rem .9rem; width: 100%; }
.slide-points { padding-left: 1.4em; margin: 0; display: grid; gap: .55em; }
.slide-points li::marker { color: #a74507; }
.cover { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; background: var(--ink); color: var(--white); border: 0; }
.cover-copy { padding: clamp(1.65rem, 3.3vw, 3.75rem); display: flex; flex-direction: column; gap: 1rem; justify-content: center; height: 100%; }
.cover .eyebrow { color: var(--peach); }
.cover h1 { max-width: 12ch; font-size: clamp(2.8rem, 5vw, 5.8rem); letter-spacing: -.075em; line-height: .98; }
.cover h1 span { display: block; color: var(--orange); }
.cover-copy > p:not(.eyebrow) { max-width: 39ch; color: #f3ece7; }
.cover-meta { display: flex; flex-wrap: wrap; gap: .65rem 1rem; padding-top: .35rem; font-size: .84rem; color: var(--peach); font-weight: 700; }
.cover-meta span + span::before { content: ""; display: inline-block; width: .33em; height: .33em; vertical-align: middle; border-radius: 50%; margin-right: .8rem; background: var(--orange); }
.cover-figure { position: relative; height: 100%; overflow: hidden; min-height: 180px; isolation: isolate; background: linear-gradient(145deg, var(--peach), var(--orange-strong)); }
.cover-figure img { display: block; width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.cover-figure figcaption { position: absolute; right: .65rem; bottom: .55rem; padding: .1rem .33rem; border-radius: 3px; background: var(--black); font-size: .72rem; color: var(--white); }
@media (min-width: 1350px) {
  .workspace .cover { grid-template-columns: 1.08fr .92fr; }
}
.follow-footer { display: flex; align-items: center; min-height: 65px; justify-content: space-between; gap: .65rem; font-size: .9rem; }
.follow-footer > span { color: var(--muted); font-family: var(--mono); white-space: nowrap; }
.follow-footer { color: var(--muted); }
.tools-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.28rem; min-width: 0; }
.panel-title { display: flex; align-items: center; gap: .5rem; margin-bottom: .85rem; }
.panel-title h2 { font-size: 1.12rem; }
.panel-icon { color: #8c3a04; background: var(--soft); border-radius: 6px; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; font-size: 1rem; }
.tools-panel h3 { margin: 1.2rem 0 .5rem; }
.tools-panel > p { font-size: .92rem; }
.library-button { width: 100%; margin-top: 1rem; font-size: .85rem; }
.resource { border-block-start: 1px solid var(--line); min-width: 0; }
.resource:last-of-type { border-block-end: 1px solid var(--line); }
.resource summary { padding: .68rem .05rem; cursor: pointer; font-size: .9rem; font-weight: 720; }
.resource summary::marker { color: #983d04; }
.resource-body { padding: 0 0 .75rem; }
.resource-body > p { font-size: .9rem; margin: .45rem 0; }
.resource pre { margin: .08rem 0 .45rem; padding: .72rem; background: var(--paper); border-radius: 6px; font: 500 .82rem/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.copy { font-size: .8rem; padding: .28rem .62rem; }
.manual-copy { display: block; width: 100%; min-height: 5rem; margin-top: .35rem; }
.library { padding: 2.2rem clamp(1rem, 4vw, 4rem); min-width: 0; }
.library h1 { margin: .55rem 0 .7rem; }
.library-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.3rem; }
.library-columns section { padding: clamp(1rem, 2.5vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.library-columns h2 { margin: 0 0 1rem; }
.library-columns h2:not(:first-child) { margin-top: 1.5rem; }
.library-columns section > p { margin-bottom: 1rem; color: var(--muted); }

.agenda-slide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: .45rem 1rem; }
.agenda-slide button, .agenda-entry { padding: .48rem; border-bottom: 1px solid var(--line); border-radius: 6px; }
.steps { display: grid; width: 100%; }
.steps > div { display: grid; grid-template-columns: 2.1ch minmax(9ch, .46fr) 1fr; align-items: baseline; gap: .65em; padding: .53em 0; border-bottom: 1px solid var(--line); }
.steps > div > span { color: #983d04; font: 650 .78em var(--mono); }
.steps dt { font-weight: 820; }
.steps dd { color: var(--muted); }
blockquote { border-left: 3px solid var(--orange); padding: .6em .8em; background: var(--soft); white-space: pre-line; font-size: 1.04em; }
.choices { display: flex; align-items: baseline; gap: .38rem; flex-wrap: wrap; }
.choices button { padding: .38em .66em; font-size: .86em; }
.compare { display: grid; width: 100%; gap: .75rem; }
.example { width: 100%; padding: .9em 1em; background: var(--soft); border-radius: 8px; }
.example small { display: block; color: #983d04; font-weight: 760; font-size: .78em; }
.example strong { display: block; margin: .16em 0; font-size: 1.24em; line-height: 1.2; }
.example p { color: var(--muted); }
.reveal { width: 100%; border-left: 3px solid var(--orange); padding: .5em; background: var(--soft); }
.reveal-button { font-size: .86em; }
.checklist { padding: 0; border: 0; margin: 0; display: grid; gap: .55rem; }
.checklist label { display: flex; align-items: baseline; gap: .55rem; cursor: pointer; }
input[type="checkbox"] { accent-color: var(--orange-strong); }
.poll { width: 100%; display: grid; gap: .5rem; }
.poll-line { display: grid; grid-template-columns: minmax(7em, 1fr) minmax(0, 2fr) auto; align-items: center; gap: .5em; }
.poll-line > :first-child { text-align: left; }
.poll-line button[aria-pressed="true"] { opacity: 1; }
progress { width: 100%; accent-color: var(--orange-strong); }
.poll-meta { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; font-size: .8em; }
.timer { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.timer time { color: var(--ink); font-size: 1.7em; font-weight: 800; font-variant-numeric: tabular-nums; }
.timer button { font-size: .75em; margin-right: .4rem; }
.slide--break { justify-content: center; background: var(--soft); }
.slide--break time { font-size: clamp(3rem, 12vw, 8rem); letter-spacing: -.06em; line-height: 1; }
.exit-ticket { display: grid; gap: .65rem; width: 100%; }
.exit-ticket label, #join-form label { font-weight: 720; }
textarea, input:not([type="checkbox"]), select { padding: .48rem .64rem; color: var(--ink); background: white; border: 1px solid #b9a99e; border-radius: 6px; }
.exit-ticket textarea { display: block; width: 100%; margin-top: .26rem; resize: vertical; }
.exit-ticket select { margin-left: .4rem; }

.projector { display: grid; min-height: 100dvh; min-width: 0; }
.projector .slide { min-height: 100%; border: 0; border-radius: 0; font-size: clamp(1.1rem, min(2.05vw, 3.45vh), 2rem); color: var(--ink); padding: clamp(1.45rem, min(4.2vw, 6vh), 4.5rem); gap: .5em; }
.projector .slide h1 { max-width: 24ch; font-size: clamp(2.6rem, min(6vw, 10vh), 6.5rem); }
.projector .slide-intro { font-size: 1em; max-width: 55ch; }
.projector .eyebrow { font-size: .62em; }
.projector .cover { color: var(--white); padding: 0; gap: 0; grid-template-columns: 1.05fr 1fr; }
.projector .cover-copy { padding: clamp(1.5rem, 5vw, 5rem); }
.projector .cover h1 { max-width: 11ch; font-size: clamp(3.2rem, min(8vw, 13vh), 9rem); }
.projector .cover-meta { font-size: .7em; }
.projector .cover-figure { min-height: 100%; }
.projector .cover-figure img { position: absolute; inset: 0; }
.projector .slide--checklist .slide-points { grid-template-columns: repeat(2, 1fr); gap: .7em 1.25em; }
.projector .slide-points { gap: .4em; }
.projector blockquote { line-height: 1.34; }
.projector .steps { max-width: 75ch; }
.projector .compare, .projector .poll { max-width: 68ch; }
.projector .agenda-slide { max-width: 72ch; }
dialog { width: min(92vw, 570px); max-height: 84dvh; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--white); }
dialog::backdrop { background: #211914a6; }
.dialog-inner { padding: 1.4rem; display: grid; gap: .8rem; }
.dialog-inner h2 { padding-right: 4.5rem; }
.close { position: absolute; top: .65rem; right: .65rem; padding: .36rem .65rem; font-size: .83rem; }
.jump-list { display: grid; gap: .3rem; }
.jump-list button { width: 100%; text-align: left; }
.jump-list button[aria-current] { background: var(--soft); border-color: var(--orange); }
.jump-list span { margin-right: .6rem; }
@media (max-width: 900px) {
  .workgrid { grid-template-columns: minmax(0, 1fr); }
  .workspace .cover { grid-template-columns: 1fr .85fr; }
}
@media (max-width: 680px) {
  .topbar { display: flex; flex-wrap: wrap; gap: .55rem; padding: .55rem .8rem; justify-content: space-between; min-height: 0; }
  .topnav { margin: 0 auto; min-width: 0; }
  .top-actions .status { display: none; }
  .workspace { display: block; min-height: 0; }
  .workspace-main { padding: .7rem .8rem 1.4rem; }
  .workbar { margin-bottom: .55rem; }
  .workspace .cover { grid-template-columns: 1fr; }
  .cover-figure { height: 210px; }
  .slide { min-height: 0; gap: .8rem; }
  .agenda-slide { grid-template-columns: 1fr; }
  .library { padding: 1.4rem .8rem; }
  .library-columns { grid-template-columns: 1fr; }
  .steps > div { grid-template-columns: 2ch 1fr; }
  .steps dd { grid-column: 2; }
  .projector .cover { grid-template-columns: 1fr; }
  .projector .cover-figure { min-height: 180px; }
  .projector .slide--checklist .slide-points { grid-template-columns: 1fr; }
}
@media (max-width: 370px) {
  .topnav { order: 3; margin: 0; width: 100%; }
  .projector .slide h1 { font-size: 2.3rem; }
}

@media (min-width: 681px) {
  .projector .slide--reveal {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-content: start;
    align-items: start;
    gap: .38em 1em;
    padding: clamp(1.2rem, min(3vw, 4vh), 3.2rem);
    font-size: clamp(1.03rem, min(1.57vw, 2.65vh), 1.54rem);
  }
  .projector .slide--reveal > :is(.eyebrow, h1, .slide-intro) { grid-column: 1 / -1; }
  .projector .slide--reveal h1 { font-size: clamp(2.45rem, min(5.25vw, 8vh), 5rem); }
  .projector .slide--reveal blockquote { grid-column: 1 / -1; max-width: 77ch; }
  .projector .slide--reveal:has(.reveal) blockquote { grid-column: 1; }
  .projector .slide--reveal:has(.reveal) .reveal { grid-column: 2; }
  .projector .slide--reveal .reveal-button { justify-self: start; }
  .projector .slide--reveal .timer { grid-column: 2; gap: .48em; }
  .projector .slide--reveal .timer time { font-size: 1.25em; }
}
@media (min-width: 1350px) {
  .workspace .cover h1 { font-size: clamp(3.2rem, 4.4vw, 5.3rem); }
  .workspace .cover h1 span { white-space: nowrap; }
}
@media (max-width: 680px) {
  .top-actions .status { display: inline-flex; }
  .topbar .top-actions { gap: .35rem; }
  .topbar .status { font-size: .73rem; }
}

.presenter-login { min-height: 100dvh; display: grid; place-items: center; padding: 1rem; }
.presenter-login-card { width: min(100%, 440px); padding: clamp(1.4rem, 5vw, 2.5rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.presenter-login-card h1 { font-size: clamp(2rem, 6vw, 3rem); margin: .55rem 0 1.4rem; }
.presenter-login-card form { display: grid; gap: .65rem; margin-bottom: 1.1rem; }
.presenter-login-card input { width: 100%; }
.presenter-login-card a, #password-error { color: #983d04; }
