/* INV-16F Golden Hour · Luxe (A2540, D-352, plan docs/plans/plan_inv16f_w1.md): INV-16's couple in a storybook at sunset.
   A copy of little_us_luxe; INV-16's skin stays read only. */
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-400-600-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; 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: "Fraunces"; src: url("assets/fonts/fraunces-400-600-latin-ext.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-400-600i-latin.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: block; 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: "Fraunces"; src: url("assets/fonts/fraunces-400-600i-latin-ext.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --k-gate-plaster: var(--k-paper); --k-gate-metal: var(--k-ink);
  --k-lu-z: .87; /* the whole design's scale (feedback-not-in-the-face): big type and drawings; reading text stays readable */
  --k-font-script: "Fraunces", "Iowan Old Style", Georgia, serif;
  --k-font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --k-font-body: "Fraunces", "Iowan Old Style", Georgia, serif;
  --k-font-num: var(--k-font-display);
  --k-paper: #FDF6EB; --k-card: #FFFBF4; --k-paper-deep: #F3E6D2; --k-photo-white: #FFFDF8;
  --k-ink: #3A2A2E; --k-ink-soft: #6B5558; --k-pencil: #7A6458; --k-ghost: #C9B8A6; --k-field: #FFFBF4; --k-field-line: #D9C7B2;
  --k-script-ink: var(--k-ink);
  --k-line: var(--k-pencil);
  --k-dark: #3A2A2E; --k-on-dark: #F8F2E7; --k-on-dark-soft: rgba(248, 242, 231, .84);
  --k-light-ground: transparent;
  --k-s-1: 4px; --k-s-2: 8px; --k-s-3: 12px; --k-s-4: 16px; --k-s-5: 24px; --k-s-6: 32px; --k-s-7: 48px; --k-s-8: 64px; --k-s-9: 96px;
  --k-gutter: clamp(22px, 6vw, 72px); --k-section-pad: clamp(72px, 11vh, 128px); --k-day-gap: clamp(56px, 8vh, 96px); --k-measure: 500px;
  --k-ease: cubic-bezier(.22, 1, .36, 1);
  --k-lu-tile: url("/skins/little_us_golden/assets/art/paper-tile.webp");
  /* small pencil marks, in code: the three ticks that pop when something lands, a puff from the car, the reply's heart */
  --k-lu-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M17 3.5v6M5.5 8l4.4 4.2M28.5 8l-4.4 4.2' fill='none' stroke='%237A6458' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  --k-lu-puff: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 26'%3E%3Cpath d='M7 21c-5-1-5-8 0-9 0-6 8-8 11-3 5-2 10 2 8 7 2 3-1 7-5 6' fill='none' stroke='%237A6458' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --k-lu-heart-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 44'%3E%3Cpath d='M23 41C8 30 2 23 2 14 2 7 7 2 13.5 2 17.6 2 21 4 23 7.4 25 4 28.4 2 32.5 2 39 2 44 7 44 14c0 9-6 16-21 27Z'/%3E%3C/svg%3E");
  /* a sketched edge: four pencil lines that cross at the corners. The svg needs its width and height, or border-image reads it at the box's size and only stray marks show */
  --k-lu-frame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%237A6458' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M4.5 14.8C38 13.6 84 15.8 115.5 14.4'/%3E%3Cpath d='M105.4 4C106.6 40 104.4 82 105.6 116'/%3E%3Cpath d='M3.5 105.2C42 106.4 82 104.2 116 105.6'/%3E%3Cpath d='M14.6 5C13.6 40 15.8 82 14.4 115'/%3E%3C/g%3E%3C/svg%3E");
  --k-lu-grain: url("/skins/little_us_golden/assets/art/ink-grain-192.webp");
  /* Where the couple stands. The opener and the hero read these and nothing else, so the tap has no join: anchored from the top of
     the screen, one set of numbers (test/inv16_luxe.test.mjs). */
  --k-lu-w: min(84vw, 46.3svh, 487px);
  --k-lu-h: calc(var(--k-lu-w) * .8656);
  --k-lu-top: clamp(70px, 14svh, 132px);
  --k-lu-foot: calc(var(--k-lu-top) + var(--k-lu-h) * .932);
}
@media (min-width: 900px) { :root { --k-lu-w: min(38vw, 50svh, 520px); --k-lu-top: clamp(70px, 11svh, 120px); } }
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--k-paper); scrollbar-gutter: stable; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; color: var(--k-ink);
  font: 400 1rem/1.5 var(--k-font-body);
  background: var(--k-paper) var(--k-lu-tile) 0 0 / 512px 512px repeat;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, h4, dl, dd, ol, ul { margin: 0; font-weight: 400; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.k-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.kjy-main { font-family: var(--k-font-body); position: relative; overflow: hidden; overflow: clip; }

.k-lu-paper { background: var(--k-paper) var(--k-lu-tile) 0 0 / 512px 512px repeat; }

/* type: dry-brush script over widely spaced capitals, ink with a little grain, as the paper asks (feedback-textured-text) */
.k-lu-grain { padding: .2em .24em .3em; margin: -.2em -.24em -.3em;
  -webkit-mask: var(--k-lu-grain) 0 0 / 192px 192px repeat; mask: var(--k-lu-grain) 0 0 / 192px 192px repeat; }
.k-lu-scr { display: block; font: italic 600 1em/1.02 var(--k-font-script); font-style: italic; color: var(--k-script-ink); }
.k-lu-caps { letter-spacing: .18em; margin-right: -.18em; text-transform: uppercase; }
.k-lu-kick { font: 400 clamp(.82rem, .72rem + .5vw, 1rem)/1.4 var(--k-font-body); letter-spacing: .2em; margin-right: -.2em; text-transform: uppercase; color: var(--k-ink); }
.k-lu-note { font: italic 400 1.0625rem/1.4 var(--k-font-body); color: var(--k-ink-soft); }
.k-lu-amp { font-style: normal; color: var(--c-primary); }

/* A section opens the same way every time: its drawing, a brush title, spaced capitals, the pencil heart */
.k-lu-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.k-lu-ttl { font-size: calc(clamp(34px, 9.6vw, 58px) * var(--k-lu-z)); font-weight: 400; margin-top: 2px; }
.k-lu-head .k-lu-kick { margin-top: 12px; }
.k-lu-heart { display: block; width: clamp(150px, 42vw, 196px); height: clamp(14px, 3.8vw, 18px); margin: 14px auto 0; overflow: visible; }

/* A drawing: the ink picture, and on it the couple's colour through its own mask, so a colour change costs nothing */
.k-lu-draw { position: relative; display: block; width: min(62vw, 300px); max-width: 100%; }
.k-lu-draw > img { display: block; width: 100%; height: auto; }
.k-lu-acc { position: absolute; inset: 0; display: block; background: var(--c-primary); pointer-events: none;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

/* A drawing that moves (W2): its frames sit side by side in one picture, in a clipped box one frame wide. The rest frame comes first, so the
   page without the script shows the still drawing, and no element rests on a transform. Sections say how the frames play. */
.k-lu-strip { overflow: hidden; }
.k-lu-strip__s { position: relative; display: block; }
.k-lu-strip--2 > .k-lu-strip__s { width: 200%; }
.k-lu-strip--3 > .k-lu-strip__s { width: 300%; }
.k-lu-strip__s > img { display: block; width: 100%; height: auto; max-width: none; }

/* The couple on the tug: one strip of three frames in a clipped box, resting on the middle frame (the hero's pose) */
.k-lu-tug { position: absolute; left: 50%; top: var(--k-lu-top); width: var(--k-lu-w); height: var(--k-lu-h); margin-left: calc(var(--k-lu-w) / -2); overflow: hidden; }
.k-lu-tug__s { position: absolute; left: 0; top: 0; width: 300%; height: 100%; transform: translateX(-33.3333%); }
.k-lu-tug__s > img { display: block; width: 100%; height: 100%; max-width: none; }
.k-lu-tug__s > .k-lu-acc { -webkit-mask-image: url("/sections/core/opening/121_walk_the_cover_golden/assets/tug-strip-acc.webp"); mask-image: url("/sections/core/opening/121_walk_the_cover_golden/assets/tug-strip-acc.webp"); }

/* a photo stays whole and sharp, in a thin pencil frame */
.k-lu-print { display: block; padding: 3px; background: var(--k-photo-white); background-clip: padding-box; border: 8px solid transparent; border-image: var(--k-lu-frame) 15 / 8px / 0 stretch; }
.k-lu-print > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* buttons: the page's one colour, drawn by hand: no two corners alike, and pencil hatching on the solid ones */
.k-btn, .kjy-cal__toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--k-s-2);
  min-height: 46px; padding: 0 var(--k-s-5); border-radius: 26px 7px 22px 6px / 7px 22px 6px 26px;
  font: 400 1rem/1 var(--k-font-body); letter-spacing: .04em;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.k-btn--solid { background: var(--c-primary); background-image: repeating-linear-gradient(103deg, rgba(255, 255, 255, .13) 0 1px, transparent 1px 3.5px, rgba(0, 0, 0, .06) 3.5px 4.5px, transparent 4.5px 7px); color: #FFF; border: 1px solid var(--c-primary); }
.k-btn--solid:active { background: var(--k-ink); border-color: var(--k-ink); }
.k-btn--line, .kjy-cal__toggle { background: transparent; color: var(--k-ink); border: 1px solid var(--k-ink-soft); }
.k-btn--line:active, .kjy-cal__toggle:active { background: var(--k-field); }
.k-ico { width: 18px; height: 18px; flex: none; }
.kjy-cal { display: inline-block; position: relative; text-align: left; }
.kjy-cal__toggle { list-style: none; }
.kjy-cal__toggle::-webkit-details-marker { display: none; }
.kjy-cal__menu { position: absolute; z-index: 5; left: 50%; translate: -50% 0; top: calc(100% + 6px); min-width: 190px; padding: 6px; border-radius: 14px; background: var(--k-paper); border: 1px solid var(--k-pencil); }
.kjy-cal__opt { display: block; padding: 10px 12px; font: 400 1rem/1.2 var(--k-font-body); text-decoration: none; }

/* the small print at the end of the page */
.kjy-footer { font: 400 .75rem/1.4 var(--k-font-body); position: relative; z-index: 1; padding: var(--k-s-6) var(--k-gutter) calc(var(--k-s-8) + env(safe-area-inset-bottom)); text-align: center; }
.kjy-footer a { display: inline-flex; align-items: center; gap: 14px; padding: 14px 8px; font: 400 .75rem/1 var(--k-font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--k-ink-soft); text-decoration: none; }
.kjy-footer__logo { display: block; width: 47px; height: 23.5px; } /* 35 % smaller than the shared 72 px (owner, A2420) */
.kjy-footer__logo--porcelain { display: none; }

/* music is off everywhere until a licence (D-044); kept so the switch needs no skin change */
.kjy-sound { position: fixed; z-index: 90; top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right));
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center; cursor: pointer; border-radius: 50%; border: 1px solid var(--k-pencil);
  background: var(--k-paper); color: var(--k-ink); }
