/* ── Planet Earth Publicity ─────────────────────────────────────────────────── */
/* Design: light header with logo, dark hero/footer with PE brand reds,        */
/*         light content areas for readability                                 */

:root {
  /* Brand colours from original site */
  --color-brand-red: #990000;
  --color-brand-red-dark: #590000;
  --color-brand-red-light: #b34040;
  --color-brand-red-hover: #cc1a1a;
  --color-brand-black: #000000;

  /* Content area (light) */
  --color-bg: #f5f2ee;
  --color-bg-alt: #eae5de;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5550;
  --color-text-light: #8a8580;
  --color-accent: #990000;
  --color-accent-hover: #cc1a1a;
  --color-border: #ddd5cc;
  --color-border-light: #e8e2da;

  /* Dark chrome (hero, footer, dark sections) */
  --color-dark: #000000;
  --color-dark-surface: #111111;
  --color-dark-text: #f0ece6;
  --color-dark-border: #320101;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--color-text); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin-bottom: 1em; }
.text-muted { color: var(--color-text-muted); }
.text-light { color: var(--color-text-light); }
.text-accent { color: var(--color-accent); }
.text-small { font-size: 0.875rem; }
.text-upper { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 600; }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section--dark { background: var(--color-dark); color: var(--color-dark-text); }
.section--alt { background: var(--color-bg-alt); }

/* ── Header (light, clean) ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-logo { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--color-text); }
.site-logo img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { font-size: 0.9rem; font-weight: 500; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; position: relative; }
.site-nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--color-brand-red); transition: width var(--transition); }
.site-nav a:hover, .site-nav a.active { color: var(--color-text); }
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-text); margin: 5px 0; transition: var(--transition); }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 2rem; gap: 1.5rem; border-bottom: 1px solid var(--color-border); box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-120%); transition: transform 0.3s ease; }
  .site-nav.open { transform: translateY(0); }
}

/* ── Hero (dark, brand) ───────────────────────────────────────────────────── */
.hero {
  position: relative; padding: clamp(4rem, 12vw, 8rem) 0;
  background: var(--color-dark); color: var(--color-dark-text); overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(153, 0, 0, 0.2) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(153, 0, 0, 0.1) 0%, transparent 50%);
}
.hero__content { position: relative; max-width: 700px; }
.hero__label { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-brand-red-light); margin-bottom: 1.5rem; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero p { font-size: 1.15rem; color: rgba(240, 236, 230, 0.8); line-height: 1.7; margin-bottom: 2rem; }
.hero__cta { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--color-brand-red); color: #fff; padding: 0.85rem 1.75rem; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; transition: background var(--transition), transform var(--transition); }
.hero__cta:hover { background: var(--color-brand-red-hover); color: #fff; transform: translateY(-1px); }

/* ── Cards Grid ───────────────────────────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: var(--color-surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border-light); transition: box-shadow var(--transition), transform var(--transition); display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-bg-alt); flex-shrink: 0; }
.card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__image img { transform: scale(1.04); }
.card__body { padding: 1.25rem; }
.card__meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.card__tag { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-brand-red); background: rgba(153, 0, 0, 0.08); padding: 0.2rem 0.5rem; border-radius: 3px; }
.card__date { font-size: 0.8rem; color: var(--color-text-light); }
.card__artist { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.25rem; }
.card__artist a { color: var(--color-text); }
.card__artist a:hover { color: var(--color-accent); }
.card__title-text { font-size: 0.82rem; color: var(--color-text-muted); line-height: 1.45; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title-text a { color: var(--color-text-muted); }
.card__title-text a:hover { color: var(--color-accent); }
.card__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin-bottom: 0.5rem; }
.card__title a { color: var(--color-text); }
.card__title a:hover { color: var(--color-accent); }
.card__excerpt { font-size: 0.88rem; color: var(--color-text-muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Search & Filters ─────────────────────────────────────────────────────── */
.search-bar { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.search-input { flex: 1; min-width: 250px; padding: 0.75rem 1rem 0.75rem 2.75rem; border: 1px solid var(--color-border); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem; background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a8580' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.3-4.3'%3E%3C/path%3E%3C/svg%3E") 0.85rem center no-repeat; transition: border-color var(--transition); }
.search-input:focus { outline: none; border-color: var(--color-accent); }
.filter-select { padding: 0.75rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.9rem; background: var(--color-surface); cursor: pointer; min-width: 140px; }
.filter-select:focus { outline: none; border-color: var(--color-accent); }
.results-count { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 1.5rem; }

/* ── Article Detail ───────────────────────────────────────────────────────── */
.article-header { padding: clamp(3rem, 8vw, 5rem) 0 2rem; }
.article-header__back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }
.article-header__back:hover { color: var(--color-accent); }
.article-header h1 { margin-bottom: 1rem; }
.article-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.article-content { max-width: 720px; font-size: 1.05rem; line-height: 1.75; }
.article-content p { margin-bottom: 1.25em; }
.article-content strong { font-weight: 600; }

/* ── EPK / Downloads ──────────────────────────────────────────────────────── */
.epk-section { margin-top: 3rem; padding: 2rem; background: var(--color-bg-alt); border-radius: var(--radius); border: 1px solid var(--color-border-light); }
.epk-section h3 { margin-bottom: 1.5rem; }
.epk-subsection { margin-bottom: 1.75rem; }
.epk-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); margin-bottom: 0.75rem; }
.epk-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.epk-gallery__item { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative; background: var(--color-bg); }
.epk-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.epk-gallery__item:hover img { transform: scale(1.08); }
.epk-gallery__item .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s ease; color: #fff; font-size: 0.8rem; font-weight: 600; }
.epk-gallery__item:hover .overlay { opacity: 1; }
.epk-documents { display: flex; flex-direction: column; gap: 0.5rem; }
.epk-doc { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.85rem; background: var(--color-surface); border: 1px solid var(--color-border-light); border-radius: var(--radius); color: var(--color-text); transition: border-color var(--transition), box-shadow var(--transition); }
.epk-doc:hover { border-color: var(--color-accent); box-shadow: var(--shadow-sm); color: var(--color-text); }
.epk-doc__icon { font-size: 1.3rem; flex-shrink: 0; }
.epk-doc__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.epk-doc__name { font-size: 0.88rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }
.epk-doc__ext { font-size: 0.72rem; color: var(--color-text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.epk-doc__dl { font-size: 1.1rem; color: var(--color-text-light); flex-shrink: 0; transition: color var(--transition); }
.epk-doc:hover .epk-doc__dl { color: var(--color-accent); }
.epk-actions { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border-light); }
.epk-individual-downloads { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.btn--small { padding: 0.4rem 0.85rem; font-size: 0.78rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1.25rem; border-radius: var(--radius); font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; cursor: pointer; border: none; transition: all var(--transition); }
.btn--primary { background: var(--color-brand-red); color: #fff; }
.btn--primary:hover { background: var(--color-brand-red-hover); color: #fff; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--color-text); border: 1px solid var(--color-border); }
.btn--outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ── Client Logo Wall ─────────────────────────────────────────────────────── */
.client-list { columns: 3; column-gap: 2rem; font-size: 0.95rem; color: var(--color-text-muted); line-height: 2; }
@media (max-width: 768px) { .client-list { columns: 2; } }
@media (max-width: 480px) { .client-list { columns: 1; } }

/* ── Footer (dark chrome) ─────────────────────────────────────────────────── */
.site-footer { background: var(--color-dark); color: rgba(240, 236, 230, 0.6); padding: 3rem 0; border-top: 3px solid var(--color-brand-red-dark); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.site-footer a { color: rgba(240, 236, 230, 0.6); }
.site-footer a:hover { color: var(--color-brand-red-light); }
.footer-contact { font-size: 0.9rem; line-height: 1.8; }

/* ── About Page ───────────────────────────────────────────────────────────── */
.about-intro { max-width: 720px; font-size: 1.1rem; line-height: 1.8; }

/* ── Contact Section ──────────────────────────────────────────────────────── */
.contact-card { background: var(--color-surface); border: 1px solid var(--color-border-light); border-radius: var(--radius); padding: 2.5rem; max-width: 500px; }
.contact-card h3 { margin-bottom: 1.5rem; }
.contact-card p { font-size: 1.05rem; line-height: 1.8; }
.contact-card a { font-weight: 600; }

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9); z-index: 1000; display: none; align-items: center; justify-content: center; cursor: pointer; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__close { position: absolute; top: 1.5rem; right: 1.5rem; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none; line-height: 1; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination button { padding: 0.5rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); font-family: var(--font-body); font-size: 0.88rem; cursor: pointer; transition: all var(--transition); }
.pagination button:hover, .pagination button.active { background: var(--color-brand-red); color: #fff; border-color: var(--color-brand-red); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Article Content: Normalised Blocks ───────────────────────────────────── */
.article-subhead { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--color-text); }
.date-list { margin: 1.5rem 0; background: var(--color-bg-alt); border: 1px solid var(--color-border-light); border-radius: var(--radius); padding: 1rem 1.25rem; overflow-x: auto; }
.date-list__heading { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--color-text); }
.date-list__table { width: auto; border-collapse: collapse; font-size: 0.88rem; }
.date-list__month-row td { padding: 0.6rem 0 0.2rem; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-brand-red); border-bottom: none; }
.date-list__row td { padding: 0.3rem 0; border-bottom: 1px solid var(--color-border-light); vertical-align: baseline; }
.date-list__row:last-child td { border-bottom: none; }
.date-list__date { font-weight: 600; white-space: nowrap; padding-right: 0.75rem !important; color: var(--color-text); width: 1%; }
.date-list__venue { color: var(--color-text-muted); padding-right: 0.75rem !important; white-space: nowrap; }
.date-list__link a { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; color: var(--color-brand-red); border: 1px solid var(--color-brand-red); padding: 0.2rem 0.6rem; border-radius: 3px; transition: all var(--transition); }
.date-list__link a:hover { background: var(--color-brand-red); color: #fff; }
.date-list__extra { font-size: 0.8rem; font-style: italic; color: var(--color-text-light); white-space: nowrap; }
@media (max-width: 600px) { .date-list { padding: 1rem; } .date-list__date { min-width: 90px; font-size: 0.85rem; } .date-list__venue { font-size: 0.85rem; } }
.track-list { margin: 2rem 0; background: var(--color-bg-alt); border: 1px solid var(--color-border-light); border-radius: var(--radius); padding: 1.5rem; }
.track-list__heading { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; color: var(--color-text); }
.track-list__ol { list-style: none; counter-reset: track; padding: 0; margin: 0; }
.track-list__ol li { counter-increment: track; display: flex; align-items: baseline; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid var(--color-border-light); font-size: 0.92rem; color: var(--color-text); }
.track-list__ol li:last-child { border-bottom: none; }
.track-list__ol li::before { content: counter(track, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; color: var(--color-text-light); min-width: 1.75rem; flex-shrink: 0; }
.pull-quote { margin: 2rem 0; padding: 1.5rem 1.5rem 1.5rem 2rem; border-left: 3px solid var(--color-brand-red); background: var(--color-bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.pull-quote p { font-size: 1.02rem; line-height: 1.7; color: var(--color-text); margin-bottom: 0.5rem; font-style: italic; }
.pull-quote p:last-child { margin-bottom: 0; }
.pull-quote cite { display: block; font-size: 0.88rem; font-style: normal; font-weight: 600; color: var(--color-brand-red); margin-top: 0.5rem; }
.press-contact { margin: 2.5rem 0 1.5rem; padding: 1.25rem 1.5rem; background: var(--color-dark); color: var(--color-dark-text); border-radius: var(--radius); border-left: 3px solid var(--color-brand-red); }
.press-contact__heading { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; color: var(--color-brand-red-light); }
.press-contact p { font-size: 0.9rem; line-height: 1.8; color: rgba(240, 236, 230, 0.8); margin: 0; }
.press-contact a { color: var(--color-brand-red-light); }
.press-contact a:hover { color: #fff; }

/* ── Stats boxes (homepage) ───────────────────────────────────────────────── */
.stat-box { background: var(--color-dark); color: #fff; padding: 1.5rem; border-radius: var(--radius); text-align: center; border-left: 3px solid var(--color-brand-red); }
.stat-box__number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; }
.stat-box__label { font-size: 0.85rem; opacity: 0.7; }

/* ── Utilities ────────────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.fade-in { opacity: 0; transform: translateY(16px); animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
.stagger > * { opacity: 0; animation: fadeIn 0.4s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }
