/* ============================================================
   Tatorship — rebuilt on the original site's system:
   full-bleed bands of the potato-icon pattern, each in one of
   six brand colours, Roboto Slab throughout, Roboto Condensed
   for the oversized step numerals.
   ============================================================ */

:root {
  --tat-yellow: #ffdb5c;   /* hero                */
  --tat-dark:   #2b2b2b;   /* it's easy to start  */
  --tat-orange: #e14805;   /* learn to be a Dic   */
  --tat-light:  #f2f2f2;   /* how does it play    */
  --tat-amber:  #ffb400;   /* heroes              */
  --tat-coral:  #e75758;   /* organizations       */

  --tat-ink:   #1c1712;
  --tat-cream: #f7f2e6;
  --tat-body:  #3a322a;
  --tat-deep:  #a01f19;
}

body { background: var(--tat-light); color: var(--tat-ink); font-family: var(--slab); }
a { color: var(--tat-deep); }

.backbar { background: var(--tat-dark); color: var(--tat-cream); }
.backbar__links { align-items: center; }
.backbar__links a { color: #c9c2b4; }

/* ── The band system ────────────────────────────────────────────
   Every section is a tinted, seamlessly tiled sheet of the game's
   own icon pattern. `--tile` picks the colourway. */

.band {
  position: relative;
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  background-color: var(--field);
  background-image: image-set(url('assets/pat_light-600.webp') type('image/webp') 1x);
  background-repeat: repeat;
  /* deliberately far larger than the source site: at a small repeat the
     icon set reads as noise rather than texture */
  background-size: 1500px;
}
.band > * { position: relative; z-index: 1; }

.band--yellow { --field: var(--tat-yellow); background-image: url('assets/pat_yellow-600.webp'); }
.band--dark   { --field: var(--tat-dark);   background-image: url('assets/pat_dark-600.webp');   color: var(--tat-cream); }
.band--orange { --field: var(--tat-orange); background-image: url('assets/pat_orange-600.webp'); color: var(--tat-cream); }
.band--light  { --field: var(--tat-light);  background-image: url('assets/pat_light-600.webp'); }
.band--amber  { --field: var(--tat-amber);  background-image: url('assets/pat_amber-600.webp');  }
.band--coral  { --field: var(--tat-coral);  background-image: url('assets/pat_coral-600.webp');  color: var(--tat-cream); }

@supports (background-image: image-set(url('x.avif') type('image/avif') 1x)) {
  .band--yellow { background-image: url('assets/pat_yellow-600.avif'); }
  .band--dark   { background-image: url('assets/pat_dark-600.avif');   }
  .band--orange { background-image: url('assets/pat_orange-600.avif'); }
  .band--light  { background-image: url('assets/pat_light-600.avif');  }
  .band--amber  { background-image: url('assets/pat_amber-600.avif');  }
  .band--coral  { background-image: url('assets/pat_coral-600.avif');  }
}

@media (max-width: 700px) { .band { background-size: 1000px; } }

.t-inner { max-width: var(--wide); margin: 0 auto; }

/* ── Type ───────────────────────────────────────────────────── */

.t-eyebrow { margin: 0; font: 700 12px/1 var(--slab); letter-spacing: .32em; color: var(--tat-deep); }
.band--dark .t-eyebrow, .band--orange .t-eyebrow, .band--coral .t-eyebrow { color: var(--tat-yellow); }
.band--amber .t-eyebrow { color: var(--tat-ink); }

.t-h2 { margin: 16px 0 0; font: 700 clamp(30px, 5.2vw, 52px)/1.08 var(--slab); color: inherit; }
.t-lead { margin: 22px 0 0; font: 400 clamp(15px, 2vw, 18px)/1.7 var(--slab); max-width: 54ch; text-wrap: pretty; }
.band--light .t-lead, .band--yellow .t-lead, .band--amber .t-lead { color: var(--tat-body); }

/* ── Hero: full-bleed trailer, then the logo ────────────────── */

.t-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.t-video .facade { height: 100%; }
.t-video .facade img { height: 100%; object-fit: contain; }
.t-video .facade__play span {
  background: rgba(225, 72, 5, .94);
  color: #fff;
  font: 900 14px/1 var(--slab);
  letter-spacing: .14em;
  padding: 18px 30px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .3);
}
.t-video .yt-embed { aspect-ratio: 16 / 9; }

.t-hero { padding-top: clamp(36px, 5vw, 64px); text-align: center; }
.t-hero__inner { max-width: 900px; margin: 0 auto; }

