/* Made in Spain — Editorial Design System
   Quiet luxury: transitional serif (EB Garamond) + grotesque sans (Inter)
   References: loewe.com, aman.com, readcereal.com
*/

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
  /* Color tokens */
  --canvas: #F7F4F0;
  --canvas-cool: #F2EFE9;
  --canvas-bright: #FBFAF7;
  --ink: #1A1A1A;
  --ink-2: #3D3D3D;
  --ink-3: #6E6A64;
  --rule: #E0D9D0;
  --rule-soft: #EAE4DB;
  --accent: #E8600A;

  /* Type */
  --serif: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --s-11: 160px;

  /* Container */
  --max: 1440px;
  --gutter: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Type roles */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.02;
  font-feature-settings: "lnum", "kern";
}
.smallcaps {
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10.5px;
  color: var(--ink-2);
  display: inline-block;
}
.smallcaps-lg {
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--ink-2);
}
.body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: 0.005em;
}
.serif { font-family: var(--serif); }
.sans { font-family: var(--sans); }

/* Links */
a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity .35s ease, color .35s ease;
}
a:hover { opacity: 0.55; }
a.bare, .nav a, .nav-mobile a, .footer a, .smallcaps.bare { border-bottom: none; }
a.bare:hover { opacity: 0.55; }

