/* ── losiento press kit (/epk, /epk/es) ────────────────────────────────────
   Extends /style.css: same palette, fonts, brand block, social icons and
   lugar card. Only what a long, scrolling page needs is added here. Same
   rules as the homepage: square corners, no shadows, hairlines in --line,
   one gold hover signal.

   Wide screens use the width: sections split into two columns so a press
   reader reaches the downloads in a few screens, not a dozen. Phones keep
   one column. Running text is capped at --measure for readability. */

:root {
  --epk-max: 72rem;
  --measure: 40rem;
  --gutter: 1.5rem;
}

body.epk { min-height: 100%; }

#epk {
  max-width: var(--epk-max);
  margin: 0 auto;
  padding: 4rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* ── Language switch: always visible, top right ── */
#lang-switch {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
#lang-switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.1rem 0.25rem;
  transition: color 0.2s ease;
}
#lang-switch a:hover { color: var(--gold); }
#lang-switch a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
}

/* ── Title block (brand + tagline come from /style.css) ── */
#epk #title-block { text-align: center; }
.kicker {
  margin-top: 0.6rem;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Hero: bleeds to the gutters on phones, capped in height everywhere so
   the intro is never more than a scroll away. ── */
#hero { margin: 0 calc(-1 * var(--gutter)); }
#hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: cover;
  object-position: center 40%;
}
#hero figcaption {
  margin-top: 0.5rem;
  padding: 0 var(--gutter);
  text-align: right;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ── Section headings: Worldstar, lowercase, like the lugar card title ── */
#epk section > h2 {
  font-family: 'Worldstar', 'Libre Baskerville', Georgia, serif;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--ink);
  padding-top: 1.4rem;
  margin-bottom: 1.6rem;
  border-top: 1px solid var(--line);
}
#epk h3.sub {
  margin: 0 0 0.8rem;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

#epk p { font-size: 0.92rem; line-height: 1.75; max-width: var(--measure); }
#epk p + p { margin-top: 1rem; }
#epk em { font-style: italic; }
#epk section a:not(.btn):not(#lugar-card):not(#social-links a) { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 0.2em; transition: color 0.2s ease, text-decoration-color 0.2s ease; }
#epk section a:not(.btn):not(#lugar-card):not(#social-links a):hover { color: var(--gold); text-decoration-color: var(--gold); }

#epk .mono-link {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-decoration: none;
}
#epk .mono-link:hover { color: var(--ink); }

.btn {
  display: inline-block;
  padding: 0.7rem 1rem;
  border: 1px solid var(--ink);
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { color: var(--gold); border-color: var(--gold); }

/* ── Intro: one-liner, then the quick facts, then contact ── */
#epk .one-liner {
  max-width: 44rem;
  margin: 0 auto;
  font-family: 'Cormorant Garamond', 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--ink);
  text-align: center;
}
.facts {
  margin: 2rem auto 0;
  max-width: 44rem;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.65rem 1.4rem;
  font-size: 0.86rem;
  line-height: 1.55;
}
.facts dt {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}
#epk .contact-line { margin: 2rem auto 0; text-align: center; }

/* ── Listen: album details beside the player ── */
.listen-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.album-title {
  font-family: 'Worldstar', 'Libre Baskerville', Georgia, serif;
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1;
  text-transform: lowercase;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
#epk .album-line {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  line-height: 1.7;
  color: var(--gold);
}
#epk .album-note { font-size: 0.86rem; color: var(--body-text); }
#epk #spotify-embed { max-width: none; }

/* ── Tracks ── */
.track-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.track {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.3rem 1.4rem 1.4rem;
}
.track h3 {
  font-family: 'Worldstar', 'Libre Baskerville', Georgia, serif;
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--ink);
}
#epk .track .meta {
  margin: 0.55rem 0 0.8rem;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 0.66rem;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--gold);
}
#epk .track p:last-child { font-size: 0.84rem; line-height: 1.7; }

/* ── Press: quotes beside the list of placements ── */
.press-row { display: grid; grid-template-columns: 1fr; gap: 2.2rem; }
.quote { margin: 0 0 2rem; }
.quote:last-child { margin-bottom: 0; }
#epk .quote p {
  font-family: 'Cormorant Garamond', 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--ink);
}
.quote footer {
  margin-top: 0.6rem;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.placements { list-style: none; border-top: 1px solid var(--line); }
.placements li { border-bottom: 1px solid var(--line); }
#epk .placements a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
  padding: 0.8rem 0;
  text-decoration: none;
}
.placements .outlet { font-size: 0.9rem; color: var(--ink); }
.placements .kind, .placements .what {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}
#epk .placements a:hover .outlet { color: var(--gold); }

