/* Straunts Wants — late-night podcast energy */

:root {
  color-scheme: dark;
  --bg-deep: #0c0a12;
  --bg-panel: #161222;
  --bg-elevated: #1f1a2e;
  --border: rgba(251, 191, 36, 0.22);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #fbbf24;
  --accent-dim: #d97706;
  --purple: #a78bfa;
  --danger: #f87171;
  --radius: 14px;
  --font-display: "DM Serif Display", "Georgia", serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(167, 139, 250, 0.18), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 50%, rgba(251, 191, 36, 0.08), transparent 50%),
    var(--bg-deep);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fde68a;
}

code {
  font-size: 0.9em;
  padding: 0.12em 0.35em;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

.hidden {
  display: none !important;
}

.site-shell {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 -1.25rem 2rem;
  padding: 0.75rem 1.25rem;
  background: rgba(12, 10, 18, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .site-header {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.25rem;
    padding: 0.65rem max(1rem, env(safe-area-inset-left, 0px)) 0.75rem max(1rem, env(safe-area-inset-right, 0px));
  }

  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .site-logo {
    min-width: 0;
  }

  .site-logo__text {
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem 0.85rem;
    padding-top: 0.65rem;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav__link {
    font-size: 0.9rem;
    padding: 0.2rem 0;
  }

  .site-nav__link--cta {
    margin-left: 0;
  }
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-logo:hover {
  color: var(--accent);
}

.site-logo__mark {
  display: block;
  height: 2.35rem;
  width: auto;
  max-width: 3.25rem;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.site-logo__text {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.site-nav__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav__link:hover {
  color: var(--text);
}

.site-nav__link--cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid var(--border);
  color: var(--accent);
}

.site-nav__link--cta:hover {
  background: rgba(251, 191, 36, 0.22);
  color: #fde68a;
}

/* Flash */
.flash {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.flash--notice,
.flash--alert {
  background: var(--bg-elevated);
}

.flash--alert {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

/* Hero */
.hero {
  margin-bottom: 2.5rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }
}

.hero__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--purple);
  font-weight: 600;
}

.hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1.05;
  background: linear-gradient(120deg, #fde68a, var(--accent), #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tagline {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 38ch;
}

.hero__tagline--lead {
  max-width: min(100%, 40rem);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
}

.hero__tagline-lede {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  font-weight: 700;
  line-height: 1.45;
}

.hero__tagline-re {
  font-weight: 800;
  color: var(--text);
}

.hero__tagline-accent {
  color: var(--accent);
  font-weight: 800;
}

.hero__tagline-body {
  font-weight: 400;
  color: var(--muted);
}

.hero__footnote-ref {
  margin-left: 0.12em;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  vertical-align: super;
  font-size: 0.75em;
}

.hero__footnote-ref:hover,
.hero__footnote-ref:focus-visible {
  color: #fde68a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__art {
  text-align: center;
}

.hero__image {
  width: min(100%, 380px);
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.hero__art-caption {
  margin: 0.75rem auto 0;
  max-width: 28ch;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Panels */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.panel--narrow-top {
  margin-top: 0.5rem;
}

.panel__head {
  margin-bottom: 1.5rem;
}

.panel__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: #fef3c7;
}

.panel__sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #1c1024;
  border-color: rgba(0, 0, 0, 0.08);
}

.btn--primary:hover {
  filter: brightness(1.06);
  color: #1c1024;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

.btn--small {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

/* Review list */
.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 640px) {
  .review-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.review-card__main {
  min-width: 0;
}

.review-card__name {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 650;
}

.review-card__title-link {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  font-size: inherit;
}

.review-card__title-link:hover,
.review-card__title-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.review-card__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.review-card__badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.review-card__badge--completed {
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.35);
}

.review-card__badge--running,
.review-card__badge--pending {
  color: #fde68a;
}

.review-card__badge--failed {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.35);
}

.review-card__audio {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
  min-width: min(100%, 260px);
}

.review-card__player {
  width: 100%;
  height: 36px;
  border-radius: 999px;
}

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

.text-error {
  color: #fecaca;
}

.empty-hint {
  margin: 0;
}

.inline-link {
  color: var(--accent);
  font-weight: 600;
}

/* Request form */
.request-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 36rem;
}

.field__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #e2e8f0;
}

.field__input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-deep);
  color: var(--text);
  font: inherit;
}

.field__input:focus {
  outline: 2px solid rgba(251, 191, 36, 0.45);
  outline-offset: 2px;
}

.field__hint {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.places-widget-host {
  display: block;
  width: 100%;
  min-height: 3rem;
}

.places-widget-host > * {
  width: 100%;
}

.maps-auth-error {
  margin-top: 1rem;
}

/* Callouts */
.callout {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.callout--warn {
  border-color: rgba(251, 191, 36, 0.35);
  color: #fef3c7;
}

.callout--error {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

/* Review status + spinner */
.review-status__pending,
.review-status__ready {
  padding-top: 0.25rem;
}

.review-status__text {
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.review-status__step {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.review-status__elapsed {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.review-status__player-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 420px;
}

.review-status__audio {
  width: 100%;
  border-radius: 999px;
}

.review-status__request-another {
  align-self: flex-start;
}

.review-script {
  margin-top: 1.25rem;
  max-width: 42rem;
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.review-script__summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  color: #fde68a;
  list-style: none;
}

.review-script__summary::-webkit-details-marker {
  display: none;
}

.review-script__summary::before {
  content: "▸ ";
  display: inline-block;
  margin-right: 0.25rem;
  transition: transform 0.15s ease;
  color: var(--accent);
}

.review-script[open] .review-script__summary::before {
  transform: rotate(90deg);
}

.review-script__box {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.review-script__warnings {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
}

.review-script__pre {
  margin: 0;
  padding: 0.85rem 1rem;
  max-height: min(55vh, 28rem);
  overflow: auto;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.spinner {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  border: 3px solid rgba(251, 191, 36, 0.2);
  border-top-color: var(--accent);
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Homepage disclaimer (footnote *) */
.site-disclaimer--home {
  max-width: 1040px;
  margin: 2rem auto 0;
  padding: 0 1.25rem 3rem;
}

.site-disclaimer__text {
  margin: 0;
  padding: 1rem 1.15rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.site-disclaimer__asterisk {
  margin-right: 0.35rem;
  font-weight: 700;
  color: var(--accent);
}

.site-disclaimer cite {
  font-style: normal;
}

/* Subtle footer (non-home pages) */
.site-footer {
  margin-top: auto;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-footer__legal {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.85);
}

.site-footer cite {
  font-style: normal;
}

/* Author credit — every page, distinct from legal footer */
.site-author-footer {
  padding: 0.85rem 0 1.75rem;
  background: linear-gradient(180deg, transparent, rgba(167, 139, 250, 0.06));
  border-top: 1px dashed rgba(167, 139, 250, 0.25);
}

.site-author-footer__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}

.site-author-footer__text {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: rgba(148, 163, 184, 0.8);
  font-style: italic;
}

.site-author-footer__link {
  color: var(--purple);
  font-family: ui-monospace, "Cascadia Code", Menlo, monospace;
  font-size: 0.92em;
  font-style: normal;
  letter-spacing: 0;
  text-decoration: none;
  font-weight: 600;
}

.site-author-footer__link:hover,
.site-author-footer__link:focus-visible {
  color: #c4b5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Google Places dropdown appears above most UI */
.pac-container {
  z-index: 10000 !important;
  border-radius: 10px;
  margin-top: 4px;
  font-family: var(--font-body);
}
