/* PWR Racing — Kit Manufacturer Resources
   Mobile-first. Desktop (>=1060px) reproduces the Claude Design artboard values exactly. */

:root {
  --hot-pink:      #FF0099;
  --pink-text:     #D60081;  /* darker pink, for text on white (contrast) */
  --soft-pink:     #FF97D5;
  --navy:          #263855;
  --electric-blue: #1800DD;
  --rule:          #D9D9D9;
  --grey-text:     #5A5A5A;
  --panel:         #F4F4F4;
  --white:         #FFFFFF;

  --display: "Anton", "Arial Narrow", sans-serif;
  --body:    "Poppins", "Nexa", system-ui, -apple-system, sans-serif;

  --gutter: 20px;
  --section-gap: 40px;
  --nav-h: 52px;
}
@media (min-width: 600px) {
  :root { --gutter: 32px; --section-gap: 64px; }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: var(--pink-text); text-decoration: none; }
a:hover { color: var(--navy); }

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

img { max-width: 100%; }
figure { margin: 0; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: var(--white);
  padding: 12px 18px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.skip:focus { left: 0; color: var(--white); }

/* ---------- layout ---------- */
.edge { height: 8px; width: 100%; background: var(--hot-pink); }

.wrap { max-width: 1060px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.section { padding-top: var(--section-gap); }
.section[id], #proofs { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ---------- typography ---------- */
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.eyebrow .tick { width: 6px; height: 18px; background: var(--hot-pink); flex: none; }
.eyebrow span {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--pink-text);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 9vw, 64px);
  line-height: 0.94; letter-spacing: -0.028em;
  text-transform: uppercase; color: var(--navy); text-wrap: balance;
}
h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1.05; text-transform: uppercase; color: var(--navy);
}
h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(19px, 5vw, 24px);
  line-height: 1.1; text-transform: uppercase; color: var(--navy);
}

.hairline { height: 1px; width: 100%; background: var(--rule); margin: 14px 0 10px; }

.lede   { margin: 0; font-size: 17px; line-height: 1.6; color: var(--grey-text); max-width: 54ch; }
.intro  { margin: 0 0 32px; font-size: 15px; line-height: 1.6; color: var(--grey-text); max-width: 62ch; }
.intro--tight { margin-bottom: 14px; }
.note   { margin: 0 0 22px; font-size: 14px; line-height: 1.6; color: var(--grey-text); max-width: 60ch; }

/* numbered sub-heading: pink square + h3 */
.numbered { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 6px; }
.numbered--spaced { margin-top: 56px; }
.numbered .num {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; background: var(--hot-pink); flex: none;
}
.numbered .num span { font-family: var(--display); font-size: 16px; color: var(--white); line-height: 1; }

/* ---------- header ---------- */
.masthead { padding-top: 32px; }
@media (min-width: 600px) { .masthead { padding-top: 56px; } }

.masthead__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.masthead__text { display: flex; flex-direction: column; gap: 28px; max-width: 620px; }
.masthead__logo { width: 96px; height: auto; flex: none; order: -1; margin-bottom: 24px; }
@media (min-width: 600px) {
  .masthead__logo { width: 132px; order: 0; margin-bottom: 0; }
}

/* ---------- sticky nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  margin-top: var(--section-gap);
}
.nav__scroll {
  display: flex; gap: 22px;
  max-width: 1060px; margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-h); align-items: center;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.nav__scroll::-webkit-scrollbar { display: none; }
@media (max-width: 599px) {
  /* fade the right edge to signal there is more to scroll */
  .nav__scroll {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 88%, transparent 100%);
          mask-image: linear-gradient(to right, #000 0, #000 88%, transparent 100%);
  }
}
.nav__scroll a {
  flex: none; scroll-snap-align: start;
  display: flex; align-items: center;
  height: 100%; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pink-text);
  border-bottom: 3px solid transparent;
}
.nav__scroll a:hover { color: var(--navy); }
.nav__scroll a[aria-current="true"] { color: var(--navy); border-bottom-color: var(--hot-pink); }

/* ---------- grids ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .grid { gap: 24px; } }

.grid--photos   { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.grid--cards    { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--fonts    { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--logos    { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (min-width: 600px) { .grid--cards { gap: 20px; } .grid--fonts { gap: 28px; } }

/* swatches go two-up on phones; a flat color block needs no width */
.grid--swatch { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
@media (min-width: 600px) { .grid--swatch { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }

/* ---------- reference photos ---------- */
.shot img {
  /* natural proportions -- never crop a placement reference.
     Each grid is internally consistent: skinsuits are 4:5, men's suits 3:4. */
  width: 100%; height: auto;
  display: block; background: var(--panel);
}
.shot figcaption { font-size: 13px; line-height: 1.5; color: var(--grey-text); margin-top: 12px; }
.shot__orig {
  display: inline-block; margin-top: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--pink-text);
}
.count { font-size: 13px; color: var(--grey-text); margin: 0 0 16px; }

/* ---------- artwork pack banner ---------- */
.pack {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px;
  align-items: center; padding: 20px; background: var(--panel); margin-bottom: 28px;
}
@media (min-width: 600px) {
  .pack { grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 22px 24px; }
}
.pack__title { font-family: var(--display); font-size: 22px; text-transform: uppercase; color: var(--navy); line-height: 1.1; }
.pack__sub { font-size: 13px; color: var(--grey-text); margin-top: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hot-pink); color: var(--white);
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 24px; text-align: center;
  transition: background 120ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.btn:hover { background: var(--navy); color: var(--white); }

.btnrow { display: flex; gap: 8px; margin-top: 14px; }
.btn-sm {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  text-align: center;
  transition: background 120ms cubic-bezier(0.2, 0.7, 0.2, 1), color 120ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.btn-sm--solid  { background: var(--hot-pink); color: var(--white); padding: 10px 0; }
.btn-sm--solid:hover { background: var(--navy); color: var(--white); }
.btn-sm--ghost  { border: 2px solid var(--navy); color: var(--navy); padding: 8px 0; }
.btn-sm--ghost:hover { background: var(--navy); color: var(--white); }

/* touch devices: meet the 44px minimum target */
@media (pointer: coarse) {
  .btn-sm { min-height: 44px; }
  .btn { min-height: 48px; }
  .nav__scroll a { min-height: 44px; }
}

/* ---------- artwork / logo cards ---------- */
.card { border: 1px solid var(--rule); display: flex; flex-direction: column; }
.card__preview {
  height: 190px; display: flex; align-items: center; justify-content: center;
  background: var(--navy); padding: 20px;
}
.card__preview img { width: 100%; height: 100%; object-fit: contain; }
.card__body { border-top: 1px solid var(--rule); padding: 16px 18px; }
.card__name { font-family: var(--display); font-size: 16px; text-transform: uppercase; color: var(--navy); line-height: 1.15; }
.card__meta { font-size: 12px; color: var(--grey-text); margin-top: 6px; line-height: 1.45; }
.card__form { font-size: 12px; color: var(--navy); margin-top: 6px; line-height: 1.45; font-weight: 600; }

.card--logo .card__preview { height: 180px; padding: 28px; }
.card--logo .card__preview img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.card--logo .card__preview--light { background: var(--white); }
.card--logo .card__body {
  padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card--logo .card__body p { margin: 0; font-size: 13px; color: var(--grey-text); min-width: 0; }
.card--logo .card__body .dl {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--pink-text); flex: none;
}
.card--logo .card__body--stack { display: block; }

/* ---------- fonts ---------- */
.typecard { border: 1px solid var(--rule); padding: 24px; }
@media (min-width: 600px) { .typecard { padding: 32px; } }
.typecard--panel { background: var(--panel); }
.typecard__aa {
  font-family: var(--display); font-size: clamp(56px, 14vw, 76px); line-height: 0.9;
  color: var(--navy); text-transform: uppercase; letter-spacing: -0.02em;
}
.typecard__name { font-family: var(--display); font-size: 26px; text-transform: uppercase; color: var(--navy); margin-top: 24px; }
.typecard p { margin: 10px 0 0; font-size: 14px; line-height: 1.65; color: var(--grey-text); }
.inline-link {
  display: inline-block; margin-top: 18px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--pink-text); border-bottom: 2px solid var(--hot-pink); padding-bottom: 2px;
}
.link-underline { border-bottom: 2px solid var(--hot-pink); padding-bottom: 1px; }

/* ---------- color swatches ---------- */
.swatch__chip { height: 104px; }
@media (min-width: 600px) { .swatch__chip { height: 140px; } }
.swatch__chip--outline { border: 1px solid var(--rule); }
.swatch__name { font-family: var(--display); font-size: 20px; text-transform: uppercase; color: var(--navy); margin-top: 14px; }
.swatch__spec { font-size: 13px; line-height: 1.7; color: var(--grey-text); margin-top: 6px; letter-spacing: 0.02em; }

/* ---------- footer ---------- */
.foot { background: var(--navy); margin-top: 80px; }
.foot__inner { max-width: 1060px; margin: 0 auto; padding: 48px var(--gutter); }
@media (min-width: 600px) { .foot__inner { padding: 64px var(--gutter); } }
.foot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
@media (min-width: 600px) { .foot__grid { gap: 48px; } }
.foot .eyebrow span { color: var(--soft-pink); }
.foot .eyebrow { margin-bottom: 20px; }
.foot h2 { margin: 0 0 20px; font-size: clamp(28px, 7vw, 40px); line-height: 1; color: var(--white); }
.foot p { margin: 0 0 8px; font-size: 15px; line-height: 1.7; color: var(--white); max-width: 46ch; }
.foot p.alt { margin: 16px 0 0; color: var(--soft-pink); }
.foot a { color: var(--soft-pink); border-bottom: 1px solid var(--soft-pink); }
.foot a:hover { color: var(--white); border-bottom-color: var(--white); }

.checklist__title { font-family: var(--display); font-size: 20px; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--white); }
.checklist li::before { content: ""; width: 6px; height: 16px; background: var(--hot-pink); flex: none; margin-top: 4px; }

.foot__rule { height: 1px; width: 100%; background: rgba(255, 255, 255, 0.2); margin: 40px 0 24px; }
@media (min-width: 600px) { .foot__rule { margin: 56px 0 24px; } }
.foot__meta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot__meta div { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--white); }
.foot__meta div + div { color: var(--soft-pink); }

/* ---------- small layout helpers ---------- */
.h3--spaced { margin-top: 40px; margin-bottom: 8px; }
@media (min-width: 600px) { .h3--spaced { margin-top: 56px; } }
.typecard__name--first { margin-top: 0; }
.swatch__chip--hotpink  { background: var(--hot-pink); }
.swatch__chip--navy     { background: var(--navy); }
.swatch__chip--softpink { background: var(--soft-pink); }
.swatch__chip--blue     { background: var(--electric-blue); }
.swatch__chip--black    { background: #000000; }
.swatch__chip--white    { background: var(--white); }

/* ---------- mobile refinements ---------- */

/* Substantive copy (placement notes, artwork form, pack detail) must not sit at 12px
   on a phone. Desktop keeps the artboard's 12px. */
@media (max-width: 599px) {
  .card__meta, .card__form, .pack__sub, .card--logo .card__body p { font-size: 13px; }
  /* two-up swatches even on a 320px screen */
  .grid--swatch { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}

/* The "download original" and logo "Download" links are small inline targets.
   Give them a real 44px tap area on touch devices without changing desktop metrics. */
.shot__orig, .card--logo .card__body .dl { display: inline-flex; align-items: center; }
@media (pointer: coarse) {
  .shot__orig { min-height: 44px; padding-right: 8px; }
  .card--logo .card__body .dl { min-height: 44px; padding-left: 8px; }
  .inline-link { min-height: 44px; }
}

/* second garment heading inside the Reference section */
.h2--spaced { margin-top: 48px; }
@media (min-width: 600px) { .h2--spaced { margin-top: 72px; } }

/* Jersey mocks are flat renders at four different crops, so a natural-proportion
   row comes out ragged. Fit them into one box with `contain` — every pixel stays
   visible (no crop), and the white mock ground makes the padding invisible. */
.grid--mocks .shot img { aspect-ratio: 3 / 4; object-fit: contain; background: var(--white); }
