/* ============================================================
   Jim Hooker — comedian site
   Single stylesheet. Edit the variables in :root to re-theme.
   ============================================================ */

/* ---------- Fonts ---------- */
/* RushK — display font, used for the big main title only. */
@font-face {
  font-family: "RushK";
  src: url("/assets/fonts/rushk.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* TT Chocolates — body text and secondary (section) headers. */
@font-face {
  font-family: "TT Chocolates";
  src: url("/assets/fonts/tt-chocolates.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Chocolates";
  src: url("/assets/fonts/tt-chocolates-demibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Chocolates";
  src: url("/assets/fonts/tt-chocolates-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue:      #0066d4;   /* primary brand colour */
  --blue-dark: #0a4ea3;   /* hover / pressed */
  --blue-tint: #eef4fc;   /* alternating section background */
  --bg:        #ffffff;
  --surface:   #ffffff;
  --text:      #14233b;   /* body text — dark navy */
  --muted:     #5d6e86;
  --border:    #d8e3f1;
  --max:       980px;
  --radius:    14px;

  --font-body:    "TT Chocolates", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-head:    "TT Chocolates", "Helvetica Neue", Arial, sans-serif;  /* secondary headers */
  --font-display: "RushK", "TT Chocolates", "Helvetica Neue", Arial, sans-serif; /* main title */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;   /* never let long words/URLs cause horizontal scroll */
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Secondary headers — TT Chocolates */
h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--blue);
  margin: 0 0 .4em;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--blue);
  font-size: 1.15rem;
}
.logo:hover { text-decoration: none; color: var(--blue-dark); }
.nav { display: flex; gap: 1.05rem; align-items: center; }
.nav a { color: var(--text); font-weight: 600; font-size: .92rem; }
.nav a:hover { color: var(--blue); text-decoration: none; }
.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: .45rem 1rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--blue-dark); }

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--blue);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.5rem 2.75rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 102, 212, 0.12), transparent 62%),
    var(--bg);
}
.hero-inner { max-width: 760px; }
.kicker {
  text-transform: uppercase;
  letter-spacing: .35em;
  color: var(--blue);
  font-weight: 700;
  font-size: .8rem;
  margin: 1.1rem 0 0;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--blue);
  font-size: clamp(3rem, 14vw, 8.5rem);
  line-height: .95;
  letter-spacing: .01em;
  margin: 0;
}
.tagline {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--text);
  margin: .55rem 0 2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-socials {
  list-style: none;
  display: flex;
  gap: .7rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 2rem 0 0;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--blue);
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.social-btn svg { width: 20px; height: 20px; fill: currentColor; }
.social-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 102, 212, 0.25);
}
/* fallback pill for platforms without an icon */
.social-btn--text {
  width: auto;
  padding: 0 1.05rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .8rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  transition: transform .08s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { border: 2px solid var(--blue); color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--blue-tint); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 1.5rem;
}
.section p { color: var(--text); max-width: 60ch; }
.section p em { color: var(--muted); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
}
.about-photo {
  aspect-ratio: 4 / 5;
  background: var(--blue-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { color: var(--muted); font-size: .9rem; }
.about-text h2 { margin-top: 0; }

/* ---------- Mailing list band (between hero and About) ---------- */
.mailing-band {
  background: var(--blue-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.8rem 1.5rem;
}
.mailing-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
}
.mailing-copy h3 { margin-bottom: .15rem; }
.mailing-copy p { margin: 0; color: var(--muted); }
.ml-form { display: flex; gap: .6rem; flex-wrap: wrap; flex: 1 1 340px; max-width: 480px; }
.ml-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: .72rem .95rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
.ml-form input[type="email"]:focus { outline: none; border-color: var(--blue); }
.ml-form button {
  padding: .72rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s ease, transform .08s ease;
}
.ml-form button:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* ---------- Latest from Substack ---------- */
.latest-section { padding-top: 3rem; padding-bottom: 1.25rem; }
.latest-section + .section { padding-top: 2.25rem; }   /* tighten the gap into About */
.latest-post {
  display: block;
  max-width: 780px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 102, 212, 0.05);
  transition: transform .1s ease, box-shadow .15s ease;
}
.latest-post:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0, 102, 212, 0.14); }
.latest-body { padding: 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .4rem; }
.latest-meta { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.latest-post h3 { margin: 0; font-size: 1.3rem; color: var(--text); }
.latest-excerpt { color: var(--muted); margin: .1rem 0 .6rem; font-size: 1rem; }
.latest-link { color: var(--blue); font-family: var(--font-head); font-weight: 700; font-size: .9rem; }

/* ---------- Profiles row (inside About) ---------- */
.profiles {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .9rem;
  align-items: baseline;
  font-size: .92rem;
}
.profiles-label { color: var(--muted); font-weight: 600; }
.profiles a { font-weight: 600; }

/* ---------- Achievements (inside About) ---------- */
.achievements { margin-top: 1.75rem; }
.achievements h3 { font-size: 1.15rem; margin-bottom: .75rem; }
.achievements ul { list-style: none; margin: 0; padding: 0; }
.achievements li {
  display: flex;
  gap: .85rem;
  align-items: baseline;
  padding: .5rem 0;
  border-top: 1px solid var(--border);
}
.achievements li:first-child { border-top: 0; }
.ach-year {
  flex: 0 0 auto;
  min-width: 3.2rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue);
  font-size: .95rem;
}
.ach-text { color: var(--text); }

