/* Tommy's Tools — draft static site. No third-party scripts, fonts or trackers. */

@font-face {
  font-family: "Lobster";
  src: url("../fonts/Lobster-Regular.woff2") format("woff2"),
       url("../fonts/Lobster-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #041240;
  --ink: #1b2748;
  --muted: #3a4a6c;
  --blue: #0157d6;
  --blue-deep: #0146b3;
  --blue-bright: #1a86ff;
  --blue-sky: #e8f3ff;
  --blue-wash: #f3f8ff;
  --yellow: #f5d21a;
  --yellow-deep: #e3bd00;
  --red: #d01216;
  --red-deep: #b40f13;
  --white: #ffffff;
  --cloud: #f6f8fc;
  --line: #cfe0f6;
  --shadow: 0 12px 32px rgba(4, 18, 64, 0.12);
  --radius: 24px;
  --wrap: 1120px;
  --header-h: 4.25rem;
  --font-title: "Lobster", "Segoe UI", cursive, system-ui, sans-serif;
  --font-body: "Segoe UI", "Avenir Next", "Century Gothic", "Trebuchet MS", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header
   -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 2px 10px rgba(4, 18, 64, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
  padding-block: 0.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-title);
  font-size: 1.7rem;
  letter-spacing: 0.01em;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--blue);
}

.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}

.site-header nav a:hover {
  background: var(--blue-sky);
  color: var(--blue-deep);
}

/* Hero
   -------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: 2rem 0 2.75rem;
  background:
    repeating-conic-gradient(from 0deg at 50% 0%,
      rgba(255, 255, 255, 0.10) 0deg 8deg,
      rgba(255, 255, 255, 0) 8deg 16deg),
    linear-gradient(180deg, #1a86ff 0%, #0157d6 48%, #0140b0 100%);
  color: var(--white);
  text-align: center;
}

.hero-banner {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 16, 64, 0.35);
  border: 4px solid var(--yellow);
  background: var(--blue-deep);
}

.bio {
  margin: 1.5rem auto 1.35rem;
  max-width: 38rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  font-weight: 600;
  text-wrap: pretty;
  text-shadow: 0 1px 2px rgba(0, 20, 80, 0.25);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.15rem;
  padding: 0.7rem 1.45rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.12rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18), 0 10px 24px rgba(0, 16, 64, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  color: inherit;
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 16, 64, 0.2);
}

.btn svg {
  flex-shrink: 0;
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: var(--red-deep);
  color: var(--white);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
}

.btn-yellow:hover {
  background: var(--yellow-deep);
  color: var(--navy);
}

.link-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

/* Shared sections
   -------------------------------------------------- */
.section {
  padding: 3.5rem 0 3.75rem;
}

.section h2 {
  text-align: center;
  font-size: clamp(2.15rem, 5vw, 3.15rem);
  margin-bottom: 0.35rem;
}

.section h2::after {
  content: "";
  display: block;
  width: 5.5rem;
  height: 0.42rem;
  margin: 0.55rem auto 1.4rem;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--yellow) 0 72%, var(--red) 72% 100%);
}

.section-intro {
  text-align: center;
  color: var(--muted);
  margin: -0.4rem auto 1.6rem;
  max-width: 32rem;
}

/* Meet the Crew
   -------------------------------------------------- */
.crew {
  background:
    radial-gradient(1200px 400px at 50% -10%, #fff 0%, transparent 60%),
    var(--blue-wash);
}

.crew-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(1, 87, 214, 0.08);
}

.card img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  object-position: center;
  background: #f4f7fc;
}

.card-body {
  padding: 1.1rem 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 2rem;
  margin-bottom: 0.45rem;
  text-align: center;
}

.card p {
  color: var(--muted);
  text-align: center;
}

/* Episodes
   -------------------------------------------------- */
.episodes {
  background: var(--white);
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.episode {
  background: var(--cloud);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.thumb {
  position: relative;
}

.thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.badge {
  display: block;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.45rem 0.7rem;
}

.episode h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.35;
  padding: 0.85rem 1.15rem 1.15rem;
}

/* For Parents
   -------------------------------------------------- */
.parents {
  background:
    repeating-conic-gradient(from 0deg at 100% 0%,
      rgba(255, 255, 255, 0.07) 0deg 10deg,
      rgba(255, 255, 255, 0) 10deg 20deg),
    linear-gradient(180deg, #0146b3, #013a96);
  color: var(--white);
}

.parents h2,
.parents h3 {
  color: var(--white);
}

.parents h2::after {
  background: linear-gradient(90deg, var(--yellow) 0 72%, #fff 72% 100%);
}

.parents-inner {
  max-width: 42rem;
}

.parents-inner > p {
  font-size: 1.12rem;
  text-align: center;
}

.checklist {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 0.85rem 1rem 0.85rem 3rem;
  position: relative;
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 0.9rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--yellow);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 1.12rem;
  width: 0.95rem;
  height: 0.48rem;
  border-left: 3px solid var(--navy);
  border-bottom: 3px solid var(--navy);
  transform: rotate(-45deg);
  z-index: 1;
}

.privacy {
  margin-top: 1.5rem;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem 1.4rem;
  box-shadow: var(--shadow);
}

.privacy h3 {
  color: var(--navy);
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

/* Footer
   -------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 1.4rem 0;
  font-size: 0.98rem;
  border-top: 4px solid var(--yellow);
}

.site-footer p {
  margin: 0;
}

/* Responsive
   -------------------------------------------------- */
@media (max-width: 900px) {
  .crew-grid {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin-inline: auto;
  }

  .card img {
    height: 300px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 8rem;
  }

  .header-inner {
    justify-content: center;
  }

  .site-header nav {
    width: 100%;
  }

  .site-header nav ul {
    justify-content: center;
  }

  .hero {
    padding: 1.25rem 0 2rem;
  }

  .hero-banner {
    border-width: 3px;
    border-radius: 14px;
  }

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

  .section {
    padding: 2.6rem 0 2.8rem;
  }

  .btn {
    width: 100%;
    max-width: 22rem;
  }
}

@media (max-width: 420px) {
  .wrap {
    width: min(100% - 1.25rem, var(--wrap));
  }

  .brand {
    font-size: 1.5rem;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .site-header nav a {
    padding: 0.4rem 0.55rem;
    font-size: 0.92rem;
  }

  .card img {
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .btn:hover,
  .btn:active {
    transition: none;
    transform: none;
  }
}

@media (prefers-contrast: more) {
  .bio,
  .link-note {
    text-shadow: none;
  }
  .checklist li {
    background: rgba(0, 0, 0, 0.35);
  }
  .card,
  .episode,
  .privacy {
    border: 2px solid var(--navy);
  }
}
