/* INV-15 Olive Grove · Luxe (A2395, D-287, D-288; plan docs/plans/plan_inv15_olive_grove.md): golden-hour photos and warm paper in
   turns, joined by torn edges, one continuous strip with no boxes. Fine line icons, hairlines and a sprig are the only decoration.
   Paper is the torn cotton macro recoloured (scripts/olive_grove_kit.py); words, lines and colours stay in code. Shared parts are k-og-*. */
@font-face { font-family: "Mrs Saint Delafield"; src: url("assets/fonts/mrs-saint-delafield-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+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: "Mrs Saint Delafield"; src: url("assets/fonts/mrs-saint-delafield-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+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: "Spectral"; src: url("assets/fonts/spectral-300i-latin-ext.woff2") format("woff2"); font-weight: 300; 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; }
@font-face { font-family: "Spectral"; src: url("assets/fonts/spectral-300i-latin.woff2") format("woff2"); font-weight: 300; font-style: italic; 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: "Spectral"; src: url("assets/fonts/spectral-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+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: "Spectral"; src: url("assets/fonts/spectral-300-latin.woff2") format("woff2"); font-weight: 300; 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: "Spectral"; src: url("assets/fonts/spectral-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+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: "Spectral"; src: url("assets/fonts/spectral-400-latin.woff2") format("woff2"); font-weight: 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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --k-gate-plaster: var(--k-card); --k-gate-metal: var(--k-ink);
  --k-og-z: .87; /* the whole design's scale: starts about 13 % smaller, per "not in the face" */
  --k-font-script: "Mrs Saint Delafield", "Snell Roundhand", "Apple Chancery", cursive;
  --k-font-display: "Spectral", Georgia, "Times New Roman", serif;
  --k-font-body: var(--k-font-display);
  --k-font-num: var(--k-font-display);
  --k-paper: #F7F1E6; --k-card: #F7F1E6; --k-paper-deep: #EFE7D8; --k-photo-white: #FBF7EE; --k-sky: #EFD0AF; /* the reply sheet: the photos' warm light, lightened (A2405); the name stays */
  --k-ink: #3B3A2C; --k-ink-soft: #494736; --k-ghost: #B9B4A2; --k-field: transparent; --k-field-line: rgb(59 58 44 / .5);
  --k-script-ink: var(--c-primary); --k-script-deep: color-mix(in srgb, var(--c-primary) 78%, #1c1c10);
  --k-hair: color-mix(in srgb, var(--c-primary) 35%, transparent);
  --k-og-fill: var(--c-primary); --k-og-fill-down: var(--k-script-deep); --k-og-on-fill: #fff;
  --k-line: var(--k-hair);
  --k-dark: #3B3A2C; --k-on-dark: #F7F1E6; --k-on-dark-soft: rgba(247, 241, 230, .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: 520px;
  --k-ease: cubic-bezier(.22, 1, .36, 1);
  /* the torn strips: one sheet at two widths, so a phone never loads the laptop's */
  --k-og-strip: clamp(1000px, 100vw, 2400px);
  --k-og-dn: url("/skins/olive_grove_luxe/assets/art/oat-down-1600.webp");
  --k-og-up: url("/skins/olive_grove_luxe/assets/art/oat-up-1600.webp");
  --k-og-sky-dn: url("/skins/olive_grove_luxe/assets/art/sky-down-1600.webp");
  --k-og-sky-up: url("/skins/olive_grove_luxe/assets/art/sky-up-1600.webp");
  --k-og-tile: url("/skins/olive_grove_luxe/assets/art/oat-tile.webp");
  --k-og-sky-tile: url("/skins/olive_grove_luxe/assets/art/sky-tile.webp");
  --k-og-inkgrain: url("/skins/olive_grove_luxe/assets/art/ink-grain-192.webp");
  --k-og-sk-gown: url("/skins/olive_grove_luxe/assets/art/sketch-gown.webp");
  --k-og-sk-suit: url("/skins/olive_grove_luxe/assets/art/sketch-suit.webp");
  --k-og-sprig: url("/skins/olive_grove_luxe/assets/art/sprig.webp");
  /* the hero's frame: the opener draws the same one, so nothing moves when the sheet lifts */
  --k-og-frame-h: max(100svh, 600px);
  --k-og-foot: max(17svh, 118px);
  --k-og-sprig-w: min(96px, 11.5svh);
  --k-og-sprig-l: calc(50% - var(--k-og-sprig-w) / 2);
  --k-og-sprig-t: calc(var(--k-og-frame-h) - var(--k-og-foot) * .68);
}
/* the bright tone: the couple's colour at one fixed lightness, so ink words always read (#F09A5A by default) */
@supports (color: oklch(from red l c h)) {
  :root { --k-og-fill: oklch(from var(--c-primary) .76 c calc(h + 9)); --k-og-fill-down: oklch(from var(--c-primary) .73 c calc(h + 9)); --k-og-on-fill: var(--k-ink); }
}
@media (min-width: 700px) { :root { --k-og-z: .95; } }
@media (min-width: 1024px) {
  :root { --k-og-z: 1.04; --k-og-foot: 11svh; --k-og-sprig-w: 64px; --k-og-sprig-l: calc(50% + 196px); --k-og-sprig-t: calc(var(--k-og-frame-h) - var(--k-og-foot) * .9); }
}
@media (min-width: 1101px) {
  :root {
    --k-og-dn: url("/skins/olive_grove_luxe/assets/art/oat-down-2400.webp"); --k-og-up: url("/skins/olive_grove_luxe/assets/art/oat-up-2400.webp");
    --k-og-sky-dn: url("/skins/olive_grove_luxe/assets/art/sky-down-2400.webp"); --k-og-sky-up: url("/skins/olive_grove_luxe/assets/art/sky-up-2400.webp");
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -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 calc(19px * (var(--k-og-z) + .07))/1.6 var(--k-font-body);
  background: var(--k-paper) var(--k-og-tile) 0 0 / calc(var(--k-og-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; text-align: center; }

/* printed ink: a faint grain on every line of text, as the paper is real. Zero specificity, so a section can opt out with .k-nogr.
   A mask ends at the box, so the script carries padding for its swashes (AG-T285). Buttons, fields and pictures stay crisp, and so do
   the small capitals: the grain punched a hole in a thin capital I ("W!TH"). */
:where([data-kjy-section]) :where(h1, h2, h3, h4, p, li, dt, dd, label, legend, figcaption, time, .k-og-scr):where(:not(.k-nogr, .k-og-kick, .k-og-ttl, :has(.k-og-scr, p, h1, h2, h3, h4, li, dt, dd, label, legend, figcaption, time), :has(.k-btn, button, input, select, textarea, img, a, .k-og-ic, details))) {
  -webkit-mask: var(--k-og-inkgrain) 0 0 / 192px 192px repeat; mask: var(--k-og-inkgrain) 0 0 / 192px 192px repeat;
}

.k-og-paper { background: var(--k-paper) var(--k-og-tile) 0 0 / calc(var(--k-og-strip) * .1616) auto repeat; }

/* type */
.k-og-kick { font: 400 calc(13.5px * (var(--k-og-z) + .07))/1.7 var(--k-font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--k-ink-soft); }
.k-og-scr { display: block; font: 400 1em/1 var(--k-font-script); font-style: normal; text-transform: none; color: var(--k-script-ink); padding: .12em .3em; }
/* A section title: large script on one dry stroke of the brush, so a section has a clear start (A2421). The stroke is a colour-free mask and loads
   after the tap, because no title is on the first screen. No ink grain here: it breaks the script's hairlines, so a hair of stroke firms them up instead. */
.k-og-ttl { position: relative; display: block; width: fit-content; max-width: 100%; margin-inline: auto; padding: .3em .72em .24em; font: 400 calc(clamp(60px, 16.5vw, 76px) * var(--k-og-z))/1.1 var(--k-font-script); letter-spacing: 0; color: var(--k-ink); -webkit-text-stroke: .35px currentColor; text-wrap: balance; }
html.kjy-opened .k-og-ttl::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--k-og-brush-tone, var(--k-og-fill)); opacity: var(--k-og-brush-a, .86);
  -webkit-mask: url("/skins/olive_grove_luxe/assets/art/brush-a.webp") center / 100% 100% no-repeat; mask: url("/skins/olive_grove_luxe/assets/art/brush-a.webp") center / 100% 100% no-repeat; }
html.kjy-opened :is(.ev110, .dc110, .ga110) .k-og-ttl::before { -webkit-mask-image: url("/skins/olive_grove_luxe/assets/art/brush-b.webp"); mask-image: url("/skins/olive_grove_luxe/assets/art/brush-b.webp"); }
html.kjy-opened :is(.st110, .vn110) .k-og-ttl::before { scale: -1 1; }
/* The warm reply sheet: apricot would vanish on it, so its title sits on a cream stroke, and the soft ink is a step deeper to read on it. In the skin because a section may set only its own prefix (A2451). */
.rs110 { --k-og-brush-tone: var(--k-paper); --k-og-brush-a: .86; --k-ink-soft: #524F3E; }
.k-og-ttl { isolation: isolate; }

/* The drawn dividers: a pen line of the photos' hills, where two sections share one sheet of paper and no tear parts them (A2419).
   The space above and below is equal, so a divider belongs to neither section. */
.k-og-gap { padding-block: clamp(64px, 10vh, 112px); }
.k-og-div { display: block; width: min(520px, 100%); height: auto; margin: 0 auto; overflow: visible; fill: none; stroke: var(--c-primary); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.k-og-div__far { stroke-width: 1.1; opacity: .55; }
.k-og-div__sun, .k-og-div__star path { fill: var(--k-og-fill); }

/* the fine line icons: colour-free masks, so the couple's colour reaches them */
.k-og-ic { display: block; width: var(--k-og-s, 58px); height: var(--k-og-s, 58px); background: var(--c-primary); -webkit-mask: var(--k-og-i) center / contain no-repeat; mask: var(--k-og-i) center / contain no-repeat; }
.k-og-ic--ceremony { --k-og-i: url("/skins/olive_grove_luxe/assets/art/ic-ceremony.webp"); }
.k-og-ic--rings { --k-og-i: url("/skins/olive_grove_luxe/assets/art/ic-rings.webp"); }
.k-og-ic--drinks { --k-og-i: url("/skins/olive_grove_luxe/assets/art/ic-drinks.webp"); }
.k-og-ic--meal { --k-og-i: url("/skins/olive_grove_luxe/assets/art/ic-meal.webp"); }
.k-og-ic--cake { --k-og-i: url("/skins/olive_grove_luxe/assets/art/ic-cake.webp"); }
.k-og-ic--departure { --k-og-i: url("/skins/olive_grove_luxe/assets/art/ic-departure.webp"); }
.k-og-ic--music { --k-og-i: url("/skins/olive_grove_luxe/assets/art/ic-music.webp"); }
.k-og-ic--dhol { --k-og-i: url("/skins/olive_grove_luxe/assets/art/ic-dhol.webp"); }
.k-og-ic--mehndi { --k-og-i: url("/skins/olive_grove_luxe/assets/art/ic-mehndi.webp"); }
.k-og-ic--haldi { --k-og-i: url("/skins/olive_grove_luxe/assets/art/ic-haldi.webp"); }
.k-og-ic--other { --k-og-i: url("/skins/olive_grove_luxe/assets/art/ic-other.webp"); }
.k-og-ic--doves { --k-og-i: url("/skins/olive_grove_luxe/assets/art/ic-doves.webp"); }
.k-og-ic--sprig-a { --k-og-i: url("/skins/olive_grove_luxe/assets/art/ic-sprig-a.webp"); }
.k-og-ic--sprig-b { --k-og-i: url("/skins/olive_grove_luxe/assets/art/ic-sprig-b.webp"); }
.k-og-ic--candle { --k-og-i: url("/skins/olive_grove_luxe/assets/art/ic-candle.webp"); }
.k-og-ic--envelope { --k-og-i: url("/skins/olive_grove_luxe/assets/art/ic-envelope.webp"); }

/* a photo band with torn paper lying on its edges */
.k-og-ph { position: relative; display: block; overflow: hidden; background: var(--k-paper-deep); }
.k-og-ph > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.k-og-tear { --k-og-s: var(--k-og-strip); --k-og-x: 50%; position: absolute; left: 0; right: 0; z-index: 2; display: block; height: calc(var(--k-og-s) * .145); pointer-events: none;
  background-repeat: no-repeat; background-size: max(var(--k-og-s), 100%) calc(var(--k-og-s) * .145); }
.k-og-tear--up { bottom: -1px; background-image: var(--k-og-up); background-position: var(--k-og-x) bottom; }
.k-og-tear--dn { top: -1px; background-image: var(--k-og-dn); background-position: var(--k-og-x) top; }
.k-og-tear--a { --k-og-x: 12%; } .k-og-tear--b { --k-og-x: 24%; } .k-og-tear--c { --k-og-x: 36%; } .k-og-tear--d { --k-og-x: 50%; }
.k-og-tear--e { --k-og-x: 62%; } .k-og-tear--f { --k-og-x: 74%; } .k-og-tear--g { --k-og-x: 88%; }
.k-og-tear--l { --k-og-s: 900px; } .k-og-tear--m { --k-og-s: 620px; }
.k-og-band { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.k-og-band__p { height: clamp(420px, 118vw, 640px); overflow: hidden; }
.k-og-band__p > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.k-og-band__p + .k-og-band__p { display: none; }
/* the strips sit part off the band, so the paper bites only the rim and never a head */
.k-og-band > .k-og-tear--dn { top: calc(var(--k-og-strip) * -.05); }
.k-og-band > .k-og-tear--up { bottom: calc(var(--k-og-strip) * -.03); }
@media (min-width: 700px) { .k-og-band__p { height: min(70vw, 640px); } }
@media (min-width: 1024px) {
  .k-og-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-og-band:not(:has(.k-og-band__p + .k-og-band__p)) { grid-template-columns: minmax(0, 1fr); }
  .k-og-band__p { height: min(62svh, 620px); }
  .k-og-band__p + .k-og-band__p { display: block; }
}

/* The hero's frame. The opener draws this same frame under its sheet, so the only thing that moves on the tap is the sheet.
   At every size the photo runs to the torn foot, so the laptop looks like the phone (the owner's pick, D-313). */
.k-og-frame { position: relative; height: var(--k-og-frame-h); overflow: hidden; }
.k-og-print { position: absolute; left: 0; right: 0; top: 0; bottom: var(--k-og-foot); overflow: hidden; background: var(--k-paper-deep); }
.k-og-print__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-og-print__fade { position: absolute; inset: 36% 0 0; background: linear-gradient(to bottom, rgb(46 33 13 / 0), rgb(46 33 13 / .5) 34%, rgb(46 33 13 / .68) 62%, rgb(46 33 13 / .78)); }
.k-og-foot { position: absolute; left: 0; right: 0; bottom: 0; height: var(--k-og-foot); z-index: 3; }
.k-og-foot .k-og-tear { top: auto; bottom: calc(100% - 1px); }
.k-og-sprig { position: absolute; z-index: 30; left: var(--k-og-sprig-l); top: var(--k-og-sprig-t); width: var(--k-og-sprig-w); aspect-ratio: 1; background: var(--k-og-sprig) center / contain no-repeat; pointer-events: none; }
@media (min-width: 1024px) {
  .k-og-print__fade { inset: 42% 0 0; background: radial-gradient(ellipse 42% 46% at 50% 50%, rgb(46 33 13 / .26), rgb(46 33 13 / .16) 60%, rgb(46 33 13 / 0)), linear-gradient(to bottom, rgb(46 33 13 / 0), rgb(46 33 13 / .5) 34%, rgb(46 33 13 / .68) 62%, rgb(46 33 13 / .78)); } /* a soft shade behind the words, none on the faces above */
  .k-og-foot .k-og-tear { bottom: calc(100% - 9svh); } /* the wide strip tears high: set it lower, so the names and their tails stay clear of it */
}

/* 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 28px; border-radius: 999px;
  font: 400 calc(13px * (var(--k-og-z) + .07))/1 var(--k-font-body); letter-spacing: .2em; 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-og-fill); color: var(--k-og-on-fill); border: 1px solid var(--k-og-fill); }
.k-btn--solid:active { background: var(--k-og-fill-down); border-color: var(--k-og-fill-down); }
.k-btn--line, .kjy-cal__toggle { background: transparent; color: var(--c-primary); border: 1px solid var(--c-primary); }
.k-btn--line:active, .kjy-cal__toggle:active { background: var(--k-paper-deep); }
.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-hair); box-shadow: 0 8px 18px -8px rgb(40 30 12 / .4); }
.kjy-cal__opt { display: block; padding: 10px 12px; font: 300 1rem/1.2 var(--k-font-body); text-decoration: none; }

/* the small print at the end of the page */
.kjy-footer { font: 300 .8rem/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: 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-hair);
  background: var(--k-paper); color: var(--c-primary); }
.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; }