/* ---------- Online projects ---------- */
.online-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}
.project {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 102, 212, 0.05);
  transition: transform .1s ease, box-shadow .15s ease;
}
.project:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0, 102, 212, 0.14); }
.project-thumb { aspect-ratio: 16 / 9; background: var(--blue-tint); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 1.1rem 1.25rem; }
.project-body h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.project-body p { color: var(--muted); font-size: .95rem; margin: 0 0 .6rem; }
.project-link { color: var(--blue); font-family: var(--font-head); font-weight: 700; font-size: .9rem; }

/* ---------- Reviews / quotes ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}
.review {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 102, 212, 0.05);
}
.stars { display: block; color: #f6b01e; letter-spacing: .12em; font-size: 1.05rem; margin-bottom: .6rem; }
.review blockquote {
  margin: 0 0 .75rem;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--text);
}
.review blockquote::before { content: "“"; }
.review blockquote::after { content: "”"; }
.review figcaption { color: var(--muted); font-weight: 600; font-size: .9rem; }

/* ---------- Headshots (promoter downloads) ---------- */
.section-lead { color: var(--muted); margin-top: -.5rem; margin-bottom: 1.5rem; }
.headshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.5rem;
}
.headshot {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.headshot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--blue-tint); }
.headshot figcaption {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: flex-start;
  padding: .9rem 1rem 1.1rem;
}
.dl-btn {
  background: var(--blue);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
}
.dl-btn:hover { text-decoration: none; background: var(--blue-dark); }
.headshot .credit { color: var(--muted); font-size: .82rem; }

/* ---------- Shows / gigs ---------- */
.gig-list { list-style: none; margin: 0; padding: 0; }
.gig {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 102, 212, 0.05);
}
.gig-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
  padding: .4rem .5rem;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
}
.gig-day { font-size: 1.5rem; font-weight: 700; line-height: 1; font-family: var(--font-head); }
.gig-mon { font-size: .7rem; letter-spacing: .15em; font-weight: 700; opacity: .9; }
.gig-info { flex: 1; }
.gig-info h3 { margin: 0 0 .15rem; font-size: 1.15rem; color: var(--text); }
.gig-venue { margin: 0; color: var(--muted); font-size: .95rem; }
.gig-link {
  background: var(--blue);
  color: #fff;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
}
.gig-link:hover { text-decoration: none; background: var(--blue-dark); }
.gig-empty-note { font-size: .9rem; margin-top: 1.25rem; }

/* ---------- Watch / video ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}
.video { margin: 0; }
.video video,
.embed {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #000;
}
.embed { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { color: var(--muted); font-size: .9rem; margin-top: .6rem; }

/* ---------- Contact ---------- */
.contact-email { font-size: 1.4rem; margin: .5rem 0 1.5rem; }
.contact-email a { font-weight: 700; }
.contact-form { display: flex; flex-direction: column; gap: .7rem; max-width: 520px; margin: .5rem 0 1.5rem; }
.cf-row { display: flex; gap: .7rem; flex-wrap: wrap; }
.cf-row input { flex: 1 1 180px; min-width: 0; }
.contact-form input,
.contact-form textarea {
  padding: .72rem .95rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
.contact-form textarea { width: 100%; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--blue); }
.contact-form button {
  align-self: flex-start;
  padding: .72rem 1.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s ease, transform .08s ease;
}
.contact-form button:hover { background: var(--blue-dark); transform: translateY(-2px); }
.socials { list-style: none; display: flex; gap: 1.25rem; padding: 0; margin: 0 0 1rem; flex-wrap: wrap; }
.socials a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
}
.site-footer p { margin: 0; }

/* ---------- Responsive ---------- */

/* Tablet & phone: collapse the nav into a hamburger dropdown */
@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 22px rgba(0, 0, 0, 0.08);
    padding: .5rem 1.25rem 1.1rem;
    display: none;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a {
    padding: .9rem .25rem;
    border-top: 1px solid var(--border);
    font-size: 1.05rem;
  }
  .nav a:first-child { border-top: 0; }
  .nav-cta { text-align: center; margin-top: .7rem; padding: .8rem 1rem; }
}

/* Phones */
@media (max-width: 680px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 280px; }
  .section { padding: 3.5rem 1.25rem; }
  .kicker { letter-spacing: .2em; font-size: .72rem; }

  /* gig cards: stack the ticket button under the details */
  .gig { flex-wrap: wrap; }
  .gig-info { flex: 1 1 60%; }

  /* full-width form controls = bigger, easier taps */
  .ml-form { flex-direction: column; }
  /* reset flex so the input doesn't stretch vertically into a giant bubble */
  .ml-form input[type="email"],
  .ml-form button { width: 100%; flex: 0 0 auto; }
  .contact-form button { align-self: stretch; }
}
