/* Marley & Bertie — shared site styles */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Air Force Blue (RAF) */
  --bg: #5d8aa8;
  --bg-alt: #4d7a96;
  --panel: #3f6b86;
  --gold: #d4af6a;
  --gold-soft: #c9a36a;
  --cream: #f9f7f2;
  --muted: #d7dae2;
  --marley: #d4af6a;
  --bertie: #8fae6b;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 0.4em 0;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(93, 138, 168, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212, 175, 106, 0.18);
}

nav.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--cream);
}

.brand .paw { color: var(--gold); }

.navlinks {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}

.navlinks a {
  color: var(--muted);
  letter-spacing: 0.02em;
}

.navlinks a:hover, .navlinks a.active {
  color: var(--gold);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(212,175,106,0.10), transparent 60%),
    var(--bg);
  border-bottom: 1px solid rgba(212, 175, 106, 0.12);
}

.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  max-width: 780px;
  margin: 0 auto 20px;
}

.hero p.lede {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-photos {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-photos .polaroid {
  width: 210px;
  background: var(--panel);
  padding: 10px 10px 34px;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  transform: rotate(-3deg);
}

.hero-photos .polaroid:nth-child(2) { transform: rotate(2deg); }
.hero-photos .polaroid img { border-radius: 3px; aspect-ratio: 4/5; object-fit: cover; }
.hero-photos .polaroid figcaption {
  text-align: center;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  margin-top: 8px;
  font-size: 0.95rem;
}

.hero-real-photo {
  max-width: 640px;
  margin: 48px auto 0;
}

.hero-real-photo img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

.hero-real-photo figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.btn-gold {
  background: linear-gradient(180deg, #e3c184, var(--gold));
  color: #2a2119;
}
.btn-gold:hover { text-decoration: none; filter: brightness(1.06); }

.btn-outline {
  border: 1px solid rgba(212,175,106,0.5);
  color: var(--cream);
}
.btn-outline:hover { text-decoration: none; border-color: var(--gold); color: var(--gold); }

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Section */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head .kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p { color: var(--muted); margin-top: 12px; }

/* Dog cards on landing */
.dog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 720px) {
  .dog-grid { grid-template-columns: 1fr; }
  .navlinks { display: none; }
}

.dog-card {
  background: var(--panel);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(212,175,106,0.15);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.dog-card:hover { transform: translateY(-4px); border-color: rgba(212,175,106,0.4); }

.dog-card .photo { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.dog-card .body { padding: 26px 26px 30px; }

.dog-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.dog-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
  margin-bottom: 10px;
}
.dog-card p { color: var(--muted); margin-bottom: 20px; }

/* Supporting cast */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 640px;
  margin: 0 auto;
}

.cast-grid .dog-card .tag.villain { color: #c98a6b; }

/* Adventures / film galleries */
.film-block { padding: 56px 0; }
.film-block + .film-block { border-top: 1px solid rgba(212,175,106,0.12); }

.film-header { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.film-header .kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.film-header h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 12px; }
.film-header p { color: var(--muted); }

.film-poster {
  max-width: 820px;
  margin: 0 auto 32px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.film-poster img { width: 100%; display: block; }

.still-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 900px) { .still-grid { grid-template-columns: repeat(2, 1fr); } }

.still-grid figure { margin: 0; }
.still-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(212,175,106,0.15);
}
.still-grid figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* Homepage adventures teaser */
.adventures-teaser .collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
@media (max-width: 720px) { .adventures-teaser .collage { grid-template-columns: repeat(2, 1fr); } }
.adventures-teaser .collage img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(212,175,106,0.15);
}

/* Bio still callout */
.bio-still {
  margin: 32px 0 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0,0,0,0.4);
}
.bio-still img { width: 100%; display: block; }
.bio-still figcaption {
  padding: 12px 16px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
.bio-still figcaption a { color: var(--gold-soft); }

/* Real dogs section */
.real-dogs .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 720px) {
  .real-dogs .wrap { grid-template-columns: 1fr; }
}

.real-dogs img {
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  width: 100%;
}

.real-dogs .copy .kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.real-dogs .copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 16px; }
.real-dogs .copy p { color: var(--muted); font-size: 1.02rem; line-height: 1.75; }

/* Biography section */
.bio-section {
  padding: 88px 0 24px;
}

.bio-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 44px;
  align-items: start;
}

@media (max-width: 720px) {
  .bio-grid { grid-template-columns: 1fr; }
}

.bio-grid .portrait {
  border-radius: 14px;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  position: sticky;
  top: 100px;
}

@media (max-width: 720px) {
  .bio-grid .portrait { position: static; max-width: 260px; margin: 0 auto; }
}

.bio-text .kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.bio-text h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 22px; }

.bio-text p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.75;
}

.bio-text strong { color: var(--cream); }

.bio-text blockquote.quote {
  margin: 28px 0 0;
  padding-left: 20px;
  border-left: 3px solid var(--gold);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--cream);
  font-size: 1.08rem;
  line-height: 1.6;
}

.bio-text blockquote.quote cite {
  display: block;
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* Favourites list pages */
.fav-hero {
  padding: 56px 0 40px;
  text-align: center;
}

.fav-hero .crest { font-size: 2rem; color: var(--gold); margin-bottom: 14px; }
.fav-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.fav-hero p { color: var(--muted); max-width: 520px; margin: 14px auto 0; }

.fav-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-bottom: 40px;
}

@media (max-width: 720px) {
  .fav-list { grid-template-columns: 1fr; }
}

.fav-item {
  background: var(--panel);
  border: 1px solid rgba(212,175,106,0.15);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.fav-item .num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--gold);
  min-width: 42px;
}

.fav-item h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fav-item p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* Episodes / blog */
.ep-filter {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.ep-filter button {
  background: transparent;
  border: 1px solid rgba(212,175,106,0.3);
  color: var(--muted);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.ep-filter button.active, .ep-filter button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.ep-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 900px) { .ep-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ep-grid { grid-template-columns: 1fr; } }

.ep-card {
  background: var(--panel);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212,175,106,0.15);
}

.ep-card[data-series="beef"] { border-top: 3px solid var(--bertie); }
.ep-card[data-series="manners"] { border-top: 3px solid var(--marley); }

.ep-card .video-wrap {
  position: relative;
  aspect-ratio: 9/16;
  background: #000;
}

.ep-card .video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ep-card .video-wrap .soon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}

.ep-card .meta { padding: 16px 16px 20px; }
.ep-card .series-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  margin-bottom: 6px;
  display: block;
}
.ep-card h4 { font-size: 0.95rem; margin: 0 0 4px; line-height: 1.3; font-family: 'Inter', sans-serif; font-weight: 600; }
.ep-card .date { font-size: 0.78rem; color: var(--muted); }

/* Footer */
footer.site {
  padding: 48px 0 40px;
  border-top: 1px solid rgba(212,175,106,0.15);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site .social {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 18px;
}

footer.site .social a {
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9rem;
}

footer.site .social a:hover { color: var(--gold); text-decoration: none; }

.crown { color: var(--gold); }
