/* Kampaamo Kuvitelma: the salon as one issue of a fashion magazine (site/kuvitelma.mjs). Coated white paper, black
   ink, one cobalt for type and the booking; every photo the same high-contrast black and white. Playfair 2 at its
   largest optical size for the masthead and headlines, Fragment Mono for folios, labels and the call sheet.
   Every page of the issue is composed differently; each carries its page number (the contents links to them).
   Motion (kuvitelma.js): the cover is set once, the stylists' portraits are cropped into place, the lookbook turns
   sideways. All of it is off under reduced motion. */

@font-face { font-family: "Playfair"; src: url("/demo/kampaamo/fonts/playfair-var.woff2") format("woff2"); font-weight: 300 900; font-stretch: 87.5% 112.5%; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair"; src: url("/demo/kampaamo/fonts/playfair-italic-var.woff2") format("woff2"); font-weight: 300 900; font-stretch: 87.5% 112.5%; font-style: italic; font-display: swap; }
@font-face { font-family: "Fragment Mono"; src: url("/demo/kampaamo/fonts/fragment-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --paper: #f3f2ee;
  --sheet: #fbfaf7;
  --ink: #121212;
  --ink-2: #4b4a47;
  --line: #121212;
  --hair: rgba(18, 18, 18, .22);
  --cobalt: #2335f0;
  --cobalt-hi: #1424c4;
  --serif: "Playfair", "Didot", "Bodoni 72", Georgia, serif;
  --mono: "Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --out: cubic-bezier(.16, 1, .3, 1);
  --g: clamp(16px, 2.2vw, 88px);
  --small: max(.8rem, .58vw);
  --run: 3rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--run); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--serif); font-variation-settings: "opsz" 14; font-kerning: normal; overflow-x: clip; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--cobalt); color: var(--paper); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.kv-vh, .k-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kv-skip { position: absolute; left: -9999px; top: .5rem; z-index: 60; padding: .7rem 1rem; background: var(--ink); color: var(--paper); font: 400 .9rem var(--mono); }
.kv-skip:focus { left: .5rem; }
[hidden] { display: none !important; }

/* the small type: folios, labels, issue lines */
.ka-issue, .ka-where, .ka-toc, .ka-credit, .ka-st-c, .kv-run, .kt-issue, .kt-photo figcaption, .kv-folio, .kf-role, .kf-qa dt,
.kl-sub, .kl-hint, .kl-look a, .kh-note, .kh-foot, .kh-issue, .kc-top, .kc-label, .kc-min, .kc-meta, .kc-range,
.kc-field label, .kc-c-issue, .ki-imprint dt, .k-hours, .ki-open, .kc-textbtn, .kv-link, .kc-alert, .kc-status, .k-err, .k-wait, .k-empty {
  font-family: var(--mono); font-size: var(--small); line-height: 1.45; letter-spacing: .02em; font-variation-settings: normal;
}

