:root {
  --ink: oklch(0.92 0.008 250);
  --ink-dim: oklch(0.72 0.012 250);
  --ink-faint: oklch(0.52 0.01 250);
  --accent: oklch(0.76 0.07 68);
  --bg: #090b0d;
  --photo: url("images/raven.jpg");
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent); }

ul { list-style: none; margin: 0; padding: 0; }

/* --- background: blurred copy extends the photo to the full viewport --- */

.backdrop,
.photo-wrap,
.vignette,
.scrim,
.veil { position: fixed; inset: 0; }

.backdrop {
  inset: -8%;
  background: var(--photo) center 42% / cover no-repeat;
  filter: blur(90px) saturate(1.15) brightness(0.92);
  transform: scale(1.25);
}

.photo-wrap { display: flex; justify-content: center; }

.photo {
  height: 100%;
  width: 68vh;
  min-width: 520px;
  background: var(--photo) center 46% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.vignette {
  background: radial-gradient(120% 90% at 50% 40%, transparent 30%, rgba(6, 8, 10, 0.55) 78%, rgba(6, 8, 10, 0.9) 100%);
}

.scrim {
  background: linear-gradient(180deg, rgba(6, 8, 10, 0.72) 0%, transparent 26%, transparent 58%, rgba(6, 8, 10, 0.86) 100%);
}

.veil { background: #080a0c; opacity: 0.18; }

/* --- layout --- */

.page {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: clamp(18px, 3.2vh, 34px) clamp(24px, 4vw, 64px) clamp(16px, 2.8vh, 30px);
  animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

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

/* --- masthead --- */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.masthead nav ul {
  display: flex;
  gap: clamp(18px, 2.6vw, 40px);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* --- hero --- */

.hero {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(6px, 4vh, 60px);
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: clamp(46px, 9.4vw, 176px);
  line-height: 0.92;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(0.95 0.006 250);
  text-shadow: 0 8px 60px rgba(6, 8, 10, 0.7);
}

.tagline {
  margin: clamp(16px, 2.6vh, 28px) 0 0;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: oklch(0.86 0.01 250);
  text-shadow: 0 1px 3px rgba(4, 6, 8, 0.95), 0 0 16px rgba(4, 6, 8, 0.85);
}

.intro {
  max-width: 40ch;
  margin: 14px auto 0;
  font-size: 13px;
  line-height: 1.75;
  color: oklch(0.82 0.01 250);
  text-shadow: 0 1px 3px rgba(4, 6, 8, 0.95), 0 0 14px rgba(4, 6, 8, 0.8);
  text-wrap: pretty;
}

/* --- colophon --- */

.colophon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(16px, 3vw, 56px);
  align-items: end;
  border-top: 1px solid rgba(190, 205, 215, 0.12);
  padding-top: clamp(14px, 2.2vh, 22px);
}

.colophon h2 {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}

.dates { display: grid; gap: 7px; font-size: 12px; color: oklch(0.74 0.012 250); }
.dates li { display: flex; gap: 14px; }
.date { width: 5.5em; color: oklch(0.58 0.012 250); text-transform: uppercase; }

.album {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.meta { margin: 6px 0 0; font-size: 12px; color: oklch(0.66 0.012 250); }

.elsewhere { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.elsewhere h2 { margin-bottom: 0; }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.elsewhere .meta { margin: 0; font-size: 11px; }
.elsewhere .meta a { color: var(--ink-faint); }

/* --- photo credit --- */

.credit {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  writing-mode: vertical-rl;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: oklch(0.42 0.01 250);
  white-space: nowrap;
}

/* --- narrow screens: stack, scroll, and scale type up --- */

@media (max-width: 760px) {
  html, body { overflow: auto; height: auto; }

  .photo { min-width: 0; width: 100%; background-position: center 40%; }

  .page {
    position: relative;
    inset: auto;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 20px 20px 34px;
  }

  .masthead { flex-wrap: wrap; gap: 10px 20px; }
  .masthead nav ul { gap: 20px; font-size: 12px; letter-spacing: 0.2em; }
  .masthead nav a { display: inline-block; padding: 12px 0; }

  .hero {
    overflow: visible;
    flex: 1 0 auto;
    justify-content: center;
    padding: 12vh 0 10vh;
  }

  .hero h1 { font-size: 17vw; letter-spacing: 0.03em; }
  .tagline { font-size: 13px; letter-spacing: 0.24em; }
  .intro { font-size: 15px; max-width: 34ch; }

  .colophon {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
    padding-top: 26px;
  }

  .colophon h2 { font-size: 11px; }
  .dates { font-size: 14px; gap: 12px; }
  .album { font-size: 26px; }
  .meta { font-size: 13px; }
  .links { font-size: 14px; gap: 22px; }
  .links a { display: inline-block; padding: 8px 0; }
  .elsewhere .meta { font-size: 13px; }

  .credit {
    position: static;
    writing-mode: horizontal-tb;
    transform: none;
    text-align: center;
    margin-top: 26px;
    font-size: 10px;
  }
}

/* --- landscape phones: keep the photo readable, tighten vertical rhythm --- */

@media (max-width: 900px) and (max-height: 520px) and (orientation: landscape) {
  .hero { padding: 4vh 0 3vh; }
  .hero h1 { font-size: 11vw; }
  .intro { display: none; }
}
