/* =========================================================
   The Not Inappropriate Show — styles.css
   Palette inspired by the show's painted logo:
     --blue   cornflower / sky blue   (main background)
     --cream  warm butter cream       (headings & accents)
     --brown  branch brown            (warm contrast)
     --ink    soft charcoal black     (body text)
     --crown  little-crown yellow     (highlight)
   ========================================================= */

:root {
  --blue:  #3B7DD8;
  --blue-dark: #2C63B0;
  --cream: #F4E4B8;
  --cream-soft: #FBF1D2;
  --brown: #A4683B;
  --ink:   #1F1F22;
  --crown: #F2C94C;
  --white: #ffffff;

  --maxw: 1100px;
  --radius: 14px;
  --shadow: 0 6px 18px rgba(0,0,0,0.18);
  --shadow-lg: 0 14px 40px rgba(0,0,0,0.32);

  --font-hand: "Comic Sans MS", "Marker Felt", "Chalkboard SE", "Bradley Hand", "Segoe Print", cursive;
  --font-body: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--blue);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--crown); }

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cream);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ================= Sticky Nav ================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue-dark);
  border-bottom: 3px solid var(--cream);
  box-shadow: var(--shadow);
}
.site-nav nav { max-width: var(--maxw); margin: 0 auto; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
}
.site-nav a {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--cream);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--cream);
  color: var(--blue-dark);
  outline: none;
}

/* ================= Sections / Layout ================= */
main { display: block; }

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 22px;
}

h2 {
  font-family: var(--font-hand);
  color: var(--cream);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 18px;
  text-align: center;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.18);
}

.section p { color: var(--cream-soft); }

.section-intro {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 640px;
  font-size: 1.05rem;
}

/* ================= Hero ================= */
.hero {
  text-align: center;
  padding: 36px 18px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero-logo {
  max-width: 520px;
  width: 100%;
  margin: 0 auto 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--cream);
}
.tagline {
  font-family: var(--font-hand);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--cream);
  max-width: 640px;
  margin: 0 auto 22px;
  line-height: 1.45;
}
.tagline .asterisk {
  display: block;
  font-size: 0.88em;
  opacity: 0.9;
  margin-top: 4px;
}

/* ================= Buttons ================= */
.btn {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-primary {
  background: var(--crown);
  color: var(--ink);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--cream);
  color: var(--ink);
  outline: none;
}
.btn-secondary {
  background: var(--cream);
  color: var(--ink);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--crown);
  outline: none;
}

/* ================= Card grids (clips + artwork) ================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  background: var(--cream-soft);
  border: 4px solid var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  text-align: left;
  font: inherit;
  color: var(--ink);
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}
.card:hover,
.card:focus-visible {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: var(--shadow-lg);
  outline: none;
}

/* Clip cards: 16:9 thumbnail */
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--blue-dark);
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: var(--font-hand);
  font-size: 1.1rem;
}
.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.play-badge::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 18px 0 18px 28px;
  border-color: transparent transparent transparent var(--cream);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
  margin-left: 6px;
}

.card-body {
  padding: 12px 14px 14px;
}
.card-title {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  margin: 0 0 4px;
  color: var(--ink);
}
.card-meta {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* Artwork-specific tweaks: art tile is square-ish */
.artwork-grid .card-thumb {
  aspect-ratio: 1 / 1;
}
.artwork-grid .card-thumb.placeholder {
  text-align: center;
  padding: 12px;
  line-height: 1.3;
}

/* ================= Upcoming Shows ================= */
.shows-list {
  display: grid;
  gap: 22px;
}
.show-card {
  background: var(--cream-soft);
  border: 4px solid var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 8px;
  color: var(--ink);
}
.show-title {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  margin: 0 0 4px;
  color: var(--ink);
}
.show-date {
  font-weight: 700;
  color: var(--blue-dark);
}
.show-venue { margin: 0; }
.show-note {
  font-style: italic;
  color: #444;
  margin: 4px 0 0;
}
.show-card .btn {
  justify-self: start;
  margin-top: 8px;
}
.no-shows {
  background: var(--cream-soft);
  border: 4px dashed var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: 1.1rem;
}
.no-shows a { color: var(--blue-dark); }

/* ================= Footer ================= */
.site-footer {
  background: var(--blue-dark);
  color: var(--cream);
  text-align: center;
  padding: 32px 20px;
  margin-top: 40px;
  border-top: 3px solid var(--cream);
}
.site-footer p { margin: 6px 0; }
.site-footer .small-print {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 14px;
}

/* ================= Modal ================= */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}
.modal-panel {
  position: relative;
  background: var(--cream-soft);
  border: 5px solid var(--cream);
  border-radius: var(--radius);
  width: min(900px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 18px 18px 22px;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 8px;
}
.modal-close:hover,
.modal-close:focus-visible {
  background: var(--crown);
  outline: none;
}
.modal-title {
  font-family: var(--font-hand);
  margin: 0 36px 12px 0;
  font-size: 1.4rem;
  color: var(--ink);
}
.modal-body .video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.modal-body .video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.modal-body .art-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid var(--cream);
}
.modal-body .art-caption {
  margin: 12px 0 0;
  font-style: italic;
  color: #333;
}

/* ================= Responsive ================= */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 44px 16px; }
  .hero { padding-top: 22px; }
  .site-nav ul { gap: 4px 10px; padding: 8px 8px; }
  .site-nav a { font-size: 1rem; padding: 6px 8px; }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .card:hover { transform: none; }
}
