@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-wght-normal.woff2) format('woff2');
  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: Oswald;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/oswald-latin-wght-normal.woff2) format('woff2');
  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;
}

:root {
  --night: #170d0f;
  --night-glow: #2a1a1b;
  --night-ink: #f6ecdd;
  --night-faint: #bfae9d;
  --paper: #f8f0e2;
  --paper-face: #fbf7ee;
  --paper-script: #fdf9f0;
  --rule: #eadfc9;
  --rule-script: #e9dec9;
  --rule-dashed: #dccdb1;
  --rule-soft: #cdbb9b;
  --tick: #dccdb0;
  --ink: #2a1c1a;
  --ink-body: #4d3f38;
  --ink-soft: #5d4f47;
  --ink-muted: #6b5a4d;
  --ink-faint: #a39480;
  --accent: #7c3340;
  --accent-ink: #fbf3e6;
  --accent-shadow: rgb(124 51 64 / .6);
  --green: #4a7c59;
  --green-ink: #3f6b4c;
  --focus: #d9a3aa;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --label: Oswald, 'Arial Narrow', sans-serif;
  --zigzag: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
p, h1, h2, h3, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--ink-body); text-decoration: none; }
a:hover { color: var(--ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

body.c-page {
  min-height: 100vh;
  margin: 0;
  padding: 0 16px 96px;
  padding-top: env(safe-area-inset-top, 0px);
  background: radial-gradient(ellipse 70% 45% at 50% 100%, var(--night-glow) 0%, var(--night) 75%) fixed var(--night);
  color: var(--night-ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.c-page[data-scene] { background: var(--scene-color); }
.c-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.c-scene > .reader-backdrop { animation: c-scene-in .45s ease-out both; }
@keyframes c-scene-in { from { opacity: 0; } }

.c-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1192px; margin: 0 auto; padding: 15px 0 31px; }
.c-brand { color: var(--night-ink); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.c-brand:hover { color: var(--night-ink); }
.c-account { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.c-signin { height: 44px; padding: 0 20px; border: 1px solid rgb(246 236 221 / .3); border-radius: 22px; background: rgb(0 0 0 / .15); color: var(--night-ink); font-size: 14px; font-weight: 500; }
.c-signin:hover { background: rgb(0 0 0 / .3); }

.settings-trigger { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgb(246 236 221 / .22); border-radius: 50%; background: rgb(246 236 221 / .05); color: #f1e6d6; cursor: pointer; }
.settings-trigger > svg { width: 17px; height: 17px; }
.settings-trigger:is(:hover, [aria-expanded="true"]) { background: rgb(246 236 221 / .12); }
.settings-menu { position: fixed; inset: auto; z-index: 100; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--rule-dashed); border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 18px 48px rgb(0 0 0 / .45); font-family: var(--sans); font-size: 14px; line-height: 1.4; }
.settings-account { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 12px 12px; }
.settings-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 600; }
.settings-email { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-body); }
.settings-rule { height: 1px; margin: 4px 8px; background: var(--rule); }
.settings-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; margin: 0; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.settings-row > svg { flex: none; }
.settings-row:hover { background: var(--paper-face); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.settings-menu :is(button, a):focus-visible { outline-offset: -2px; }

.c-main { max-width: 1040px; margin: 0 auto; }
.c-ticket-shadow { filter: drop-shadow(0 30px 40px rgb(0 0 0 / .5)); }
.c-ticket { border-radius: 14px 14px 0 0; padding-bottom: 8px; background: var(--paper); color: var(--ink); mask: var(--zigzag) 50% / 16px 100%; }

.c-eyebrow { margin: 0; color: var(--accent); font: 500 12px/16px var(--label); letter-spacing: .16em; text-transform: uppercase; }

.c-home { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 36px 56px; padding: 34px 56px 44px; }
.c-dial-col { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; }
.c-dial { position: relative; width: min(400px, 100%); container-type: inline-size; }
.c-dial-svg { display: block; width: 100%; height: auto; }
.c-dial-face { fill: var(--paper-face); stroke: var(--rule); stroke-width: 1.3; }
.c-tick { stroke: var(--tick); stroke-width: 6; stroke-linecap: round; }
.c-tick[data-state="done"] { stroke: var(--green); }
.c-tick[data-state="next"] { stroke: var(--accent); stroke-width: 8.5; }
.c-mark { fill: var(--paper); stroke: var(--rule-soft); stroke-width: 2.6; }
.c-mark[data-state="reached"] { fill: var(--accent); stroke: var(--accent); }
.c-numeral { fill: var(--ink-muted); font: 500 22px var(--label); }
.c-dial-centre { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; width: 60cqw; transform: translate(-50%, -50%); text-align: center; }
.c-dial-centre .c-eyebrow { font-size: clamp(10px, 3cqw, 12px); }
.c-dial-title { margin: 1.5cqw 0 0; color: var(--ink); font-family: var(--serif); font-size: clamp(28px, 12cqw, 48px); font-style: italic; line-height: 1.125; text-wrap: balance; }
.c-dial-note { margin: 2cqw 0 0; color: var(--ink-body); font-size: clamp(11px, 3.25cqw, 13px); line-height: 18px; }

.c-today { flex: 1.2 1 420px; min-width: 0; }
.c-today-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.c-today-title { margin: 4px 0 0; color: var(--ink); font-family: var(--serif); font-size: 36px; font-style: italic; font-weight: 400; line-height: 44px; }
.c-today-meta { margin: 2px 0 0; color: var(--ink-body); font-size: 13px; line-height: 18px; }
.c-start, .c-next { display: inline-flex; align-items: center; height: 47px; border: 0; border-radius: 24px; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 500; white-space: nowrap; }
.c-start { gap: 12px; padding: 0 28px; box-shadow: 0 12px 22px -8px var(--accent-shadow); }
.c-next { gap: 8px; padding: 0 24px 0 30px; box-shadow: 0 12px 22px -10px var(--accent-shadow); }
.c-start:hover, .c-next:hover { color: var(--accent-ink); filter: brightness(1.1); }
.c-start > svg, .c-next > svg { flex: none; }
.c-next:disabled { opacity: .65; cursor: progress; filter: none; }

.c-plan { margin: 18px 0 0; border-top: 1.5px dashed var(--rule-dashed); }
.c-plan-step { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 0; border-bottom: 1.5px dashed var(--rule-dashed); }
.c-plan-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none; border: 1.5px solid var(--rule-soft); border-radius: 50%; color: var(--ink-soft); font-size: 12px; font-weight: 500; }
.c-plan-kind { width: 96px; flex: none; color: var(--ink-soft); font: 500 12px/16px var(--label); letter-spacing: .12em; text-transform: uppercase; }
.c-plan-title { flex: 1; min-width: 0; color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 24px; }
.c-plan-minutes { color: var(--ink-soft); font-size: 13px; white-space: nowrap; }
.c-plan-step[data-state="next"] .c-plan-badge { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.c-plan-step[data-state="next"] .c-plan-kind { color: var(--accent); }
.c-plan-step[data-state="next"] .c-plan-title { font-size: 19px; font-style: italic; }
.c-plan-step[data-state="done"] .c-plan-badge { border-color: var(--green); background: var(--green); color: #fff; }
.c-plan-step[data-state="done"] .c-plan-title { color: var(--ink-muted); }

.c-finished-title { color: var(--ink); font-family: var(--serif); font-size: 40px; font-style: italic; font-weight: 400; line-height: 48px; }
.c-finished-text { max-width: 430px; margin: 10px 0 0; color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 26px; }

.c-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 28px; padding: 8px 56px; border-bottom: 1.5px dashed var(--rule-dashed); }
.c-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink-body); font-size: 13px; white-space: nowrap; }
.c-back > svg { flex: none; }
.c-strip-note { flex: 1 1 420px; min-width: 0; color: var(--ink); font-family: var(--serif); font-size: 15px; font-style: italic; line-height: 22px; text-align: right; text-wrap: balance; }

.c-step { padding: 40px 56px 44px; }
.c-step-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; }
.c-step-title { color: var(--ink); font-family: var(--serif); font-size: 40px; font-style: italic; font-weight: 400; line-height: 48px; text-wrap: balance; }
.c-why { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 22px; }
.c-why strong { color: var(--ink); font-weight: 600; }

.c-controls { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-height: 52px; }
.c-camera { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--ink); font-size: 13px; }
.c-camera-box { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1.5px solid var(--rule-soft); border-radius: 4px; color: #fff; }
.c-camera-box > svg { visibility: hidden; }
.c-camera[aria-checked="true"] .c-camera-box { border-color: var(--accent); background: var(--accent); }
.c-camera[aria-checked="true"] .c-camera-box > svg { visibility: visible; }
.c-record { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 34px; border: 0; border-radius: 26px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 22px -10px var(--accent-shadow); font-size: 16px; font-weight: 500; }
.c-record:hover { filter: brightness(1.1); }
.c-camera:disabled, .c-record:disabled { opacity: .65; cursor: progress; filter: none; }
.c-dot { width: 11px; height: 11px; flex: none; border-radius: 50%; background: currentColor; }
.c-live { display: inline-flex; align-items: center; gap: 10px; height: 52px; color: var(--accent); font-size: 16px; font-weight: 500; }
.c-live .c-dot { animation: c-blink 1.2s steps(2, start) infinite; }
.c-live-clock { margin-left: 10px; color: var(--ink); font-size: 22px; font-variant-numeric: tabular-nums; font-weight: 600; line-height: 28px; }
.c-ready-clock { margin-left: 4px; color: var(--ink-muted); font-size: 22px; font-variant-numeric: tabular-nums; font-weight: 500; line-height: 28px; }
.c-recorded { display: inline-flex; align-items: center; gap: 10px; height: 52px; color: var(--green-ink); font-size: 16px; font-weight: 500; }
.c-recorded > svg { flex: none; }
@keyframes c-blink { to { visibility: hidden; } }

.c-status { margin: 14px 0 0; color: var(--ink-body); font-size: 14px; line-height: 1.45; }
.c-status:empty { display: none; }

.c-script { margin-top: 28px; padding: 22px 40px 30px; border: 1px solid var(--rule-script); border-radius: 14px; background: var(--paper-script); }
.c-script-lead { padding-bottom: 14px; border-bottom: 1.5px dashed var(--rule-dashed); color: var(--ink-soft); font-size: 14px; line-height: 21px; }
.c-script-lead strong { color: var(--ink); font-weight: 600; }
.c-cue { margin: 18px 0 0; color: var(--ink-muted); font-size: 15px; font-style: italic; line-height: 22px; }
.c-say { margin: 18px 0 0; color: var(--ink); font-family: var(--serif); font-size: 32px; line-height: 40px; white-space: pre-line; overflow-wrap: break-word; }
.c-cue + .c-say { margin-top: 2px; }
.c-say[data-long] { font-size: 25px; line-height: 34px; text-wrap: pretty; }
.c-cue + .c-say[data-long] { margin-top: 4px; }
.c-say strong { color: var(--accent); font-weight: inherit; }

.c-step-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 24px; }
.c-step-foot-text { color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 28px; }
.c-stop { display: inline-flex; align-items: center; gap: 10px; height: 47px; padding: 0 30px; border: 0; border-radius: 24px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 22px -10px var(--accent-shadow); font-size: 15px; font-weight: 500; }
.c-stop:hover { filter: brightness(1.1); }
.c-stop-mark { width: 11px; height: 11px; flex: none; border-radius: 2px; background: currentColor; }
.c-stop:disabled { border: 1.5px solid var(--rule-soft); background: transparent; color: var(--ink-muted); box-shadow: none; cursor: default; filter: none; }
.c-stop:disabled .c-stop-mark { background: var(--ink-faint); }
.c-stop:disabled:is([data-state="saving"], [data-state="leaving"]) { cursor: progress; }

