/* ==========================================================================
   Thomas Tough Tees — site stylesheet
   Palette: near-black + blood-red + gold
   Type: Bebas Neue (display) / Oswald (body + UI) / Special Elite (captions)
   ========================================================================== */

:root {
  --ink:          #0B0908;   /* page black, warm */
  --ink-raised:   #15100D;   /* card + panel surface */
  --ink-sunk:     #060505;   /* image wells */
  --rule:         #3A2A1C;   /* hairline, dim gold-brown */
  --blood:        #8E0F14;   /* blood red, deep */
  --blood-bright: #C41E22;   /* accent, hover, bursts */
  --gold:         #E3AE49;   /* primary gold */
  --gold-pale:    #F6E2AF;   /* highlight gold, matches logo lettering */
  --bone:         #E6DCCB;   /* body text */
  --bone-dim:     #A99B87;   /* secondary text */

  --shell: 1160px;
  --gap: 28px;

  --display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --body: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  --type: 'Special Elite', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background-color: var(--ink);
  /* faint halftone field — echoes the dot texture inside the logo */
  background-image: radial-gradient(rgba(227, 174, 73, 0.045) 1px, transparent 1px);
  background-size: 5px 5px;
  color: var(--bone);
  font-family: var(--body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-pale); }

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 22px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #000; padding: 10px 16px;
  font-family: var(--body); text-transform: uppercase; letter-spacing: .1em; z-index: 99;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- masthead ------------------------------------------------------ */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 9, 8, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 64px;
}
.masthead__mark { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.masthead__mark img { height: 44px; width: auto; }
.masthead__wordmark {
  font-family: var(--display); font-size: 22px; letter-spacing: .07em;
  color: var(--gold-pale); line-height: 1;
}
.masthead__nav {
  margin-left: auto;
  display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center;
}
.masthead__nav a {
  font-family: var(--body); font-weight: 400; font-size: 13px;
  text-transform: uppercase; letter-spacing: .16em; color: var(--bone-dim);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.masthead__nav a:hover { color: var(--gold); border-bottom-color: var(--blood-bright); }

/* ---------- hero ---------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  padding: 74px 0 56px;
  text-align: center;
}
.hero::before {
  /* blood-red burst behind the emblem */
  content: ""; position: absolute; inset: -30% 0 auto 50%;
  width: 1200px; height: 1200px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(142,15,20,.55) 0%, rgba(142,15,20,.18) 38%, transparent 66%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero__logo {
  width: min(520px, 82vw); margin: 0 auto 10px;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.75));
  animation: emblem-in .7s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes emblem-in {
  from { opacity: 0; transform: scale(.94) translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.hero__tag {
  font-family: var(--body); font-weight: 400;
  font-size: clamp(17px, 2.4vw, 21px); line-height: 1.5;
  color: var(--gold); max-width: 660px; margin: 4px auto 28px;
}

/* preamble panel — double gold rule, sign-painter panel */
.preamble {
  max-width: 760px; margin: 0 auto;
  border: 1px solid var(--gold); outline: 1px solid var(--rule); outline-offset: 5px;
  background: linear-gradient(180deg, rgba(21,16,13,.92), rgba(6,5,5,.92));
  padding: 30px 34px;
  text-align: left;
}
.preamble p { margin: 0; font-size: clamp(17px, 2.3vw, 19px); line-height: 1.75; }
.preamble strong { color: var(--gold-pale); font-weight: 500; }

/* ---------- ribbon banner — the signature device ------------------------- */

.ribbon {
  position: relative;
  margin: 0 auto 8px;
  width: fit-content; max-width: 100%;
  background: linear-gradient(180deg, var(--gold-pale) 0%, var(--gold) 48%, #b9822c 100%);
  color: #14100D;
  padding: 9px 46px 7px;
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 22px 100%, 0 50%);
  box-shadow: 0 6px 22px rgba(0,0,0,.6);
}
.ribbon h2, .ribbon h1 {
  margin: 0;
  font-family: var(--display); font-size: clamp(30px, 5vw, 44px);
  letter-spacing: .05em; line-height: 1;
}
.ribbon__wrap { text-align: center; margin-bottom: 34px; }
.ribbon__note {
  font-family: var(--body); font-weight: 300; font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.5; color: var(--bone); margin: 14px auto 0; max-width: 660px;
}

/* ---------- generic section ---------------------------------------------- */

.band { padding: 56px 0; }
.band--tight { padding: 40px 0; }
.band + .band { border-top: 1px solid rgba(58,42,28,.55); }

.section-title {
  font-family: var(--display); font-size: clamp(28px, 4vw, 38px);
  letter-spacing: .05em; color: var(--gold-pale); margin: 0 0 6px;
}
.eyebrow {
  font-family: var(--type); font-size: 14px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blood-bright); margin: 0 0 10px;
}

/* ---------- Third Act band ------------------------------------------------ */

.cause {
  background:
    linear-gradient(180deg, rgba(196,30,34,.28), rgba(142,15,20,.55)),
    var(--ink-sunk);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: 42px 0;
  text-align: center;
}
.cause__logo { margin: 0 auto 22px; width: fit-content; }
.cause__logo img {
  width: min(260px, 62vw);
  background: var(--ink); padding: 20px 26px;
  border: 1px solid var(--gold);
  outline: 1px solid rgba(227,174,73,.35); outline-offset: 4px;
}
.cause h2 {
  font-family: var(--display); font-size: clamp(34px, 6vw, 56px);
  letter-spacing: .04em; margin: 0 0 6px; color: var(--gold-pale);
  text-shadow: 0 3px 0 rgba(0,0,0,.5);
}
.cause p { max-width: 680px; margin: 0 auto; font-size: clamp(17px, 2.3vw, 19px); }
.cause .cause__kicker {
  font-family: var(--type); font-size: 14px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}

/* ---------- line grid (landing) ------------------------------------------ */

.grid-lines {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
}

.line-card {
  display: flex; flex-direction: column;
  background: var(--ink-raised);
  border: 1px solid var(--rule);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.6);
  padding: 14px 14px 18px;
  color: var(--bone);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.line-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), 0 14px 30px rgba(142,15,20,.35);
  color: var(--bone);
}
.line-card__style {
  font-family: var(--display); font-size: 34px; line-height: 1;
  letter-spacing: .04em; color: var(--gold-pale); margin: 4px 0 4px;
}
.line-card__gym {
  font-family: var(--body); font-weight: 400; font-size: 15px;
  text-transform: uppercase; letter-spacing: .09em; line-height: 1.35;
  color: var(--gold); margin: 0 0 14px;
}
.line-card__note {
  font-family: var(--body); font-weight: 300; font-size: 16px;
  line-height: 1.45; color: var(--gold); margin: 0 0 14px;
}
.line-card__cast {
  margin-top: auto; padding-top: 13px; border-top: 1px solid rgba(58,42,28,.6);
}
.line-card__meet {
  font-family: var(--type); font-size: 14px; letter-spacing: .04em;
  color: var(--bone-dim); margin: 0;
}
.line-card__names {
  font-family: var(--body); font-weight: 500; font-size: 22px; line-height: 1.3;
  color: var(--gold-pale); margin: 3px 0 0;
}
.line-card__names span { display: block; }

