/* ============================================================
   NNA1618 — merch.nna1618.com
   Mono-dark. No light theme. Source of truth: nna1618.com
   ============================================================ */

/* ---------- Fonts (local) ---------- */
@font-face {
  font-family: "Kharkiv Tone";
  src: url("../fonts/kar.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/DMMono-Medium.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --bg-page: #0B0B0B;
  --bg-surface: #000000;

  /* text */
  --fg: #FFFFFF;
  --fg-body: #C8C8C8;
  --fg-muted: #808080;
  --fg-ghost: #1D1D1D;

  /* lines */
  --border: #434343;
  --border-swatch: #676767;

  /* buttons / accents */
  --btn: rgba(139, 139, 139, 0.12);
  --btn-hover: rgba(139, 139, 139, 0.24);
  --glow-from: rgba(255, 255, 255, 0.15);
  --glow-to: rgba(255, 255, 255, 0);

  /* type */
  --font-display: "Kharkiv Tone", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", monospace;

  /* radii */
  --radius-block: 24px;
  --radius-pill: 111px;
  --radius-media: 0.5rem;

  /* spacing */
  --pad-edge: 32px;
  --header-h: 71px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--fs-body, 14px);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

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

/* ---------- Type helpers ---------- */
.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  letter-spacing: normal;
}
.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  line-height: 1.5;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  padding: 0 var(--pad-edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--bg-page) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 45px;
}
.brand-mark img { height: 45px; width: auto; }
.brand-mark .brand-sub {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 14px;
  color: var(--fg-muted);
  padding-top: 2px;
}

.header-tag {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 15px;
  color: var(--fg-muted);
}

/* ============================================================
   LAYOUT WRAP
   ============================================================ */
main { padding: 0 var(--pad-edge); }

.wrap { max-width: 1440px; margin: 0 auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(72px, 14vh, 168px) 0 clamp(64px, 10vh, 120px);
  border-bottom: 1px solid var(--border);
}
.hero__eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 14px;
  color: var(--fg-muted);
  margin: 0 0 28px;
}
.hero__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.98;
  margin: 0;
  font-size: clamp(38px, 11vw, 124px);
  max-width: 15ch;
  overflow-wrap: break-word;
}
.hero__manifest {
  margin: 40px 0 0;
  max-width: 62ch;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 14px;
  line-height: 26px;
  color: var(--fg-body);
}
.hero__dogma {
  display: block;
  margin-top: 26px;
  color: var(--fg);
}

/* ============================================================
   COLLECTIONS
   ============================================================ */
.collections { padding: clamp(48px, 8vh, 96px) 0; }

.collection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(32px, 5vw, 90px);
  align-items: start;
  padding: clamp(40px, 7vh, 90px) 0;
}
.collection + .collection { border-top: 1px solid var(--border); }

/* --- text column --- */
.collection__index {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 16px;
  color: var(--fg-muted);
  margin: 0 0 18px;
}
.collection__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  font-size: clamp(44px, 8vw, 70px);
}
.collection__manifest {
  margin: 28px 0 0;
  max-width: 46ch;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 14px;
  line-height: 26px;
  color: var(--fg-body);
}
.collection__manifest .dogma { color: var(--fg); display: block; margin-top: 18px; }

/* --- controls --- */
.controls {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.swatches {
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.swatch {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 13px;
  color: var(--fg-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  transition: background .3s ease, color .3s ease;
}
.swatch:hover { color: var(--fg); background: var(--btn); }
.swatch[aria-pressed="true"] {
  color: var(--fg);
  background: var(--btn-hover);
}

.status {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 13px;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg-muted);
}

/* --- pill CTA --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 14px;
  color: var(--fg);
  background: var(--btn);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 15px 30px;
  cursor: pointer;
  transition: background .3s ease, padding .3s ease;
}
.pill:hover { background: var(--btn-hover); padding-left: 36px; padding-right: 36px; }
.pill .arrow { transition: transform .3s ease; }
.pill:hover .arrow { transform: translateX(4px); }

.cta-row { margin-top: 28px; }

/* --- media column --- */
.media {
  position: relative;
  /* fixed portrait card, sized by height so it never dominates the row */
  height: min(64vh, 560px);
  width: calc(min(64vh, 560px) * 0.75);
  max-width: 100%;
  margin-inline: auto;
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}
.media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* white radial glow on hover */
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, var(--glow-from), var(--glow-to) 62%);
  opacity: 0;
  transition: opacity 1s ease;
}
.media:hover::after { opacity: 1; }

.media__hint {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 12px;
  color: var(--fg-muted);
  background: color-mix(in srgb, var(--bg-surface) 55%, transparent);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* even collection: media first */
.collection--reverse .collection__body { order: 2; }
.collection--reverse .media { order: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(48px, 8vh, 90px) var(--pad-edge) 48px;
}
.footer-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.footer__motto {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.05;
  font-size: clamp(20px, 3vw, 34px);
  margin: 0;
  max-width: 20ch;
}
.footer__meta {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 13px;
  color: var(--fg-muted);
  text-align: right;
}
.footer__meta a { color: var(--fg); }
.footer__meta a:hover { color: var(--fg-muted); }
.footer__phi { display: block; margin-top: 10px; color: var(--fg-muted); }
.footer__phi b { color: var(--fg); font-family: var(--font-display); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  :root { --pad-edge: 20px; }
  .collection {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* keep media below text on every row for reading rhythm */
  .collection--reverse .collection__body { order: 1; }
  .collection--reverse .media { order: 2; }
  /* width-driven on mobile so the card never exceeds the column */
  .media {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: 82vh;
  }
  .header-tag { display: none; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .footer__meta { text-align: left; }
}

@media (max-width: 480px) {
  .brand-mark .brand-sub { display: none; }
  .controls { gap: 18px; }
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .media::after { transition: none; }
}