.c-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 80px 20px; color: var(--night-ink); font-size: 17px; text-align: center; }
.c-empty a { color: var(--night-ink); text-decoration: underline; text-underline-offset: 3px; }
.c-noscript { margin: 80px auto 0; color: var(--night-ink); text-align: center; }

.c-toast-wrap { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; padding: 0 16px calc(28px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.c-toast { max-width: 380px; padding: 12px 18px; border: 1px solid #4a3038; border-radius: 12px; background: #241318; color: var(--night-ink); font-size: 15px; line-height: 1.4; box-shadow: 0 10px 30px rgb(0 0 0 / .45); }

@media (max-width: 720px) {
  .c-home, .c-step { padding-left: 20px; padding-right: 20px; }
  .c-strip { padding-left: 20px; padding-right: 20px; }
  .c-strip-note { text-align: left; }
  .c-script { padding-left: 22px; padding-right: 22px; }
  .c-step-title { font-size: 32px; line-height: 40px; }
}

@media (max-width: 620px) {
  .c-say { font-size: 25px; line-height: 33px; }
  .c-say[data-long] { font-size: 20px; line-height: 29px; }
}

@media (max-width: 480px) {
  .c-plan-kind { width: 78px; letter-spacing: .08em; }
  .c-today-title { font-size: 32px; line-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .c-scene > .reader-backdrop { animation: none; }
  .c-live .c-dot { animation: none; }
}
