/* Looking for Eisa: a quiet page. Night blue, pale gold, and a veil that lifts as you read. */
:root {
  --bg: #08090d;
  --bg2: #0e1017;
  --ink: #e9e2d2;
  --muted: #9d968a;
  --gold: #d9c79a;
  --pale: #f1e7cf;
  --line: rgba(217, 199, 154, 0.22);
  --serif: "Cormorant Garamond", Georgia, serif;
  --title: "Cinzel", "Times New Roman", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--serif); font-size: 21px; line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--pale); }
h1, h2, h3 { font-weight: 400; }
h2 { font-family: var(--title); font-size: clamp(1.3rem, 3vw, 1.8rem); letter-spacing: .3em; text-transform: uppercase; text-align: center; color: var(--gold); }
.sub { text-align: center; color: var(--muted); font-style: italic; margin-top: .8rem; padding: 0 16px; }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: end center; text-align: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; background: url("assets/img/hero-wide.jpg") left center / cover; filter: saturate(.85) brightness(.92); animation: drift 40s ease-in-out infinite alternate; }
.hero-veil { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 50% 32%, rgba(8,9,13,.05), rgba(8,9,13,.8) 72%),
  linear-gradient(rgba(8,9,13,.45), transparent 25%, transparent 45%, rgba(8,9,13,.85) 78%, var(--bg)); }
.hero-text { position: relative; padding: 0 20px 9vh; }
.amulet { margin: 0 auto 28px; opacity: .85; animation: breathe 7s ease-in-out infinite; }
.amulet.small { margin-bottom: 22px; opacity: .6; }
.kicker { font-family: var(--title); font-size: .85rem; letter-spacing: .5em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; padding-left: .5em; }
h1 { font-family: var(--serif); font-style: italic; font-size: clamp(2.3rem, 7vw, 4.6rem); line-height: 1.15; color: var(--pale); text-shadow: 0 2px 30px rgba(0,0,0,.8); }
.down { display: inline-block; margin-top: 48px; font-size: 2rem; color: var(--gold); opacity: .7; animation: bob 3s ease-in-out infinite; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translateY(-1.5%); } }
@keyframes breathe { 0%, 100% { opacity: .6; } 50% { opacity: .95; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* the letter */
.letter { padding: 120px 24px 60px; }
.letter-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.letter p { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin-bottom: 1.4em; }
.letter .veil-line { font-style: italic; color: var(--gold); margin-bottom: 0; }
.about { padding: 40px 24px 110px; }
.about-inner { max-width: 620px; margin: 0 auto; text-align: center; color: var(--muted); border-top: 1px solid var(--line); padding-top: 44px; }
.about em { color: var(--ink); }

/* across time */
.ages { padding: 90px 24px 60px; max-width: 1200px; margin: 0 auto; }
.age { margin-top: 80px; }
.age h3 { font-family: var(--title); font-size: 1rem; letter-spacing: .25em; text-transform: uppercase; color: var(--ink); display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.age h3 span { color: var(--gold); font-size: .8rem; min-width: 1.6em; }
.age h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .row { grid-template-columns: 1fr 1.9fr 1fr; height: 460px; } }
.row a { display: block; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.row a.wide { aspect-ratio: 16 / 10; }
@media (min-width: 760px) { .row a, .row a.wide { aspect-ratio: auto; height: 100%; } }
/* the veil: pictures rest soft and pale, and clear when you come close */
.row img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(.5) brightness(.72) blur(1.2px); transform: scale(1.03); transition: filter 1.4s ease, transform 2.4s ease; }
.row a:hover img, .row a:focus-visible img { filter: saturate(.95) brightness(1) blur(0); transform: scale(1.06); }
@media (hover: none) { .row img { filter: saturate(.8) brightness(.9); } }
.soon { color: var(--muted); font-style: italic; padding: 46px 20px; text-align: center; border: 1px solid var(--line); background: linear-gradient(120deg, rgba(14,16,23,.9), rgba(30,34,48,.5), rgba(14,16,23,.9)); }

/* music */
.music { padding: 120px 24px; background: linear-gradient(var(--bg), var(--bg2) 40%, var(--bg)); }
.music-inner { max-width: 680px; margin: 0 auto; }
.music .sub { margin-bottom: 46px; }
.player { display: flex; align-items: center; gap: 20px; padding: 20px 24px; border: 1px solid var(--line); background: rgba(8,9,13,.7); }
.player + .player { margin-top: 14px; }
.play { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; color: var(--gold); font-size: 1.1rem; cursor: pointer; transition: background .3s, color .3s; }
.play:hover, .play.on { background: var(--gold); color: var(--bg); }
.track { flex: 1; min-width: 0; }
.track-title { font-family: var(--title); letter-spacing: .14em; font-size: .92rem; margin-bottom: 9px; }
.bar { height: 3px; background: rgba(255,255,255,.12); cursor: pointer; position: relative; }
.bar::before { content: ""; position: absolute; inset: -10px 0; }
.fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold); }
.times { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.note { text-align: center; color: var(--muted); font-style: italic; margin-top: 44px; }

/* stay */
.stay { padding: 60px 24px 130px; text-align: center; font-style: italic; font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--pale); }

footer { border-top: 1px solid var(--line); padding: 44px 24px 54px; text-align: center; }
footer .from { color: var(--muted); font-size: 1rem; }
footer .small { color: var(--muted); opacity: .7; font-size: .85rem; margin-top: 10px; }

/* reveal on scroll: the veil lifts */
.reveal { opacity: 0; filter: blur(6px); transform: translateY(14px); transition: opacity 1.6s ease, filter 1.6s ease, transform 1.6s ease; }
.reveal.in { opacity: 1; filter: none; transform: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(4,5,8,.95); display: none; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 92vh; border: 1px solid var(--line); }

@media (max-width: 600px) {
  body { font-size: 19px; }
  .letter { padding-top: 90px; }
  .player { padding: 16px; gap: 14px; }
  .kicker { letter-spacing: .35em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img, .amulet, .down { animation: none; }
  .reveal { opacity: 1; filter: none; transform: none; transition: none; }
  .row img { transition: none; }
}

/* upright screens (phones): the close face picture; wide screens get the same face with the title beside her */
@media (orientation: portrait) {
  .hero-img { background: url("assets/img/hero-face.jpg") 38% top / cover; filter: saturate(.85) brightness(.92); }
  .hero-veil { background: linear-gradient(rgba(8,9,13,.25), transparent 20%, transparent 50%, rgba(8,9,13,.8) 74%, var(--bg)); }
}

/* wide screens: her face fills the left, the title stands in the dark on the right */
@media (orientation: landscape) and (min-width: 760px) {
  .hero { place-items: center end; }
  .hero-veil { background:
    linear-gradient(90deg, transparent 45%, rgba(8,9,13,.55) 70%, rgba(8,9,13,.8)),
    linear-gradient(rgba(8,9,13,.3), transparent 22%, transparent 70%, var(--bg)); }
  .hero-text { width: 42%; padding: 0 4vw 0 0; }
  h1 { font-size: clamp(2rem, 3.6vw, 3.6rem); }
}