.t-h1 {
  margin: 14px 0 0;
  font: 700 clamp(44px, 8vw, 82px)/.95 var(--slab);
  max-width: 14ch;
  margin-inline: auto;
  text-transform: uppercase; letter-spacing: .01em;
  color: var(--tat-ink);
}
.t-hero .t-lead { margin-left: auto; margin-right: auto; }
.t-hero .t-actions { justify-content: center; }
.t-stamp {
  display: inline-block;
  margin: 22px 0 0;
  max-width: 100%;
  font: 700 clamp(17px, 2.6vw, 24px)/1.2 var(--slab);
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--tat-deep);
  border: 3px solid var(--tat-deep);
  padding: 10px 16px;
  transform: rotate(-3deg);
  animation: stampIn .5s ease .6s both;
}
.t-hero .hand__hint { color: #6a5c3a; }

/* ── Buttons ────────────────────────────────────────────────── */

.t-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: center; }
.t-btn {
  display: inline-flex; align-items: center;
  min-height: 50px; padding: 0 30px;
  background: var(--tat-deep); color: var(--tat-cream);
  font: 900 15px/1 var(--slab); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 5px 5px 0 rgba(28, 23, 18, .4);
}
.t-btn--ghost {
  background: none; color: currentColor;
  border: 2.5px solid currentColor; padding: 0 24px;
  font: 700 14px/1 var(--slab); letter-spacing: .05em;
  box-shadow: none;
}
.band--dark .t-btn, .band--orange .t-btn, .band--coral .t-btn { background: var(--tat-yellow); color: var(--tat-ink); box-shadow: 5px 5px 0 rgba(0, 0, 0, .3); }

/* ── Steps, with the site's oversized condensed numerals ────── */

.t-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: clamp(20px, 3vw, 34px); margin-top: 44px; }
/* Every card on the page flips to its own back. */
.card-flip { display: block; width: 100%; }
.card-flip .flip__inner { transform: rotate(var(--tilt, -2deg)); }
.card-flip[aria-pressed="true"] .flip__inner { transform: rotate(var(--tilt, -2deg)) rotateY(180deg); }
.card-flip img { border-radius: 10px; }
.card-flip .flip__front { filter: drop-shadow(-6px 8px 0 rgba(0, 0, 0, .22)); }

/* every step carries the card that does that job in the game */
.t-step__card { width: min(210px, 74%); margin: 0 0 18px; }
.t-steps > *:nth-child(2) .t-step__card { --tilt: 2deg; }
.t-steps > *:nth-child(3) .t-step__card { --tilt: -3deg; }

/* Meet the Tators — laid out with real air between them, not fanned. */
.tator-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(18px, 4vw, 46px);
  margin-top: 38px;
}
.tator-row .card-flip { width: min(200px, 40vw); }
.tator-row > *:nth-child(1) .flip__inner { --tilt: -5deg; }
.tator-row > *:nth-child(2) .flip__inner { --tilt: 1deg; }
.tator-row > *:nth-child(3) .flip__inner { --tilt: 5deg; }
.t-step__num {
  margin: 0;
  font: 700 clamp(56px, 9vw, 100px)/.85 var(--condensed);
  color: var(--tat-yellow);
  opacity: .9;
}
.band--light .t-step__num, .band--yellow .t-step__num, .band--amber .t-step__num { color: var(--tat-orange); }
.t-step__title { margin: 6px 0 8px; font: 900 17px/1.3 var(--slab); letter-spacing: .06em; text-transform: uppercase; }
.t-step__body { margin: 0; font: 400 14px/1.7 var(--slab); opacity: .92; }

/* ── Split rows ─────────────────────────────────────────────── */

.t-split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(30px, 5vw, 60px); }
.t-split--reverse { flex-wrap: wrap-reverse; }
.t-split__copy { flex: 1 1 340px; min-width: min(290px, 100%); }
.t-split__art  { flex: 1 1 300px; min-width: min(260px, 100%); }
.t-split__art--narrow { flex: 0 1 260px; }

.t-body { margin: 18px 0 0; font: 400 15px/1.75 var(--slab); max-width: 54ch; text-wrap: pretty; }
.t-body em { font-style: italic; }
.band--dark .t-body a, .band--orange .t-body a, .band--coral .t-body a { color: var(--tat-yellow); text-decoration: underline; }
.t-more { margin: 14px 0 0; font: 400 13px/1.7 var(--slab); opacity: .75; }
.t-more a { color: inherit; text-decoration: underline; }

