/* Lyra presentation site. One stylesheet, no build step.
   The tokens are the kiosk's own (templates/index.html :root), so the page and the screen in
   the photographs are made of the same material. Contrast for every pair is recorded in
   tasks/website_todo.md §3.1. */

@font-face { font-family: "Literata"; font-style: normal; font-weight: 400 500; font-display: swap;
             src: url("../fonts/literata.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400; font-display: swap;
             src: url("../fonts/literata-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 600; font-display: swap;
             src: url("../fonts/source-sans-3.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap;
             src: url("../fonts/source-sans-3-italic.woff2") format("woff2"); }

:root {
    --stage: #161513;
    --stage-lift: #201E1B;
    --stage-deep: #0D0C0C;
    --paper: #F6F2EB;
    --ink: #161513;
    --ink-soft: #5C554D;
    --room: #BDB5A9;
    --said: #9C948A;
    --quiet: #948D82;
    --rule: #D9D3C9;
    --warm: #D7A15F;        /* on dark: 7.95:1 on the stage */
    --warm-ink: #8A5A0B;    /* on paper: 5.3:1 */

    --serif: "Literata", Georgia, "Times New Roman", serif;
    --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

    --gutter: clamp(1rem, 4vw, 3rem);
    --max: 1200px;
    --measure: 62ch;
    --radius: 10px;
    --pill-h: 56px;

    /* Per-surface text tokens: the dark surfaces keep these, the paper surface redefines them. */
    --fg: var(--paper);
    --fg-soft: var(--room);
    --fg-quiet: var(--said);
    --hair: rgba(246, 242, 235, 0.16);
    --accent: var(--warm);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 1.5rem;
}

body {
    margin: 0;
    background: var(--stage);
    color: var(--fg);
    font: 400 1.125rem/1.6 var(--serif);
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

img, video, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1rem; }
ul, ol, dl { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
    position: absolute;
    left: var(--gutter);
    top: -4rem;
    padding: 0.75rem 1.25rem;
    background: var(--paper);
    color: var(--ink);
    font: 500 1rem/1 var(--sans);
    border-radius: 999px;
    z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---- surfaces --------------------------------------------------------------------------- */

.section { padding: clamp(4rem, 10vw, 8rem) var(--gutter); }
.paper {
    background: var(--paper);
    color: var(--ink);
    --fg: var(--ink);
    --fg-soft: var(--ink-soft);
    --fg-quiet: var(--ink-soft);
    --hair: var(--rule);
    --accent: var(--warm-ink);
}
.deep { background: var(--stage-deep); }

/* ---- type ------------------------------------------------------------------------------- */

h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
h1 {
    font-size: clamp(2.25rem, 5.6vw, 4.5rem);
    line-height: 1.04;
    letter-spacing: -0.015em;
    max-width: 24ch;
    margin-bottom: 1.5rem;
}
h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    max-width: 26ch;
    margin-bottom: 1rem;
}
h3 { font-weight: 500; font-size: 1.375rem; line-height: 1.25; margin-bottom: 0.75rem; }

.lede {
    font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
    color: var(--fg-soft);
    max-width: 52ch;
    margin-bottom: 2rem;
}
.note { color: var(--fg-soft); max-width: var(--measure); }

/* ---- controls: the kiosk's Say hello pill, and a plain underlined link ------------------- */

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--pill-h);
    padding: 0 2rem;
    border: 0;
    border-radius: 999px;
    font: 500 1.3125rem/1 var(--serif);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.pill-paper { background: var(--paper); color: var(--ink); }
.pill-paper:hover { background: #ffffff; }

.textlink {
    display: inline-block;
    padding: 0.75rem 0;
    font: 400 1.0625rem/1 var(--sans);
    color: var(--fg);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.35em;
}
.textlink:hover { text-decoration-thickness: 2px; }

/* ---- header ----------------------------------------------------------------------------- */

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem var(--gutter);
    width: min(100%, calc(var(--max) + 2 * var(--gutter)));
    margin-inline: auto;
}
.wordmark {
    font: 500 1.5rem/1 var(--serif);
    letter-spacing: -0.01em;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.5rem 0;
}
.wordmark span { font: 400 0.9375rem/1 var(--sans); color: var(--room); }
.top nav { display: flex; align-items: center; gap: clamp(0.75rem, 2.5vw, 2rem); font-family: var(--sans); }
.top nav a:not(.pill) {
    color: var(--room);
    text-decoration: none;
    font-size: 0.9375rem;
    padding: 0.75rem 0.125rem;
}
.top nav a:not(.pill):hover { color: var(--paper); }
.top .pill { min-height: 44px; padding: 0 1.25rem; font-size: 1.0625rem; }
@media (max-width: 860px) { .top nav a:not(.pill) { display: none; } }

/* ---- hero ------------------------------------------------------------------------------- */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    width: min(100% - 2 * var(--gutter), var(--max));
    margin-inline: auto;
    padding: clamp(1.5rem, 5vw, 4rem) 0 clamp(4rem, 10vw, 7rem);
}
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

.hero-media { margin: 0; width: min(100%, 420px); justify-self: center; }
@media (min-width: 900px) { .hero-media { width: 100%; max-width: 460px; justify-self: end; } }

/* ---- a clip: poster, video, visible controls -------------------------------------------- */

.clip {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--stage-lift);
}
.clip picture, .clip video { position: absolute; inset: 0; width: 100%; height: 100%; }
.clip img, .clip video { width: 100%; height: 100%; object-fit: cover; }
.clip video { opacity: 0; transition: opacity 0.25s ease; }
.clip.is-playing video { opacity: 1; }
.clip-controls {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    display: flex;
    gap: 0.5rem;
}
.clip-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0 1rem;
    border: 1px solid rgba(246, 242, 235, 0.35);
    border-radius: 999px;
    background: rgba(22, 21, 19, 0.74);
    color: var(--paper);
    font: 500 0.9375rem/1 var(--sans);
    cursor: pointer;
}
.clip-btn svg { width: 12px; height: 12px; fill: currentColor; flex: none; }
.clip-btn:hover { background: rgba(22, 21, 19, 0.92); }
.caption, figcaption {
    margin-top: 0.75rem;
    font: 400 0.9375rem/1.5 var(--sans);
    color: var(--fg-quiet);
}

