/* Sketches From the Rail — site styles
   Brand: warm cream/amber watercolor, ink-brown text, Nunito. */

:root {
  --cream: #faf3e2;
  --cream-soft: #f5ead2;
  --paper: #fffdf6;
  --ink: #3a2a1c;
  --ink-soft: #6b543f;
  --amber: #d99a2b;
  --amber-deep: #b97a14;
  --gold-wash: #f0d9a8;
  --rail-green: #3e5c48;
  --line: #e3d2ae;
  --shadow: 0 6px 24px rgba(90, 60, 20, 0.12);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 12% -60px, rgba(240, 217, 168, 0.65), transparent 70%),
    radial-gradient(800px 500px at 95% 240px, rgba(217, 154, 43, 0.14), transparent 70%),
    radial-gradient(700px 420px at 50% 115%, rgba(240, 217, 168, 0.5), transparent 70%),
    var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--amber-deep); }

.wrap {
  width: min(1100px, 100% - 2.5rem);
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 243, 226, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--amber);
  flex: none;
}

.brand-name {
  font-weight: 900;
  font-size: 1.12rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.brand-tag {
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.nav-toggle {
  margin-left: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}

.site-nav {
  display: none;
  padding-bottom: 0.7rem;
}

.site-nav.open { display: block; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  color: var(--ink);
}

.site-nav a:hover { background: var(--cream-soft); }
.site-nav a[aria-current="page"] { background: var(--gold-wash); color: var(--ink); }

@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; margin-left: auto; padding-bottom: 0; }
  .site-nav ul { flex-direction: row; gap: 0.4rem; }
  .header-inner { flex-wrap: nowrap; }
}

/* ---------- Hero ---------- */

.hero { padding: 1.4rem 0 0.5rem; }

.hero-banner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3.4rem 1.4rem 1.6rem;
  margin-top: -2.6rem;
  text-align: center;
}

.hero-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--paper);
  box-shadow: var(--shadow);
  position: absolute;
  top: -54px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
}

.hero-card h1 {
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.tagline {
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 800;
  color: var(--amber-deep);
  margin-top: 0.35rem;
}

.hero-intro {
  max-width: 640px;
  margin: 0.9rem auto 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.cadence {
  display: inline-block;
  margin-top: 1rem;
  background: var(--gold-wash);
  color: var(--ink);
  font-weight: 800;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
}

/* ---------- Follow strip / buttons ---------- */

.follow-strip { padding: 1.6rem 0 0.4rem; text-align: center; }

.follow-strip h2,
.section-head h2 {
  font-size: 1.45rem;
  font-weight: 900;
}

.follow-strip p { color: var(--ink-soft); margin-top: 0.25rem; }

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff8ea;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.98rem;
  border: 1px solid var(--ink);
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn:hover { background: var(--amber-deep); border-color: var(--amber-deep); transform: translateY(-1px); }

.btn.alt {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.btn.alt:hover { background: var(--gold-wash); border-color: var(--amber); }

/* ---------- Sections & episode cards ---------- */

.section { padding: 2.2rem 0; }

.section-head { text-align: center; margin-bottom: 1.3rem; }
.section-head p { color: var(--ink-soft); margin-top: 0.25rem; }

.ep-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

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

.ep-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: 0 3px 12px rgba(90, 60, 20, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ep-num {
  align-self: flex-start;
  background: var(--rail-green);
  color: #fdf6df;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
}

.ep-num.bonus { background: var(--amber-deep); }

.ep-title { font-size: 1.08rem; font-weight: 800; line-height: 1.3; }

.ep-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.ep-link {
  margin-top: auto;
  padding-top: 0.45rem;
  font-weight: 800;
  text-decoration: none;
}

.ep-link:hover { text-decoration: underline; }

.center-link { text-align: center; margin-top: 1.4rem; }

/* ---------- Page (about / follow) ---------- */

.page-hero { padding: 2.2rem 0 0.4rem; text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 900; }
.page-hero p { color: var(--ink-soft); max-width: 620px; margin: 0.5rem auto 0; }

.prose {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem;
  margin: 1.4rem 0 2.2rem;
}

.prose p + p { margin-top: 1rem; }
.prose h2 { font-size: 1.3rem; font-weight: 900; margin: 1.5rem 0 0.5rem; }
.prose h2:first-child { margin-top: 0; }

.cast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.4rem 0 2.2rem;
}

@media (min-width: 700px) { .cast-grid { grid-template-columns: repeat(3, 1fr); } }

.cast-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 3px 12px rgba(90, 60, 20, 0.07);
}

.cast-card h3 { font-size: 1.15rem; font-weight: 900; }
.cast-card .role { color: var(--amber-deep); font-weight: 800; font-size: 0.9rem; margin-bottom: 0.4rem; }
.cast-card p { color: var(--ink-soft); font-size: 0.97rem; }

.follow-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.4rem 0 2.2rem;
}

@media (min-width: 640px) { .follow-list { grid-template-columns: repeat(2, 1fr); } }

.follow-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(90, 60, 20, 0.07);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.follow-card:hover { transform: translateY(-2px); border-color: var(--amber); }

.follow-card .platform { font-weight: 900; font-size: 1.1rem; }
.follow-card .handle { color: var(--ink-soft); font-weight: 700; font-size: 0.92rem; }
.follow-card .go { margin-left: auto; font-weight: 900; color: var(--amber-deep); flex: none; }
.follow-card .note { display: block; color: var(--ink-soft); font-size: 0.85rem; font-weight: 600; }

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

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding: 1.8rem 0 2.2rem;
  text-align: center;
  color: var(--ink-soft);
}

.site-footer .foot-brand { font-weight: 900; color: var(--ink); font-size: 1.05rem; }
.site-footer nav { margin: 0.6rem 0; }
.site-footer nav a { margin: 0 0.55rem; font-weight: 700; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer small { display: block; margin-top: 0.5rem; }
