/* deednotes · "the wall"
   The header is the plaster wall from the gladioli loop; Mar stands on it, cut out,
   and her black dress runs into the black of the page. Cream lettering from the video titles. */

:root {
  --wall: #6B332E;
  --black: #0B0807;
  --ink: #F5DE9E;          /* the yellowish cream of the title card */
  --ink-soft: rgba(245, 222, 158, .72);
  --ink-dim: rgba(245, 222, 158, .5);
  --line: rgba(245, 222, 158, .16);
  --red: #A9483C;           /* song numbers, the quote rule */
  --dot: #C2321D;

  --serif: 'Sorts Mill Goudy', 'Iowan Old Style', Georgia, serif;
  --fell: 'IM Fell English', 'Sorts Mill Goudy', Georgia, serif;
  --mono: 'DM Mono', ui-monospace, Menlo, monospace;

  --g: clamp(20px, 4.4vw, 72px);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--black); color: var(--ink);
  font-family: var(--serif); font-size: 19px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--black); }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* fine film grain over the whole page */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* the wall: plaster recreated from the loop, boiling like film
   (jumps a few px ~8 times a second, with a faint exposure flicker) */
.wall { position: relative; isolation: isolate; background-color: var(--wall); }
.wall::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: url(assets/wall.jpg) 0 0 / 760px 760px repeat;
  animation: boil .62s steps(1) infinite;
}
.wall::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: #000; opacity: 0; animation: flicker 1.9s steps(1) infinite;
}
@keyframes boil {
  0% { background-position: 0 0; } 20% { background-position: -13px 7px; } 40% { background-position: 9px -11px; }
  60% { background-position: -6px -15px; } 80% { background-position: 14px 5px; }
}
@keyframes flicker {
  0% { opacity: 0; } 17% { opacity: .035; } 34% { opacity: 0; } 51% { opacity: .02; } 68% { opacity: .05; } 85% { opacity: .01; }
}
@media (prefers-reduced-motion: reduce) { .wall::before, .wall::after { animation: none; } }

.kicker {
  font-family: var(--mono); font-weight: 400; font-size: 11px; line-height: 1.4;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin: 0;
}

/* ---------- NAV (sits on the header, then scrolls away) ---------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px var(--g);
}
.status, .nav-links a, .lang {
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.status { display: flex; align-items: center; gap: 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 10px var(--dot); animation: rec 2s steps(1) infinite; }
@keyframes rec { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); }
.nav-links a { text-decoration: none; opacity: .85; transition: opacity .2s ease; }
.lang { display: flex; align-items: center; gap: 2px; color: var(--ink-dim); }
.lang button { background: none; border: 0; padding: 8px 4px; cursor: pointer; letter-spacing: .12em; color: var(--ink-dim); transition: color .2s ease; }
.lang button[aria-pressed="true"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { opacity: 1; }
  .lang button:hover { color: var(--ink); }
}

/* ---------- HEADER ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; }
.stage { position: absolute; inset: 0; overflow: hidden; }
.figure {
  position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: 1; transform: translateX(-46%);
  /* the stems leave the frame on the left: let their tips fade */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%); mask-image: linear-gradient(90deg, transparent 0%, #000 7%);
}
.figure .still, .figure .loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.figure .loop { opacity: 0; transition: opacity .4s ease; }
.figure.playing .loop { opacity: 1; }
.figure.playing .still { opacity: 0; transition: opacity .4s ease .1s; }
/* the "mar" signature, back where it was in the original frame */
.figure .sig { position: absolute; left: 81.6%; top: 89.1%; width: 18.2%; height: auto; }

.title {
  position: absolute; z-index: 3; left: 50%; top: 9vh; transform: translateX(-50%);
  width: min(1100px, 86vw);
  animation: titleIn 1.6s var(--ease-out) .25s both;
}
@keyframes titleIn { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: blur(0); } }
.wordmark { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 12px rgba(255, 212, 140, .55)) drop-shadow(0 0 36px rgba(255, 168, 80, .28)); }
.wordmark text { font-family: var(--serif); font-size: 232px; letter-spacing: -2px; fill: var(--ink); }

.hero-foot {
  position: absolute; z-index: 3; left: var(--g); right: var(--g); bottom: 30px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
}
.hero-by { font-family: var(--fell); font-style: italic; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; text-shadow: 0 0 14px rgba(255, 212, 140, .35); }
.hero-line { font-size: 20px; line-height: 1.45; margin-top: 8px; }
.hero-cta { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: 10px 0; }

@media (prefers-reduced-motion: reduce) { .title { animation: none; } }

