/* RetroBrands U.S.A. — private preview concept
   Type: Besley (Clarendon revival, display) + Public Sans (support)
   Palette: warm paper / warm ink / signal red sampled from their brand tiles (#E6302F) */

@font-face { font-family: 'Besley'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/Besley-500.woff2') format('woff2'); }
@font-face { font-family: 'Besley'; font-style: italic; font-weight: 500; font-display: swap; src: url('assets/fonts/Besley-500i.woff2') format('woff2'); }
@font-face { font-family: 'Besley'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/Besley-600.woff2') format('woff2'); }
@font-face { font-family: 'Besley'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/Besley-700.woff2') format('woff2'); }
@font-face { font-family: 'Besley'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/Besley-800.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/PublicSans-400.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/PublicSans-500.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/PublicSans-600.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/PublicSans-700.woff2') format('woff2'); }

:root {
  /* color */
  --paper: oklch(0.965 0.011 85);
  --paper-raised: oklch(0.985 0.008 90);
  --ink: oklch(0.26 0.022 55);
  --ink-soft: oklch(0.42 0.02 55);
  --ink-faint: oklch(0.49 0.018 58);
  --hairline: oklch(0.84 0.018 75);
  --red: oklch(0.55 0.195 28);        /* tile band red, #E6302F territory */
  --red-text: oklch(0.49 0.185 28);   /* darkened for small-text contrast */
  --red-deep: oklch(0.42 0.16 28);
  --ink-band: oklch(0.23 0.02 50);

  /* space (4pt scale) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-6: 24px; --sp-8: 32px; --sp-12: 48px; --sp-16: 64px; --sp-24: 96px;

  /* type */
  --font-display: 'Besley', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.shell { max-width: 1180px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: var(--sp-2) var(--sp-4); z-index: 10;
}
.skip:focus { left: 0; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red); outline-offset: 3px;
}

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

.masthead { border-top: 3px solid var(--red); }

.masthead-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-6); padding-block: var(--sp-4);
}

.masthead-logo img { width: clamp(170px, 22vw, 230px); height: auto; }

.masthead-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); }
.masthead-nav a {
  font: 600 0.8125rem/1 var(--font-body);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
}
.masthead-nav a:hover { color: var(--red-text); }
.masthead-nav .nav-cta {
  color: var(--paper); background: var(--ink);
  padding: 10px 18px;
}
.masthead-nav .nav-cta:hover { background: var(--red-deep); color: var(--paper); }

.rule-double {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  height: 4px;
}

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

.hero { padding-block: clamp(36px, 4.5vw, 60px) clamp(48px, 7vw, 96px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.eyebrow {
  font: 700 0.78rem/1.3 var(--font-body);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red-text);
  margin-bottom: var(--sp-4);
}

.hero h1 {
  font: 800 clamp(2.55rem, 4.6vw + 0.6rem, 4.35rem)/1.04 var(--font-display);
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-6);
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.0625rem, 1.1vw + 0.8rem, 1.1875rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: var(--sp-8);
}

.cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-8); }

.btn {
  display: inline-block;
  font: 600 0.9375rem/1 var(--font-body);
  text-decoration: none;
  padding: 15px 26px;
  transition: background-color 0.18s ease-out, color 0.18s ease-out;
}
.btn-primary { background: var(--red); color: oklch(0.985 0.008 90); }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost {
  color: var(--ink); border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--red); color: oklch(0.985 0.008 90); }

/* proof strip — horizontal label/value cells, rule-separated */

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.proof-cell {
  display: flex; flex-direction: column-reverse; justify-content: flex-end;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-4) var(--sp-2) 0;
}
.proof-cell + .proof-cell { border-left: 1px solid var(--hairline); padding-left: var(--sp-4); }
.proof-cell dt {
  font: 600 0.6875rem/1.35 var(--font-body);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint);
}
.proof-cell dd {
  font: 700 clamp(1.55rem, 2vw, 2.1rem)/1.05 var(--font-display);
  color: var(--ink);
}
.proof-note {
  margin-top: var(--sp-3);
  font-size: 0.75rem; color: var(--ink-faint);
}

/* specimen sheet */

.specimen {
  background: var(--paper-raised);
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 oklch(0.26 0.022 55 / 0.12);
}
.specimen-head {
  display: flex; justify-content: space-between;
  font: 700 0.71rem/1 var(--font-body);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: var(--sp-3) var(--sp-4);
}
.specimen-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  padding: var(--sp-4);
}
.specimen-grid img { border: 1px solid var(--hairline); width: 100%; }
.specimen-foot {
  font-size: 0.72rem; color: var(--ink-faint);
  padding: 0 var(--sp-4) var(--sp-4);
}

/* ---------- model ---------- */

.model { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--hairline); }

