/* mattanddru.com: built from the approved F1 mockup */
:root {
  --cream: #FCF2DE;
  --card: #fffaf0;
  --ink: #231f1a;
  --text: #3a2e24;
  --muted: #8a7f70;
  --rule: #CCC3B1;
  --red: #c2362b;
  --yellow: #FFBA52;
  --teal: #0097B2;
  --dark: #1a1612;
  --head: Montserrat, system-ui, sans-serif;
  --body: Inconsolata, ui-monospace, monospace;
  --gutter: min(24px, 4vw);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background-color: var(--cream);
  background-image: radial-gradient(#e9e0cc 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  overflow-x: hidden;
}
main { padding-top: 24px; }
img { display: block; max-width: 100%; }
picture { display: contents; }
picture source { display: none; } /* otherwise each one adds a gap in flex layouts */
h1, h2, h3 { font-family: var(--head); font-weight: 800; color: var(--ink); margin: 0; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.card { border: 2px solid var(--ink); border-radius: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; text-decoration: none; font-weight: 700;
}
.btn-arrow { margin-left: 6px; }
.btn-cream { background: #fff8ea; color: var(--ink); }
.btn-outline { border: 2px solid #fff8ea; color: #fff8ea; }
/* Shown instead of "Get tickets" while a show has no ticket link yet (not clickable). */
.btn-soon { border: 2px dashed #fff8ea; color: #fff8ea; cursor: default; }

/* Social pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
  border-radius: 999px; color: #fff; text-decoration: none; font: 700 15px var(--body);
}
.pill-instagram { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); }
.pill-tiktok { background: #000; border: 1px solid #fff; box-shadow: -2px 0 0 #25F4EE, 2px 0 0 #FE2C55; }
.pill-youtube { background: #FF0000; }

/* 1. Top section */
.top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 960px) {
  .top { grid-template-columns: minmax(0, 1fr) 360px; }
}
.hero {
  position: relative; overflow: hidden; min-height: 660px;
  border: 2px solid var(--ink); border-radius: 16px; background: var(--dark);
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 28%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, #1a1612 5%, rgba(26,22,18,.6) 32%, rgba(26,22,18,0) 58%);
}
.hero-text {
  position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 24px;
  display: flex; flex-direction: column; gap: 22px; color: var(--cream);
}
.hero-intro { display: flex; flex-direction: column; gap: 4px; }
.hero h1 {
  margin-left: -0.055em; color: var(--cream);
  font-size: clamp(48px, 9vw, 72px); line-height: 1; letter-spacing: -0.035em;
}
.hero-intro p { font-size: 18px; }
.hero-link {
  margin-top: 6px; align-self: flex-start; color: var(--yellow); font-weight: 700; font-size: 16px;
  text-underline-offset: 4px;
}
@media (max-width: 639px) {
  .hero { min-height: 600px; }
  .hero-photo { object-position: 55% 15%; } /* keeps both faces in frame */
}

.side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* On desktop, the three cards share any extra height so the column lines up with the photo. */
@media (min-width: 960px) {
  .side > .card { flex: 1 1 auto; justify-content: center; }
}

.live { background: var(--red); color: #fff8ea; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.live h2 { color: inherit; font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; }
.live-show { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.live-show > div:last-child { flex: 1 1 150px; min-width: 0; }
.date-block {
  flex: none; width: 64px; background: #fff8ea; color: var(--red); border-radius: 10px;
  text-align: center; padding: 6px 0; font-weight: 700; line-height: 1.1;
}
.date-block span { display: block; font-size: 12px; }
.date-block b { display: block; font: 800 26px var(--head); }
/* Several dates: one tile per date, side by side. */
/* Fixed widths, not flex-basis: Safari sized the row by the text alone and the tiles ran into the title. */
.date-blocks { display: flex; gap: 6px; flex: none; width: calc(56px * var(--n, 2) + 6px * (var(--n, 2) - 1)); }
.date-blocks .date-block { width: 56px; }
.live h3 { color: inherit; font-size: 24px; line-height: 1; }
.live-show p { margin-top: 4px; font-size: 15px; line-height: 1.35; }
.live-empty { font: 700 18px/1.35 var(--head); }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; }
/* Several dates: the button runs the width of the dates-and-title row above it. */
.live-fit { display: flex; flex-direction: column; gap: 14px; width: fit-content; max-width: 100%; }
.btn-wide { justify-content: center; }

.episode { background: var(--card); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.episode-label { margin: 2px 4px 0; font: 800 19px/1.2 var(--head); letter-spacing: -0.01em; color: var(--teal); }
.yt { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--dark); }
.yt-thumb, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 48px; border-radius: 14px; background: #FF0000; color: #fff;
  display: grid; place-items: center; transition: transform .15s;
}
.yt:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.episode h3 { margin: 0 4px; font: 700 15px/1.35 var(--head); }
.episode h3 a { color: inherit; text-decoration: none; }
.episode h3 a:hover { text-decoration: underline; }

.signup { background: var(--yellow); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.signup label { font: 700 16px/1.35 var(--head); color: var(--ink); max-width: 31ch; }
.signup-row { display: flex; flex-wrap: wrap; gap: 8px; }
.signup input {
  flex: 1 1 160px; min-width: 0; height: 44px; border: 2px solid var(--ink); border-radius: 8px;
  padding: 0 12px; background: #fff; font: 16px var(--body); color: var(--ink);
}
.signup button {
  height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 8px; cursor: pointer;
  background: var(--ink); color: var(--cream); font: 700 15px var(--body);
}
.signup button:disabled { opacity: .6; cursor: default; }
.signup-msg { font-weight: 700; color: var(--ink); }
.signup-msg:empty { display: none; }

/* 2. Podcast and shows */
.two-col {
  padding-top: 40px; display: grid; gap: 56px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.two-col h2 { font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.podcast { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.podcast-body { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.podcast-text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.podcast-text p { font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.podcast-text strong { font-weight: 700; }
.podcast-cover {
  flex: 0 0 180px; width: 180px; height: 180px; margin: 4px 6px 0 0; object-fit: cover;
  border-radius: 12px; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--teal); transform: rotate(2deg);
}
/* On phones the cover drops below the text; center it there. */
@media (max-width: 499px) {
  .podcast-cover { margin: 8px auto 14px; }
}
.listen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.listen-btn {
  display: flex; align-items: center; gap: 12px; min-height: 56px; height: 100%; padding: 8px 16px;
  border-radius: 12px; border: 2px solid var(--ink); background: var(--card); color: var(--ink);
  text-decoration: none; font: 700 15px/1.2 var(--head);
}
.listen-btn svg { flex: 0 0 auto; }
.listen-btn:hover { background: #fff; }
.listen-btn-dark, .listen-btn-dark:hover { background: var(--ink); color: var(--cream); }
/* Phones: one button per row so the longer labels fit. */
@media (max-width: 499px) {
  .listen { grid-template-columns: minmax(0, 1fr); }
}

.shows { display: flex; flex-direction: column; gap: 14px; min-width: 0; scroll-margin-top: 20px; }
.show { background: var(--card); padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.show.has-poster { grid-template-columns: minmax(0, 130px) minmax(0, 1fr); align-items: start; }
.show-poster { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--rule); }
.show-poster-link { display: block; }
.show-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.show h3 { font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; }
.show h3 a { color: inherit; text-decoration: none; }
.show h3 a:hover { text-decoration: underline; }
.show-info p { font-size: 17px; line-height: 1.5; }
.venue a { color: var(--ink); font-weight: 700; }
.dates { margin-top: 2px; font-size: 17px; }
.dates li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--rule); }
.dates a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--red); color: #fff8ea; text-decoration: none; font-weight: 700; font-size: 16px;
}
.date-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 12px; }
.dates a.date-info { min-height: 0; padding: 0; background: none; color: var(--red); text-decoration: underline; }
.dates .tickets-soon {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px;
  border: 2px dashed var(--red); color: var(--red); font-weight: 700; white-space: nowrap;
}
.more-info { color: var(--red); font-weight: 700; }
/* Phones: small poster next to the title, dates full width underneath. */
@media (max-width: 639px) {
  .show.has-poster { grid-template-columns: 88px minmax(0, 1fr); gap: 4px 14px; }
  .show.has-poster > picture > img, .show.has-poster > .show-poster-link { grid-row: 1 / span 2; }
  .show.has-poster .show-info { display: contents; }
  .show.has-poster .show-info > * { grid-column: 2; }
  .show.has-poster .show-info > .dates, .show.has-poster .show-info > .more-info { grid-column: 1 / -1; margin-top: 10px; }
  .show h3 { font-size: 23px; }
  .dates li { flex-wrap: wrap; }
  .date-links { justify-content: flex-start; }
}
.show-empty { background: var(--card); padding: 18px; }
/* On phones, skip the whole section when nothing is booked (the red card already says so). */
@media (max-width: 639px) {
  .shows-none { display: none; }
}
.show-empty p { font: 700 17px/1.35 var(--head); color: var(--ink); }

/* 3. Clips: a row of reel covers that scrolls sideways */
.clips { padding-top: 64px; scroll-margin-top: 16px; display: flex; flex-direction: column; gap: 20px; }
.clips-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.clips h2 { font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.clips-more { color: var(--red); font-weight: 700; font-size: 16px; text-underline-offset: 4px; }
.reels {
  display: flex; gap: 14px; overflow-x: auto; padding: 0 6px 12px 0;
  scroll-snap-type: x proximity; overscroll-behavior-x: contain;
}
.reels li { flex: 0 0 200px; scroll-snap-align: start; }
.reel {
  position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden;
  border: 2px solid var(--ink); border-radius: 14px; background: var(--dark);
}
.reel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The covers carry the hook as on-screen text, so the play button sits in a corner, clear of it. */
.reel-play {
  position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: #fff8ea; display: grid; place-items: center; transition: transform .15s;
}
.reel:hover .reel-play { transform: scale(1.1); }
@media (max-width: 639px) {
  .clips h2 { font-size: 34px; }
  .reels li { flex-basis: min(200px, 54vw); }
}

/* Clip popup: Instagram's own embed, so plays count on Instagram */
.reel-dialog {
  width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 52px 12px 12px;
  border: 2px solid var(--ink); border-radius: 18px; background: var(--card); color: var(--text); overflow-y: auto;
}
.reel-dialog::backdrop { background: rgba(26, 22, 18, .82); }
.reel-close {
  position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); font-size: 20px; cursor: pointer;
}
.reel-close:hover { background: #efe6d2; }
.reel-embed { min-height: 300px; display: grid; place-items: center; }
.reel-embed .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; }
.reel-loading { color: var(--muted); font-size: 14px; }

/* 4. About */
.about-wrap { padding-top: 64px; scroll-margin-top: 16px; }
.about {
  background: var(--card); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink);
  padding: 48px min(48px, 5vw); display: flex; flex-direction: column; gap: 36px;
}
.about-intro { display: flex; flex-direction: column; gap: 16px; max-width: 58ch; margin: 0 auto; }
.about-intro h2 { font-size: 40px; line-height: 1; letter-spacing: -0.03em; text-align: center; }
.about-intro p { font-size: 19px; line-height: 1.6; text-wrap: pretty; }
.about a { color: var(--ink); }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; }
.person { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.person-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 2px solid var(--ink); }
.person h3 { font-size: 30px; letter-spacing: -0.02em; }
.person p { font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.person-site { font-weight: 700; }

/* 5. Contact */
.contact-wrap { padding-top: 32px; padding-bottom: 48px; }
.contact {
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 18px; padding: 32px min(40px, 5vw);
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.contact p {
  max-width: 100%; font: 800 clamp(18px, 5vw, 26px)/1.3 var(--head); color: var(--ink); overflow-wrap: anywhere;
}
.contact .line { display: block; text-wrap: balance; }
.contact a { font-size: min(1em, 4.4vw); }
.contact .pills { justify-content: center; }
.contact .pill { font-size: 15px; }
.credit { margin-top: 18px; text-align: center; font-size: 15px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .yt-play, .reel-play { transition: none; }
}
