/* ---------- Tokens (match these to Figma variables later) ---------- */
@font-face {
  font-family: 'Mona Sans';
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url('../assets/fonts/mona-sans-wdth.woff2') format('woff2');
}

:root {
  /* January — lavender */
  --lavender: #959eed;
  --orange: #ff4e02;
  --maroon: #76202b;
  --ink: #18181b;
  --muted: #71717a;
  --paper: #ffffff;
  --line: #e4e4e7;

  --radius-card: 24px;
  --gap: 20px;
  --cols: 4;
  --pad: clamp(16px, 3.5vw, 50px);
  --max: 1440px;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 'Mona Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background: var(--lavender);
  padding: clamp(20px, 4.8vw, 69px) var(--pad) clamp(24px, 4vw, 56px);
  overflow: hidden;
}
.hero__bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.hero__nav { display: flex; gap: clamp(14px, 2vw, 28px); padding-top: .4em; }
.hero__nav a {
  color: var(--maroon);
  font-weight: 600;
  font-size: clamp(14px, 1.3vw, 18px);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.hero__nav a:hover { border-color: currentColor; }
.hero__role {
  margin: 0;
  color: var(--maroon);
  font-weight: 800;
  font-stretch: 110%;
  text-transform: uppercase;
  font-size: clamp(22px, 4.6vw, 66px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero__type {
  position: relative;
  width: 100%;
  margin-top: clamp(8px, 1.4vw, 20px);
  aspect-ratio: 1340 / 337;
  color: var(--orange);
  touch-action: pan-y;
  cursor: crosshair;
}

/* ---------- Tabs (Pinterest-style) ---------- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 28px var(--pad) 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: #eef0fc;            /* lavender tint */
  font: inherit;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 600;
  color: var(--maroon);
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.tab:hover { background: var(--lavender); }
.tab[aria-pressed="true"] { background: var(--orange); color: #fff; }
.tab:active { transform: scale(.97); }
.tab:focus-visible, .card:focus-visible, .hero__nav a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- Masonry grid ---------- */
main { max-width: var(--max); margin: 0 auto; }
.grid {
  columns: var(--cols);
  column-gap: var(--gap);
  padding: 0 var(--pad) 80px;
}
.card {
  position: relative;
  display: block;
  break-inside: avoid;
  margin: 0 0 var(--gap);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #ececee;
  text-decoration: none;
  color: inherit;
  transform: translateZ(0);
  animation: rise .5s ease both;
}
.card__media { aspect-ratio: var(--ratio, 4 / 3); }
.card__media img, .card__media video { width: 100%; height: 100%; object-fit: cover; }
.card__badges {
  position: absolute;
  left: 14px;
  top: 14px;
  display: flex;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}
.card__label {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s, transform .2s;
}
a.card:hover .card__label, a.card:focus-visible .card__label { opacity: 1; transform: none; }
a.card .card__media { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
a.card:hover .card__media { transform: scale(1.03); }
.grid__empty { text-align: center; color: var(--muted); padding: 40px; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Footer ---------- */
.footer {
  padding: 48px var(--pad) 64px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}
.footer p { margin: 4px 0; }
.footer a { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { :root { --cols: 3; } }
@media (max-width: 760px)  {
  /* KV: taller hero on phones (9:6) */
  .hero { aspect-ratio: 9 / 6; display: flex; flex-direction: column; }
  .hero__type { flex: 1; aspect-ratio: auto; margin-top: 12px; }
  .tabs { justify-content: flex-start; }
  .hero__nav a { font-size: 13px; }
  :root { --cols: 2; --gap: 12px; --radius-card: 16px; }
}
@media (max-width: 340px)  { :root { --cols: 1; } }

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