/*
 * Stella Iberica — one stylesheet for the whole site.
 *
 * The palette is taken from the album artwork: a crowned Dolorosa in gold
 * leaf against incense haze, so the ground is a warm near-black and every
 * accent is drawn from the gilding rather than chosen independently.
 */

:root {
  --ink: #0c0908;
  --ink-raised: #171110;
  --ink-line: #2b211c;
  --paper: #f4ece1;
  --paper-dim: #b6a48e;
  --gold: #d9b45e;
  --gold-bright: #f0d391;
  --gold-dim: #8a6f34;

  --measure: 34rem;
  --shell: 60rem;
  --serif: "Cormorant Garamond", Garamond, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  /* The haze in the artwork, continued behind the page. */
  background-image:
    radial-gradient(70rem 40rem at 50% -18rem, rgba(217, 180, 94, 0.16), transparent 70%),
    radial-gradient(40rem 30rem at 90% 110%, rgba(217, 180, 94, 0.06), transparent 70%);
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--gold-bright);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- shell ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.site-head {
  padding-block: 1.75rem 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  /* Tighter than the old 1.5rem because each item now carries its own
     padding — the gap between the tappable areas ends up the same. */
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  /* A thumb needs 44px; the text is 21px tall, so the rest is padding.
     Without this the nav was a row of near-misses on a phone. */
  min-height: 2.75rem;
  padding: 0 0.7rem;
  color: var(--paper-dim);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
}

main {
  flex: 1;
  padding-block: 3rem 4rem;
}

.site-foot {
  border-top: 1px solid var(--ink-line);
  padding-block: 2rem 2.5rem;
  color: var(--paper-dim);
  font-size: 0.8rem;
  text-align: center;
}

.site-foot p {
  margin: 0.35rem 0;
}

.copyright {
  color: var(--gold-dim);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* ---------- language switch ---------- */

.lang-switch ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
  padding: 0;
}

.lang-switch a,
.lang-switch .lang-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* A comfortable tap target, since this sits at the end of a phone page. */
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.lang-switch a {
  color: var(--paper-dim);
  border-color: var(--ink-line);
}

.lang-switch a:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
}

.lang-switch .lang-current {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(217, 180, 94, 0.1);
}

/* ---------- type ---------- */

.wordmark {
  font-family: var(--serif);
  font-weight: 300;
  /* Tracked-out small caps: the name has to read as an imprint, not a headline. */
  font-size: clamp(2.1rem, 9vw, 3.9rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
  color: var(--paper);
  text-align: center;
}

.wordmark-rule {
  width: 4.5rem;
  height: 1px;
  margin: 1.6rem auto;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.standfirst {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3.4vw, 1.4rem);
  font-style: italic;
  color: var(--paper-dim);
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
  line-height: 1.5;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 5vw, 2rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0 0 0.75rem;
}

/* ---------- release ---------- */

.release {
  margin-top: 3.5rem;
  display: grid;
  gap: 2.5rem;
  justify-items: center;
}

@media (min-width: 46rem) {
  .release {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 3rem;
  }
}

.sleeve {
  position: relative;
  width: min(20rem, 100%);
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  /* Gilt edge and a deep drop, so the sleeve sits on the page like an object. */
  box-shadow:
    0 0 0 1px rgba(217, 180, 94, 0.28),
    0 1.5rem 3.5rem rgba(0, 0, 0, 0.6);
}

.sleeve img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.release-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.4rem;
}

.release-meta {
  color: var(--paper-dim);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin: 0 0 1.75rem;
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--gold-dim);
  background: linear-gradient(180deg, rgba(217, 180, 94, 0.16), rgba(217, 180, 94, 0.06));
  color: var(--gold-bright);
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button:hover {
  border-color: var(--gold);
  background: rgba(217, 180, 94, 0.22);
  color: var(--gold-bright);
}

/* The mark inside a text button: optically matched to the cap height, not
   to the row, so it does not tower over the words. */
.mark-button {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.text-link {
  display: inline-flex;
  align-items: flex-end;
  min-height: 2.75rem;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-line);
  padding-bottom: 0.15rem;
}

.text-link:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
}

/* ---------- discography ---------- */

.album-grid {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  /* One column on a phone, and as many as fit from there — so a single
     release does not sit in a lonely corner of a wide grid. */
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 17rem));
  justify-content: center;
}

.album-card a {
  display: grid;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.album-card-sleeve {
  display: block;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(217, 180, 94, 0.28),
    0 1rem 2.5rem rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.album-card a:hover .album-card-sleeve {
  box-shadow:
    0 0 0 1px rgba(217, 180, 94, 0.6),
    0 1.25rem 3rem rgba(0, 0, 0, 0.65);
  transform: translateY(-2px);
}

.album-card-sleeve img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-card-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.2;
}

.album-card a:hover .album-card-title {
  color: var(--gold);
}

.album-card-meta {
  color: var(--paper-dim);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* A title that happens to be a link, without looking like one until hovered. */
.quiet-link {
  color: inherit;
  text-decoration: none;
}

.quiet-link:hover {
  color: var(--gold);
}

/* ---------- track list ---------- */

.section-heading {
  margin-top: 3.5rem;
}

.tracks {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--ink-line);
}

.tracks li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--ink-line);
}

.tracks .n {
  flex: none;
  width: 1.75rem;
  color: var(--gold-dim);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}

.tracks .t {
  flex: 1;
  min-width: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.tracks .d {
  flex: none;
  color: var(--paper-dim);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}

.runtime {
  margin: 1rem 0 0;
  color: var(--paper-dim);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* ---------- embed ---------- */

.embed {
  margin-top: 2.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ink-line);
}

.embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* ---------- /listen: built for a phone first ---------- */

.listen {
  max-width: 26rem;
  margin-inline: auto;
  text-align: center;
}

.listen .sleeve {
  width: min(15rem, 68vw);
  margin: 0 auto 1.75rem;
}

.listen .release-title {
  font-size: clamp(1.5rem, 7vw, 1.9rem);
}

.platforms {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.platform {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  /* A full-width row is the whole point on a phone: thumb-sized, unmissable. */
  min-height: 3.5rem;
  padding: 0 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--ink-line);
  background: var(--ink-raised);
  color: var(--paper);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.platform:hover {
  border-color: var(--gold-dim);
  background: #1d1512;
  color: var(--paper);
}

.platform .mark {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
}

.platform .name {
  flex: 1;
  text-align: left;
}

.platform .go {
  flex: none;
  color: var(--gold-dim);
  font-size: 1.1rem;
  line-height: 1;
}

.platform:hover .go {
  color: var(--gold);
}

/* Not yet released to a platform: shown, but never clickable and never
   pretending to be a link. */
.platform-pending {
  opacity: 0.45;
  cursor: default;
}

.platform-pending .go {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.note {
  margin-top: 2rem;
  color: var(--paper-dim);
  font-size: 0.78rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
