/* INV-02 Love Letters · Luxe (A2304, D-252; plan docs/plans/plan_inv02_love_letters.md): a white page of real cotton
   paper, huge tall letters, one script word in the couple's colour, photos with real torn edges. Every paper piece comes
   from one Kie macro (scripts/love_letters_kit.py); no colour is baked in. Shared parts live here as k-ll-*. */
@font-face { font-family: "Noto Serif Display"; src: url("assets/fonts/noto-serif-display-xcond-300-latin.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: block; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Serif Display"; src: url("assets/fonts/noto-serif-display-xcond-300-latin-ext.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "WindSong"; src: url("assets/fonts/windsong-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "WindSong"; src: url("assets/fonts/windsong-400-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-300-400-latin.woff2") format("woff2"); font-weight: 300 400; 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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-300-400-latin-ext.woff2") format("woff2"); font-weight: 300 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --k-gate-plaster: var(--k-card); --k-gate-metal: var(--k-ink);
  --k-rooms-bar: bubble; --k-rooms-change: tear; --k-rooms-drop: #161412;
  --k-ll-z: .87; /* the whole design's scale: big type, photo bands and column widths (owner 2026-10-31: "zoom it out by 10-15%") */
  --k-font-script: "WindSong", "Snell Roundhand", "Apple Chancery", cursive;
  --k-font-display: "Noto Serif Display", "Bodoni 72", Didot, Georgia, serif;
  --k-font-body: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --k-font-num: var(--k-font-display);
  --k-paper: #FDFCF9; --k-card: #FDFCF9; --k-paper-deep: #F1EEEA; --k-photo-white: #FDFCF9;
  --k-ink: #161412; --k-ink-soft: #6D6862; --k-ghost: #C4BFB7; --k-field: #F1EEEA; --k-field-line: #D9D4CC;
  --k-script-ink: var(--c-primary);
  --k-line: var(--k-ink);
  --k-dark: #161412; --k-on-dark: #FDFCF9; --k-on-dark-soft: rgba(253, 252, 249, .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(88px, 13vh, 150px); --k-day-gap: clamp(56px, 8vh, 96px); --k-measure: 500px;
  --k-ease: cubic-bezier(.22, 1, .36, 1);
  /* the torn strips: the same sheet at two widths, so a phone never loads the laptop's. Height caps them too, so a wide, short
     window keeps room above the tear for the opener's words (A2349). */
  --k-ll-strip: min(clamp(1000px, 100vw, 2400px), 180svh);
  --k-ll-dn: url("/skins/love_letters_luxe/assets/art/torn-down-1600.webp");
  --k-ll-up: url("/skins/love_letters_luxe/assets/art/torn-up-1600.webp");
  --k-ll-tile: url("/skins/love_letters_luxe/assets/art/paper-tile.webp");
  --k-ll-grain: url("/skins/love_letters_luxe/assets/art/ink-grain-192.webp");
}
/* Where the hero's photo ends. The opener's lower sheet starts on this same line, so it already is the hero's paper (A2324). */
:root { --k-ll-hero-ph: clamp(46svh, calc(100svh - 390px), 58svh); }
@media (min-width: 700px) { :root { --k-ll-hero-ph: clamp(46svh, calc(100svh - 534px), 58svh); } }
@media (min-width: 980px) { :root { --k-ll-hero-ph: clamp(46svh, calc(100svh - 372px), 60svh); } }
@media (min-width: 1101px) {
  :root {
    --k-ll-dn: url("/skins/love_letters_luxe/assets/art/torn-down-2400.webp");
    --k-ll-up: url("/skins/love_letters_luxe/assets/art/torn-up-2400.webp");
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 93.75%; -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: 300 1rem/1.55 var(--k-font-body);
  background: var(--k-paper) var(--k-ll-tile) 0 0 / calc(var(--k-ll-strip) * .1616) auto 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: 300; }
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; }

/* the same paper as the page, for anything that lies on a photo */
.k-ll-paper { background: var(--k-paper) var(--k-ll-tile) 0 0 / calc(var(--k-ll-strip) * .1616) auto repeat; }

/* type */
.k-ll-big { display: block; font: 300 1em/.9 var(--k-font-display); text-transform: uppercase; color: var(--k-ink); }
.k-ll-grain { padding: .25em .24em .42em; margin: -.25em -.24em -.42em;
  -webkit-mask: var(--k-ll-grain) 0 0 / 192px 192px repeat, linear-gradient(rgb(0 0 0 / .72) 0 0); mask: var(--k-ll-grain) 0 0 / 192px 192px repeat, linear-gradient(rgb(0 0 0 / .72) 0 0); }
.k-ll-scr { font: 400 1em/1 var(--k-font-script); font-style: normal; text-transform: none; color: var(--k-script-ink); }
.k-ll-kick { font: 300 clamp(.875rem, .625rem + 1.05vw, 1.1875rem)/1.28 var(--k-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--k-ink); }
.k-ll-small { font: 300 .8125rem/1.4 var(--k-font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--k-ink); }
.k-ll-rule { display: block; width: min(72%, 420px); height: 1px; margin: 0 auto; background: var(--k-ink); }

/* a section title: one big word, one script word crossing its foot */
.k-ll-ttl { position: relative; display: inline-block; font-size: calc(clamp(84px, 23vw, 190px) * var(--k-ll-z)); margin-bottom: .44em; font-weight: 300; }
.k-ll-ttl__s { position: absolute; left: 50%; bottom: -.5em; translate: -46% 0; rotate: -5deg; font-size: .62em; white-space: nowrap; text-transform: lowercase; }

/* a photo with torn paper lying on its edges */
.k-ll-ph { position: relative; display: block; overflow: hidden; background: var(--k-field); }
.k-ll-ph > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.k-ll-tear { --k-ll-s: var(--k-ll-strip); --k-ll-x: 50%; position: absolute; left: 0; right: 0; display: block; height: calc(var(--k-ll-s) * .145); pointer-events: none;
  background-repeat: no-repeat; background-size: max(var(--k-ll-s), 100%) calc(var(--k-ll-s) * .145); }
.k-ll-tear--up { bottom: -1px; background-image: var(--k-ll-up); background-position: var(--k-ll-x) bottom; }
.k-ll-tear--dn { top: -1px; background-image: var(--k-ll-dn); background-position: var(--k-ll-x) top; }
.k-ll-tear--flip { scale: -1 1; }
.k-ll-tear--a { --k-ll-x: 5%; } .k-ll-tear--b { --k-ll-x: 18%; } .k-ll-tear--c { --k-ll-x: 30%; } .k-ll-tear--d { --k-ll-x: 45%; }
.k-ll-tear--e { --k-ll-x: 62%; } .k-ll-tear--f { --k-ll-x: 75%; } .k-ll-tear--g { --k-ll-x: 88%; }
.k-ll-tear--l { --k-ll-s: 820px; } .k-ll-tear--m { --k-ll-s: 560px; } .k-ll-tear--s { --k-ll-s: 360px; }

/* buttons */
.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: 999px;
  font: 400 .78rem/1 var(--k-font-body); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.k-btn--solid { background: var(--k-ink); color: var(--k-paper); border: 1px solid var(--k-ink); }
.k-btn--solid:active { background: var(--c-primary); border-color: var(--c-primary); }
.k-btn--line, .kjy-cal__toggle { background: transparent; color: var(--k-ink); border: 1px solid var(--k-ink); }
.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-ink); }
.kjy-cal__opt { display: block; padding: 10px 12px; font: 300 .95rem/1.2 var(--k-font-body); text-decoration: none; }

/* the small print at the end of the page */
.kjy-footer { font: 300 .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: 300 .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: 72px; height: 36px; }
.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-ink);
  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; }