.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.section-head h2 {
  font: 700 clamp(1.8rem, 2.6vw + 0.5rem, 2.8rem)/1.12 var(--font-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-head h2 em { font-style: italic; font-weight: 500; }
.section-sub { margin-top: var(--sp-3); font-size: 0.8125rem; color: var(--ink-faint); }

.model-rows { list-style: none; max-width: 880px; }
.model-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(24px, 3vw, 36px);
}
.model-row + .model-row { border-top: 1px solid var(--hairline); }
.model-num {
  font: 500 italic clamp(2rem, 3vw, 2.8rem)/1 var(--font-display);
  color: var(--red);
}
.model-body h3 {
  font: 700 clamp(1.2rem, 1.4vw + 0.6rem, 1.5rem)/1.2 var(--font-display);
  margin-bottom: var(--sp-3);
}
.model-body p { color: var(--ink-soft); max-width: 62ch; }

/* ---------- portfolio ---------- */

.portfolio { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--hairline); }

.tile-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.tile-grid li { display: flex; flex-direction: column; gap: var(--sp-2); }
.tile-grid img {
  width: 100%; border: 1px solid var(--hairline);
  background: white;
}
.tile-grid li > span {
  font: 600 0.78rem/1.3 var(--font-body);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.tile-grid sup { font-size: 0.6em; }

.tile-more a {
  display: flex; flex-direction: column; justify-content: center; gap: var(--sp-2);
  height: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  text-decoration: none;
  padding: var(--sp-4);
  color: var(--ink);
  transition: background-color 0.18s ease-out, color 0.18s ease-out;
}
.tile-more a:hover { background: var(--ink); color: var(--paper); }
.tile-more strong { font: 700 clamp(2rem, 3vw, 2.8rem)/1 var(--font-display); }
.tile-more span { font: 600 0.78rem/1.35 var(--font-body); letter-spacing: 0.04em; }

/* ---------- registry index ---------- */

.registry { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--hairline); }

.index-cols {
  columns: 4; column-gap: clamp(24px, 3vw, 48px);
  list-style: none;
  counter-reset: reg;
  border-top: 1px solid var(--ink);
  padding-top: var(--sp-6);
}
.index-cols li {
  counter-increment: reg;
  font: 500 0.9375rem/1.5 var(--font-body);
  padding-block: var(--sp-2);
  break-inside: avoid;
  border-bottom: 1px solid var(--hairline);
}
.index-cols li::before {
  content: counter(reg, decimal-leading-zero);
  font: 700 0.71rem/1 var(--font-body);
  color: var(--red-text);
  margin-right: var(--sp-3);
  letter-spacing: 0.05em;
}

/* ---------- positioning ---------- */

.positioning { background: var(--ink-band); color: oklch(0.94 0.012 85); }

.positioning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  padding-block: clamp(56px, 8vw, 112px);
  align-items: center;
}

.positioning-quote p {
  font: 500 italic clamp(1.35rem, 2vw, 1.9rem)/1.35 var(--font-display);
  margin-bottom: var(--sp-4);
  text-wrap: balance;
}
.positioning-quote cite {
  font: 600 0.78rem/1 var(--font-body);
  letter-spacing: 0.1em; text-transform: uppercase;
  font-style: normal;
  color: oklch(0.72 0.02 75);
}

.positioning-cta h2 {
  font: 700 clamp(1.7rem, 2.4vw, 2.4rem)/1.15 var(--font-display);
  margin-bottom: var(--sp-4);
}
.positioning-cta > p {
  color: oklch(0.82 0.015 80);
  max-width: 52ch;
  margin-bottom: var(--sp-6);
}
.positioning-sig {
  margin-top: var(--sp-4);
  font-size: 0.8125rem;
  color: oklch(0.72 0.02 75);
}

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

.footer {
  background: var(--ink-band);
  border-top: 1px solid oklch(0.36 0.02 50);
  padding-block: var(--sp-6);
}
.footer p {
  font-size: 0.75rem; line-height: 1.6;
  color: oklch(0.68 0.018 75);
  max-width: 88ch;
}

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

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .specimen { max-width: 560px; }
  .index-cols { columns: 3; }
  .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .positioning-grid { grid-template-columns: 1fr; gap: var(--sp-12); }
}

@media (max-width: 640px) {
  .masthead-nav a:not(.nav-cta) { display: none; }
  .hero { padding-block: var(--sp-8) var(--sp-12); }
  .hero h1 { margin-bottom: var(--sp-4); }
  .lede { margin-bottom: var(--sp-6); }
  .cta-row { margin-bottom: var(--sp-8); gap: var(--sp-2); }
  .btn { padding: 13px 18px; font-size: 0.875rem; }

  /* proof strip stays horizontal — compact 3-up cells */
  .proof-cell { padding-top: var(--sp-3); gap: var(--sp-1); }
  .proof-cell dt { font-size: 0.59rem; letter-spacing: 0.06em; }
  .proof-cell dd { font-size: 1.32rem; }
  .proof-cell + .proof-cell { padding-left: var(--sp-3); }

  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-cols { columns: 2; }
  .model-row { grid-template-columns: 56px minmax(0, 1fr); }
}
