@font-face { font-family: Fraunces; src: url('/assets/fraunces.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Fraunces; src: url('/assets/fraunces-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: Manrope; src: url('/assets/manrope.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #fbf6ea;
  --ink: #2b2a22;
  --muted: #625e51;
  --clay: #93472f;
  --line: #ded4bf;
  --olive: #333c2d;
  --sans: Manrope, system-ui, sans-serif;
  --serif: Fraunces, Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--sans); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .25em; }
button { min-height: 48px; padding: .65rem 1rem; border: 1px solid transparent; border-radius: .35rem; background: var(--olive); color: #fffaf0; font-weight: 750; cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
button.secondary { background: transparent; border-color: var(--line); color: var(--ink); }
button[aria-pressed='true'] { background: var(--clay); color: white; border-color: var(--clay); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 440; line-height: 1.07; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 11vw, 6.4rem); text-wrap: balance; }
h1 em { font-weight: inherit; color: var(--clay); }
.small-title { font-size: clamp(2.2rem, 7vw, 4.1rem); }
h2 { font-size: clamp(1.65rem, 4vw, 2.2rem); }
.center { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; justify-items: center; padding: max(1.8rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) max(1.8rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left)); }
.paper { max-width: 46rem; width: 100%; text-align: center; }
.lead { font-size: clamp(1.08rem, 2.6vw, 1.35rem); margin: 1.2rem auto 0; max-width: 34ch; text-wrap: pretty; }
.muted { color: var(--muted); max-width: 37ch; margin: .8rem auto 0; }
.notice { color: var(--clay); margin: .9rem 0 0; font-weight: 700; }
.actions { margin: 1.6rem auto 0; display: grid; justify-items: center; gap: .45rem; }
.quiet { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .4rem .55rem; background: transparent; color: var(--muted); font-weight: 650; text-decoration: underline; text-underline-offset: .25em; }
.scene { position: fixed; inset: 0; overflow: hidden; background: #13140f; }
.scene video, .scene img, .mask { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene video, .scene img { object-fit: contain; }
.mask { pointer-events: none; }
.solo-tools { position: absolute; inset: auto max(.9rem, env(safe-area-inset-right)) max(.9rem, env(safe-area-inset-bottom)) max(.9rem, env(safe-area-inset-left)); display: flex; justify-content: center; gap: .55rem; }
.solo-tools button { background: var(--paper); color: var(--ink); }
#solo-reflection button { margin-top: 1.5rem; }
.finale-lines { display: grid; grid-template-areas: 'lines'; justify-items: center; padding: 2rem 0; }
.finale-lines h1 { grid-area: lines; align-self: center; font-size: clamp(2.35rem, 9.5vw, 5.2rem); transform: translateY(27%); transition: transform 950ms ease; }
.finale-lines p { grid-area: lines; align-self: center; max-width: 26ch; font: 400 clamp(1.25rem, 4.7vw, 2.25rem)/1.1 var(--serif); color: var(--muted); transform: translateY(-2.6em); transition: opacity 750ms ease; }
.finale-lines .gone { opacity: 0; }
.finale-lines .gone + h1 { transform: none; }
#login { display: grid; gap: .85rem; max-width: 24rem; margin: 1.8rem auto 0; text-align: left; }
#login input { min-width: 0; min-height: 48px; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: .3rem; background: #fffdf6; color: var(--ink); }
.dashboard { width: min(100% - 2rem, 65rem); margin: 0 auto; padding: 2rem 0 3rem; }
.dashboard-top, .section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .65rem; }
.dashboard-grid { margin-top: 1.25rem; display: grid; gap: 1rem; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: .45rem; padding: clamp(1rem, 3.2vw, 1.7rem); background: #fffbf1; }
#no-session { margin-top: 1.4rem; }
#no-session button { margin-top: 1rem; }
.counts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin: 1rem 0; }
.counts p { display: grid; }
.counts strong { font: 480 2.4rem/1 var(--serif); }
.counts span { color: var(--muted); }
summary { cursor: pointer; min-height: 44px; font-weight: 700; }
.join img { display: block; width: min(100%, 16rem); height: auto; margin: .35rem auto .7rem; border: 1px solid var(--line); }
.join > details > a { display: block; text-align: center; }
.share-tools, .session-tools { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem; }
#phase { color: var(--clay); font-weight: 750; }
.phase-buttons { display: grid; gap: .55rem; margin: 1.15rem 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings { display: grid; gap: .5rem; padding: .85rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.settings label { display: flex; justify-content: space-between; gap: .55rem; font-weight: 750; }
.settings output { white-space: nowrap; }
.settings input { width: 100%; min-height: 36px; accent-color: var(--clay); }
.session-tools { padding-top: .55rem; }
@media (min-width: 48rem) { .dashboard-grid { grid-template-columns: minmax(17rem, .75fr) minmax(0, 1.25fr); } }
@media (max-width: 23rem) { .phase-buttons { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .finale-lines h1, .finale-lines p { transition: none; } }
