/* Lise Liddell — draft. Colours sampled from her own photographs and covers:
   pearl = the Paris sky, ruby = her site red / the red shoes, ink = the black vest,
   night = the woods on the Untrodden Ways cover, ivory = the gown, bronze = the bridge lamp. */
:root {
  --pearl: #ebeae7;
  --paper: #f7f6f3;
  --ink: #1f1c1d;
  --night: #15110e;
  --ruby: #9b031c;
  --ruby-dark: #6f0213;
  --ruby-lit: #e0566b;
  --ivory: #f4efe6;
  --bronze: #6a584b;
  --gilt: #c9a24a;
  --line: rgba(31, 28, 29, 0.13);
  --line-dark: rgba(244, 239, 230, 0.16);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ui: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --hand: "Cedarville Cursive", "Snell Roundhand", cursive;   /* her own words: the album note, poems */
  --edge: 10.8vw;
  --bg-color: #ebeae7;            /* the screen's ground and ink right now; site.js changes these as sections arrive */
  --fg-color: #1f1c1d;
  --accent: var(--ruby);                 /* the one left edge everything hangs from (set by the opener's open sky) */
}

/* registered so every tint derived from them eases along with the body's own transition */
@property --bg-color { syntax: "<color>"; inherits: true; initial-value: #ebeae7; }
@property --fg-color { syntax: "<color>"; inherits: true; initial-value: #1f1c1d; }
html.start-dark { --bg-color: #15110e; --fg-color: #f4efe6; }
html.colors-ease { transition: --bg-color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), --fg-color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background-color: var(--bg-color); color: var(--fg-color);
  font-family: var(--serif); font-size: 19px; line-height: 1.6; font-optical-sizing: auto;
  overflow-x: hidden;
  min-height: 100svh; display: flex; flex-direction: column;      /* short pages still fill the screen; the footer sits at the bottom */
}
body > main { flex: 1 0 auto; }
body.colors-set { transition: background-color .5s cubic-bezier(.25,.46,.45,.94), color .5s cubic-bezier(.25,.46,.45,.94); }   /* their rule, verbatim */
body.fg-color--light { --accent: var(--ruby-lit); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--fg-color); }
:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3, .lede, .soon p, .news, .pop-fine, .foot-join p, .read-quote p { text-wrap: balance; }   /* no orphans */
p { text-wrap: pretty; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: calc(100vw - 2 * var(--edge)); max-width: 1700px; margin: 0 auto; }
.label { font: 500 13px/1.3 var(--ui); letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- header bar (every page) ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
/* home: the bar is the top of the photograph's sky, sampled along the picture's top edge, so the sky simply continues */
.bar.sky {
  background: linear-gradient(90deg, #eaeaec 0, #ecebee 10%, #efedf0 20%, #f1eff2 35%, #efecf0 50%, #e9e8eb 60%, #ececec 70%, #eeeeee 90%, #e8e9e8 100%);
  box-shadow: none;
}
.bar.sky.is-stuck { box-shadow: 0 1px 0 var(--line); }
.bar .wrap { display: flex; align-items: center; gap: clamp(18px, 2.8vw, 44px); min-height: 62px; }
.bar .home { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.bar .home img { height: 34px; width: auto; }
/* home: her name lives in the opener; it moves up into the bar once that has scrolled away */
.bar.sky .home { opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s; }
.bar.sky.show-mark .home { opacity: 1; visibility: visible; }
.menu { display: flex; gap: clamp(18px, 2.8vw, 44px); }
.menu a {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 500 13px/1 var(--ui); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.menu a:hover { color: var(--ruby); }
/* social links: one set of small ringed buttons, the same everywhere */
.social { display: flex; gap: 8px; }
.social a {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; color: var(--ink);
  border: 1px solid rgba(31, 28, 29, 0.28); transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.social a::after { content: ""; position: absolute; inset: -4px; }            /* 46px touch area */
.social a:hover { color: #fff; background: var(--ruby); border-color: var(--ruby); }
.social svg { width: 15px; height: 15px; fill: currentColor; display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px; border-radius: 2px;
  font: 500 13px/1.2 var(--ui); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; text-align: center;
  color: #fff; background: var(--ruby); border: 1px solid var(--ruby);
}
.btn:hover { color: #fff; background: var(--ruby-dark); border-color: var(--ruby-dark); }
.btn.alt { color: var(--ink); background: transparent; border-color: var(--ink); }
.btn.alt:hover { color: #fff; background: var(--ink); }
.btn.inv { color: var(--bg-color); background: var(--fg-color); border-color: var(--fg-color); }
.btn.inv:hover { color: #fff; background: var(--ruby); border-color: var(--ruby); }

/* ---------- opener ----------
   The whole photograph, edge to edge, never cropped and never faded: the opener takes the picture's own shape.
   Her own photograph is the right 39% of the image, untouched; the bridge to its left was extended from
   reference photographs of the Pont Alexandre III. --h is the picture's height; positions are measured from
   the picture so the words sit in open sky: the name above the lamp tops, the line and buttons between the
   two left lamps. */
.hero { --h: 57.9vw; position: relative; aspect-ratio: 3710 / 2148; overflow: hidden; background: #e6e5e5; }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; }
.hero-words { color: var(--ink); position: absolute; z-index: 2; top: 0; left: var(--edge); width: calc(0.43 * var(--h)); }
.name {
  position: relative; width: var(--h); font-size: calc(0.1 * var(--h));   /* 1em = a tenth of the mark */
  line-height: 0; color: var(--ruby); margin: calc(0.034 * var(--h)) 0 0;
}
.name .mark {
  display: block; width: 100%; height: auto; fill: currentColor; overflow: visible;
  /* written on, left to right, once */
  -webkit-mask: linear-gradient(90deg, #000 0, #000 45%, transparent 55%) 100% 0 / 220% 100% no-repeat;
          mask: linear-gradient(90deg, #000 0, #000 45%, transparent 55%) 100% 0 / 220% 100% no-repeat;
  animation: write-on 2.4s 0.3s cubic-bezier(0.45, 0, 0.25, 1) forwards;
}
@keyframes write-on { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
/* small gold glints where light would catch the pen strokes; each fires as the writing passes, then every 7s */
.glints i {
  position: absolute; width: 0.46em; height: 0.46em; margin: -0.23em 0 0 -0.23em;
  background: radial-gradient(circle, #fff 0 16%, #f3cf7a 40%, #c9921f 100%);
  clip-path: polygon(50% 0, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%);
  filter: drop-shadow(0 0 0.06em #fff);
  transform: scale(0); opacity: 0; animation: glint 7s infinite;
}
@keyframes glint {
  0% { transform: scale(0) rotate(0deg); opacity: 0; }
  5% { transform: scale(1) rotate(20deg); opacity: 1; }
  11%, 100% { transform: scale(0) rotate(45deg); opacity: 0; }
}
.lede { font-size: max(17px, calc(0.028 * var(--h))); line-height: 1.35; font-style: italic; margin-top: calc(0.05 * var(--h)); }
.pair { display: flex; gap: 12px; margin-top: calc(0.034 * var(--h)); }
.pair .btn { min-height: max(46px, calc(0.048 * var(--h))); font-size: max(13px, calc(0.0125 * var(--h))); padding: 0 max(26px, calc(0.028 * var(--h))); }

/* ---------- bands: each section changes ground, so one ends and the next begins ---------- */
.band { padding: clamp(64px, 8vw, 132px) 0; }
.band h2 { font-size: clamp(40px, 4.6vw, 80px); line-height: 1.04; font-weight: 300; font-style: italic; letter-spacing: -0.01em; }
.quiet { color: color-mix(in srgb, var(--fg-color) 62%, transparent); }

/* ---------- music: the night of the album cover ---------- */

.album { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5.5vw, 100px); align-items: start; }
.album .cover { width: 100%; box-shadow: 0 50px 90px -40px #000; }
.album-title { margin-top: clamp(22px, 2.4vw, 36px); font-size: clamp(40px, 4.6vw, 80px); line-height: 1.04; font-weight: 300; font-style: italic; letter-spacing: -0.01em; }
.album .year { margin-top: 10px; color: color-mix(in srgb, var(--fg-color) 60%, transparent); }
.also { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.also a { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 16px; background: #fff; border-radius: 3px; }
.also a:hover { background: #f4efe6; }
.also img { height: 28px; width: auto; }
/* her note on the album: one full screen; the words light up as you scroll through it */
.read { height: 230svh; }
.read-quote { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px var(--edge) 40px; }
.read-quote .label { color: color-mix(in srgb, var(--fg-color) 60%, transparent); }
.read-quote p { margin-top: clamp(18px, 2.4vw, 36px); max-width: 17em; font-size: clamp(30px, 4.5vw, 70px); line-height: 1.16; font-style: italic; font-weight: 300; letter-spacing: -0.012em; }
.read-quote p span { opacity: 0.16; transition: opacity 0.25s ease; }
.read-quote p span.on { opacity: 1; }
.read-quote cite { display: block; width: clamp(200px, 24vw, 380px); margin-top: clamp(14px, 2vw, 30px); color: var(--accent); }
.read-quote cite .mark {
  display: block; width: 100%; height: auto; fill: currentColor; overflow: visible;
  -webkit-mask: linear-gradient(90deg, #000 0, #000 45%, transparent 55%) 100% 0 / 220% 100% no-repeat;
          mask: linear-gradient(90deg, #000 0, #000 45%, transparent 55%) 100% 0 / 220% 100% no-repeat;
  transition: -webkit-mask-position 1.8s cubic-bezier(0.45, 0, 0.25, 1), mask-position 1.8s cubic-bezier(0.45, 0, 0.25, 1);
}
.read-quote cite.on .mark { -webkit-mask-position: 0 0; mask-position: 0 0; }

.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--fg-color) 16%, transparent); }
.tracks button {
  all: unset; box-sizing: border-box; position: relative; cursor: pointer;
  display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; align-items: center;
  width: 100%; min-height: 50px; padding: 4px 10px 4px 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--fg-color) 16%, transparent);
  font-size: clamp(18px, 1.35vw, 22px); line-height: 1.25;
}
.tracks button:hover { background: color-mix(in srgb, var(--fg-color) 6%, transparent); }
.tracks button:focus-visible { outline: 2px solid var(--gilt); outline-offset: -2px; }
.tracks .n, .tracks .d { font: 400 13px/1 var(--ui); letter-spacing: 0.08em; color: color-mix(in srgb, var(--fg-color) 55%, transparent); }
.tracks .n { padding-left: 4px; }
.tracks button::after {                      /* how far into the song */
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--p, 0%); background: var(--accent);
}
.tracks .n::before { content: ""; display: none; box-sizing: border-box; }
.tracks button:hover .n, .tracks button:focus-visible .n, .tracks .is-playing .n, .tracks .is-paused .n { font-size: 0; }
.tracks button:hover .n::before, .tracks button:focus-visible .n::before, .tracks .is-paused .n::before {   /* play */
  display: inline-block; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor;
}
.tracks .is-playing .n::before, .tracks .is-playing:hover .n::before {                                        /* pause */
  display: inline-block; width: 10px; height: 12px; border-style: solid; border-width: 0 3px; border-color: currentColor;
}
.tracks button:hover .n { color: var(--fg-color); }
.tracks .is-playing .n, .tracks .is-paused .n { color: var(--accent); }

.shelf-lead { margin-top: clamp(64px, 7vw, 120px); padding-top: clamp(28px, 3vw, 44px); border-top: 1px solid color-mix(in srgb, var(--fg-color) 16%, transparent); color: color-mix(in srgb, var(--fg-color) 60%, transparent); }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); margin-top: clamp(64px, 7vw, 120px); }
.shelf a.card { text-decoration: none; color: inherit; display: block; }
.shelf img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.shelf .t { display: block; font-style: italic; font-size: clamp(19px, 1.7vw, 28px); margin-top: 14px; }
.shelf .y { display: block; margin-top: 4px; color: color-mix(in srgb, var(--fg-color) 60%, transparent); }
.shelf a.card:hover .t { text-decoration: underline; }

/* ---------- an album's own page: fills the screen ---------- */
.night.full { display: flex; align-items: center; padding: clamp(40px, 6vw, 100px) 0; }
.night.full .back { margin-top: clamp(28px, 3vw, 48px); }
/* the songbook: her lyrics and notes, one fold per song */
.songbook { margin-top: clamp(44px, 6vw, 84px); max-width: 720px; }
.songbook h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 300; font-style: italic; margin: 0 0 8px; }
.songbook .song { border-top: 1px solid color-mix(in srgb, var(--fg-color) 16%, transparent); }
.songbook .song:last-child { border-bottom: 1px solid color-mix(in srgb, var(--fg-color) 16%, transparent); }
.songbook summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 6px 0; font-size: clamp(19px, 1.6vw, 22px); font-style: italic; }
.songbook summary::-webkit-details-marker { display: none; }
.songbook summary::after { content: "+"; font: 300 26px/1 var(--ui); color: var(--accent); transition: transform 0.3s ease; }
.songbook .song[open] summary::after { transform: rotate(45deg); }
.songbook summary:hover { color: var(--accent); }
.songbook .credit { margin: 0 0 14px; color: color-mix(in srgb, var(--fg-color) 62%, transparent); }
.songbook .lyrics, .songbook .story { padding-bottom: 28px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.75; }
.songbook .lyrics p { margin: 0; }
.songbook .lyrics p:empty { height: 1em; }
.songbook .story p { margin: 0 0 1em; }
.night.full .back a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
.night.full .back a:hover { color: var(--accent); }

/* ---------- player bar: appears when a song starts and stays at the bottom of the screen ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--night); color: var(--ivory); box-shadow: 0 -1px 0 var(--line-dark), 0 -18px 40px -24px rgba(0, 0, 0, 0.6); }
.dock[hidden] { display: none; }
.dock { transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.dock.is-open { transform: none; }
.dock-art { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 3px; box-shadow: 0 6px 18px -6px #000; }
/* the corner play button: shows until the player bar is up */
.fab {
  all: unset; box-sizing: border-box; position: fixed; right: 22px; bottom: 22px; z-index: 39; cursor: pointer;
  width: 60px; height: 60px; border-radius: 50%; background: var(--ruby); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.fab svg { width: 26px; height: 26px; fill: currentColor; margin-left: 3px; }
.fab:hover { transform: scale(1.06); background: var(--ruby-dark); }
.fab:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; }
.fab::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ruby-lit); animation: breathe 2.6s ease-out infinite; }
@keyframes breathe { 0% { transform: scale(0.9); opacity: 0.9; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
body.has-dock .fab { display: none; }
.dock .wrap { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); min-height: 72px; }
.dock button { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.dock button:focus-visible { outline: 2px solid var(--gilt); outline-offset: 2px; }
.dock button svg { width: 20px; height: 20px; fill: currentColor; display: block; pointer-events: none; }
.dock-ctl { display: flex; align-items: center; gap: 6px; flex: none; }
.dock [data-toggle] { background: var(--ivory); color: var(--night); width: 48px; height: 48px; }
.dock [data-toggle]:hover { background: #fff; }
.dock .ico-pause, .dock.is-playing .ico-play { display: none; }
.dock.is-playing .ico-pause { display: block; }
.dock-now { min-width: 0; flex: 1 1 auto; }
.dock-title { display: block; font-size: 21px; font-style: italic; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-album { display: block; margin-top: 4px; color: rgba(244, 239, 230, 0.6); font-size: 12px; }
.dock-time { flex: none; color: rgba(244, 239, 230, 0.7); font-variant-numeric: tabular-nums; }
.dock-seek { position: absolute; left: 0; right: 0; top: -8px; height: 18px; cursor: pointer; }
.dock-seek::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 3px; background: rgba(244, 239, 230, 0.16); }
.dock-seek i { position: absolute; left: 0; top: 8px; height: 3px; width: var(--p, 0%); background: var(--ruby-lit); }
body.has-dock { padding-bottom: 72px; }

/* ---------- writing: paper ---------- */
.writing .cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5.5vw, 100px); align-items: start; }
.writing .intro { position: sticky; top: 110px; }
.writing .intro p { margin-top: 18px; max-width: 22em; font-size: clamp(19px, 1.4vw, 23px); }
.contents h3 { margin: 34px 0 6px; color: color-mix(in srgb, var(--fg-color) 60%, transparent); }
.contents h3:first-child { margin-top: 8px; }
.contents a { display: block; padding: 18px 0 20px; border-top: 1px solid color-mix(in srgb, var(--fg-color) 14%, transparent); text-decoration: none; color: inherit; }
.contents a:last-child { border-bottom: 1px solid color-mix(in srgb, var(--fg-color) 14%, transparent); }
.contents .t { display: block; font-size: clamp(26px, 2.3vw, 38px); font-style: italic; line-height: 1.15; color: var(--accent); }
.contents .o { display: block; margin-top: 6px; font-size: clamp(17px, 1.2vw, 20px); line-height: 1.5; color: color-mix(in srgb, var(--fg-color) 80%, transparent); }
.contents a:hover .t { text-decoration: underline; }

/* ---------- on the way + mailing list: ruby ---------- */
.soon { text-align: center; padding: clamp(64px, 7.5vw, 124px) 0; }
.soon p { font-size: clamp(30px, 3.8vw, 64px); line-height: 1.15; font-style: italic; font-weight: 300; }
.soon .btn { margin-top: clamp(26px, 2.6vw, 40px); }

/* ---------- about: pearl, picture and words the same height ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5.5vw, 100px); align-items: stretch; }
.about figure { position: relative; min-height: 420px; }
.about figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about .prose p { margin-top: 1em; font-size: clamp(19px, 1.45vw, 24px); line-height: 1.6; max-width: 32em; }
.about .prose h2 + p { margin-top: clamp(22px, 2.2vw, 34px); }

/* ---------- foot: sign-up, her name and links (takes the screen's colours: dark by the time you arrive) ---------- */
.foot { padding: clamp(64px, 8vw, 130px) 0 36px; }
.foot-join { text-align: center; max-width: 640px; margin: 0 auto; }
.foot-join h2 { font-size: clamp(34px, 3.6vw, 56px); line-height: 1.08; font-weight: 300; font-style: italic; }
.foot-join > p { margin-top: 12px; color: color-mix(in srgb, var(--fg-color) 74%, transparent); font-size: clamp(18px, 1.3vw, 21px); }
.join { display: flex; gap: 14px; align-items: stretch; margin-top: clamp(24px, 2.6vw, 36px); }
.join input {
  flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 2px; background: transparent; color: var(--fg-color);
  border: 0; border-bottom: 1px solid color-mix(in srgb, var(--fg-color) 55%, transparent); border-radius: 0; font: italic 20px/1.2 var(--serif);
}
.join input::placeholder { color: color-mix(in srgb, var(--fg-color) 60%, transparent); }
.join input:focus { outline: none; border-bottom-color: var(--fg-color); box-shadow: 0 1px 0 var(--fg-color); }
.join .btn { min-height: 52px; padding: 0 34px; cursor: pointer; }
.fine { margin-top: 14px; font-size: 15px; color: color-mix(in srgb, var(--fg-color) 62%, transparent); }
.fine a { color: inherit; }
.join-note { margin-top: 14px; color: color-mix(in srgb, var(--fg-color) 74%, transparent); }
.foot-mid {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  margin-top: clamp(48px, 6vw, 88px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid color-mix(in srgb, var(--fg-color) 16%, transparent);
}
.foot-mark { display: block; width: 210px; height: auto; fill: currentColor; }
.foot .social a { color: inherit; border-color: color-mix(in srgb, var(--fg-color) 34%, transparent); }
.foot .social a:hover { color: #fff; background: var(--ruby); border-color: var(--ruby); }
.foot-base { display: flex; align-items: center; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; margin-top: 22px; }
.foot .menu a { color: color-mix(in srgb, var(--fg-color) 80%, transparent); font-size: 12px; }
.foot .menu a:hover { color: var(--fg-color); }
.foot small { font: 400 12px/1.3 var(--ui); letter-spacing: 0.1em; color: color-mix(in srgb, var(--fg-color) 55%, transparent); }

/* ---------- painted flourishes ----------
   Real cut-outs (transparent PNGs). They sit in a layer fixed to the screen, behind the page, in the margins;
   each belongs to one section and fades in while that section is on screen, drifting slowly. */
.flora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.flora > * { position: absolute; opacity: 0; transition: opacity 0.9s ease; }
.flora img { display: block; width: 100%; height: auto; }
/* haze for the dark sections: soft lights taken from the album cover (olive woods, coral sky, the flare), drifting */
.flora .haze { inset: 0; transition: opacity 1.4s ease; }
.haze i { position: absolute; border-radius: 50%; filter: blur(80px); animation: float 28s ease-in-out infinite alternate; }
.haze i:nth-child(1) { left: -10%; top: 6%; width: 48vw; height: 40vw; background: rgba(122, 120, 98, 0.36); --x: 7vw; --y: -5vh; }
.haze i:nth-child(2) { right: -8%; top: -14%; width: 42vw; height: 34vw; background: rgba(184, 98, 80, 0.24); --x: -6vw; --y: 6vh; animation-duration: 34s; }
.haze i:nth-child(3) { left: 40%; top: 40%; width: 24vw; height: 20vw; background: rgba(255, 240, 205, 0.2); --x: 5vw; --y: 4vh; animation-duration: 22s; }
.haze i:nth-child(4) { right: 2%; bottom: -16%; width: 46vw; height: 36vw; background: rgba(112, 102, 92, 0.32); --x: -8vw; --y: -6vh; animation-duration: 39s; }
body[data-zone="music"] .haze, body[data-zone="join"] .haze, body[data-zone="album"] .haze { opacity: 1; }
@keyframes float { to { transform: translate3d(var(--x, 5vw), var(--y, -4vh), 0) scale(1.2); } }
/* roses: painted in from the stem outward once the Writing text is on screen; a soft edge sweeps left to right
   while the sprig fades up and settles to full size, then it sways from the stem. Leaves the same way. */
.flora .roses {
  left: 0; bottom: 7vh; width: clamp(190px, 20vw, 320px); transform-origin: 0 50%; animation: sway 10s ease-in-out infinite;
  opacity: 0;
  -webkit-mask: linear-gradient(90deg, #000 0, #000 38%, transparent 62%) 100% 0 / 260% 100% no-repeat;
          mask: linear-gradient(90deg, #000 0, #000 38%, transparent 62%) 100% 0 / 260% 100% no-repeat;
  transition: opacity 1.1s ease, -webkit-mask-position 2.4s cubic-bezier(0.4, 0, 0.2, 1), mask-position 2.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.flora .roses img { transform: scale(0.94, -0.94); transform-origin: 0 50%; transition: transform 2.4s cubic-bezier(0.3, 0, 0.2, 1); }
body.writing-in .flora .roses { opacity: 1; -webkit-mask-position: 0 0; mask-position: 0 0; }
body.writing-in .flora .roses img { transform: scale(1, -1); }
.flora .bow { right: 1.6vw; top: 17vh; width: clamp(70px, 6.2vw, 104px); --r: 9deg; animation: drift 9s ease-in-out infinite; }
/* pearls: small, one ivory, catching the light */
.flora .pearls { right: 2vw; bottom: 16vh; width: clamp(80px, 6.2vw, 106px); font-size: clamp(80px, 6.2vw, 106px); --r: -4deg; animation: drift 14s ease-in-out infinite; }
body[data-zone="about"] .flora .bow, body[data-zone="join"] .flora .pearls { opacity: 1; }
@keyframes sway { 0%, 100% { transform: translateX(-7%) rotate(-2.5deg); } 50% { transform: translateX(-7%) rotate(2.5deg); } }
@keyframes drift {
  0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); }
  50% { transform: rotate(calc(var(--r, 0deg) + 3deg)) translateY(-10px); }
}
.sparks i {
  position: absolute; width: 0.22em; height: 0.22em; margin: -0.11em 0 0 -0.11em;
  background: radial-gradient(circle, #fff 0 22%, #fff6dc 50%, #e9cf8f 100%);
  clip-path: polygon(50% 0, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%);
  filter: drop-shadow(0 0 0.04em #fff); transform: scale(0); opacity: 0; animation: glint 4.6s infinite;
}
.tracks-col { position: relative; }
.paint.bird { position: absolute; right: 7%; bottom: 100%; width: clamp(80px, 7.6vw, 128px); height: auto; pointer-events: none; }   /* perched on the song list */

/* ---------- announcement strip (top of every page) ---------- */
.news { background: var(--ruby); color: #fff; text-align: center; padding: 9px 16px; font: 500 13px/1.4 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; }
.news a { color: #fff; margin-left: 0.9em; text-underline-offset: 0.22em; display: inline-block; padding: 6px 0; }
.news a:hover { color: #fff; text-decoration-thickness: 2px; }

/* ---------- sign-up window ---------- */
.pop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(21, 17, 14, 0.62); }
.pop[hidden] { display: none; }
.pop-card {
  --fg-color: #1f1c1d; --bg-color: #f7f6f3; --accent: var(--ruby);
  position: relative; width: min(540px, 100%); padding: 48px clamp(22px, 5vw, 48px) 38px; text-align: center;
  background: var(--paper); color: var(--ink); border: 1px solid var(--ruby); outline: 1px solid var(--ruby); outline-offset: -8px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.pop-card > img { width: min(330px, 84%); height: auto; margin: 16px auto 6px; }
.pop-card .join { margin-top: 22px; }
.pop-fine { margin-top: 18px; font-size: 17px; font-style: italic; color: var(--bronze); }
.pop-x { all: unset; position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; cursor: pointer; font-size: 30px; line-height: 44px; text-align: center; color: var(--ink); }
.pop-x:hover { color: var(--ruby); }
.pop-x:focus-visible { outline: 2px solid var(--gilt); }

/* ---------- contact ---------- */
.contact-form { display: grid; gap: 22px; margin-top: clamp(24px, 3vw, 40px); }
.contact-form label { display: grid; gap: 6px; font: 500 12px/1.3 var(--ui); letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in srgb, var(--fg-color) 62%, transparent); }
.contact-form input, .contact-form textarea {
  font: 20px/1.4 var(--serif); color: var(--fg-color); background: transparent; padding: 8px 2px; min-height: 48px;
  border: 0; border-bottom: 1px solid color-mix(in srgb, var(--fg-color) 55%, transparent); border-radius: 0; text-transform: none; letter-spacing: 0;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--fg-color); box-shadow: 0 1px 0 var(--fg-color); }
.contact-form .btn { justify-self: start; cursor: pointer; min-width: 160px; }

/* ---------- privacy, terms ---------- */
.legal h2 { font-size: 26px; font-style: italic; font-weight: 400; margin-top: 1.6em; }
.legal .body p { margin-top: 0.7em; }

/* ---------- essay pages ---------- */
.essay { max-width: 720px; margin: 0 auto; padding: clamp(36px, 6vw, 84px) 22px clamp(56px, 8vw, 110px); }
.essay h1 { font-size: clamp(42px, 6.4vw, 78px); line-height: 1.04; font-weight: 300; font-style: italic; letter-spacing: -0.01em; color: var(--accent); }
.essay .sub { font-size: clamp(22px, 2.4vw, 28px); font-style: italic; margin-top: 14px; line-height: 1.3; }
.essay .by { color: color-mix(in srgb, var(--fg-color) 62%, transparent); margin-top: 18px; }
.essay .body { margin-top: clamp(28px, 4vw, 48px); font-size: clamp(19px, 1.5vw, 21px); line-height: 1.7; }
.essay .body p { margin-top: 1.05em; }
.essay .body p.c { text-align: center; }
.essay .body .orn { text-align: center; color: var(--accent); letter-spacing: 0.5em; margin: 2em 0 1.6em; }
.essay .poem { margin-top: 2.4em; }
.essay .poem h2 { font-size: 26px; font-style: italic; font-weight: 400; }
.essay .poem .st { margin-top: 1.4em; font-family: var(--hand); font-size: 1.05em; line-height: 1.9; }
.essay .sign { display: block; width: clamp(160px, 22vw, 220px); height: auto; margin: clamp(36px, 5vw, 60px) 0 0; }
.essay .next { margin-top: clamp(44px, 6vw, 80px); padding-top: 26px; border-top: 1px solid color-mix(in srgb, var(--fg-color) 14%, transparent); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 20px; }
.essay .next a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- phones and narrow windows ---------- */
@media (max-width: 900px) {
  :root { --edge: 20px; }
  body { font-size: 18px; }
  .wrap { width: auto; margin: 0 var(--edge); }
  .bar .wrap { justify-content: center; min-height: 54px; flex-wrap: wrap; gap: 0 20px; }
  .bar .social { display: none; }
  .bar .home { margin: 6px auto 0; flex: 0 0 100%; justify-content: center; }
  .bar.sky .home { display: none; }
  .bar:not(.sky) { position: static; }
  .menu { gap: 20px; }
  .menu a { font-size: 12px; letter-spacing: 0.13em; }

  /* opener: her name, the line, the buttons, then her own photograph, whole */
  .hero { aspect-ratio: auto; overflow: visible; background: #ecebea; padding-top: 6px; display: flex; flex-direction: column; }
  .hero-words { position: static; width: auto; padding: 0 16px; text-align: center; order: -1; }
  .name { width: min(100%, 560px); font-size: min(calc((100vw - 32px) / 10), 56px); margin: 14px auto 16px; }
  .lede { font-size: 21px; margin-top: 0; }
  .pair { justify-content: center; margin-top: 22px; }
  .pair .btn { flex: 1 1 0; max-width: 170px; min-height: 52px; font-size: 13px; padding: 0 12px; }
  .hero-photo, .hero-photo img { position: static; height: auto; }
  .hero-photo { margin-top: 18px; }
  .hero-photo img { aspect-ratio: 2 / 3; object-position: 35% 100%; }

  .album, .about, .writing .cols { grid-template-columns: minmax(0, 1fr); }
  .writing .intro { position: static; }
  .about figure { min-height: 0; }
  .about figure img { position: static; aspect-ratio: 1; }
  .also { flex-wrap: nowrap; gap: 8px; }
  .also a { flex: 1 1 0; min-width: 0; height: 48px; padding: 0 8px; }
  .also img { height: 22px; max-width: 100%; }
  br.wide { display: none; }
  .shelf { gap: 12px; }
  .shelf .t { font-size: 17px; line-height: 1.25; }
  .join { flex-direction: column; }
  .foot-mid, .foot-base { justify-content: center; text-align: center; }
  .foot .menu { flex-wrap: wrap; justify-content: center; gap: 0 18px; }
  .tracks-col { margin-top: 40px; }
  .paint.bird { width: 72px; right: 6px; }
  .flora .roses, .flora .bow, .flora .pearls { display: none; }
  .read { height: 170svh; }
  .read-quote p { font-size: clamp(27px, 7.4vw, 40px); }
  .news { font-size: 11px; letter-spacing: 0.1em; }
  .news a { display: block; margin: 0; }
  .dock .wrap { min-height: 64px; gap: 12px; }
  .dock-time, .dock [data-prev] { display: none; }
  .dock-art { width: 44px; height: 44px; }
  .fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .dock-title { font-size: 18px; }
  body.has-dock { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .name .mark { animation: none; -webkit-mask: none; mask: none; }
  .glints { display: none; }
  .read { height: auto; }
  .read-quote { position: static; height: auto; min-height: 100svh; }
  .read-quote p span { opacity: 1; }
  .read-quote cite .mark { -webkit-mask: none; mask: none; }
  .haze i { animation: none; }
  .flora > * { animation: none; }
  .fab::before { animation: none; opacity: 0; }
  .sparks i { display: none; }
  html.colors-ease, body.colors-set { transition: none; }
}
