/* ============================================================
   Today's Hellooo — public site styles
   Palette sampled from troublethedog.com:
     night navy   #1E2A5C  (hero background)
     deep navy    #131F45  (top bar / footer)
     plush white  #F4F5F7
     collar red   #E02128
     medallion gold #F2C63C
     sky blue     #6EA8DC  (links)
     table cream  #EFE3D0
   ============================================================ */

:root {
  --navy: #1E2A5C;
  --navy-deep: #131F45;
  --white: #F4F5F7;
  --red: #E02128;
  --red-dark: #B5181E;
  --gold: #F2C63C;
  --sky: #6EA8DC;
  --cream: #EFE3D0;
  --muted: #A9B4D4;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0; min-height: 100vh;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  line-height: 1.55;
  display: flex; flex-direction: column;
  /* subtle star field, matching the site's night-sky hero */
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(242,198,60,0.65) 45%, transparent 55%),
    radial-gradient(1px 1px at 78% 12%, rgba(244,245,247,0.5) 45%, transparent 55%),
    radial-gradient(1.5px 1.5px at 62% 38%, rgba(242,198,60,0.4) 45%, transparent 55%),
    radial-gradient(1px 1px at 32% 64%, rgba(244,245,247,0.4) 45%, transparent 55%),
    radial-gradient(1.5px 1.5px at 88% 58%, rgba(242,198,60,0.5) 45%, transparent 55%),
    radial-gradient(1px 1px at 8% 86%, rgba(244,245,247,0.35) 45%, transparent 55%),
    radial-gradient(1.5px 1.5px at 46% 90%, rgba(242,198,60,0.35) 45%, transparent 55%);
}

a { color: var(--sky); }
a:hover { color: var(--white); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Header / footer ---------- */

.topbar {
  background: var(--navy-deep);
  padding: 14px 20px;
}
.topbar-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.wordmark {
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em;
  color: var(--white); text-decoration: none;
}
.wordmark .howl { color: var(--gold); }
.topnav { display: flex; gap: 18px; font-size: 0.92rem; }
.topnav a { text-decoration: none; font-weight: 500; }
.topnav a[aria-current="page"] { color: var(--white); border-bottom: 2px solid var(--red); padding-bottom: 2px; }

footer {
  margin-top: auto;
  background: var(--navy-deep);
  padding: 22px 20px; text-align: center;
  font-size: 0.85rem; color: var(--muted);
}
footer a { color: var(--sky); }

/* ---------- Main layout ---------- */

main {
  width: 100%; max-width: 960px;
  margin: 0 auto; padding: 34px 20px 60px;
}

.day-label {
  text-align: center; color: var(--gold);
  font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em;
  margin: 0 0 6px;
}
h1.greeting {
  text-align: center; margin: 0 0 22px;
  font-size: clamp(1.9rem, 5.5vw, 3.2rem);
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.15;
}

/* ---------- Player / title card ---------- */

.stage {
  max-width: 420px; margin: 0 auto 22px;
}
.stage video, .title-card {
  width: 100%; aspect-ratio: 9 / 16;
  border-radius: 14px; display: block;
  background: var(--navy-deep);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(244,245,247,0.12);
}
.title-card {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 28px; gap: 14px;
}
.title-card .tc-hello {
  font-size: 1.9rem; font-weight: 700; line-height: 1.2;
}
.title-card .tc-hello .noun { color: var(--gold); }
.title-card .tc-note { color: var(--muted); font-size: 0.88rem; max-width: 240px; }
.title-card .tc-badge {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--gold); color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.7rem;
  border: 3px solid var(--red);
}

.ep-desc {
  text-align: center; color: var(--muted);
  max-width: 520px; margin: 0 auto 26px; font-size: 0.98rem;
}

.cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 11px 26px; border-radius: 999px; border: 2px solid transparent;
}
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--white); border-color: rgba(244,245,247,0.4); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }

.mini-note { text-align: center; font-size: 0.8rem; color: var(--muted); }

/* ---------- Archive ---------- */

.archive-head { text-align: center; margin-bottom: 26px; }
.archive-head h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin: 0 0 8px; }
.archive-head p { color: var(--muted); margin: 0 auto 18px; max-width: 480px; font-size: 0.95rem; }

.search-wrap { max-width: 460px; margin: 0 auto; }
.search-wrap input {
  width: 100%; padding: 13px 20px;
  font: inherit; font-size: 1rem;
  border-radius: 999px; border: 2px solid rgba(244,245,247,0.25);
  background: var(--navy-deep); color: var(--white);
}
.search-wrap input::placeholder { color: var(--muted); }
.search-wrap input:focus { border-color: var(--gold); outline: none; }

.month-label {
  font-size: 0.8rem; font-weight: 600; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.18em;
  margin: 30px 0 12px;
}

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.ep-card {
  display: block; text-decoration: none;
  background: var(--navy-deep);
  border: 1px solid rgba(244,245,247,0.12);
  border-radius: 12px; overflow: hidden;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.ep-card:hover, .ep-card:focus-visible { transform: translateY(-2px); border-color: var(--gold); }
.ep-card .thumb {
  aspect-ratio: 1 / 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 12px; gap: 4px;
  background: linear-gradient(160deg, rgba(242,198,60,0.08), rgba(224,33,40,0.06));
}
.ep-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-card .thumb .hello { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; }
.ep-card .thumb .noun {
  font-weight: 700; font-size: 1.12rem; color: var(--white); line-height: 1.15;
}
.ep-card .meta {
  padding: 9px 12px; font-size: 0.75rem; color: var(--muted);
  border-top: 1px solid rgba(244,245,247,0.1);
  display: flex; justify-content: space-between; gap: 8px;
}

.empty {
  text-align: center; color: var(--muted); padding: 50px 20px;
  border: 1px dashed rgba(244,245,247,0.25); border-radius: 12px; margin-top: 26px;
}

@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  main { padding-top: 24px; }
}