.kjy-preview ~ .kjy-sound { top: calc(64px + env(safe-area-inset-top)); }
.kjy-sound[aria-pressed="true"] .kjy-sound__off,
.kjy-sound[aria-pressed="false"] .kjy-sound__on { display: none; }

/* INV-16F Golden Hour: the evening, in code (A2540). Washes are WebP drawn by scripts/golden_hour_kit.py: no SVG filter runs on the page.
   The day runs down the page: gold, then rose, then dusk with the lights on (plan "The time of day"). */
.k-gh-sky { position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: clamp(120px, 34vw, 300px); pointer-events: none;
  background: center top / 100% 100% no-repeat; }
.k-gh-sky--sunset { background-image: url("/skins/little_us_golden/assets/wash/sky-sunset.webp"); }
.k-gh-sky--dusk { background-image: url("/skins/little_us_golden/assets/wash/sky-dusk.webp"); }
.k-gh-sun { position: absolute; z-index: -1; aspect-ratio: 1; pointer-events: none;
  background: url("/skins/little_us_golden/assets/wash/sun.webp") center / contain no-repeat; }
.k-gh-fest { position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: clamp(36px, 9.6vw, 52px); pointer-events: none;
  background: url("/skins/little_us_golden/assets/festoon.svg") center top / auto 100% repeat-x; }
