/* ---------- fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/archivo-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/bigshoulders-display-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Big Shoulders Stencil';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/bigshoulders-stencil-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plexmono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/plexmono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/plexmono-600.woff2') format('woff2');
}

/* ---------- tokens ---------- */
:root {
  --ink: #101012;
  --ink-raised: #1a1a1d;
  --paper: #edebe4;
  --blaze: #ff4b1f;
  --blaze-dim: #c93a16;
  --steel: #9a9a9f;
  --line: rgba(255, 255, 255, 0.14);
  --line-on-paper: rgba(16, 16, 18, 0.16);

  --font-stencil: 'Big Shoulders Stencil', sans-serif;
  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'Archivo', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- registration mark (signature motif) ---------- */
.reg-mark {
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
}
.reg-mark::before,
.reg-mark::after {
  content: '';
  position: absolute;
  background: var(--blaze);
}
.reg-mark::before {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}
.reg-mark::after {
  top: 50%;
  left: 0;
  height: 2px;
  width: 100%;
  transform: translateY(-50%);
}
.reg-mark--tl { top: 18px; left: 18px; }
.reg-mark--tr { top: 18px; right: 18px; }
.reg-mark--bl { bottom: 18px; left: 18px; }
.reg-mark--br { bottom: 18px; right: 18px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink-raised);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  letter-spacing: 0.01em;
  color: var(--paper);
}
.site-header__mark {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  position: relative;
  border: 2px solid var(--blaze);
  border-radius: 50%;
}
.site-header__mark::before,
.site-header__mark::after {
  content: '';
  position: absolute;
  background: var(--blaze);
}
.site-header__mark::before {
  left: 50%;
  top: -4px;
  width: 2px;
  height: calc(100% + 8px);
  transform: translateX(-50%);
}
.site-header__mark::after {
  top: 50%;
  left: -4px;
  height: 2px;
  width: calc(100% + 8px);
  transform: translateY(-50%);
}
.site-header__catalog-link {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--blaze);
  border: 1px solid var(--blaze);
  padding: 10px 16px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.site-header__catalog-link:hover {
  background: transparent;
  color: var(--blaze);
  transform: rotate(-1deg);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 24px 76px;
  background:
    repeating-radial-gradient(circle at 0 0, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 6px),
    var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 22px;
}
.eyebrow__swatch {
  width: 9px;
  height: 9px;
  background: var(--blaze);
  flex-shrink: 0;
}
.hero h1 {
  font-family: var(--font-stencil);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0 0 26px;
  text-wrap: balance;
}
.hero__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: #cfcdc5;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- catalog grid ---------- */
.catalog {
  padding: 64px 24px 96px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
}
@media (min-width: 760px) {
  .catalog-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
}
/* Stretched link: makes the whole tile clickable/tappable without wrapping
   everything in one <a> (which would smear the accessible name across the
   title + description). The title link and View Details stay real, separate
   links; this one is mouse/touch-only — tabindex=-1 + aria-hidden pull it out
   of Tab order and screen-reader output entirely. */
.card__stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card__title a,
.card__link {
  position: relative;
  z-index: 2;
}
.card__media {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 12px;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.card__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  outline: 1px solid var(--line-on-paper);
  outline-offset: 0;
}
.card__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blaze-dim);
  margin: 0 0 10px;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.15;
  margin: 0 0 12px;
}
.card__title a {
  color: inherit;
  text-decoration: none;
}
.card__desc {
  font-size: 0.96rem;
  line-height: 1.55;
  color: #38383a;
  margin: 0 0 20px;
  flex-grow: 1;
}
.card__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--blaze);
  padding-bottom: 3px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.card__link:hover {
  color: var(--blaze-dim);
}
.card__link::after {
  content: '\2192';
}

/* ---------- product page ---------- */
.product {
  padding: 56px 24px 96px;
}
.product__inner {
  max-width: 880px;
  margin: 0 auto;
}
.product__media {
  border: 1px solid var(--line);
  background: var(--ink-raised);
  margin-bottom: 36px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1.06;
  margin: 0 0 24px;
  text-wrap: balance;
}
.product__desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #d6d4cc;
  max-width: 640px;
  margin: 0 0 40px;
}

.cta-wrap {
  position: relative;
  display: inline-block;
  margin: 0 0 20px;
}
.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-stencil);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--blaze);
  padding: 18px 34px;
  border: none;
}
.cta-wrap .reg-mark { width: 20px; height: 20px; }
.cta-wrap .reg-mark--tl { top: -10px; left: -10px; }
.cta-wrap .reg-mark--tr { top: -10px; right: -10px; }
.cta-wrap .reg-mark--bl { bottom: -10px; left: -10px; }
.cta-wrap .reg-mark--br { bottom: -10px; right: -10px; }

.back-to-catalog {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--steel);
  text-decoration: none;
  margin-top: 8px;
}
.back-to-catalog:hover {
  color: var(--paper);
}
.back-to-catalog::before {
  content: '\2190 ';
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-raised);
  padding: 32px 24px 40px;
}
.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-footer__disclosure {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #6f6f74;
  max-width: 760px;
  margin: 0;
}

/* ---------- interactive states: misregistration hover + always-on active/focus ---------- */
/* .card::after is the ink layer that "misregisters" off the card on hover —
   same print-shop artifact as the reg-mark corners. Base state stays inert
   (opacity 0) on every device; only pointer-fine input gets the transition. */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--blaze);
  opacity: 0;
  transform: translate(0, 0);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .card {
    transition: transform 140ms ease-out;
  }
  .card::after {
    transition: opacity 140ms ease-out, transform 140ms ease-out;
  }
  .card:hover {
    transform: translate(-1px, -1px);
  }
  .card:hover::after {
    opacity: 1;
    transform: translate(4px, 4px);
  }

  .cta-button {
    transition: transform 140ms ease-out, background 140ms ease-out;
  }
  .cta-button:hover {
    background: var(--blaze-dim);
    transform: rotate(-1deg) scale(0.98);
  }
}

/* :active/:focus-* stay outside the pointer-fine block on purpose — touch
   and keyboard need this feedback exactly where mouse hover is absent. */
.card:active {
  transform: translate(1px, 1px);
}
.card:focus-within::after {
  opacity: 1;
  transform: translate(4px, 4px);
}

.cta-button:active {
  background: var(--blaze-dim);
  transform: rotate(-1deg) scale(0.94);
}
.cta-button:focus-visible {
  /* base :focus-visible rule is blaze-on-blaze here (button bg == outline
     color) and would be invisible; paper reads clearly against both. */
  outline: 3px solid var(--paper);
  outline-offset: 3px;
}
