/* ==========================================================================
   Chasin' Amens — site styles
   Clean, editorial, single accent. Mobile-first.
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --text: #111111;
  --accent: #C8102E;          /* Marlboro red */
  --muted: #6B6B6B;
  --hairline: rgba(0, 0, 0, 0.12);
  --placeholder: #F2F2F2;

  --font-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 5vw, 3.5rem);
  --max: 80rem;
  --header-h: 4rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.9;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 400; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s;
}
a:hover { color: var(--accent); }

button { font: inherit; color: inherit; }

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

::selection { background: var(--accent); color: #fff; }

/* ---------- Utilities ---------- */

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

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem 0.6rem;
  background: var(--text);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  line-height: 1;
}
.label--accent { color: var(--accent); }
.label--muted  { color: var(--muted); }

.accent { color: var(--accent); }

.rule {
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0;
  border: 0;
  background: var(--accent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.4rem 0.55rem;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }

.btn--solid {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.btn--solid:hover { border-color: var(--text); background: var(--text); color: #fff; }

.btn[aria-disabled="true"] { opacity: 0.3; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { border-color: var(--text); color: var(--text); }

/* ==========================================================================
   Header + menu
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.logo {
  display: block;
  padding-block: 0.25rem;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.85; }
/* The logo file is black on white. Inverting it and "screen" blending
   onto the red bar turns it into white lettering on red. */
.logo img {
  width: auto;
  height: clamp(1.4rem, 4.2vw, 2rem);
  filter: invert(1);
  mix-blend-mode: screen;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.5rem 0 0.5rem 0.75rem;
  border: 0;
  background: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  line-height: 1;
  cursor: pointer;
}
.menu-toggle__label { padding-top: 0.1em; min-width: 3.4em; text-align: right; }

.menu-toggle__icon {
  position: relative;
  width: 1.75rem;
  height: 0.7rem;
}
.menu-toggle__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: top 0.35s var(--ease), transform 0.35s var(--ease);
}
.menu-toggle__icon span:first-child { top: 0; }
.menu-toggle__icon span:last-child  { top: calc(100% - 2px); }

.menu-open .menu-toggle__icon span:first-child { top: calc(50% - 1px); transform: rotate(45deg); }
.menu-open .menu-toggle__icon span:last-child  { top: calc(50% - 1px); transform: rotate(-45deg); }

/* Red surfaces get a white focus ring */
.site-header :focus-visible,
.site-menu :focus-visible { outline-color: #fff; }

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: calc(var(--header-h) + clamp(1.5rem, 6vh, 4rem)) var(--gutter) 2.5rem;
  overflow-y: auto;
  background: var(--accent);
  color: #fff;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.menu-open .site-menu {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.35s var(--ease);
}
.menu-open { overflow: hidden; }

.site-menu__list {
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin-inline: auto;
}
.site-menu__list li {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.site-menu__list li { padding-block: 0.12em 0.04em; }
.site-menu__list li + li { border-top: 1px solid rgba(255, 255, 255, 0.28); }
.menu-open .site-menu__list li { opacity: 1; transform: none; }
.menu-open .site-menu__list li:nth-child(2) { transition-delay: 0.04s; }
.menu-open .site-menu__list li:nth-child(3) { transition-delay: 0.08s; }
.menu-open .site-menu__list li:nth-child(4) { transition-delay: 0.12s; }
.menu-open .site-menu__list li:nth-child(5) { transition-delay: 0.16s; }

.site-menu__list a {
  display: inline-block;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, min(14vw, 7.8vh), 7.5rem);
  line-height: 0.92;
  text-decoration: none;
  transition: transform 0.35s var(--ease), color 0.2s;
}
.site-menu__list a[aria-current="page"] { color: var(--text); }

@media (hover: hover) {
  .site-menu__list a:hover { color: #fff; transform: translateX(0.12em); }
  .site-menu__list a[aria-current="page"]:hover { color: var(--text); }
}

/* ==========================================================================
   Home
   ========================================================================== */

.hero {
  padding-block: clamp(3rem, 9vw, 7rem) clamp(3.5rem, 9vw, 7rem);
}
.hero__title { margin-top: clamp(1.25rem, 3vw, 2rem); line-height: 0; }
/* Same logo as the header, full width and in its original black */
.hero__title img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
.hero__intro {
  max-width: 32rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

/* Section heading row */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.section-title { font-size: clamp(2.75rem, 7vw, 4.5rem); }

/* ---------- Carousel ---------- */

.photos { padding-bottom: clamp(4.5rem, 11vw, 9rem); }

.carousel__controls {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.carousel__counter {
  margin-right: 0.875rem;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.carousel__track {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.carousel__track.is-dragging a { pointer-events: none; }
.carousel__track:focus-visible { outline-offset: 6px; }

.carousel__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  gap: 1rem;
}
.carousel__slide { scroll-snap-align: start; }

.slide { display: block; margin: 0; }

.slide__media {
  aspect-ratio: 4 / 5;           /* portrait frame; photos are cropped to fit */
  overflow: hidden;
  background: var(--placeholder);
}
.slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.6s var(--ease);
}
.slide__caption {
  padding-top: 0.875rem;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (hover: hover) {
  .slide:hover img { transform: scale(1.03); }
}

.carousel__progress {
  position: relative;
  height: 2px;
  margin-top: 2rem;
  overflow: hidden;
  background: var(--hairline);
}
.carousel__progress span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  transition: transform 0.15s linear;
}

@media (min-width: 40em) {
  .carousel__list { grid-auto-columns: calc((100% - 1.5rem) / 2.2); gap: 1.5rem; }
}
@media (min-width: 64em) {
  .carousel__list { grid-auto-columns: calc((100% - 4rem) / 3.3); gap: 2rem; }
}

/* ---------- Home: the mosaics, the biggest thing on the page ----------
   Full-bleed, edge to edge. Each collage is shown whole at a tall height,
   so it runs wider than the screen and you drag across it. */

.photos--mosaics .section-title { font-size: clamp(3.5rem, 12vw, 10rem); line-height: 0.85; }
.photos--mosaics .carousel__track {
  margin-inline: calc(50% - 50vw);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: x proximity;   /* slides are wider than the screen: let it rest anywhere */
}
.photos--mosaics .carousel__list {
  grid-auto-columns: max-content;
  gap: clamp(1rem, 2vw, 2rem);
  padding-right: var(--gutter);
}
.photos--mosaics .slide { color: inherit; text-decoration: none; }
.photos--mosaics .slide__media {
  width: max-content;
  height: clamp(15rem, 52svh, 30rem);
  aspect-ratio: auto;
  border: 3px solid var(--text);
  background: #2A1C14;
}
.photos--mosaics .slide__media img { width: auto; max-width: none; height: 100%; object-fit: contain; }
@media (hover: hover) {
  .photos--mosaics .slide:hover img { transform: none; }
}
.photos--mosaics .slide__caption { color: var(--text); font-size: 1rem; }
.slide__no {
  margin-right: 0.4rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
}
.photos--mosaics .slide:hover .slide__caption,
.photos--mosaics .slide:focus-visible .slide__caption { text-decoration: underline; text-underline-offset: 0.2em; }
.photos__more { margin-top: 1.25rem; }
.photos__link {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}
.photos__link:hover { color: var(--accent); }

@media (min-width: 64em) {
  .photos--mosaics .slide__media { height: clamp(22rem, 66vh, 44rem); }
}

/* ---------- Numbered index ---------- */

.index { padding-bottom: clamp(4rem, 10vw, 8rem); }

.index__list { border-top: 1px solid var(--hairline); }
.index__list li { border-bottom: 1px solid var(--hairline); }

.index__link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.25rem, 3vw, 2rem);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.45s var(--ease), color 0.25s;
}
.index__num {
  min-width: 2ch;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  letter-spacing: 0.06em;
  transition: color 0.25s;
}
.index__name {
  justify-self: start;
  padding-bottom: 0.04em;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3.25rem, 12vw, 9rem);
  line-height: 0.85;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0% 0.06em no-repeat;
  transition: background-size 0.45s var(--ease);
}
.index__arrow {
  font-size: clamp(1.5rem, 4vw, 3rem);
  line-height: 1;
  opacity: 0;
  transform: translateX(-0.5em);
  transition: opacity 0.3s, transform 0.45s var(--ease);
}

.index__link:focus-visible,
.index__link:hover {
  color: var(--accent);
  transform: translateX(clamp(0.5rem, 2vw, 1.5rem));
}
.index__link:focus-visible .index__num,
.index__link:hover .index__num { color: var(--accent); }
.index__link:focus-visible .index__name,
.index__link:hover .index__name { background-size: 100% 0.06em; }
.index__link:focus-visible .index__arrow,
.index__link:hover .index__arrow { opacity: 1; transform: none; }

@media (hover: none) {
  .index__link:hover { transform: none; }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

.page-head {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem);
}
.page-head__title {
  margin-top: 1rem;
  font-size: clamp(4.5rem, 22vw, 16rem);
  line-height: 0.82;
}
.page-head__intro {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--muted);
}

/* ---------- Podcast ---------- */

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.episode-list {
  margin-bottom: clamp(4rem, 10vw, 8rem);
  border-top: 1px solid var(--hairline);
}

.episode {
  display: grid;
  gap: 0.875rem;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--hairline);
}
.episode__num {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  line-height: 1;
}
.episode__title { font-size: clamp(2.25rem, 6vw, 4rem); }
.episode__desc { max-width: 40rem; margin-top: 0.75rem; }
.episode__date { margin-top: 0.35rem; color: var(--muted); font-size: 0.875rem; }

.episode__listen {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
}
.episode__listen a {
  padding-bottom: 0.1rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-decoration: none;
}

@media (min-width: 48em) {
  .episode {
    grid-template-columns: 6rem minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 2.5rem;
  }
  .episode__listen { flex-wrap: nowrap; justify-content: flex-end; white-space: nowrap; }
}

/* ---------- Mission ---------- */

.mission {
  padding-block: clamp(5rem, 14vw, 11rem) clamp(4rem, 10vw, 8rem);
  text-align: center;
}
.mission .label { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.mission__statement {
  max-width: 58rem;
  margin-inline: auto;
  font-size: clamp(1.75rem, 4.6vw, 3.5rem);
  font-weight: 300;
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.mission__why {
  max-width: 36rem;
  margin: clamp(4.5rem, 11vw, 8rem) auto 0;
}
.mission__why .rule { margin: 0 auto 2rem; }
.mission__why h2 { margin-bottom: 1.25rem; }
.mission__why p { color: var(--muted); }

/* ---------- Filter buttons (Art Board) ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.filter[aria-pressed="true"],
.filter[aria-pressed="true"]:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  gap: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(4rem, 10vw, 8rem);
}

.form { display: grid; gap: 2.25rem; }

.field label {
  display: block;
  margin-bottom: 0.25rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 300;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 1; }

.form .btn { justify-self: start; padding-inline: 2.5rem; }

.honeypot { display: none; }

.contact__aside .label { margin-bottom: 1.25rem; }
.contact__links { border-top: 1px solid var(--hairline); }
.contact__links li { border-bottom: 1px solid var(--hairline); }
.contact__links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  text-decoration: none;
  transition: color 0.2s, transform 0.35s var(--ease);
}
.contact__links a:hover,
.contact__links a:focus-visible { color: var(--accent); transform: translateX(0.5rem); }
.contact__links .contact__name {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1;
}
.contact__links .contact__handle {
  color: var(--muted);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
  text-align: right;
}

@media (min-width: 56em) {
  .contact { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-bottom: 2.5rem;
  background: #000;
  color: #fff;
}

/* Closing words: the big red quote and signature on black */
.closing {
  margin: 0;
  padding: clamp(5rem, 13vw, 10rem) var(--gutter) clamp(4rem, 9vw, 7rem);
  text-align: center;
}
.closing__quote { margin: 0; }
.closing__quote p {
  max-width: 11em;
  margin-inline: auto;
  color: var(--accent);
  font-family: "EB Garamond", Garamond, Georgia, serif;
  font-size: clamp(2.25rem, 7vw, 6.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.closing__sig {
  margin-top: clamp(1.25rem, 3.5vw, 2.5rem);
  color: var(--accent);
  font-family: "Mrs Saint Delafield", "Snell Roundhand", cursive;
  font-size: clamp(3rem, 7.5vw, 6rem);
  line-height: 1;
}
.closing .rule { margin: clamp(2.5rem, 6vw, 4rem) auto 0; }

.site-footer .container {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }

.footer__row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer__copy { color: #9A9A9A; font-size: 0.8125rem; }

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.footer__social a {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

@media (min-width: 48em) {
  .footer__row { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ==========================================================================
   No-JS fallbacks + reduced motion
   ========================================================================== */

.no-js .menu-toggle { display: none; }
.no-js .site-menu {
  position: static;
  padding: 0 var(--gutter) 1rem;
  visibility: visible;
  opacity: 1;
}
.no-js .site-menu__list { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.no-js .site-menu__list li { opacity: 1; transform: none; }
.no-js .site-menu__list a { font-size: 1.5rem; }
.no-js .carousel__controls,
.no-js .carousel__progress,
.no-js .filters { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* Labels, buttons and numbers: always uppercase */
.label,
.btn,
.skip-link,
.menu-toggle,
.carousel__counter,
.index__num,
.episode__num,
.episode__listen a,
.footer__social a { text-transform: uppercase; }
