/* Hallmark · macrostructure: Marquee Hero (quiet, one screen) · tone: austere · anchor hue: existing theme
 * genre: editorial / modern-minimal · theme: locked Bookslop · nav: brand only · footer: compact colophon
 * Audience: readers practising typing. Action: read a full book. Existing Newsreader roman / IBM Plex.
 * Recovered Zen DNA: centred serif scale, one accent word, solid action, generous negative space.
 * User-required exceptions: centred typing headline, existing neutral palette and WebGL field.
 * No new imagery or motion; no project memory or theme exports in this Welcome layout. */
.landing.welcome-onepage {
 --quiet-space:clamp(16px,3.55svh,32px);
 --color-welcome-veil:color-mix(in srgb,var(--color-paper) 45%,transparent);
 position:relative;isolation:isolate;display:flex;flex-direction:column;
 min-height:100vh;min-height:100svh;
}
:root[data-theme="light"] .landing.welcome-onepage {
 --color-welcome-veil:color-mix(in srgb,var(--color-paper) 16%,transparent);
}

/* Animated background: the liquid-wave field fills the screen behind the page.
 * The renderer reads the two welcome tokens below and follows the saved theme. */
:root[data-welcome-liquid]{
 --color-welcome-accent:color-mix(in oklch,var(--color-accent) 70%,var(--color-muted));
 --color-welcome-glow:color-mix(in oklch,var(--theme-dark-glow) 60%,var(--color-paper));
}
:root[data-welcome-liquid][data-theme="light"]{--color-welcome-glow:color-mix(in oklch,var(--theme-light-glow) 55%,var(--color-paper))}
@supports(color:oklch(from red l c h)){
 :root[data-welcome-liquid]{--color-welcome-glow:oklch(from var(--theme-dark-glow) min(l,.48) calc(c * .55) h)}
 :root[data-welcome-liquid][data-theme="light"]{--color-welcome-glow:oklch(from var(--theme-light-glow) max(l,.70) calc(c * .45) h)}
}
.landing .welcome-atmosphere{position:fixed;inset:0;z-index:-1;width:100%;height:100%;overflow:clip;pointer-events:none;background:var(--color-paper)}
.landing #welcome-gradient{position:absolute;inset:0;width:100%;height:100%}
.landing #welcome-gradient canvas{display:block;width:100%;height:100%;touch-action:auto!important;opacity:0;transition:opacity 300ms var(--ease-out)}
:root[data-shader-state="ready"] .landing #welcome-gradient canvas{opacity:1}
:root[data-shader-state="fallback"] .landing #welcome-gradient :is(canvas,div){display:none}
/* An even page-colour veil keeps the headline and key points readable over the waves. */
.landing .welcome-atmosphere::after{content:'';position:absolute;inset:0;background:var(--color-welcome-veil)}


/* A centred reading axis, with the existing brand as the only header content. */
.landing.welcome-onepage .landing-nav { background:var(--color-clear);flex:none; }
.landing.welcome-onepage .landing-wrap {
 flex:1;display:flex;flex-direction:column;min-width:0;width:100%;max-width:1200px;
 margin:0 auto;padding-inline:var(--site-header-padding);
}
.landing.welcome-onepage main { flex:1;display:flex;flex-direction:column;min-width:0; }
.landing.welcome-onepage .landing-stage {
 flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
 min-width:0;gap:var(--quiet-space);padding-block:var(--quiet-space);
}
.landing.welcome-onepage .landing-heading { display:block;width:100%;padding:0;margin:0;text-align:center; }
.landing.welcome-onepage .landing-heading h1 {
 font-family:var(--font-display);font-style:normal;font-weight:400;
 font-size:clamp(64px,min(9.4vw,14.2svh),128px);line-height:1;letter-spacing:-.045em;
 text-wrap:balance;overflow-wrap:anywhere;min-width:0;
}
.landing.welcome-onepage .landing-heading h1>.headline-line { display:block;color:var(--color-ink); }
.landing.welcome-onepage .landing-heading h1>[data-character] { display:inline;color:inherit; }
.landing.welcome-onepage .landing-heading .quiet-accent { color:var(--color-accent);font-style:normal; }

/* The headline is the only passage. Its responsive display size stays stable while typing. */
.landing.welcome-onepage .landing-demo {
 position:relative;flex:none;width:100%;margin:0;padding:0;
 border:0;border-radius:0;background:var(--color-clear);box-shadow:none;
}
.landing.welcome-onepage .landing-reader { min-height:0;gap:0; }
.landing.welcome-onepage .landing-reader-copy { position:relative;min-height:0;padding:0;justify-content:center; }
.landing.welcome-onepage .landing-passage { width:100%;max-width:100%;white-space:normal;text-align:center;color:var(--color-ink); }
.landing.welcome-onepage .landing-passage [data-character] { position:relative; }
.landing.welcome-onepage .landing-passage [data-character].typed { color:var(--color-accent); }
.landing.welcome-onepage .landing-passage [data-character].incorrect { color:var(--color-error);background:var(--color-error-bg); }
.landing.welcome-onepage .landing-reader-copy .landing-passage .next::before { display:none; }
.landing.welcome-onepage .landing-fluid-caret {
 position:absolute;left:0;top:0;border-radius:1px;background:var(--color-accent);
 pointer-events:none;z-index:1;opacity:0;
}
.landing.welcome-onepage .landing-fluid-caret[data-incorrect="true"] { background:var(--color-error); }
.landing.welcome-onepage .caret-character-highlight { background:var(--color-accent-soft); }
.landing.welcome-onepage .landing-reader[data-typing-active="true"]:not([data-complete="true"]) .landing-fluid-caret { opacity:1; }

.landing.welcome-onepage .landing-hero-action { margin:0;max-width:100%; }
.landing.welcome-onepage .landing-hero-action .button {
 width:max-content;max-width:100%;min-height:64px;padding:18px 32px;gap:16px;
 border-radius:var(--radius-medium);font:500 18px/1.4 var(--font-body);white-space:nowrap;
 box-shadow:none;transition:transform var(--dur-fast) var(--ease-out);
}
.landing.welcome-onepage .landing-hero-action .button svg { width:20px;height:20px; }

/* Policy links sit quietly at the bottom, without feature labels or descriptions. */
.landing.welcome-onepage .landing-colophon { flex:none;display:flex;flex-direction:column;align-items:center;gap:20px;padding:20px 0 16px; }
.landing.welcome-onepage .landing-footer { flex:none;margin:0;padding:0;justify-content:center; }
.landing.welcome-onepage .landing-footer nav { justify-content:center;gap:0 24px; }
.landing.welcome-onepage .landing-footer .policy-link { color:var(--color-body); }
.landing.welcome-onepage :is(a,button):focus-visible { outline:2px solid var(--color-accent);outline-offset:4px;box-shadow:none; }
@media(max-width:767px) {
 .landing.welcome-onepage { --quiet-space:clamp(16px,3.2svh,24px); }
 .landing.welcome-onepage .landing-wrap { padding-inline:20px; }
 .landing.welcome-onepage .landing-heading h1 { font-size:clamp(40px,13vw,72px);line-height:1.02; }
 .landing.welcome-onepage .landing-demo { width:100%; }
 .landing.welcome-onepage .landing-hero-action .button { min-height:56px;padding:16px 28px;font-size:17px;gap:12px; }
 .landing.welcome-onepage .landing-colophon { width:100%;gap:20px;padding-block:20px 16px; }
 .landing.welcome-onepage .landing-footer nav { gap:0 24px; }
}
@media(max-width:767px) and (max-height:700px) {
 .landing.welcome-onepage { --quiet-space:16px; }
 .landing.welcome-onepage .landing-colophon { gap:12px;padding-block:12px 12px; }
}
@media(min-width:768px) and (max-height:700px) {
 .landing.welcome-onepage { --quiet-space:20px; }
 .landing.welcome-onepage .landing-heading h1 { font-size:clamp(64px,12.5svh,88px); }
 .landing.welcome-onepage .landing-hero-action .button { min-height:56px;padding-block:14px; }
 .landing.welcome-onepage .landing-colophon { gap:12px;padding-block:12px 12px; }
}
@media(forced-colors:active) { .landing.welcome-onepage .welcome-atmosphere { display:none; } }