/* ---------- image wells + missing-art placeholders ----------------------- */

.well {
  position: relative;
  background: var(--ink-sunk);
  border: 1px solid rgba(58,42,28,.75);
  display: grid; place-items: center;
  overflow: hidden;
  margin: 0 0 12px;
}
.well--square { aspect-ratio: 1 / 1; }
.well--figure { aspect-ratio: 3 / 4; }
.well img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; padding: 8%;
}

.well.is-missing {
  background-image: repeating-linear-gradient(
    135deg, rgba(227,174,73,.05) 0 10px, transparent 10px 20px);
}
.well.is-missing img { display: none; }
.well__slot {
  padding: 18px; text-align: center;
  font-family: var(--type); font-size: 13px; color: var(--bone-dim);
  line-height: 1.5; word-break: break-word;
}
.well__slot b {
  display: block; color: var(--gold); font-weight: normal;
  letter-spacing: .05em; margin-top: 6px;
}

/* ---------- subpage: line hero ------------------------------------------- */

.line-hero { text-align: center; padding: 50px 0 20px; position: relative; overflow: hidden; }
.line-hero::before {
  content: ""; position: absolute; inset: 0 0 auto 50%;
  width: 900px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(142,15,20,.42) 0%, transparent 62%);
  pointer-events: none;
}
.line-hero > * { position: relative; }
.line-hero__logo { width: min(420px, 80vw); margin: 0 auto 18px; }
.line-hero__logo .well {
  aspect-ratio: auto; min-height: 200px; margin-bottom: 0;
}
.line-hero__logo .well img {
  position: static;
  width: auto; max-width: 100%;
  height: auto; max-height: 66vh;
  margin: 0 auto; padding: 5%;
}
.line-hero__logo .well.is-missing { aspect-ratio: 1 / 1; }
.line-hero__style {
  font-family: var(--display); font-size: clamp(46px, 9vw, 82px);
  line-height: .92; letter-spacing: .03em; color: var(--gold-pale); margin: 6px 0 4px;
}
.line-hero__gym {
  font-family: var(--body); font-weight: 400; font-size: clamp(15px, 2.4vw, 19px);
  text-transform: uppercase; letter-spacing: .3em; color: var(--gold); margin: 0;
}
.line-hero__slogan {
  font-family: var(--type); font-size: 19px; letter-spacing: .08em;
  color: var(--bone); margin: 20px auto 0; width: fit-content;
  padding: 8px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.line-hero__logo-alt { margin-top: 16px; }
.line-hero__logo-alt .well { width: 132px; margin: 0 auto 6px; aspect-ratio: 1/1; }
.line-hero__logo-alt figcaption {
  font-family: var(--type); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--bone-dim);
}

.backlink {
  font-family: var(--type); font-size: 13px; letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- subpage: cast ------------------------------------------------- */

.grid-cast {
  display: grid; gap: 34px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.cast-card {
  background: var(--ink-raised);
  border: 1px solid var(--rule);
  padding: 16px 16px 20px;
}
.cast-card__name {
  font-family: var(--display); font-size: 40px; line-height: 1;
  letter-spacing: .04em; color: var(--gold-pale); margin: 4px 0 0;
}
.cast-card__backstory {
  font-family: var(--type); font-size: 16px; line-height: 1.75;
  color: var(--bone-dim); margin: 12px 0 0;
}
.cast-card__views { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cast-card__views figure { margin: 0; }
.cast-card__views figcaption {
  font-family: var(--type); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--bone-dim); text-align: center; margin-top: -6px;
}

/* ---------- shirts / sizes ------------------------------------------------ */

.grid-shirts {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: start;
}
.shirt { background: var(--ink-raised); border: 1px solid var(--rule); padding: 0 0 20px; }
.shirt__photo { background: #EDE9E3; border-bottom: 1px solid var(--rule); }
.shirt__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.shirt__body { padding: 16px 18px 0; }
.shirt__no {
  font-family: var(--body); font-weight: 500; font-size: 19px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blood-bright);
  margin: 0;
}
.shirt__name {
  font-family: var(--display); font-size: 31px; line-height: 1.05;
  letter-spacing: .04em; color: var(--gold-pale); margin: 6px 0 8px;
}
.shirt__sizes { font-size: 16px; color: var(--bone); margin: 0; }
.shirt__sizes span { color: var(--gold); font-weight: 500; }
.shirt__fit {
  font-family: var(--body); font-weight: 300; font-size: 16px; color: var(--bone-dim);
  margin: 10px 0 0; line-height: 1.55;
}

.price-tag {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  border: 1px solid var(--gold); background: rgba(142,15,20,.18);
  padding: 16px 22px; margin-top: 30px;
}
.price-tag b {
  font-family: var(--display); font-weight: 400; font-size: 54px;
  line-height: 1; color: var(--gold-pale);
}
.price-tag span { font-size: 17px; }

/* ---------- order + payment ---------------------------------------------- */

.grid-two {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.panel {
  background: var(--ink-raised); border: 1px solid var(--rule);
  padding: 26px 28px;
}
.panel h3 {
  font-family: var(--display); font-size: 30px; letter-spacing: .05em;
  color: var(--gold-pale); margin: 0 0 14px;
}
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel li {
  padding: 9px 0 9px 24px; position: relative;
  border-bottom: 1px dotted rgba(58,42,28,.8);
}
.panel li:last-child { border-bottom: 0; }
.panel li::before {
  content: "\2716"; position: absolute; left: 0; top: 9px;
  color: var(--blood-bright); font-size: 12px;
}
.panel__lead { margin: 0 0 14px; }
.mailto {
  display: inline-block; font-family: var(--body); font-weight: 500;
  letter-spacing: .05em; border-bottom: 1px solid var(--gold);
}

/* ---------- footer -------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--rule);
  padding: 34px 0 46px; text-align: center;
}
.footer p {
  font-family: var(--type); font-size: 14px; letter-spacing: .04em;
  color: var(--bone-dim); margin: 6px 0;
}

/* ---------- state messages ------------------------------------------------ */

.notice {
  border: 1px solid var(--blood-bright); background: rgba(142,15,20,.18);
  padding: 22px 26px; margin: 40px auto; max-width: 720px;
}
.notice h2 { font-family: var(--display); font-size: 28px; color: var(--gold-pale); margin: 0 0 8px; }
.notice p { margin: 0 0 8px; }
.notice code {
  font-family: var(--type); color: var(--gold); background: rgba(0,0,0,.4);
  padding: 1px 6px;
}

/* ---------- responsive ---------------------------------------------------- */

@media (max-width: 720px) {
  body { font-size: 17px; }
  .masthead__inner { min-height: 58px; }
  .masthead__nav { gap: 2px 16px; }
  .masthead__nav a { font-size: 13px; letter-spacing: .1em; }
  .masthead__wordmark { display: none; }
  .hero { padding: 40px 0 40px; }
  .preamble { padding: 24px 20px; }
  .ribbon { padding-inline: 30px; }
  .band { padding: 44px 0; }
  .grid-lines { grid-template-columns: 1fr; gap: 22px; }
  .line-card__style { font-size: 38px; }
  .line-card__names { font-size: 24px; }
  .line-hero__gym { letter-spacing: .16em; }
  .cast-card__views { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