.t-fig { margin: 0; }
.t-fig + .t-fig { margin-top: 24px; }
.t-fig--framed img { border: 3px solid var(--tat-cream); }
.t-fig figcaption { margin-top: 10px; font: 400 12px/1.5 var(--mono); opacity: .72; }

/* "Every card is sourced": the card sits on top of the photograph. */
.t-sourced { position: relative; margin: 0; padding-bottom: 64px; }
.t-sourced__photo img { border: 3px solid var(--tat-cream); }
.t-sourced__card {
  position: absolute;
  right: -7%;
  bottom: 0;
  /* 80% × 0.6 — a further 40% down */
  width: 48%;
  --tilt: -4deg;
}
.t-sourced figcaption { margin-top: 12px; font: 400 12px/1.5 var(--mono); opacity: .72; max-width: 30ch; }
/* Once the art column goes full-bleed the overhang would clip against the
   viewport edge, so tuck the card back in. */
@media (max-width: 900px) {
  .t-sourced__card { right: 0; }
}
@media (max-width: 520px) {
  .t-sourced { padding-bottom: 52px; }
  .t-sourced__card { width: 53%; right: 0; }
}

/* ── Resource tokens ────────────────────────────────────────── */

.t-tokens { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.t-token { font: 900 12px/1 var(--slab); letter-spacing: .1em; border: 2px solid var(--tat-ink); padding: 11px 15px; color: var(--tat-ink); }
.t-token--wealth { background: var(--tat-amber); }
.t-token--knowledge { background: #fff; }
.t-token--force { background: var(--tat-orange); color: var(--tat-cream); border-color: var(--tat-cream); }

/* ── Heroes ─────────────────────────────────────────────────── */

/* Every hero from the site's carousel, laid out at once. */
.t-heroes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(20px, 3vw, 32px); margin-top: 36px; }
.t-hero-card { display: flex; gap: 18px; align-items: flex-start; }
.t-hero-card picture { width: 104px; flex: none; }
.t-hero-card img { height: 104px; object-fit: cover; border: 4px solid var(--tat-ink); border-radius: 50%; }
.t-person { min-width: 0; }
.t-person h3 { margin: 0; font: 900 19px/1.25 var(--slab); }
.t-person p { margin: 8px 0 0; font: 400 14px/1.65 var(--slab); }
.t-person a { color: var(--tat-ink); text-decoration: underline; }
.t-person__quote { font-style: italic; font-weight: 700; }
.t-featured {
  display: inline-block; margin-top: 28px;
  font: 900 13px/1 var(--slab); letter-spacing: .08em; text-transform: uppercase;
  color: var(--tat-ink); border-bottom: 3px solid var(--tat-ink); padding: 8px 0 4px;
}

/* ── Organizations ──────────────────────────────────────────── */

.t-orgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 36px; }
.t-org { display: block; background: var(--tat-cream); border: 3px solid var(--tat-ink); padding: 24px 22px; color: var(--tat-ink); box-shadow: 6px 6px 0 rgba(0, 0, 0, .22); }
.t-org h3 { margin: 0; font: 900 15px/1.35 var(--slab); letter-spacing: .06em; }
.t-org p { margin: 10px 0 0; font: 400 14px/1.65 var(--slab); color: var(--tat-body); }

/* ── FAQ ────────────────────────────────────────────────────── */

/* min() so a 300px track can't outgrow a 320px phone once padding lands */
.t-faq { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.t-faq__item { border: 2px solid rgba(247, 242, 230, .3); padding: 24px; }
.t-faq__item h3 { margin: 0; font: 700 21px/1.25 var(--slab); }
.t-faq__item p { margin: 12px 0 0; font: 400 14px/1.75 var(--slab); opacity: .9; }

/* ── Trailer ────────────────────────────────────────────────── */

.t-trailer { max-width: 900px; margin: 30px auto 0; border: 4px solid var(--tat-ink); box-shadow: 10px 10px 0 rgba(0, 0, 0, .22); aspect-ratio: 16 / 9; }
.t-trailer .facade { height: 100%; }
.t-trailer .facade img { height: 100%; object-fit: cover; }
.t-trailer .facade__play span { background: rgba(225, 72, 5, .94); color: #fff; }

/* ── Closing CTA ────────────────────────────────────────────── */

.t-cta { text-align: center; }
.t-cta .t-lead { margin-left: auto; margin-right: auto; }
.t-cta__row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }
