/* Unity: one guided camera check that states exactly what it observed and nothing more. Direction: Calm.
   Palette: Atrium (atriumsolutions.net), light only. */
/* Self-hosted fonts (tools/vendor.mjs), Latin subset. */
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-weight: 400; font-display: swap; src: url('vendor/fonts/atkinson-hyperlegible-next-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-weight: 600; font-display: swap; src: url('vendor/fonts/atkinson-hyperlegible-next-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Bodoni Moda'; font-weight: 400; font-display: swap; src: url('vendor/fonts/bodoni-moda-latin-400.woff2') format('woff2'); }
:root {
  --font: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Bodoni Moda', Georgia, serif; /* headings, as on atriumsolutions.net */
  /* Atrium tokens, as on atriumsolutions.net. Light only, like the main site. */
  --canvas: #F5F1E6;        /* Ivory */
  --ink-1: #0E0E0C;         /* Pitch */
  --ink-2: #2A2823;         /* Pitch soft */
  --ink-3: #8A8470;         /* Muted */
  --line: #DFD9C7;          /* Rule */
  --fill: #ECE7D8;          /* Ivory warm */
  --accent: #19453A;        /* Bottle */
  --accent-ink: #F5F1E6;
  --ring: #B08D43;          /* Brass: the camera ring, on video */
  --eyebrow: #8A6E32;       /* Brass deep */
  --warn: #9a3412;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --t-small: 0.875rem; --t-body: 1.0625rem; --t-lead: 1.375rem; --t-title: 1.75rem;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--canvas); color: var(--ink-1); }
body { font: 400 var(--t-body)/1.5 var(--font); -webkit-font-smoothing: antialiased; }
main { max-width: 30rem; margin: 0 auto; padding: var(--s6) var(--s4) var(--s7); }
header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s6); }
header b { font-weight: 600; }
header small, .meta { color: var(--ink-3); font-size: var(--t-small); }
h1 { font-family: var(--serif); font-size: var(--t-title); line-height: 1.15; font-weight: 400; letter-spacing: -0.015em; margin: 0 0 var(--s4); }
p { margin: 0 0 var(--s4); }
ul { margin: 0 0 var(--s5); padding-left: 1.2em; color: var(--ink-2); }
li { margin-bottom: var(--s2); }
.actions { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s5); }
button { font: inherit; font-weight: 600; border-radius: var(--radius); padding: var(--s3) var(--s5); min-height: 48px; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--ink-1); }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button:disabled { opacity: 0.45; cursor: default; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
label.option { display: flex; gap: var(--s2); align-items: center; color: var(--ink-2); margin: 0 0 var(--s4); }
/* The start buttons stay in view while the notes above them scroll, so a phone never hides them below the fold. */
.startbar { position: sticky; bottom: 0; background: var(--canvas); border-top: 1px solid var(--line); padding: var(--s3) 0 var(--s4); margin-top: var(--s4); }
.startbar .actions { margin-top: 0; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
.stage { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: #000; }
video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.oval { position: absolute; inset: 0; pointer-events: none; }
.oval ellipse { fill: none; stroke: rgb(255 255 255 / 0.85); stroke-width: 3; }
.oval .ring { stroke: var(--ring); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 120ms ease-out; }
/* The direction cue: a dark track across the face, a white dot that travels from the middle toward the goal as the
   turn grows (--p, 0 to 1, set from the engine's progress), and a goal circle that turns green with a tick once reached. */
.arrow { --p: 0; --go: #2e7d4f; position: absolute; border-radius: 999px; background: rgb(14 14 12 / 0.6); box-shadow: 0 0 0 2px rgb(255 255 255 / 0.18); }
.arrow .goal { position: absolute; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--ring); color: #0e0e0c; font: 700 2rem/1 var(--font); animation: nudge 900ms ease-in-out infinite alternate; }
.arrow .dot { position: absolute; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgb(0 0 0 / 0.5); z-index: 1; transition: left 100ms linear, top 100ms linear; }
.arrow.done .goal { background: var(--go); color: #fff; animation: none; }
.arrow.done .dot { opacity: 0; } /* the dot has arrived: the goal takes over with its tick */
.arrow.left, .arrow.right { top: 47%; left: 8%; width: 84%; height: 76px; transform: translateY(-50%); }
.arrow.left .goal, .arrow.right .goal { top: 8px; }
.arrow.left .dot, .arrow.right .dot { top: 24px; }
.arrow.left .goal { left: 8px; }
.arrow.right .goal { right: 8px; }
.arrow.left .dot { left: calc(50% - 14px - var(--p) * (50% - 38px)); }
.arrow.right .dot { left: calc(50% - 14px + var(--p) * (50% - 38px)); }
.arrow.up, .arrow.down { left: 50%; top: 4%; width: 76px; height: 86%; transform: translateX(-50%); }
.arrow.up .goal, .arrow.down .goal { left: 8px; }
.arrow.up .dot, .arrow.down .dot { left: 24px; }
.arrow.up .goal { top: 8px; }
.arrow.down .goal { bottom: 8px; }
.arrow.up .dot { top: calc(50% - 14px - var(--p) * (50% - 38px)); }
.arrow.down .dot { top: calc(50% - 14px + var(--p) * (50% - 38px)); }
@keyframes nudge { to { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .arrow .goal { animation: none; } }
.token { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: var(--t-small); word-break: break-all; }
.prompt { font-size: var(--t-lead); font-weight: 600; margin: var(--s4) 0 var(--s1); min-height: 2em; }
.hint { color: var(--ink-2); min-height: 1.5em; margin: 0; }
.steps { display: flex; gap: var(--s2); margin-top: var(--s4); }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps span.done { background: var(--accent); }
.steps span.now { background: var(--ink-3); }
.record { background: var(--fill); border-radius: var(--radius); padding: var(--s4); margin: var(--s4) 0; }
.record dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s4); margin: 0; font-size: var(--t-small); }
.record dt { color: var(--ink-3); }
.record dd { margin: 0; }
.warn { color: var(--warn); }
h2 { font-family: var(--serif); font-size: var(--t-lead); line-height: 1.2; font-weight: 400; letter-spacing: -0.01em; margin: 0 0 var(--s3); }
.eyebrow { color: var(--eyebrow); font-weight: 600; font-size: var(--t-small); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: var(--s2); }
.hero { margin-bottom: var(--s6); }
.hero h1 { font-size: 2.4rem; }
.hero .lead { font-size: var(--t-lead); line-height: 1.4; color: var(--ink-2); }
a { color: var(--accent); }
a.button { display: inline-block; text-decoration: none; font-weight: 600; border-radius: var(--radius); padding: var(--s3) var(--s5); background: var(--accent); color: var(--accent-ink); }
.card { border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: var(--s5) var(--s4); margin: 0 0 var(--s7); scroll-margin-top: var(--s4); }
.mock { display: flex; justify-content: space-between; align-items: baseline; color: var(--ink-3); font-size: var(--t-small); border-bottom: 1px solid var(--line); padding-bottom: var(--s3); margin-bottom: var(--s4); }
.mock b { color: var(--ink-2); font-weight: 600; }
.block { margin-bottom: var(--s7); }
ol.how { padding-left: 1.2em; color: var(--ink-1); }
ol.how li { margin-bottom: var(--s3); }
.fine { color: var(--ink-3); font-size: var(--t-small); }
footer { border-top: 1px solid var(--line); padding-top: var(--s4); color: var(--ink-3); font-size: var(--t-small); }
#flash { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
pre.record { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 var(--s3); }
main.embed { padding: var(--s4) var(--s4) var(--s5); }
main.embed h2 { margin-top: 0; padding-right: 44px; } /* clear the widget's close button */
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