/* Rules */
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule-soft { height: 1px; background: var(--rule-soft); border: 0; margin: 0; }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--gutter);
  font-family: var(--sans);
  position: relative;
  z-index: 10;
}
.nav .wordmark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.005em;
  line-height: 1;
}
.nav .links {
  display: flex; gap: 36px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.nav .links a {
  color: var(--ink-2);
  opacity: 0.85;
}
.nav .links a.active {
  color: var(--ink);
  opacity: 1;
}
.nav .right {
  display: flex; gap: 28px; align-items: center;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Inverted nav (over dark hero) */
.nav.invert .wordmark { color: #fff; }
.nav.invert .links { color: rgba(255,255,255,0.78); }
.nav.invert .links a { color: rgba(255,255,255,0.78); }
.nav.invert .links a.active { color: #fff; opacity: 1; }
.nav.invert .right { color: rgba(255,255,255,0.78); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: inherit;
}
.nav-mobile {
  display: none;
  position: fixed; inset: 0;
  background: var(--canvas);
  z-index: 100;
  padding: 28px var(--gutter);
  flex-direction: column;
}
.nav-mobile.open { display: flex; }
.nav-mobile .top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 64px;
}
.nav-mobile .links {
  display: flex; flex-direction: column; gap: 28px;
  font-family: var(--serif);
  font-size: 32px;
}
.nav-mobile .links a { border-bottom: none; color: var(--ink); }
.nav-mobile .listen {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex; gap: 24px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-mobile .listen a { border-bottom: 1px solid var(--ink); }

/* Caption */
.caption {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 12px;
}

/* Sections */
.section { padding: var(--s-10) var(--gutter); }
.section-tight { padding: var(--s-9) var(--gutter); }
.container { max-width: var(--max); margin: 0 auto; }

/* Footer */
.footer {
  padding: var(--s-9) var(--gutter) var(--s-7);
  border-top: 1px solid var(--rule);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.footer ul { list-style: none; }
.footer ul li {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.footer ul li a { border-bottom: none; }
.footer ul li a:hover { border-bottom: 1px solid currentColor; }
.footer .footnote {
  margin-top: 64px;
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.footer .wordmark {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 24px;
}
.footer p {
  font-size: 13px; color: var(--ink-2);
  max-width: 320px; line-height: 1.7;
}

/* Masthead stats */
.masthead {
  display: grid;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.masthead .item {
  padding: 32px 28px;
  border-left: 1px solid var(--rule);
  text-align: center;
}
.masthead .item:first-child { border-left: none; }
.masthead .label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.masthead .value {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}

/* ─── Hero (Atmospheric) ─── */
.hero-atmospheric {
  position: relative;
  height: 1040px;
  overflow: hidden;
  background: #1a1a1a;
}
.hero-atmospheric > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 32%;
}
.hero-atmospheric .grad-bottom {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.62) 100%);
}
.hero-atmospheric .grad-top {
  position: absolute; top: 0; left: 0; right: 0; height: 220px;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0));
}
.hero-atmospheric .nav-wrap {
  position: relative; z-index: 2;
}
.hero-atmospheric .content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 64px 80px;
  color: #fff; z-index: 2;
}
.hero-atmospheric .grid {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: end; gap: 64px;
}
.hero-atmospheric h1 {
  font-size: 132px; line-height: 0.94; color: #fff;
  letter-spacing: -0.02em;
}
.hero-atmospheric .descriptor {
  font-family: var(--serif); font-size: 22px; line-height: 1.5;
  color: rgba(255,255,255,0.92); max-width: 460px;
  margin-bottom: 36px;
}
.hero-atmospheric .listen {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}
.hero-atmospheric .listen .label { opacity: 0.6; letter-spacing: 0.22em; }
.hero-atmospheric .listen a {
  color: #fff; border-bottom: 1px solid rgba(255,255,255,0.5);
}
.hero-atmospheric .photo-credit {
  position: absolute; right: 64px; top: 130px; z-index: 2;
  text-align: right;
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.78);
  line-height: 1.6;
}

/* Featured episode mini-player */
.player-card {
  border: 1px solid var(--rule);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 28px;
}
.player-card.large {
  padding: 28px 32px; gap: 28px;
}
.play-icon {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.player-card.large .play-icon { width: 48px; height: 48px; }
.play-icon::before {
  content: ""; display: block;
  width: 0; height: 0;
  border-left: 8px solid var(--ink);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 3px;
}
.player-card.large .play-icon::before {
  border-left-width: 11px;
  border-top-width: 8px; border-bottom-width: 8px;
  margin-left: 4px;
}
.progress {
  flex: 1; height: 2px; background: var(--rule); position: relative;
}
.progress > div {
  position: absolute; left: 0; top: 0; height: 2px;
  background: var(--ink);
}

/* Generic blockquote */
blockquote.quote {
  margin: 0; padding-left: 32px;
  border-left: 1px solid var(--ink);
  font-family: var(--serif); font-size: 24px; line-height: 1.5;
  color: var(--ink); max-width: 540px;
}

/* ───── RESPONSIVE ───── */
@media (max-width: 1200px) {
  :root { --gutter: 48px; }
  .hero-atmospheric h1 { font-size: 108px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 40px; }
  .hero-atmospheric { height: 760px; }
  .hero-atmospheric h1 { font-size: 84px; }
  .hero-atmospheric .photo-credit { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --gutter: 24px; }

  .nav .links, .nav .right { display: none; }
  .nav-toggle { display: inline-block; }

  /* Fix: horizontal wordmark was 385px wide @ 28px tall — overflowed 360px viewport
     pushing menu button off-screen. Shrink to 20px tall = ~275px wide. */
  .nav .wordmark img,
  .nav-mobile .top img {
    height: 20px !important;
  }

  .hero-atmospheric { height: 640px; }
  .hero-atmospheric .content { padding: 0 24px 48px; }
  .hero-atmospheric .grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-atmospheric h1 { font-size: 60px; }
  .hero-atmospheric .descriptor { font-size: 18px; max-width: 100%; margin-bottom: 24px; }
  .hero-atmospheric .listen { gap: 16px; font-size: 11px; }

  .section, .section-tight { padding-left: 24px; padding-right: 24px; }

  .masthead { grid-template-columns: 1fr 1fr !important; }
  .masthead .item { padding: 24px 16px; }
  .masthead .item:nth-child(odd) { border-left: none; }
  .masthead .item:nth-child(2) { border-left: 1px solid var(--rule); }
  .masthead .item:nth-child(3), .masthead .item:nth-child(4) {
    border-top: 1px solid var(--rule);
  }
  .masthead .value { font-size: 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer .footnote { flex-direction: column; gap: 12px; margin-top: 48px; }

  .grid-2, .grid-2-1, .grid-1-2,
  .grid-3, .grid-4,
  .grid-1-2-4 {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .partner-stats { grid-template-columns: 1fr 1fr !important; }
  .partner-stats .stat { padding: 32px 16px !important; }
  .partner-stats .stat .big { font-size: 44px !important; }

  .display-xl { font-size: 56px !important; }
  .display-lg { font-size: 44px !important; }
  .display-md { font-size: 32px !important; }
  .display-sm { font-size: 24px !important; }

  .lede-lg { font-size: 18px !important; }

  .hero-padding { padding-top: 80px !important; padding-bottom: 56px !important; }

  blockquote.quote { font-size: 20px; padding-left: 24px; }

  .episode-row {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .episode-row .meta { text-align: left !important; }

  .press-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .press-row .date { text-align: left !important; }

  .pull-quote { font-size: 28px !important; }

  .contact-grid { grid-template-columns: 1fr !important; }
  .contact-grid > div:first-child { border-right: none !important; border-bottom: 1px solid var(--ink); }
}

@media (max-width: 420px) {
  .nav .wordmark img {
    height: 17px !important;  /* ~234px wide — fits 320-360px viewports */
  }
}

/* Generic helpers used inline */
.aspect-4-5 { aspect-ratio: 4 / 5; overflow: hidden; }
.aspect-5-4 { aspect-ratio: 5 / 4; overflow: hidden; }
.aspect-21-9 { aspect-ratio: 21 / 9; overflow: hidden; }
.aspect-16-9 { aspect-ratio: 16 / 9; overflow: hidden; }
.cover { width: 100%; height: 100%; object-fit: cover; }

/* Brand mark — Laura's pink "MADE in Spain · The Podcast" logo */
.brand-mark {
  display: block;
  width: auto;
  height: auto;
  max-width: 220px;
  margin: 0 auto 28px;
  /* Multiply blend lets the warm cream canvas show through the white logo background,
     making the rose tones harmonise with --canvas instead of clashing. */
  mix-blend-mode: multiply;
}
.brand-mark.large { max-width: 320px; margin-bottom: 40px; }
.brand-mark.small { max-width: 140px; margin-bottom: 20px; }
@media (max-width: 768px) {
  .brand-mark { max-width: 180px; }
  .brand-mark.large { max-width: 240px; }
  .brand-mark.small { max-width: 120px; }
}

/* Drop cap */
.drop-cap::first-letter {
  font-family: var(--serif);
  font-size: 96px;
  line-height: 0.85;
  float: left;
  padding-right: 14px;
  padding-top: 6px;
  font-weight: 400;
}

/* Form */
input, button {
  font: inherit;
}
.subscribe-form {
  display: flex;
  border-bottom: 1px solid var(--ink);
  max-width: 480px;
  margin: 0 auto;
}
.subscribe-form input {
  flex: 1; border: none; background: transparent;
  padding: 14px 4px;
  font-family: var(--sans); font-size: 14px;
  outline: none; color: var(--ink);
}
.subscribe-form button {
  border: none; background: transparent;
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer; padding: 14px 0;
}