/* ---- what it is: three columns, a hairline above each, no cards ------------------------- */

.three { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 760px) { .three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); } }
.three > div { border-top: 1px solid var(--hair); padding-top: 1.5rem; }
.three p { color: var(--fg-soft); max-width: 42ch; }

/* ---- a story in steps: a numbered sequence in time ------------------------------------- */

.steps { list-style: none; margin-top: 3rem; counter-reset: step; }
.step {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--hair);
}
@media (min-width: 900px) {
    .step { grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
    .step.no-shot { grid-template-columns: 150px minmax(0, 1fr); }
}
.when {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    font: 400 0.9375rem/1.4 var(--sans);
    color: var(--fg-soft);
}
.when::before {
    counter-increment: step;
    content: counter(step);
    font: 400 2rem/1 var(--serif);
    color: var(--fg);
    flex-basis: 100%;
}
.when .day { font: 500 1.0625rem/1.4 var(--serif); color: var(--fg); }
@media (min-width: 900px) { .when { flex-direction: column; align-items: flex-start; gap: 0.25rem; } .when::before { margin-bottom: 0.5rem; } }
.step-body p { color: var(--fg-soft); max-width: 48ch; }
.step-body p:last-child { margin-bottom: 0; }

.brief {
    margin: 1.25rem 0 0;
    padding: 1rem 1.25rem;
    border-left: 2px solid var(--accent);
    background: rgba(22, 21, 19, 0.04);
    font: 400 1rem/1.55 var(--sans);
    color: var(--fg);
    max-width: 52ch;
}
.brief p { color: var(--fg); margin: 0; }
.brief.on-stage { background: rgba(246, 242, 235, 0.05); }

.shot { margin: 0; }
.shot .frame { border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; background: var(--stage); }
.shot img { width: 100%; }
.shot.phone .frame { max-width: 300px; }

/* The caption band: what the kiosk shows beneath her face, quoted as it is. Spoken lines in the
   sans, the assistant in the room's light, the customer in the darker "said" tone, as on the screen. */
.band {
    margin-top: 1.5rem;
    padding: 1.5rem 1.5rem 1.25rem;
    border-radius: var(--radius);
    background: var(--stage);
    color: var(--paper);
    font-family: var(--sans);
    display: grid;
    gap: 0.9rem;
}
.band.on-stage { background: var(--stage-lift); }
.band-line { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 0.75rem; margin: 0; align-items: baseline; }
.band-line .who { font-size: 0.8125rem; color: var(--quiet); }
.band-line .what { font-size: 1.0625rem; line-height: 1.4; color: var(--room); }
.band-line.them .what { color: var(--said); }
.band-line.live .what { font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: var(--paper); }
.band-source { margin: 0.25rem 0 0; font-size: 0.8125rem; color: var(--quiet); grid-column: 1 / -1; }

/* ---- rows of term and description: what the customer sees, and the demo facts ------------ */

.trust { margin-top: 2.5rem; max-width: 62rem; }
.trust > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.35rem 2rem; padding: 1.25rem 0; border-top: 1px solid var(--hair); }
.trust > div:last-child { border-bottom: 1px solid var(--hair); }
@media (min-width: 760px) { .trust > div { grid-template-columns: 240px minmax(0, 1fr); } }
.trust dt { font: 500 1.125rem/1.35 var(--serif); color: var(--fg); }
.trust dd { margin: 0; color: var(--fg-soft); max-width: 60ch; }
.trust q { font-style: italic; color: var(--fg); }

