/* Cool Pretenders · Niels Petersen
   Colours and type taken from the CD package (Niels-Petersen-CD-Case-3.pdf). */

:root {
  --navy: #20244C;        /* sampled from the cover */
  --ink: #F4F1EA;         /* off-white text */
  --ink-soft: rgba(244, 241, 234, .78);
  --red: #E8323C;         /* accents picked from the painted figures */
  --saffron: #F2B43A;
  --serif: "Cormorant Infant", "Cormorant Garamond", Garamond, Georgia, serif;
  --caps: "Cormorant SC", "Cormorant Infant", Garamond, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
em { font-style: italic; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Front cover ---------- */
.cover {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4vh 16px 6vh;
  gap: 3.5vh;
}
.cover__square {
  /* the cover is roughly square; size it to whichever screen side is smaller */
  width: min(92vw, 76svh, 720px);
  aspect-ratio: 360 / 354;
  position: relative;
  container-type: inline-size;
}
/* positions measured from the PDF cover (percent of cover height) */
.cover__title, .cover__artist {
  position: absolute;
  left: 0; right: 0;
  text-align: center;
  transform: translateY(-50%);
}
.cover__title  { top: 12.4%; }
.cover__artist { top: 86.8%; }
.cover__title,
.cover__artist {
  margin: 0;
  font-family: var(--caps);
  font-weight: 300;
  /* Cormorant SC: typed capitals stay full-size, lowercase becomes small caps, as on the cover */
  font-size: 7.4cqi;                  /* scales with the cover, like print */
  letter-spacing: .14em;
  line-height: 1;
  white-space: nowrap;
  padding-left: .14em;                /* balance trailing letter-spacing */
}
.cover__artist { word-spacing: .1em; }
.cover__art {
  position: absolute;
  top: 19.4%;
  height: 61.2%;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6%;
}
.cover__art img {
  height: 100%;
  width: auto;
  aspect-ratio: 394 / 910;
  object-fit: cover;
}
.cover__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cover__date {
  margin: 0;
  font-family: var(--caps);
  letter-spacing: .1em;
  font-size: .95rem;
  text-align: center;
  line-height: 1.8;
}
@media (min-width: 640px) { .cover__date { letter-spacing: .18em; font-size: 1.05rem; } }

.pill {
  display: inline-block;
  font: inherit;
  font-family: var(--caps);
  font-size: 1.1rem;
  letter-spacing: .16em;
  padding: .55em 1.9em .6em 2.05em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.pill:hover, .pill:focus-visible { background: var(--ink); color: var(--navy); }
.pill--solid { background: var(--ink); color: var(--navy); font-weight: 400; }
.pill--solid:hover, .pill--solid:focus-visible { background: var(--saffron); border-color: var(--saffron); }
.enter {
  font-family: var(--caps);
  letter-spacing: .16em;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px;
}
.enter:hover { color: var(--ink); }
:focus-visible { outline: 1px solid var(--saffron); outline-offset: 4px; }

/* ---------- Inside spread ---------- */
.spread {
  display: grid;
  grid-template-columns: 1fr;
}
.spread__left, .spread__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 16px;
}
.spread__portrait { width: min(100%, 520px); }
.spread__right {
  text-align: center;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.55;
}
.spread__right p { max-width: 30em; margin: 0 0 1.3em; }
.spread__right p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .spread {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .spread__left, .spread__right { padding: 9vh 4vw; }
  .spread__portrait { width: min(72%, 640px); }
}

/* ---------- Menu bar (after the splash) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em 2.5em;
  padding: 14px 16px;
  background: rgba(32, 36, 76, .94);
  border-bottom: 1px solid rgba(244, 241, 234, .14);
  font-family: var(--caps);
  letter-spacing: .14em;
}
.nav a { text-decoration: none; }
.nav a:hover { color: var(--saffron); }
.nav__brand { display: none; font-size: 1.15rem; }
.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4em 1em;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
  letter-spacing: .08em;
}
@media (min-width: 900px) {
  .nav { justify-content: space-between; padding: 16px 4vw; }
  .nav__brand { display: inline; }
  .nav ul { gap: 2.2em; font-size: 1.05rem; letter-spacing: .14em; }
}
section[id] { scroll-margin-top: 56px; }

/* ---------- Content sections ---------- */
.page { padding: 56px 16px; }
.page + .page { border-top: 1px solid rgba(244, 241, 234, .12); }
@media (min-width: 900px) { .page { padding: 9vh 4vw; } }
.wrap {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.32;
}
.section-title {
  margin: 0 0 1.2em;
  font-family: var(--caps);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: .14em;
  line-height: 1.1;
}
.wrap > p { margin: 0 0 1.3em; }
.album-intro { font-size: 1.15em; line-height: 1.5; margin-bottom: 1.6em; }
.album-intro p { margin: 0 0 1em; }
#listen .ph { margin-bottom: 2em; }

.tracks {
  list-style: none;
  margin: 0 0 2.2em;
  padding: 0;
  font-size: 1.22em;
}
.tracks li {
  display: grid;
  grid-template-columns: 2em 1fr auto;
  column-gap: .4em;
  align-items: baseline;
  padding: .12em 0;
}
.tracks .d { font-style: italic; font-size: .82em; }
@media (min-width: 640px) {
  /* keep the times close to the titles, like the CD back cover */
  .tracks li { grid-template-columns: 2em 15em 3em; }
}

.notes { margin-top: 2.6em; }
.notes h3, .credits summary {
  margin: 0 0 .5em;
  font-family: var(--caps);
  font-weight: 400;
  font-size: 1.25em;
  letter-spacing: .14em;
}
.notes p, .credits p { margin: 0 0 1.3em; }

.credits { margin-top: 2.6em; }
.credits summary { cursor: pointer; list-style: none; }
.credits summary::-webkit-details-marker { display: none; }
.credits summary::after { content: " +"; }
.credits[open] summary::after { content: " –"; }
.credits[open] summary { margin-bottom: 1em; }

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.signup input {
  flex: 1 1 14em;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-soft);
  padding: .4em 0;
}
.signup input::placeholder { color: rgba(244, 241, 234, .45); font-style: italic; }
.signup__msg { flex-basis: 100%; margin: 0; font-style: italic; }

.colophon {
  padding: 48px 16px 40px;
  border-top: 1px solid rgba(244, 241, 234, .12);
  color: var(--ink-soft);
}
.colophon__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1em 2em;
  font-size: 1rem;
}
.colophon p { margin: 0; }
.colophon br.wide { display: none; }
@media (min-width: 640px) { .colophon br.wide { display: inline; } }

/* ---------- Placeholders (remove .ph once real content is in) ---------- */
.ph {
  outline: 1px dashed var(--saffron);
  outline-offset: 4px;
  font-style: italic;
}
.ph::before {
  content: "Placeholder · ";
  color: var(--saffron);
  font-style: normal;
  font-family: var(--caps);
  letter-spacing: .1em;
}
/* inline placeholder that relies on the dashed outline alone (no label) */
.ph--quiet::before { content: none; }
.ph--quiet { white-space: nowrap; }
.ph-link { outline: 1px dashed var(--saffron); outline-offset: 5px; }
.ph-form { outline: 1px dashed var(--saffron); outline-offset: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill { transition: none; }
}
