/* Robot Pirate Media — site styles */

:root {
  --bg: #000;
  --surface: #111;
  --surface-2: #1a1a1a;
  --text: #f2f2f2;
  --muted: #a8a8a8;
  --gold: #d8b04c;      /* from the logo's epaulettes */
  --red: #7a1f1a;       /* from the logo's coat */
  --line: #2a2a2a;
  --max: 1100px;
  --display: "Agdasima", "Arial Narrow", sans-serif;
  --body: "Jost", "Futura", "Century Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: #000; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px;
}
.brand img { width: 56px; height: 56px; border-radius: 4px; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); color: var(--text);
  font-family: var(--display); font-size: 1.2rem; letter-spacing: 0.08em;
  padding: 6px 12px; cursor: pointer;
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav a {
  font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text); text-decoration: none;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--text); }

/* Dropdown for Shows */
.has-sub { position: relative; }
.has-sub > ul {
  display: none; position: absolute; top: 100%; left: -16px;
  flex-direction: column; gap: 0; min-width: 260px;
  background: var(--surface); border: 1px solid var(--line); padding: 8px 0;
}
.has-sub:hover > ul,
.has-sub:focus-within > ul { display: flex; }
.has-sub > ul a { display: block; padding: 8px 16px; border: 0; font-size: 1.1rem; }
.has-sub > ul a:hover { background: var(--surface-2); color: var(--gold); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #000; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .site-nav a { display: block; padding: 10px 0; }
  .has-sub > ul { display: flex; position: static; border: 0; background: none;
    padding: 0 0 0 16px; min-width: 0; }
  .has-sub > ul a { padding: 6px 0; }
}

/* ---------- Sections ---------- */

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }

.hero { padding: 40px 0 56px; }
.hero img { width: 100%; max-width: 1000px; margin: 0 auto; }

.page-head { padding: 64px 0 24px; text-align: center; }
.page-head p { color: var(--muted); max-width: 720px; margin: 0 auto; }

.lead { font-size: 1.2rem; max-width: 760px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Podcast cards */
.show-card { display: block; text-decoration: none; color: var(--text); }
.show-card img {
  aspect-ratio: 1 / 1; object-fit: cover; width: 100%;
  border: 1px solid var(--line); transition: transform .2s, border-color .2s;
}
.show-card:hover img { transform: translateY(-4px); border-color: var(--gold); }
.show-card span {
  display: block; margin-top: 10px; font-family: var(--display);
  font-size: 1.3rem; letter-spacing: 0.05em; text-transform: uppercase;
}

/* Service blocks */
.service { background: var(--surface); border: 1px solid var(--line); padding: 28px; }
.service h3 { color: var(--gold); }

.split { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr 1fr; }
.split + .split { margin-top: 56px; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}
figure { margin: 0; }
figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

/* Testimonials */
.quotes { columns: 2 340px; column-gap: 28px; }
blockquote {
  break-inside: avoid; margin: 0 0 28px; padding: 24px;
  background: var(--surface); border-left: 3px solid var(--gold);
}
blockquote p { margin-bottom: 0.75em; }
blockquote cite { font-style: normal; color: var(--muted); font-size: 0.95rem; }
blockquote cite::before { content: "— "; }

/* Embeds */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--surface); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.audio iframe { width: 100%; border: 0; border-radius: 12px; }

.reel h3 { margin-top: 16px; }
.credits { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Episode lists on show pages */
.show-intro { display: grid; gap: 40px; grid-template-columns: 320px 1fr; align-items: start; }
.show-intro img { border: 1px solid var(--line); }
@media (max-width: 760px) { .show-intro { grid-template-columns: 1fr; } .show-intro img { max-width: 320px; } }

.episode { margin-bottom: 40px; }
.episode h3 { font-size: 1.4rem; }

.social { display: flex; gap: 20px; flex-wrap: wrap; padding: 0; list-style: none; }

/* Buttons */
.btn {
  display: inline-block; background: var(--gold); color: #000;
  font-family: var(--display); font-size: 1.3rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; padding: 12px 28px;
  border: 2px solid var(--gold); cursor: pointer;
}
.btn:hover { background: transparent; color: var(--gold); }

.badge { display: inline-block; background: #fff; padding: 8px; border-radius: 4px; }
.badge img { width: 140px; }

/* Forms */
form { display: grid; gap: 18px; max-width: 640px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: 0.95rem; color: var(--muted); }
input, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); padding: 12px; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
textarea { min-height: 160px; resize: vertical; }
.hidden { display: none; }

/* ---------- Footer ---------- */

.cta { text-align: center; background: var(--surface); }
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--text); }
