@font-face {
  font-family: "Julius Sans One";
  src: url("fonts/julius-sans-one-latin.woff2") format("woff2");
  font-display: swap;
}
:root { --ink: #05070f; --panel: #0b0e18; --gold: #d9b45a; --text: #e9e1cc; --muted: #a7a08c; --line: #3a3426; }
* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--text); font: 17px/1.65 Georgia, "Times New Roman", serif; }

/* ---- hero: the poster is the LCP image; the WebGL canvas fades in over it once loaded */
.hero { display: flex; flex-direction: column; align-items: center; padding: 0 16px; }
/* The hero fills the window's FULL HEIGHT (operator 2026-11-06: the opening should fit the whole screen; the icons now sit
   inside the stage, so the old 82 px reserve is gone). Width follows the 750:1007 portrait; it keeps that size while the text slides out below. */
#stage { container-type: size; position: relative; height: min(100vh, calc((100vw - 32px) * 1007 / 750)); aspect-ratio: 750 / 1007; max-width: 100%;
         background: var(--ink); overflow: hidden; }   /* never resized: operator 2026-11-06 "don't shrink it!" */
/* (no .intro size: the stage must NOT resize during the reveal; its cqh-sized text would re-flow every frame) */
@supports (height: 100svh) {
  #stage { height: min(100svh, calc((100vw - 32px) * 1007 / 750)); }
}
#poster, #stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* opening.js prepends the canvas, so without a z-index the poster (a later sibling) would paint over it */
#stage canvas { opacity: 0; transition: opacity .6s ease; z-index: 1; }
.title { z-index: 2; }
#stage canvas.live { opacity: 1; }
.title { position: absolute; left: 0; right: 0; text-align: center; letter-spacing: .32em; opacity: 0; pointer-events: none;
         font-family: "Julius Sans One", sans-serif; color: var(--gold); text-shadow: 0 0 12px rgba(0,0,0,.8); }
/* Text stays on the art, never on the ornate border: P05 frame = 8.5% sides / 6.8% bottom (layers.json);
   July square loop (centred on ink): its art spans 9.1%..90.9% across and ends 81.7% down the stage. */
#wordmark { inset: 0; }   /* full-stage layer; frame() fades the whole thing */
#wordmark .wm-title { position: absolute; left: 10%; right: 10%; top: 58%; font-size: clamp(19px, 5vh, 40px); font-size: 5.95cqh; letter-spacing: .3em; padding-left: .3em; }
#wordmark .wm-title small { display: block; margin-top: .6em; font-size: .353em; letter-spacing: .42em; padding-left: .42em; color: #e8d7a6; }
#wordmark .wm-house { position: absolute; left: 10%; right: 10%; bottom: 9%; font-size: clamp(16px, 4.2vh, 34px); font-size: 5cqh; letter-spacing: .32em; padding-left: .32em; }
#endline { left: 10.6%; right: 10.6%; bottom: 19.8%; font-size: clamp(9px, 1.6vh, 14px); font-size: 2.2cqh; letter-spacing: .2em; color: #f0e2b8; }
#endline span { display: block; padding-left: .2em; line-height: 1.7; white-space: nowrap; }
#endline .e-title { font-size: 1.6em; line-height: 1.35; }   /* operator 2026-11-06: line 1 Coming soon, line 2 Rapunzel larger, line 3 slightly smaller */
#endline .e-sub { font-size: .86em; }   /* one centred line each; padding = the trailing letter-spacing */
/* operator 2026-11-06: no button bar; one quiet replay glyph under the picture, right-aligned to its edge */
.hero-col { display: flex; flex-direction: column; max-width: 100%; position: relative; }
/* operator 2026-11-06: icons just BELOW the cover frame ("not in the border, slightly below"). The square July video
   fills the stage width and is centred vertically, so its jewelled frame ends at (1 + 750/1007) / 2 = 87.24% down the
   stage; 81.7% was the frame's INNER edge and put the icons on the border. Right alignment unchanged. They appear once
   the cover scene is up, so they never sit on the forest's ornate border during the opening. */
.controls { position: absolute; top: calc(87.24% + 4px); right: 9.1%; z-index: 3; display: flex; gap: 0;
            opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; }
.controls.show { opacity: 1; visibility: visible; }
button.icon { font: 21px/1 "Segoe UI Symbol", "Apple Symbols", "DejaVu Sans", system-ui, sans-serif; border: 0; padding: 3px 4px;
              min-height: 32px; min-width: 32px; color: var(--gold); opacity: .7; transition: opacity .2s; }
button.icon:last-child { padding-right: 0; }   /* the ⟲ lines up with the art's right edge */
button.icon:hover, button.icon:focus-visible { opacity: 1; }
button.icon[aria-pressed] { background: none; border: 0; }   /* no box for the sound toggle's on state */
.controls[hidden] { display: none; }
button, .button { font: 14px/1 system-ui, sans-serif; color: var(--gold); background: none; border: 1px solid #6b5d3a;
                  border-radius: 6px; padding: 9px 14px; min-height: 40px; cursor: pointer; text-decoration: none; display: inline-block; }
button[aria-pressed="true"] { background: #2a2416; border-color: var(--gold); }
button:focus-visible, .button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- text */
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 8px; }
h1, h2 { font-family: "Julius Sans One", sans-serif; color: var(--gold); font-weight: 400; letter-spacing: .06em; line-height: 1.25; }
h1 { font-size: clamp(26px, 5vw, 40px); margin: 0 0 .3em; text-align: center; }
h2 { font-size: clamp(20px, 3.4vw, 26px); margin: 1.8em 0 .5em; border-top: 1px solid var(--line); padding-top: 1.1em; }
.standfirst { text-align: center; font-style: italic; color: var(--text); font-size: 1.08em; margin: 0 auto .8em; max-width: 34em; }
.status { text-align: center; color: var(--gold); letter-spacing: .04em; margin: 0 0 1.6em; }
.buy { text-align: center; margin: 0; }
.lead { font-family: "Julius Sans One", sans-serif; color: var(--gold); letter-spacing: .05em; font-size: 1.1em; }
blockquote { margin: 1.2em 0; padding: .2em 0 .2em 1.1em; border-left: 2px solid var(--gold); font-style: italic; }
blockquote p { margin: 0 0 .3em; }
blockquote footer { font-style: normal; font-size: .85em; color: var(--muted); }
.buy .button[hidden] { display: none; }
ul { padding-left: 1.2em; }
li { margin: .25em 0; }
b { color: #f1e6c6; }

.sample { text-align: center; font-style: italic; color: var(--muted); margin: 1.2em 0 0; }
.gallery { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }
.gallery li { margin: 0; }
.gallery img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }

.details { display: grid; grid-template-columns: max-content 1fr; gap: .35em 1.2em; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
@media (max-width: 420px) { .details { grid-template-columns: 1fr; gap: 0; } .details dd { margin-bottom: .5em; } }

.site-footer { max-width: 760px; margin: 40px auto 0; padding: 20px 16px 40px; border-top: 1px solid var(--line);
               color: var(--muted); font-size: 14px; text-align: center; }
.site-footer p { margin: .3em 0; }
.site-footer .brand { font-family: "Julius Sans One", sans-serif; color: var(--gold); letter-spacing: .3em; font-size: 16px; }

/* the text slides open below the hero (grid row 0fr -> 1fr animates the height without measuring it) */
#more { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 1.6s cubic-bezier(.4, 0, .2, 1); }
.more-inner { overflow: hidden; min-height: 0; }
.intro #more { grid-template-rows: 0fr; }
/* the drawer: the text starts tucked 320 px up, under the picture, and slides down out of it as the box opens */
.drawer { transition: transform 1.6s cubic-bezier(.4, 0, .2, 1); }
.intro .drawer { transform: translateY(-320px); }
.intro body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) { #stage canvas, #stage, #more, .drawer { transition: none; } }
