:root {
  color-scheme: dark;
  --gold: #eed19b;
  --ink: #fbf4e7;
  --muted: #bac8c6;
  --border: #44615d;
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: #101c1e; }
button, input { font: inherit; }
button, input {
  border: 1px solid var(--border);
  border-radius: .6rem;
  padding: .65rem .9rem;
  color: var(--ink);
  background: #152626;
  min-height: 46px;
}
button { cursor: pointer; }
button:hover, button[aria-pressed="true"] { border-color: var(--gold); }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
a { color: var(--gold); }
h1, h2, .greeting { font-family: Georgia, serif; font-weight: normal; }
h1, h2, p { margin: 0; }
.studio { min-height: 100vh; background: radial-gradient(ellipse at 22% 8%, #203c36, #101c1e 57%); }
.top, .shell { max-width: 1150px; padding-inline: clamp(1rem, 5vw, 3rem); margin-inline: auto; }
.top { display: flex; justify-content: space-between; align-items: center; min-height: 76px; border-bottom: 1px solid #314541; }
.brand, .eyebrow { color: var(--gold); letter-spacing: .19em; text-transform: uppercase; }
.brand { font-family: Georgia, serif; white-space: nowrap; }
.eyebrow { font-size: .875rem; }
.hero { padding: 2.7rem 0 1.7rem; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1.04; margin-block: .45rem .75rem; }
.hero > p:last-child, .muted, footer span { color: var(--muted); }
.grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1rem; }
.card { background: #172827; border: 1px solid #3a5450; border-radius: 1rem; padding: clamp(1rem, 3vw, 1.6rem); }
.login { max-width: 25rem; }
h2 { font-size: 1.7rem; line-height: 1.15; }
.row, .controls, footer { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; justify-content: space-between; }
.quiet { background: transparent; }
.badge { border: 1px solid var(--border); border-radius: 2rem; padding: .35rem .7rem; font-size: .88rem; }
.badge.online { color: #c8edcc; border-color: #689577; }
.muted { margin: .65rem 0 1rem; }
.appointments { display: grid; gap: .55rem; }
.appointment { text-align: left; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; }
.appointment strong { color: var(--gold); font-weight: 600; }
.appointment small { color: var(--muted); font-size: .875rem; }
.calendar { margin-top: 1rem; }
label { display: block; margin: .7rem 0 .3rem; }
input { width: 100%; font-size: 1rem; }
.primary { background: var(--gold); color: #241b11; font-weight: 650; border-color: var(--gold); width: 100%; margin-top: 1rem; }
.primary:hover { background: #ffe4b4; }
.controls { margin-top: .75rem; justify-content: start; }
#message, .error { color: #ffdbba; margin-top: .65rem; }
#message:empty, .error:empty { display: none; }
footer { padding: 1.2rem 0; }
@media (max-width: 700px) { .grid { grid-template-columns: 1fr; } }
.projection { background: #000; overflow: hidden; }
.forest, #winter-video, #shade { position: fixed; inset: 0; width: 100%; height: 100%; }
.forest { background: #102e37 url('/winterwald-beamer-start.jpg') center center / cover no-repeat; }
#winter-video { object-fit: cover; opacity: 0; }
#winter-video.video-ready { opacity: 1; }
#shade { background: radial-gradient(ellipse at center, #07151b77, transparent 65%); pointer-events: none; opacity: 0; transition: opacity 1s; }
.show-welcome #shade { opacity: 1; }
.welcome { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 5vw; text-shadow: 0 2px 20px #000, 0 2px 8px #000; }
.welcome h1 { color: #ffe1a4; font-size: clamp(2.4rem, 8vw, 8rem); line-height: 1.05; max-width: 100%; overflow-wrap: anywhere; margin: .2em 0 .3em; }
.welcome .greeting { font-size: clamp(1.2rem, 3vw, 3rem); margin-top: 1rem; }
.welcome .eyebrow { font-size: clamp(.75rem, 1.65vw, 1.4rem); }
.dark .forest, .dark #winter-video, .dark #shade { visibility: hidden; }
.pair { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(90vw, 24rem); }
.fullscreen { position: fixed; right: 1rem; bottom: 1rem; opacity: .35; background: #0b1619; color: #fff; }
.fullscreen:hover, .fullscreen:focus { opacity: 1; }
.dark .fullscreen { opacity: 0; }
.dark .fullscreen:focus { opacity: 1; }
@media (prefers-reduced-motion: reduce) { #shade { transition: none; } }