/* ---------- THE EP ---------- */
.songs {
  padding: clamp(80px, 10vw, 130px) var(--g) clamp(80px, 10vw, 120px);
  display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(30px, 5vw, 70px); align-items: start;
}
.songs-intro { font-size: 20px; line-height: 1.6; max-width: 30ch; margin-top: 16px; color: var(--ink-soft); }
.setlist { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.setlist li { border-bottom: 1px solid var(--line); }
.song {
  width: 100%; background: none; border: 0; padding: 14px 0; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 54px 1fr auto; align-items: baseline; gap: 8px;
}
.song-n { font-family: var(--fell); font-style: italic; font-size: 20px; color: var(--red); }
.song-t { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; text-transform: lowercase; transition: color .2s ease; }
.song-r { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); transition: color .2s ease; }
.song:active .song-t { color: #fff3cf; }
@media (hover: hover) and (pointer: fine) {
  .song:hover .song-r { color: var(--ink); }
}

/* ---------- A NOTE ---------- */
.note { padding: 0 var(--g) clamp(90px, 11vw, 140px); max-width: 1180px; }
.meaning { margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 70px); border-top: 1px solid var(--line); padding-top: 26px; }
.meaning dt { font-size: clamp(34px, 3.6vw, 48px); line-height: 1; }
.meaning dt i { font-family: var(--fell); font-size: .45em; color: var(--ink-dim); margin-left: .3em; }
.meaning dd { margin: 14px 0 0; font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 40ch; }
.pull { margin: clamp(56px, 7vw, 90px) 0 clamp(36px, 4vw, 54px); padding-left: clamp(18px, 2vw, 28px); border-left: 1px solid var(--red); max-width: 900px; }
.pull p { font-family: var(--fell); font-style: italic; font-size: clamp(26px, 3vw, 42px); line-height: 1.3; }
.note-body { max-width: 64ch; }
.note-body p { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.78; color: var(--ink-soft); margin-bottom: 1.2em; }
.note-body em { font-style: italic; color: var(--ink); }
.note-body .sign { font-family: var(--fell); font-style: italic; font-size: 38px; color: var(--ink); margin-top: 26px; }

/* ---------- STAY CLOSE ---------- */
.listen {
  padding: clamp(80px, 10vw, 120px) var(--g);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: end;
}
.listen h2 { font-family: var(--fell); font-style: italic; font-weight: 400; font-size: clamp(42px, 5vw, 72px); line-height: 1.02; margin: 16px 0 0; text-wrap: balance; }
.listen-text { font-size: 20px; margin-bottom: 24px; }
.form { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 0 22px; align-items: end; }
.field input {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  padding: 14px 0; color: var(--ink); font-family: var(--serif); font-size: 19px; outline: none;
}
.field input::placeholder { color: var(--ink-dim); opacity: 1; }
.field input:focus { border-bottom-width: 2px; padding-bottom: 13px; }
.btn {
  background: var(--ink); color: var(--black); border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  padding: 0 22px; min-height: 48px; transition: transform .16s ease-out, background .2s ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: default; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #fff0c4; } }
.thanks { font-family: var(--fell); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; }
.form-error { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; margin-top: 14px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 34px; }
.socials a { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; opacity: .85; }
@media (hover: hover) and (pointer: fine) { .socials a:hover { opacity: 1; } }

/* ---------- FOOTER ---------- */
.foot { padding: 34px var(--g) 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; }
.foot p { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); }

/* ---------- LYRICS: unfold in place under the title ---------- */
.lyrics { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .36s var(--ease-out); }
.setlist li.open .lyrics { grid-template-rows: 1fr; }
.lyrics-clip { overflow: hidden; min-height: 0; }
.lyrics-in { padding: 2px 0 36px 62px; max-width: 720px; opacity: 0; transition: opacity .2s ease; }
.setlist li.open .lyrics-in { opacity: 1; transition: opacity .3s ease .08s; }
.lyrics-intro { font-family: var(--fell); font-style: italic; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.lyrics-text { white-space: pre-line; text-transform: lowercase; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.85; color: var(--ink-soft); }
.setlist li.open .song-r { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .lyrics, .lyrics-in, .setlist li.open .lyrics-in { transition: none; } }

/* ---------- PHONES AND PORTRAIT TABLETS ----------
   Mar fills the header; the text that sat on it moves just below, onto the black. */
@media (max-width: 700px), (max-aspect-ratio: 5/6) {
  .nav-links a { display: none; }
  .hero { height: auto; min-height: 0; }
  .stage { position: relative; height: 86svh; min-height: 540px; }
  .figure { transform: translateX(-52%); }
  .figure .sig { left: 55%; top: 90%; width: 20%; }
  .title { top: 64px; width: 88vw; }
  .hero-foot { position: static; display: block; padding: 28px var(--g) 0; }
  .hero-cta { display: inline-block; margin-top: 14px; }
  .songs { grid-template-columns: 1fr; padding-top: 70px; }
  .song { grid-template-columns: 34px 1fr auto; }
  .lyrics-in { padding-left: 42px; }
  .meaning { grid-template-columns: 1fr; }
  .listen { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; gap: 6px; }
  .btn { margin-top: 18px; justify-self: start; }
}