/* buttons and links */
.kv-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .55rem 1.5rem; border: 0; border-radius: 0; background: var(--cobalt); color: var(--paper); font: italic 400 max(1.2rem, 1.15vw)/1.1 var(--serif); font-variation-settings: "opsz" 120; text-decoration: none; cursor: pointer; transition: background-color .2s; }
.kv-btn:hover { background: var(--cobalt-hi); }
.kv-btn:active { transform: translateY(1px); }
.kv-link { display: inline-block; color: var(--cobalt); text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.kv-link:hover { text-decoration-thickness: 2px; }

/* the folio: the page number at the foot of each page */
.kv-folio { position: absolute; bottom: max(.9rem, 1.6vh); display: flex; gap: 1.4em; align-items: baseline; color: var(--ink-2); }
.kv-folio-n { color: var(--ink); font-variant-numeric: tabular-nums; }
.kv-folio-l { left: var(--g); }
.kv-folio-r { right: var(--g); flex-direction: row-reverse; }

/* Mrrp's demo bar, the same on every salon page */
.demo-bar { position: relative; z-index: 40; flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1.5rem; padding: .45rem clamp(16px, 3vw, 80px); background: #171513; color: #cdc7c3; font: 400 .84rem/1.45 system-ui, sans-serif; font-variation-settings: normal; }
.demo-bar p { flex: 1 1 30rem; }
.demo-bar strong { color: #fff; font-weight: 650; }
.demo-bar-end { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.demo-bar a { color: #f1f2f8; }
.demo-bar .lang, .demo-bar .ver { display: inline-flex; border: 1px solid #3a3633; }
.demo-bar .lang a, .demo-bar .ver a { min-width: 2.3rem; padding: .15rem .5rem; color: #a9a29e; font-size: .76rem; font-weight: 600; text-align: center; text-decoration: none; }
.demo-bar .lang a:hover, .demo-bar .ver a:hover { color: #fff; }
.demo-bar .lang a[aria-current], .demo-bar .ver a[aria-current] { background: #3a3633; color: #fff; }
.demo-bar :focus-visible { outline-color: #fff; }
.demo-bar .demo-bar-go { padding: .2rem .7rem; border-radius: 3px; background: #b3306f; color: #fff; font-weight: 650; text-decoration: none; }
.demo-bar .demo-bar-go:hover { background: #9c285f; }

/* ======== page 1: the cover. The demo bar and the cover share the first screen exactly ======== */
.kv-first { display: flex; flex-direction: column; height: 100svh; min-height: 34rem; }
.ka { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; container-type: size; isolation: isolate; background: var(--paper);
  --g: clamp(16px, 2.2cqw, 88px); --small: max(.8rem, .58cqw);
  --F: calc((100cqw - 2 * var(--g)) / 5.62); --mt: max(2.7rem, 4.2cqh); --hk: .42;
  /* the photo's height: as big as the screen allows while her shoulders still clear the cover lines either side */
  --ph: min(145cqh, calc((100cqw - 2 * var(--g) - 44cqw - 2rem) / .576)); }
.ka-issue, .ka-where, .ka-toc { position: absolute; z-index: 4; top: max(.9rem, 1.5cqh); text-transform: uppercase; }
.ka-issue { left: var(--g); }
.ka-where { left: 50%; transform: translateX(-50%); white-space: nowrap; }
.ka-toc { right: var(--g); text-decoration: none; }
.ka-toc:hover { text-decoration: underline; text-underline-offset: .25em; }

/* the masthead: full width, behind the model */
.ka-mast { position: absolute; z-index: 2; top: var(--mt); left: var(--g); color: var(--cobalt); font: 500 var(--F)/1 var(--serif); font-stretch: 112.5%; font-optical-sizing: none; font-variation-settings: "opsz" 1200; letter-spacing: -.004em; text-transform: uppercase; white-space: nowrap; }

/* The photo's ground is graded to the paper, so she stands on the page itself. Over the masthead lies a cut-out of her
   head and hair (img/ed-kansi-paa: the top 34 % of the same photo with an alpha matte made from the photo itself), at
   exactly the photo's place and scale, so she stands in front of the title. */
.ka-photo, .ka-head { position: absolute; width: auto; max-width: none;
  top: calc(var(--mt) + var(--hk) * var(--F) - .157 * var(--ph)); left: calc(50cqw + var(--dx, 0px) - .51 * .8115 * var(--ph)); pointer-events: none; user-select: none; }
.ka-photo { z-index: 1; height: var(--ph); }
.ka-head { z-index: 3; height: calc(var(--ph) * .33989); }

/* cover lines: real services and prices in the white either side of her */
.ka-left, .ka-right { position: absolute; z-index: 4; top: calc(var(--mt) + .9 * var(--F)); bottom: max(5.6rem, 11cqh); display: flex; flex-direction: column; gap: max(1.1rem, 3.2cqh); width: 22cqw; }
/* the cover lines knock out of the photo: near-black on the paper, white where they cross her jacket */
.ka-left, .ka-right { mix-blend-mode: difference; }
.ka-left { left: var(--g); }
.ka-right { right: calc(var(--g) + 1.6rem); align-items: flex-end; text-align: right; }
.ka-line { display: block; color: #fff; text-decoration: none; font: 400 max(1.25rem, 2.15cqw)/1.04 var(--serif); font-variation-settings: "opsz" 400; letter-spacing: -.01em; }
.ka-big { font-size: max(1.9rem, 3.9cqw); font-variation-settings: "opsz" 900; }
.ka-line em { font-style: italic; }
.ka-eur { font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.ka-note { display: block; margin-top: .5em; color: #c4c3bf; max-width: 30ch; font: 400 max(.98rem, .9cqw)/1.35 var(--serif); font-variation-settings: "opsz" 14; letter-spacing: 0; }
.ka-right .ka-note { margin-left: auto; }
.ka-line:hover .ka-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.ka-team { margin-bottom: auto; }
.ka-left .ka-big { margin-bottom: auto; }

/* the booking: a round cobalt sticker on her sleeve, like the price on a cover */
.ka-sticker { position: absolute; z-index: 5; left: calc(50cqw + .07 * var(--ph)); bottom: 11cqh; display: grid; place-content: center; justify-items: center; width: max(7.5rem, 10.5cqw); aspect-ratio: 1; border-radius: 50%; background: var(--cobalt); color: var(--paper); text-decoration: none; transform: rotate(-9deg); transition: transform .5s var(--out); }
.ka-sticker:hover { transform: rotate(-3deg) scale(1.04); }
.ka-st-a, .ka-st-b { font: italic 400 max(1.55rem, 2.25cqw)/.92 var(--serif); font-variation-settings: "opsz" 600; }
.ka-st-b { font-style: normal; }
.ka-st-c { margin-top: .6em; text-transform: uppercase; }

.ka-foot { position: absolute; z-index: 4; left: var(--g); bottom: max(.9rem, 1.8cqh); display: flex; flex-direction: column; color: var(--ink-2); font: 400 max(.92rem, .82cqw)/1.4 var(--serif); }
.ka-credit { position: absolute; z-index: 4; right: max(.5rem, .7cqw); bottom: max(.9rem, 1.8cqh); writing-mode: vertical-rl; transform: rotate(180deg); color: var(--ink-2); font-size: max(.7rem, .46cqw); text-transform: uppercase; }

/* portrait screens (phones, upright tablets): the masthead narrows to fit and sits higher over her head so the name
   reads; the cover lines move onto her black jacket */
@media (max-width: 700px), (max-aspect-ratio: 4/5) {
  /* she stands right of centre, so the cover lines lie on the left side of her jacket and the sticker on the paper */
  .ka { --g: 16px; --small: .72rem; --F: calc((100cqw - 2 * var(--g)) / 4.82); --mt: 3.4rem; --hk: .93; --ph: 150cqh; --dx: 22cqw; }
  .ka-mast { font-stretch: 87.5%; }
  .ka-foot, .ka-credit { display: none; }
  .ka-issue, .ka-toc { top: .75rem; }
  .ka-where { top: 1.95rem; left: var(--g); transform: none; }
  .ka-left, .ka-right { width: auto; max-width: calc(100cqw - 2 * var(--g)); right: auto; left: var(--g); bottom: auto; gap: .45rem; align-items: flex-start; text-align: left; }
  .ka-left { top: auto; bottom: calc(3.6rem + 1.2cqh); }
  .ka-left .ka-big { margin-bottom: .15rem; }
  .ka-right { top: auto; bottom: max(1rem, 1.2cqh); }
  .ka-line { font-size: clamp(1.15rem, 3.4cqw, 1.9rem); }
  .ka-big { font-size: clamp(1.9rem, 6cqw, 3.2rem); }
  .ka-left { bottom: calc(1.2rem + 1.2cqh + clamp(1.9rem, 6cqw, 3.2rem) * 1.1); }
  .ka-note, .ka-left .ka-line:nth-child(n+3), .ka-right .ka-line:not(.ka-team) { display: none; }
  .ka-sticker { left: var(--g); right: auto; bottom: auto; top: 34cqh; width: clamp(6.4rem, 17cqw, 10rem); }
  .ka-st-a, .ka-st-b { font-size: clamp(1.4rem, 4cqw, 2.2rem); }
}

/* upright tablets: her jacket is relatively narrower, so she stands further right */
@media (min-width: 600px) and (max-aspect-ratio: 4/5) { .ka { --dx: 30cqw; } }

/* the cover is set once, like a layout: the masthead is set left to right, then the cover lines, the sticker goes on
   last */
@media (prefers-reduced-motion: no-preference) {
  .ka-mast { animation: kv-set 1.3s cubic-bezier(.65, 0, .35, 1) .1s both; }
  .ka-line { animation: kv-set .9s var(--out) both; }
  .ka-left .ka-line:nth-child(1) { animation-delay: .55s; }
  .ka-right .ka-line:nth-child(1) { animation-delay: .65s; }
  .ka-left .ka-line:nth-child(2) { animation-delay: .75s; }
  .ka-right .ka-line:nth-child(2) { animation-delay: .85s; }
  .ka-left .ka-line:nth-child(3) { animation-delay: .95s; }
  .ka-right .ka-line:nth-child(3) { animation-delay: 1.05s; }
  .ka-sticker { animation: kv-stick .7s var(--out) 1.3s both; }
}
@keyframes kv-set { from { clip-path: inset(-5% 100% -5% 0); } to { clip-path: inset(-5% -2% -5% 0); } }
@keyframes kv-stick { from { opacity: 0; transform: rotate(-38deg) scale(.6); } to { opacity: 1; transform: rotate(-9deg) scale(1); } }

/* ======== the running head: the issue's title, the contents and the booking, on every page after the cover ======== */
.kv-run { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 2rem; height: var(--run); padding-inline: var(--g); background: var(--paper); border-bottom: 1px solid var(--line); text-transform: uppercase; }
.kv-run a { text-decoration: none; }
.kv-run a:hover { text-decoration: underline; text-underline-offset: .25em; }
.kv-run-mark { color: var(--cobalt); font: 500 1.15rem/1 var(--serif); font-stretch: 112.5%; font-variation-settings: "opsz" 200; letter-spacing: .04em; }
.kv-run-issue { color: var(--ink-2); margin-right: auto; }
.kv-run-book { padding: .35rem .8rem; background: var(--cobalt); color: var(--paper); }
.kv-run-book:hover { background: var(--cobalt-hi); text-decoration: none !important; }

main > section, main > div > article { position: relative; }

/* ======== pages 2–3: the contents. Huge italic title, the page numbers as the menu ======== */
.kt { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: var(--g); min-height: calc(100svh - var(--run)); padding: max(2.5rem, 6vh) var(--g) max(4rem, 9vh); }
.kt-h { grid-column: 1 / 8; grid-row: 1; margin-left: -.05em; font: italic 400 clamp(5rem, 15vw, 24rem)/.82 var(--serif); font-optical-sizing: none; font-variation-settings: "opsz" 600; letter-spacing: -.02em; }
.kt-issue { grid-column: 1 / 6; grid-row: 2; align-self: start; margin-top: 1.4rem; text-transform: uppercase; }
.kt-list { grid-column: 7 / 13; grid-row: 1 / 3; align-self: end; border-top: 1px solid var(--line); }
.kt-list li { border-bottom: 1px solid var(--hair); }
.kt-list a { display: grid; grid-template-columns: clamp(3.4rem, 7.6vw, 11.5rem) minmax(0, 1fr); column-gap: 1.5rem; align-items: baseline; padding: max(.8rem, 1.6vh) 0; text-decoration: none; }
.kt-n { grid-row: 1 / 3; color: var(--cobalt); font: 400 clamp(2.6rem, 5.4vw, 8.5rem)/.9 var(--serif); font-variation-settings: "opsz" 1200; font-variant-numeric: lining-nums tabular-nums; }
.kt-title { font: italic 400 clamp(1.6rem, 2.6vw, 4rem)/1.05 var(--serif); font-variation-settings: "opsz" 400; }
.kt-line { color: var(--ink-2); font-size: clamp(.98rem, .95vw, 1.5rem); }
.kt-list a:hover .kt-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.kt-photo { grid-column: 1 / 5; grid-row: 2; align-self: end; width: min(100%, 26vw); margin-top: 3rem; }
.kt-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.kt-photo figcaption { margin-top: .6rem; color: var(--ink-2); }
.kt-photo figcaption span { margin-right: .8em; color: var(--cobalt); }

/* ======== pages 4–11: the stylists, as interviews. A full-height portrait, the name huge, an italic pull quote ======== */
.kf { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); min-height: calc(100svh - var(--run)); padding-right: var(--g); }
.kf-portrait { grid-column: 1 / 7; grid-row: 1; position: sticky; top: var(--run); height: calc(100svh - var(--run)); overflow: hidden; background: #d6d5d1; }
.kf-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.kf-credit { margin-top: 1.4rem; color: var(--ink-2); font: 400 var(--small)/1.45 var(--mono); letter-spacing: .02em; }
.kf-credit + .kv-link { margin-top: 1.2rem; }
.kf-text { grid-column: 8 / 13; grid-row: 1; align-self: center; padding: max(3rem, 8vh) 0 max(5rem, 12vh); }
.kf-name { margin-left: -.06em; font: italic 400 clamp(5.5rem, 13vw, 21rem)/.8 var(--serif); font-optical-sizing: none; font-variation-settings: "opsz" 600; letter-spacing: -.02em; }
.kf-role { margin-top: 1.4rem; color: var(--ink-2); text-transform: uppercase; }
.kf-quote { margin: max(2.2rem, 5vh) 0 0; }
.kf-quote p { font: italic 400 clamp(1.7rem, 2.5vw, 4rem)/1.14 var(--serif); font-variation-settings: "opsz" 300; text-wrap: balance; }
.kf-quote p::before { content: "“"; margin-left: -.42em; padding-right: .06em; color: var(--cobalt); }
.kf-quote p::after { content: "”"; color: var(--cobalt); }
.kf-qa { display: grid; gap: 1.1rem; max-width: 38rem; margin-top: max(2rem, 4.5vh); padding-top: 1.2rem; border-top: 1px solid var(--line); }
.kf-qa dt { color: var(--ink-2); text-transform: uppercase; }
.kf-qa dd { margin-top: .2rem; font-size: clamp(1.08rem, 1.1vw, 1.7rem); line-height: 1.4; }
.kf-text .kv-link { margin-top: 2rem; }
.kf-work { grid-column: 5 / 7; grid-row: 1; align-self: end; z-index: 2; width: 100%; margin-bottom: max(4rem, 9vh); }
.kf-work-img { width: 100%; box-shadow: 0 0 0 max(8px, .5vw) var(--paper); }
/* Ilona: the other way round, and the name runs larger */
.kf.is-flip { padding-right: 0; padding-left: var(--g); }
.kf.is-flip .kf-portrait { grid-column: 7 / 13; }
.kf.is-flip .kf-text { grid-column: 1 / 6; }
.kf.is-flip .kf-name { font-size: clamp(5.5rem, 15vw, 24rem); }
.kf.is-flip .kf-work { grid-column: 6 / 9; align-self: end; margin: 0 0 max(4rem, 9vh); }
.kf.is-flip .kf-qa { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
.kf.is-flip .kf-qa div:last-child { grid-column: 1 / -1; }

/* the crops are set as the portrait comes in: it opens from a tight crop to the full frame, once */
.kv-motion [data-crop] .kf-img { clip-path: inset(9% 13% 9% 13%); transition: clip-path 1.6s var(--out), transform 1.6s var(--out); transform: scale(1.08); }
.kv-motion [data-crop].is-set .kf-img { clip-path: inset(0 0 0 0); transform: none; }

/* ======== pages 12–15: the lookbook. A long spread that turns sideways as you scroll (kuvitelma.js); without that,
   a strip you swipe ======== */
.kl { background: var(--paper); border-top: 1px solid var(--line); }
.kl-pin { position: relative; }
.kl-track { display: flex; align-items: center; gap: max(1.5rem, 3.4vw); height: min(calc(100svh - var(--run)), 70rem); padding: max(2rem, 5vh) var(--g) max(3.5rem, 8vh); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--g); scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.kl-track > * { flex: none; scroll-snap-align: start; }
.kl-open { display: flex; flex-direction: column; justify-content: center; width: 34vw; height: 100%; }
.kl-h { margin-left: -.05em; font: italic 400 clamp(4rem, 8.5vw, 16rem)/.85 var(--serif); font-optical-sizing: none; font-variation-settings: "opsz" 600; letter-spacing: -.02em; }
.kl-sub { max-width: 28rem; margin-top: 1.4rem; color: var(--ink-2); }
.kl-hint { margin-top: 2.4rem; color: var(--cobalt); text-transform: uppercase; }
.kl-look { display: flex; flex-direction: column; height: 100%; }
.kl-img { height: calc(100% - 4.2rem); width: auto; max-width: none; object-fit: cover; }
.kl-look figcaption { display: flex; flex-direction: column; gap: .15rem; padding-top: .7rem; }
.kl-name { font: italic 400 clamp(1.2rem, 1.35vw, 2.1rem)/1.15 var(--serif); font-variation-settings: "opsz" 200; }
.kl-look a { color: var(--ink-2); text-decoration: none; }
.kl-look a:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: .25em; }
/* a varied page: tall, short, raised, lowered */
.kl-look-0 .kl-img { height: calc(100% - 4.2rem); }
.kl-look-1 { height: 72%; align-self: flex-start; }
.kl-look-2 { height: 60%; align-self: flex-end; }
.kl-look-3 { height: 100%; }
.kl-look-4 { height: 66%; align-self: flex-start; }
.kl-look-5 { height: 86%; align-self: flex-end; }
.kl-look-6 { height: 100%; }
.kl-look-6 { padding-right: var(--g); box-sizing: content-box; }
.kl .kv-folio { z-index: 2; }
/* pinned: the page holds still while the spread slides past */
.kl.is-pinned .kl-pin { position: sticky; top: var(--run); height: calc(100svh - var(--run)); overflow: hidden; }
.kl.is-pinned .kl-track { height: 100%; overflow: visible; scroll-snap-type: none; will-change: transform; }

/* ======== pages 16–17: the price list, set as the issue's index: the head in Didone caps across the page, the six
   services as a full-measure leader table, the holster photo as a full-height strip at the right edge ======== */
.kh { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto 1fr auto; column-gap: var(--g); min-height: calc(100svh - var(--run)); padding: max(2.5rem, 6vh) 0 max(5rem, 11vh) var(--g); border-top: 1px solid var(--line); }
.kh-h { grid-column: 1 / 10; grid-row: 1; margin-left: -.03em; font: 500 clamp(3.4rem, 9.6vw, 15rem)/.86 var(--serif); font-stretch: 112.5%; font-optical-sizing: none; font-variation-settings: "opsz" 1000; letter-spacing: -.004em; text-transform: uppercase; }
.kh-issue { grid-column: 1 / 10; grid-row: 2; margin-top: 1rem; padding-bottom: 1rem; border-bottom: 2px solid var(--line); color: var(--ink-2); text-transform: uppercase; }
.kh-list { grid-column: 1 / 10; grid-row: 3; align-self: center; margin-top: max(1rem, 3vh); }
.kh-list li + li { border-top: 1px solid var(--hair); }
.kv-price { display: grid; grid-template-columns: auto minmax(2rem, 1fr) auto; column-gap: 1rem; align-items: baseline; padding: max(.8rem, 1.8vh) 0; text-decoration: none; }
.kh-name { font: 400 clamp(1.5rem, 2.6vw, 4.2rem)/1.08 var(--serif); font-variation-settings: "opsz" 300; }
.kh-dots { align-self: end; margin-bottom: .6em; border-bottom: 2px dotted var(--ink); }
.kh-eur { color: var(--cobalt); font: italic 400 clamp(2rem, 4vw, 6.4rem)/.95 var(--serif); font-variation-settings: "opsz" 900; font-variant-numeric: lining-nums tabular-nums; }
.kh-note { grid-column: 1 / -1; margin-top: .25rem; color: var(--ink-2); }
.kv-price:hover .kh-name { font-style: italic; }
.kh-foot { grid-column: 1 / 10; grid-row: 4; margin-top: 1.4rem; color: var(--ink-2); }
.kh-photo { grid-column: 11 / 13; grid-row: 1 / 5; margin: calc(-1 * max(2.5rem, 6vh)) 0 calc(-1 * max(5rem, 11vh)); overflow: hidden; }
.kh-img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 58%; }
.kh .kv-folio-r { right: auto; left: var(--g); flex-direction: row; }

/* ======== pages 18–19: the booking, as the shoot's call sheet ======== */
.kc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding: max(3rem, 8vh) var(--g) max(5rem, 11vh); border-top: 1px solid var(--line); }
.kc-head { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: end; padding-bottom: 1rem; margin-bottom: 1.4rem; border-bottom: 2px solid var(--line); }
.kc-h { grid-column: 1 / 8; font: 500 clamp(2.4rem, 4.4vw, 7rem)/.95 var(--serif); font-stretch: 112.5%; font-optical-sizing: none; font-variation-settings: "opsz" 900; text-transform: uppercase; }
.kc-deck { grid-column: 9 / 13; max-width: 34rem; color: var(--ink-2); font-size: clamp(1rem, 1vw, 1.5rem); }
/* The call sheet, one step at a time (kuvitelma.js): no boxes. Each step is a row under a hairline: its number and
   label at the left, then either its choices (the open step), one quiet line with "muuta" (a finished step), or
   nothing (a step still to come). Choices are type; the picked one turns cobalt and italic. */
.kc-sheet { grid-column: 1 / -1; }
.kc-top { margin-bottom: 1.2rem; color: var(--ink-2); text-transform: uppercase; }
.kc-pad { margin: 0; }
.kc-pad > .kc-step:first-child { border-top: 0; padding-top: 0; }
.kc-step { display: grid; grid-template-columns: minmax(9rem, 16rem) minmax(0, 1fr); column-gap: max(1.5rem, 3vw); align-items: baseline; min-width: 0; margin: 0; padding: max(1.1rem, 2.4vh) 0; border: 0; border-top: 1px solid var(--hair); }
.kc-label { float: left; grid-column: 1; padding: 0; color: var(--ink); text-transform: uppercase; font-weight: 400; outline: none; }
.kc-n { display: inline-block; min-width: 1.8em; color: var(--cobalt); }
.kc-step > :not(.kc-label) { grid-column: 2; }
.kc-step.is-later .kc-label { color: var(--ink-2); opacity: .55; }
.kc-step.is-later .kc-line, .kc-step.is-open .kc-line { display: none; }
.kc-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1.2rem; font: 400 clamp(1.15rem, 1.35vw, 2rem)/1.3 var(--serif); font-variation-settings: "opsz" 120; }
.kc-line .is-empty { color: var(--ink-2); font-style: italic; }
[data-t-service].is-new, [data-t-staff].is-new, [data-t-when].is-new { animation: kv-mark 1.2s var(--out); }
@keyframes kv-mark { from { color: var(--cobalt); } }
.kc-edit, .kc-next, .kc-arrow, .k-textbtn, .kc-textbtn { min-height: 44px; padding: 0 .1rem; border: 0; background: none; color: var(--cobalt); font: 400 var(--small)/1.45 var(--mono); letter-spacing: .02em; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; cursor: pointer; }
.kc-edit:hover, .kc-next:hover, .kc-arrow:not(:disabled):hover, .k-textbtn:hover { text-decoration-thickness: 2px; }
.kc-next { margin-top: .8rem; }
/* without script every step stays open; with it, the next-step links do the moving */
.kc-sheet:not(.is-stepped) .kc-next, .kc-sheet:not(.is-stepped) .kc-line .kc-edit[data-edit] { display: none; }

/* services: a plain list */
.kc-svcs { display: grid; max-width: 44rem; }
.kc-opt { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 4.5rem; column-gap: 1.4rem; align-items: baseline; min-height: 44px; padding: .45rem 0; cursor: pointer; }
.kc-opt input, .kc-who input { position: absolute; opacity: 0; pointer-events: none; }
.k-svc-name { font: 400 clamp(1.2rem, 1.45vw, 2.2rem)/1.2 var(--serif); font-variation-settings: "opsz" 160; }
.kc-min { color: var(--ink-2); }
.kc-eur { justify-self: end; color: var(--ink-2); font: 400 clamp(1.05rem, 1.2vw, 1.8rem)/1.2 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.kc-opt:hover .k-svc-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.kc-opt:has(input:checked) .k-svc-name, .kc-opt:has(input:checked) .kc-eur { color: var(--cobalt); font-style: italic; }
.kc-opt:has(input:focus-visible), .kc-who:has(input:focus-visible) { outline: 2px solid var(--cobalt); outline-offset: 4px; }

/* stylists: face, name and days */
.kc-whos { display: flex; flex-wrap: wrap; gap: 1rem max(2rem, 3.4vw); }
.kc-who { position: relative; display: grid; grid-template-columns: 3.6rem auto; column-gap: .9rem; align-items: center; min-height: 44px; padding: .3rem 0; cursor: pointer; }
.kc-face { grid-row: 1 / 3; display: flex; width: 3.6rem; aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.kc-face img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.kc-face-any img { width: 50%; }
.k-who-name { font: 400 clamp(1.25rem, 1.45vw, 2.1rem)/1.1 var(--serif); font-variation-settings: "opsz" 200; }
.kc-meta { color: var(--ink-2); }
.kc-who:hover .k-who-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.kc-who:has(input:checked) .k-who-name { color: var(--cobalt); font-style: italic; }

/* the day and the time: plain type */
.kc-weekbar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 1.4rem; }
.kc-range { margin-right: auto; color: var(--ink-2); }
.kc-arrow:disabled { color: var(--ink-2); opacity: .4; text-decoration: none; cursor: default; }
.kc-days { display: flex; flex-wrap: wrap; gap: 0 max(1.2rem, 2.4vw); margin-top: .4rem; }
.k-day { display: grid; justify-items: start; min-width: 44px; min-height: 44px; padding: .35rem 0; border: 0; background: none; cursor: pointer; text-align: left; }
.k-day-wd { font-family: var(--mono); font-size: var(--small); text-transform: uppercase; color: var(--ink-2); }
.k-day-date { font: 400 clamp(1.2rem, 1.45vw, 2.1rem)/1.1 var(--serif); font-variant-numeric: lining-nums; }
.k-day-n { display: none; }
.k-day:disabled { cursor: default; color: rgba(18, 18, 18, .3); }
.k-day:disabled .k-day-wd { color: inherit; }
.k-day.is-today .k-day-wd { color: var(--cobalt); }
.k-day[aria-pressed="true"] .k-day-date { color: var(--cobalt); font-style: italic; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.k-day:not(:disabled):not([aria-pressed="true"]):hover .k-day-date { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.kc-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: 0 1rem; max-width: 52rem; margin-top: 1.1rem; min-height: 2.6rem; transition: opacity .2s; }
.kc-times.is-loading { opacity: .45; }
.kc-times > p { grid-column: 1 / -1; }
.k-time { min-height: 44px; padding: 0; border: 0; background: none; font: 400 clamp(1.1rem, 1.25vw, 1.8rem)/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; text-align: left; cursor: pointer; }
.k-time:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.k-time[aria-pressed="true"] { color: var(--cobalt); font-style: italic; text-decoration: underline; text-underline-offset: .2em; }
.k-wait, .k-empty { color: var(--ink-2); }
.kc-alert, .kc-status { margin-top: .8rem; color: #a8221a; }

/* the model's details */
.kc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 2rem; max-width: 56rem; }
.kc-wide { grid-column: 1 / -1; }
.kc-field label { display: block; color: var(--ink-2); text-transform: uppercase; }
.kc-opt-l { text-transform: none; }
.kc-field input, .kc-field textarea { display: block; width: 100%; margin-top: .25rem; padding: .45rem 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: none; font: 400 clamp(1.15rem, 1.3vw, 1.9rem)/1.3 var(--serif); caret-color: var(--cobalt); }
.kc-field textarea { resize: vertical; min-height: 3.2rem; }
.kc-field input:focus, .kc-field textarea:focus { outline: none; border-bottom: 2px solid var(--cobalt); }
.kc-field input[aria-invalid="true"], .kc-field textarea[aria-invalid="true"] { border-bottom-color: #a8221a; }
.k-err { margin-top: .3rem; color: #a8221a; }
.k-hp { position: absolute; left: -9999px; }
.kc-submit { margin-top: 1.6rem; }

/* the confirmation: a small cover with the visitor's first name on it, made of the issue's own cover */
.kc-done { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(16rem, 30rem) minmax(0, 1fr); gap: max(2rem, 4vw); align-items: center; padding: max(1.5rem, 3vw) 0; border-top: 1px solid var(--hair); outline: none; }
.kc-cover { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); container-type: size; box-shadow: 0 1.4rem 3rem -1.4rem rgba(18, 18, 18, .45);
  --g: 4cqw; --F: calc((100cqw - 2 * var(--g)) / 5.62); --mt: 9cqh; --ph: 150cqh; --dx: 30cqw; }
.kc-c-mast { position: absolute; z-index: 2; top: var(--mt); left: var(--g); color: var(--cobalt); font: 500 var(--F)/1 var(--serif); font-stretch: 112.5%; font-optical-sizing: none; font-variation-settings: "opsz" 1200; text-transform: uppercase; white-space: nowrap; }
.kc-c-photo, .kc-c-head { position: absolute; width: auto; max-width: none; top: calc(var(--mt) + .5 * var(--F) - .157 * var(--ph)); left: calc(50cqw + var(--dx) - .51 * .8115 * var(--ph)); pointer-events: none; }
.kc-c-photo { z-index: 1; height: var(--ph); }
.kc-c-head { z-index: 3; height: calc(var(--ph) * .33989); }
.kc-c-issue { position: absolute; z-index: 4; top: 2.6cqh; left: var(--g); font-size: max(.6rem, 2.6cqw); text-transform: uppercase; }
/* the cover lines knock out of the photo, as on the issue's own cover */
/* the cover lines, set on the paper beside her (the photo sits right of centre on this small cover) */
.kc-c-lines { position: absolute; z-index: 4; top: 29cqh; left: var(--g); width: 44cqw; display: flex; flex-direction: column; gap: 2.2cqh; color: var(--ink); }
.kc-c-on { font: italic 400 11cqw/.95 var(--serif); font-variation-settings: "opsz" 900; overflow-wrap: anywhere; }
.kc-c-on span { font-size: .4em; }
.kc-c-on strong { font-weight: 400; color: var(--cobalt); }
.kc-c-when { font: 400 4.2cqw/1.25 var(--serif); }
.kc-c-what { font: italic 400 3.8cqw/1.25 var(--serif); }
.kc-c-where { font: 400 max(.6rem, 2.4cqw)/1.3 var(--mono); text-transform: uppercase; color: var(--ink-2); }
.kc-done-h { font: italic 400 clamp(2.4rem, 4.2vw, 6.5rem)/1 var(--serif); font-variation-settings: "opsz" 900; }
.kc-done-side p { max-width: 34rem; margin-top: 1rem; color: var(--ink-2); font-size: clamp(1rem, 1vw, 1.5rem); }
.kc-done-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.6rem; }
.kc .kv-folio { bottom: max(1.4rem, 3vh); }

/* ======== page 20: the imprint, with the address and hours ======== */
.ki { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); min-height: calc(100svh - var(--run)); padding-right: var(--g); border-top: 1px solid var(--line); }
.ki-photo { grid-column: 1 / 6; min-height: 100%; overflow: hidden; }
.ki-img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.ki-text { grid-column: 7 / 13; align-self: center; padding: max(3rem, 8vh) 0 max(5rem, 11vh); }
.ki-h { font: italic 400 clamp(2.8rem, 5vw, 8rem)/.95 var(--serif); font-optical-sizing: none; font-variation-settings: "opsz" 1000; letter-spacing: -.015em; }
.ki-imprint { margin: max(1.8rem, 4vh) 0 2.2rem; border-top: 1px solid var(--line); }
.ki-imprint > div { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); column-gap: 1.5rem; padding: .9rem 0; border-bottom: 1px solid var(--hair); }
.ki-imprint dt { color: var(--ink-2); text-transform: uppercase; padding-top: .2rem; }
.ki-imprint dd { font-size: clamp(1.05rem, 1.1vw, 1.7rem); line-height: 1.45; }
.ki-imprint dd a { text-underline-offset: .2em; }
.ki-note { display: block; margin-top: .3rem; color: var(--ink-2); font-size: .9em; }
.ki-open { margin-bottom: .4rem; }
.ki-open strong { color: var(--cobalt); font-weight: 400; }
.k-hours { border-collapse: collapse; }
.k-hours th, .k-hours td { padding: .1rem 1.4rem .1rem 0; font-weight: 400; text-align: left; font-variant-numeric: tabular-nums; }
.k-hours th { text-transform: uppercase; }
.k-hours tr.is-today { color: var(--cobalt); }
.k-hours tr.is-closed { color: var(--ink-2); }

/* ======== phones and narrow screens: each page recomposed as one column ======== */
@media (max-width: 800px) {
  :root { --run: 2.75rem; --small: .74rem; }
  .demo-bar { font-size: .74rem; padding: .35rem 16px; gap: .2rem 1rem; }
  .demo-bar p { flex-basis: 100%; }
  .kv-run { gap: 1rem; }
  .kv-run-issue { display: none; }
  .kv-run a:not(.kv-run-mark):not(.kv-run-book) { margin-left: auto; }

  .kt { display: flex; flex-direction: column; min-height: 0; padding-bottom: 4.5rem; }
  .kt-h { font-size: 25vw; }
  .kt-issue { margin-top: .8rem; }
  .kt-list { margin-top: 2rem; }
  .kt-list a { grid-template-columns: 3.6ch minmax(0, 1fr); column-gap: 1rem; }
  .kt-photo { width: 62%; align-self: flex-end; margin-top: 2rem; }

  .kf, .kf.is-flip { display: flex; flex-direction: column; min-height: 0; padding: 0 0 4.5rem; }
  .kf-portrait, .kf.is-flip .kf-portrait { position: relative; top: 0; height: auto; aspect-ratio: 4 / 5; }
  .kf-text { padding: 0 var(--g); }
  /* the name sits over the foot of the portrait and knocks out of it */
  .kf-name, .kf.is-flip .kf-name { margin-top: -.42em; position: relative; z-index: 2; font-size: 30vw; color: #fff; mix-blend-mode: difference; }
  .kf.is-flip .kf-qa { grid-template-columns: 1fr; }
  .kf-work, .kf.is-flip .kf-work { width: 58%; margin: 2.2rem var(--g) 0 auto; }
  .kf.is-flip .kf-work { margin: 2.2rem auto 0 var(--g); }

  .kl-track { height: min(78svh, 46rem); gap: 1rem; }
  .kl-open { width: 72vw; }
  .kl-h { font-size: 19vw; }
  .kl-look, .kl-look-1, .kl-look-2, .kl-look-4, .kl-look-5 { height: 100%; align-self: auto; }
  .kl-img { height: calc(100% - 4.6rem); width: auto; max-width: 78vw; }

  .kh { display: flex; flex-direction: column; min-height: 0; padding: 2rem var(--g) 4.5rem; }
  .kh-h { font-size: 15.5vw; }
  .kh-list { margin-top: .6rem; }
  .kv-price { column-gap: .5rem; }
  .kh-photo { order: -1; height: 34vh; margin: -2rem calc(-1 * var(--g)) 1.6rem; }
  .kh .kv-folio-r { left: auto; right: var(--g); flex-direction: row-reverse; }

  .kc { display: block; padding-bottom: 4.5rem; }
  .kc-head { display: block; }
  .kc-h { font-size: 11vw; }
  .kc-deck { margin-top: 1rem; }
  .kc-step { display: block; padding: 1rem 0 1.1rem; }
  .kc-label { float: left; width: 100%; margin-bottom: .5rem; }
  .kc-step > :not(.kc-label) { clear: both; }
  .kc-opt { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: .9rem; }
  .kc-whos { flex-direction: column; gap: .2rem; }
  .kc-face { width: 3rem; }
  .kc-who { grid-template-columns: 3rem auto; }
  .kc-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
  .k-day { justify-items: center; text-align: center; min-width: 0; }
  .k-day-m { display: none; }
  .kc-times { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .k-time { text-align: center; }
  .kc-fields { grid-template-columns: 1fr; }
  .kc-done { grid-template-columns: 1fr; padding: 1rem 0 1.4rem; }
  .kc-cover { width: min(100%, 24rem); }

  .ki { display: flex; flex-direction: column; min-height: 0; padding: 0 0 4.5rem; }
  .ki-photo { aspect-ratio: 4 / 3; }
  .ki-text { padding: 2rem var(--g) 0; }
  .ki-imprint > div { grid-template-columns: 1fr; row-gap: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ka-sticker, .kv-btn { transition: none; }
  [data-t-service].is-new, [data-t-staff].is-new, [data-t-when].is-new { animation: none; }
}

@media print {
  .demo-bar, .kv-run, .kc, .kl-hint { display: none; }
  .kv-first { height: auto; }
}
