/* Instrument Sans (SIL Open Font License), served from this site so no visitor data goes to Google */
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/fonts/instrument-sans-latin-ext.woff2) format('woff2');
  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;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/fonts/instrument-sans-latin.woff2) format('woff2');
  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 {
  --white: #fff;
  --ink: #2b2a2c;
  --rose: #a86a80;
  --pad: clamp(18px, 2.2vw, 32px);
  --col: 620px;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-stretch: 92%;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; margin: 0; }
html { background: #8f8d8a; }
body { font-weight: 400; font-size: 16px; line-height: 1.6; letter-spacing: 0; }
h1, h2, b, .name { font-stretch: 82%; }
a { color: inherit; text-decoration: none; transition: opacity .3s ease; }
a:hover { opacity: .6; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2 { text-wrap: balance; }

/* fixed photographic stage: one scene per chapter, sharp layer under a blurred one */
.stage { position: fixed; inset: 0; z-index: -1; background: #8f8d8a; }
.scene { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.scene[data-scene="0"] { opacity: 1; }
.scene > div { position: absolute; inset: 0; background: center / cover no-repeat; background-position: var(--pos); }
.scene .sharp::after, .scene .soft::after { content: ""; position: absolute; inset: 0; }
.scene .sharp::after { background: rgba(25, 25, 25, .14); }
.scene .soft { opacity: 0; will-change: opacity; filter: saturate(.7); }
.scene .soft::after { background: rgba(25, 25, 25, var(--shade, .3)); }
.scene[data-scene="0"] .sharp::after { background: linear-gradient(90deg, rgba(25,25,25,.38), rgba(25,25,25,0) 50%); }
/* home portrait (4000 x 2000, her photo is the lower 1400 rows, face on the centre line): as wide as before on tall
   windows, but never so tall that her hair reaches the name in the header; the two outer terms keep the screen covered */
body:not(.article) .scene[data-scene="0"] > div { background-size: auto max(100vh, 50vw, min(76.923vw, calc((100vh - 160px) * 1.4925))); }

/* header: large on the first screen, compact once you scroll */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: var(--pad); pointer-events: none; }
.top > * { pointer-events: auto; }
.top::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 120px; background: linear-gradient(rgba(25,25,25,.42), rgba(25,25,25,0)); backdrop-filter: blur(6px); -webkit-mask: linear-gradient(#000 40%, transparent); mask: linear-gradient(#000 40%, transparent); opacity: 0; transition: opacity .5s ease; z-index: -1; pointer-events: none; }
.scrolled .top::before { opacity: 1; }
.brand { display: grid; text-transform: uppercase; line-height: 1.02; }
/* two header states stacked in one cell; they only crossfade through blur, nothing moves */
.brand > span { grid-area: 1 / 1; transition: opacity .6s ease, filter .6s ease; }
.brand .full > span, .brand .compact > span { display: block; }
.brand .compact { display: flex; gap: .5em; align-items: baseline; opacity: 0; filter: blur(8px); pointer-events: none; }
.scrolled .brand .full { opacity: 0; filter: blur(8px); pointer-events: none; }
.scrolled .brand .compact { opacity: 1; filter: none; }
.role { font-weight: 400; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: .01em; margin-bottom: 6px; }
.name { font-weight: 600; font-size: clamp(34px, 4.4vw, 64px); letter-spacing: -.01em; }
.brand .compact .role, .brand .compact .name { font-size: 15px; margin: 0; letter-spacing: .01em; }
.controls { display: flex; flex: none; gap: 22px; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.controls button { all: unset; cursor: pointer; transition: opacity .3s; }
.controls button:hover { opacity: .6; }
.lang b { font-weight: 500; }
.lang a { opacity: .55; }
.lang a:hover { opacity: 1; }

/* booking button: an eye, with a dot that travels along its outline */
.book { position: fixed; right: var(--pad); bottom: var(--pad); z-index: 20; width: 160px; height: 72px; padding: 0; border: 0; background: none; color: var(--white); cursor: pointer; display: grid; place-items: center; transform-origin: 100% 100%; animation: open-eye 1.2s .3s cubic-bezier(.6,0,.2,1) both; }
.book::before { content: ""; position: absolute; inset: 0; clip-path: path("M3 36 C 36 -6, 124 -6, 157 36 C 124 78, 36 78, 3 36 Z"); background: rgba(30,30,30,.22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .4s; }
.book:hover::before { background: rgba(30,30,30,.34); }
.book svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.book path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .4s; }
.book circle { fill: currentColor; }
.book span { position: relative; font-size: 13px; font-weight: 600; letter-spacing: 0; }
@keyframes open-eye { from { transform: scaleY(.04); opacity: 0; } }

/* side menu */
.veil { position: fixed; inset: 0; z-index: 30; background: rgba(20,20,20,.35); opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.menu { position: fixed; top: 0; right: 0; bottom: 0; z-index: 31; width: min(560px, 100%); background: var(--rose); padding: var(--pad); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .55s cubic-bezier(.7,0,.2,1); }
.menu-open .veil { opacity: 1; pointer-events: auto; }
.menu-open .menu { transform: none; }
.menu .close { align-self: flex-end; }
.menu nav { margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 30px; font-weight: 600; font-stretch: 82%; letter-spacing: -.01em; }
.pill { display: inline-block; margin-top: 44px; padding: 12px 28px; border: 1px solid var(--white); border-radius: 50%; font-size: 16px; font-weight: 600; letter-spacing: 0; background: none; color: inherit; font-family: inherit; cursor: pointer; }
.pill:hover { background: rgba(255,255,255,.14); }
.menu footer { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; font-size: 12.5px; }

/* booking dialog */
dialog { border: 0; padding: 0; background: none; color: var(--ink); max-width: none; max-height: none; width: 100%; height: 100%; }
dialog::backdrop { background: rgba(20,20,20,.5); backdrop-filter: blur(6px); }
dialog[open] { display: grid; place-items: center; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; } }
.card { position: relative; width: min(520px, calc(100% - 40px)); background: #f4f1ee; padding: 44px 40px 40px; }
.card h2 { font-size: 28px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
.card p { margin-bottom: 22px; color: #4a4749; }
.card dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 26px; font-size: 14.5px; }
.card dt { font-size: 14.5px; font-weight: 600; color: #7b7679; }
.card .x { all: unset; position: absolute; top: 16px; right: 20px; cursor: pointer; font-size: 14px; }

/* chapters */
.intro { height: 100vh; position: relative; }
.scroll-cue { position: absolute; bottom: calc(var(--pad) + 14px); left: 50%; width: 1px; height: 46px; background: rgba(255,255,255,.75); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.3); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

.title { height: 100vh; display: grid; place-items: center; padding: var(--pad); text-align: center; scroll-margin-top: 0; }
.title h1 { font-size: clamp(44px, 7vw, 104px); font-weight: 650; letter-spacing: -.025em; line-height: 1; max-width: 12em; text-shadow: 0 0 40px rgba(0,0,0,.18); }

.block { min-height: 100vh; display: grid; place-items: center; padding: 16vh var(--pad); text-shadow: 0 0 24px rgba(0,0,0,.12); }
.block > div { width: min(var(--col), 100%); }
.block h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 650; letter-spacing: -.015em; line-height: 1.1; margin-bottom: 22px; }
.block p + p { margin-top: 1em; }
.lead { font-weight: 600; }
.quote { font-size: clamp(28px, 3vw, 44px); font-weight: 500; font-stretch: 85%; line-height: 1.2; letter-spacing: -.015em; }
.cite { margin-top: 22px; font-size: 14px; opacity: .9; max-width: 30em; }
.frame { width: auto !important; }
.frame img { width: min(360px, 72vw); border: 6px solid #f4f1ee; }
ul.dash { list-style: none; padding: 0; }
ul.dash li { position: relative; padding-left: 30px; }
ul.dash li + li { margin-top: 20px; }
ul.dash li::before { content: ""; position: absolute; left: 0; top: .82em; width: 16px; height: 1px; background: currentColor; }
ul.dash b { display: block; font-weight: 650; font-size: 17px; margin-bottom: 2px; }
ul.dash.plain li { padding-left: 0; }
ul.dash.plain li::before { content: none; }
ul.dash li a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* price and info rows */
.stack { display: grid; gap: 12vh; width: min(900px, 100%) !important; }
.rows { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px 60px; align-items: start; }
.rows h2 { margin: 0; font-size: clamp(22px, 2.1vw, 28px); }
.row { display: grid; grid-template-columns: 6.5em 1fr auto; align-items: center; gap: 18px; font-size: 15px; }
.row + .row { margin-top: 12px; }
.row hr { border: 0; border-top: 1px solid rgba(255,255,255,.75); width: 100%; min-width: 30px; }
.row span:last-child { text-align: right; white-space: nowrap; }
.note { font-size: 14px; opacity: .9; }
.stack > .note { justify-self: end; width: calc((100% - 60px) * 1.25 / 2.25); }

/* article page */
.article .block { min-height: 0; padding: 0 var(--pad); }
.article .block + .block { margin-top: 1em; }
.article .block:has(figure), .article .block + .block:has(figure) { margin: 44px 0; }
.article .block:has(figure) + .block { margin-top: 0; }
.article .title + .block { margin-top: 4vh; }
.article .block:last-child { margin-top: 64px; padding-bottom: 22vh; }
.article-head > div { width: min(760px, 100%); text-align: left; }
.article-head h1 { max-width: none; margin: 14px 0 18px; font-size: clamp(44px, 6vw, 88px); }
.article-head .meta { font-size: 14px; opacity: .9; }
.article-head .sub { font-size: 19px; font-weight: 500; max-width: 30em; }
figure.wide { width: min(686px, 100%) !important; margin: 0; }
figure.wide img { width: 100%; }
figure.wide figcaption { margin-top: 12px; font-size: 14px; opacity: .9; text-align: center; }
.article .legal h2 { font-size: clamp(22px, 2.1vw, 28px); margin: 1.6em 0 12px; }
.article .legal p a, .article .legal li a, .article-head .meta a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article .legal ul.dash { margin: 1em 0; }
.article .legal ul.dash li + li { margin-top: 10px; }
.article .block:has(.sub-head) { margin-top: 2.2em; }
.article .sub-head h2 { margin-bottom: 0; }
.article blockquote { margin: .6em 0; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.8); font-size: clamp(20px, 1.9vw, 25px); font-weight: 500; font-stretch: 88%; line-height: 1.35; }
.article .block p a, .article blockquote a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.back { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.back .pill { margin: 0; }

/* resources: article list, home "all" link and the /resurse pager */
.all { margin: -24px 0 48px; text-align: right; font-weight: 600; }
.resources .articles { margin-bottom: 0; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 36px; font-size: 15px; }
.pager > :last-child { justify-self: end; }
.pager .pages { display: flex; gap: 4px; }
.pager .pages > * { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 50%; }
.pager .pages b { border: 1px solid currentColor; font-weight: 600; }
.articles { list-style: none; padding: 0; margin: 40px 0 48px; border-top: 1px solid rgba(255,255,255,.55); }
.articles li { border-bottom: 1px solid rgba(255,255,255,.55); }
.articles a { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 22px 0; }
.articles .meta { grid-column: 1; font-size: 13px; opacity: .8; }
.articles b { grid-column: 1; font-size: clamp(22px, 2.2vw, 30px); font-weight: 650; letter-spacing: -.015em; line-height: 1.15; }
.articles span:not(.meta) { grid-column: 1; opacity: .92; }
.articles i { grid-column: 2; grid-row: 1 / 4; align-self: center; font-style: normal; font-size: 22px; transition: transform .4s ease; }
.articles a:hover { opacity: 1; }
.articles a:hover i { transform: translateX(6px); }

.end { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 0 var(--pad) calc(var(--pad) + 90px); font-size: 12.5px; }

.reveal { opacity: 0; filter: blur(14px); transition: opacity 1.4s ease, filter 1.4s ease; }
.reveal.in { opacity: 1; filter: none; }

@media (max-width: 760px) {
  .scene[data-scene="0"] > div { background-size: auto 100%; background-position: center bottom; }
  .role { font-size: 14px; margin-bottom: 4px; }
  .name { font-size: 27px; }
  .brand .compact { flex-direction: column; gap: 2px; }
  .brand .compact .role, .brand .compact .name { font-size: 13px; }
  .controls { gap: 14px; font-size: 12px; }
  .book { transform: scale(.8); }
  .rows { grid-template-columns: 1fr; gap: 16px; }
  .row { grid-template-columns: 5.5em 1fr auto; gap: 12px; font-size: 13.5px; }
  .stack > .note { width: auto; justify-self: start; }
  .block { padding: 14vh 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; filter: none; }
}
