:root {
  /* EDIT: Jewel-tone palette for links and accents. */
  --jade: #0f766e;
  --sapphire: #1e3a8a;
  --garnet: #991b1b;
  --amber: #b45309;
  --ink: #0f172a;
  --muted: #475569;
  --sand: #f8faf7;
  --card: #ffffff;
  --line: #e2e8f0;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(15, 118, 110, 0.12), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(30, 58, 138, 0.12), transparent 40%),
    radial-gradient(circle at 20% 85%, rgba(153, 27, 27, 0.08), transparent 45%);
  pointer-events: none;
  z-index: -1;
}

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

a {
  color: var(--sapphire);
  text-decoration: none;
  font-weight: 600;
}

a:hover,
a:focus {
  color: var(--jade);
  text-decoration: underline;
  text-underline-offset: 4px;
}

h1,
h2,
h3 {
  font-family: "Literata", "Times New Roman", serif;
  font-weight: 600;
  margin-top: 0;
}

p {
  margin-top: 0;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.hero-bar {
  background: linear-gradient(110deg, rgba(15, 118, 110, 0.08), rgba(30, 58, 138, 0.12));
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 2.5rem 0;
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.site-title {
  font-size: clamp(2rem, 2.8vw, 3rem);
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

.site-nav a {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.65);
  transition: border 200ms ease, transform 200ms ease;
}

.site-nav a.is-active {
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--jade);
}

.site-nav a:hover {
  transform: translateY(-1px);
}

main {
  padding: 3rem 0 4rem;
}

.section {
  margin-bottom: 2.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: var(--jade);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.2);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.28);
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(30, 58, 138, 0.4);
  color: var(--sapphire);
  box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(30, 58, 138, 0.08);
  color: var(--sapphire);
}

.text-link {
  color: var(--sapphire);
  font-weight: 600;
}

.episode-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.episode-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.episode-card img {
  border-radius: 14px;
  border: 1px solid var(--line);
}

.episode-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.player-panel {
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.2);
}

.player-panel audio {
  width: 100%;
  margin-top: 1rem;
}

.embed-card {
  background: var(--card);
  border: 1px dashed rgba(30, 58, 138, 0.4);
  border-radius: 18px;
  padding: 1.5rem;
}

.embed-card iframe {
  width: 100%;
  border: none;
  border-radius: 12px;
}

.blog-card {
  display: grid;
  gap: 0.75rem;
}

.blog-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.reveal {
  animation: fadeUp 700ms ease forwards;
  animation-delay: var(--delay, 0ms);
  opacity: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
  }
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 2fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-bar {
    padding: 2rem 0;
  }

  .episode-card {
    grid-template-columns: 1fr;
  }
}