.k-gh-fest--lit { background-image: url("/skins/little_us_golden/assets/festoon-lit.svg"); }

/* Ground under every drawing that stands, in the colour of its time of day; the box's own background, so it sits behind the drawing */
.k-lu-tug, .k-lu-draw { background: var(--gh-ground, none) center bottom / 96% auto no-repeat; }
.op121, .he121, .dt121, .cd121, .ev121 { --gh-ground: url("/skins/little_us_golden/assets/wash/ground-gold.webp"); }
.st121, .dc121, .vn121, .ga121 { --gh-ground: url("/skins/little_us_golden/assets/wash/ground-rose.webp"); }
.rs121, .cl121 { --gh-ground: url("/skins/little_us_golden/assets/wash/ground-dusk.webp"); }
/* W1.1 (A2548): only what the first screen after the reveal shows loads with the page (AG-T388): the sunset sky, the sun, the lights and the
   gold ground. The rose and dusk grounds, the dusk sky and the lit lights wait for the tap, like the drawings they sit under (INV-03B's way). */
html:not(.kjy-opened) :is(.st121, .dc121, .vn121, .ga121, .rs121, .cl121) { --gh-ground: none; }
html:not(.kjy-opened) :is(.k-gh-sky--dusk, .k-gh-fest--lit) { background-image: none; }

/* A picture book: chapters over the section heads, a page number and a turned-up corner at the foot of each page */
@counter-style gh-words { system: fixed; symbols: "one" "two" "three" "four" "five" "six" "seven" "eight" "nine" "ten" "eleven" "twelve"; suffix: ""; fallback: decimal; }
.kjy-main { counter-reset: gh-page gh-chap; }
section[data-kjy-section] { counter-increment: gh-page; }
.k-lu-head::before { counter-increment: gh-chap; content: "Chapter " counter(gh-chap, gh-words); display: block; margin: 0 -.24em 12px 0;
  font: 600 clamp(11px, 3vw, 13px)/1.3 var(--k-font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--c-primary); }
.k-gh-page { margin: clamp(26px, 5svh, 52px) 0 0; text-align: center; font: italic 400 clamp(15px, 4vw, 18px)/1 var(--k-font-body); color: var(--k-ink-soft); }
.k-gh-page::before { content: counter(gh-page); }
.k-gh-page::after { content: ""; position: absolute; right: 0; bottom: 0; width: clamp(34px, 10vw, 56px); aspect-ratio: 1; pointer-events: none;
  background: linear-gradient(135deg, transparent 50%, #E9DECB 50%, #F6EEDF 64%, #FFFDF8 100%);
  box-shadow: -1px -1px 5px rgba(80, 50, 20, .12); border-top-left-radius: 8px; }