/* ---- in the field: tiles, each a still with its clip ------------------------------------ */

.tiles { list-style: none; margin-top: 2.5rem; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 820px; }
.tile { margin: 0; }

/* ---- request a demo ---------------------------------------------------------------------- */

.demo { text-align: center; }
.demo h2, .demo .lede { margin-inline: auto; }
.demo .trust { margin: 2.5rem auto 0; text-align: left; }
.demo-form {
    margin: 3rem auto 0;
    max-width: 560px;
    text-align: left;
    display: grid;
    gap: 1.25rem;
    font-family: var(--sans);
}
.demo-form label { display: grid; gap: 0.4rem; font-size: 0.9375rem; color: var(--room); }
.demo-form input, .demo-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(246, 242, 235, 0.18);
    border-radius: var(--radius);
    background: var(--stage-lift);
    color: var(--paper);
    font: 400 1.0625rem/1.4 var(--sans);
}
.demo-form textarea { resize: vertical; }
.demo-form input:focus-visible, .demo-form textarea:focus-visible { outline: 2px solid var(--warm); outline-offset: 2px; border-color: transparent; }
.demo-form [aria-invalid="true"] { border-color: var(--warm); }
.form-error { margin: 0; font-size: 0.9375rem; color: var(--warm); }
.form-error[hidden] { display: none; }
.demo-form .pill { justify-self: center; min-width: 264px; margin-top: 0.5rem; }
.form-note { margin: 0; text-align: center; font-size: 0.875rem; color: var(--said); }
.form-note a { color: var(--room); text-decoration-color: var(--warm); text-underline-offset: 0.25em; }
.form-done { margin: 0; text-align: center; font-size: 1rem; color: var(--room); }
.form-done[hidden] { display: none; }

/* ---- footer ----------------------------------------------------------------------------- */

.foot {
    padding: 2rem var(--gutter) 3rem;
    border-top: 1px solid rgba(246, 242, 235, 0.1);
    font: 400 0.9375rem/1.55 var(--sans);
    color: var(--said);
}
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; }
.foot p { margin: 0; max-width: 60ch; }
.foot a { color: var(--room); text-decoration-color: var(--warm); text-underline-offset: 0.25em; }

/* ---- preferences ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

@media print {
    body { background: #fff; color: #000; }
    .top nav, .clip-controls, .demo-form, .skip { display: none; }
    .paper, .deep, .hero, .foot { background: #fff; color: #000; }
    .lede, .note, .caption, figcaption, .three p, .step-body p, .when, .trust dd { color: #333; }
    .band { background: #fff; color: #000; border: 1px solid #999; }
    .band-line .what, .band-line.them .what, .band-line.live .what, .band-source { color: #000; }
    .clip video { display: none; }
}