/* ── Bio: short beside full ── */
.bio-row { display: grid; grid-template-columns: 1fr; gap: 2.2rem; }

/* ── Photos: justified rows. Each tile's flex weight and basis are its own
   aspect ratio (--ar, written by build_epk.py), so tiles sharing a row grow
   to the same height and nothing is cropped. The last row justifies too, so
   the order in build_epk.py ends on a wide photo, never a lone portrait. ── */
#epk .note { font-size: 0.82rem; color: var(--muted); }
.note-inline { margin-left: 0.8rem; font-size: 0.74rem; color: var(--muted); }
.photo-grid {
  --row-h: 7rem;
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 0.8rem;
}
.photo {
  margin: 0;
  flex: var(--ar) 1 calc(var(--ar) * var(--row-h));
  min-width: 0;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar);
  background: var(--line);
}
.photo figcaption {
  margin-top: 0.4rem;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}
#epk .photo figcaption a { color: var(--gold); text-decoration: none; }
#epk .photo figcaption a:hover { color: var(--ink); }

/* ── Logos: each mark on a light and a dark pane, downloads underneath ── */
#epk h3.logos-h { margin-top: 2.6rem; }
.logo-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.logo { margin: 0; border: 1px solid var(--line); }
.logo-panes { display: grid; grid-template-columns: 1fr 1fr; }
.logo-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 1.6rem;
}
.logo-pane-light { background: var(--surface); }
.logo-pane-dark { background: var(--ink); }
.logo-pane img { display: block; max-width: 100%; max-height: 4.5rem; width: auto; height: auto; }
.logo-wordmark .logo-pane img { max-height: 3rem; }
.logo figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 1rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}
.logo-name { color: var(--ink); margin-right: auto; }
#epk .logo figcaption a { color: var(--gold); text-decoration: none; }
#epk .logo figcaption a:hover { color: var(--ink); }

/* ── lugar card (styles from /style.css) ── */
#epk #lugar-card { max-width: none; }
#epk #lugar-card img { height: 14rem; }
#epk #lugar-card-body p { max-width: none; }

/* ── Contact + footer ── */
#contact { text-align: center; }
#contact > h2 { text-align: left; }
#contact p { margin-left: auto; margin-right: auto; }
.email {
  font-family: 'Cormorant Garamond', 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--ink) !important;
  text-decoration: none !important;
}
#contact #social-links { justify-content: center; margin-top: 1.4rem; }
#epk-foot { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }

/* ── Tablets and up ── */
@media (min-width: 700px) {
  .track-grid { grid-template-columns: 1fr 1fr; }
  .logo-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { --row-h: 13rem; }
}

/* ── Wide screens: two-column sections ── */
@media (min-width: 961px) {
  :root { --gutter: 3rem; }
  #epk { padding-top: 5rem; gap: 4.5rem; }
  #hero { margin: 0; }
  #hero figcaption { padding: 0; }

  .listen-row { grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: center; }
  .press-row { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: start; }
  .bio-row { grid-template-columns: 1fr 1.5fr; gap: 3.5rem; align-items: start; }
  .photo-grid { --row-h: 14rem; }

  /* lugar card turns sideways: screenshot left, copy right */
  #epk #lugar-card { flex-direction: row; }
  #epk #lugar-card img { width: 55%; height: auto; min-height: 15rem; flex: none; }
  #epk #lugar-card-body { flex: 1 1 auto; min-width: 0; align-self: center; padding: 1.6rem 2rem; }
  #epk #lugar-card-body p { font-size: 0.9rem; }
}

/* ── Phones ── */
@media (max-width: 480px) {
  #epk { padding-top: 3.8rem; gap: 2.8rem; }
  #epk section > h2 { font-size: 1.7rem; }
  #epk .one-liner { font-size: 1.25rem; }
  .facts { grid-template-columns: 1fr; gap: 0.2rem; }
  .facts dd { margin-bottom: 0.7rem; }
  #epk .quote p { font-size: 1.2rem; }
  .note-inline { display: block; margin: 0.6rem 0 0; }
  .logo-name { flex-basis: 100%; }
}
