/* ============================================================
   Open Pravatar — Design System
   High Viz — Bebas Neue + Space Grotesk, #F7FF00, 0px radius
   Boy in da Corner energy
   ============================================================ */

:root {
  --bg:            #F7FF00;
  --panel:         rgba(0, 0, 0, 0.04);
  --panel-soft:    rgba(0, 0, 0, 0.04);
  --line:          rgba(0, 0, 0, 0.18);
  --line-strong:   rgba(0, 0, 0, 0.36);
  --text:          #000000;
  --muted:         #2a2a2a;
  --accent:        #000000;
  --accent-dim:    rgba(0, 0, 0, 0.07);
  --accent-text:   #000000;
  --r:             0px;
  --bw:            3px;
  --sans:          "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --display:       "Bebas Neue", "Impact", "Arial Narrow", sans-serif;
  --mono:          "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

/* ============================================================
   Layout shell
   ============================================================ */

.page-shell {
  position: relative;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 10px 0 72px;
}

/* ============================================================
   Card
   ============================================================ */

.card {
  border: var(--bw) solid var(--text);
  background: transparent;
}

/* ============================================================
   Topbar — inverted: black bar, yellow text
   ============================================================ */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
  background: #000;
  border: var(--bw) solid #000;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Yellow square inside the black topbar */
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: var(--bg);
  color: #000;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-lockup h1 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
}

.brand-lockup p { display: none; }

.topbar-links {
  display: flex;
  gap: 2px;
}

.topbar-links a {
  padding: 6px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 255, 0, 0.65);
  transition: color 0.12s, background 0.12s;
}

.topbar-links a:hover {
  color: var(--bg);
  background: rgba(247, 255, 0, 0.1);
}

/* ============================================================
   Typography utilities
   ============================================================ */

.eyebrow,
.kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--bg);
  padding: 2px 7px;
}

.label,
.snippet-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.lead {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.8;
}

.muted,
.result-copy p,
.detail-description,
.asset-page-copy p,
.asset-subtitle {
  color: var(--muted);
}

.stat {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 3rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ============================================================
   Buttons
   ============================================================ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: var(--bw) solid var(--text);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
  font-family: var(--sans);
}

.button-primary {
  background: var(--text);
  color: var(--bg);
}

.button-primary:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.button-secondary {
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  background: var(--accent-dim);
}

/* ============================================================
   Tags / chips
   ============================================================ */

.chip-row,
.tag-row,
.meta-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-button,
.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 0;
  border: 2px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chip-button {
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}

.chip-button:hover {
  border-color: var(--text);
  background: var(--accent-dim);
  color: var(--text);
}

/* ============================================================
   Code / mono
   ============================================================ */

.code-strip,
pre,
code {
  font-family: var(--mono);
  font-size: 0.82rem;
}

.code-strip,
.mini-json,
.json-panel,
.snippet-stack pre,
.docs-card pre {
  margin: 0;
  padding: 14px 16px;
  border: var(--bw) solid var(--text);
  background: var(--text);
  color: var(--bg);
  overflow-x: auto;
}

/* ============================================================
   Hero
   ============================================================ */

.hero-grid,
.search-grid,
.detail-grid,
.manifest-grid,
.detail-copy-grid,
.docs-grid,
.api-grid {
  display: grid;
  gap: 16px;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  padding-top: 0;
  margin-top: 8px;
}

.hero-copy,
.hero-panel,
.control-card,
.detail-card,
.proof-band,
.footer,
.docs-card,
.docs-section,
.asset-page-card {
  border-radius: 0;
}

.hero-copy,
.hero-panel,
.control-card,
.detail-card,
.docs-card,
.docs-section,
.asset-page-card {
  padding: 22px 24px;
}

/* Big Bebas Neue display heading */
.hero-copy h2 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 4.2rem);
  font-weight: 400; /* Bebas Neue is inherently bold */
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Rotating word — inverted stamp */
.rotating-word {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  padding: 0 6px 2px;
  line-height: 1;
  transition: opacity 0.15s, transform 0.15s;
}

.rotating-word--out {
  opacity: 0;
  transform: translateY(-6px);
}

.hero-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.value-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.value-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: 2px solid var(--line-strong);
  border-radius: 0;
  padding: 3px 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-search {
  display: flex;
  gap: 8px;
  margin: 24px 0 16px;
}

.hero-search input,
.control-card input,
.control-card select {
  width: 100%;
  padding: 9px 13px;
  border: var(--bw) solid var(--line-strong);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  transition: border-color 0.12s;
  font-family: var(--sans);
}

.hero-search input:focus,
.control-card input:focus,
.control-card select:focus {
  outline: none;
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.85);
}

.hero-search input { flex: 1 1 auto; }

/* ============================================================
   Hero panel
   ============================================================ */

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 0;
  background: var(--text);
}

.hero-preview,
.detail-image,
.asset-page-image {
  width: 100%;
  display: block;
  border-radius: 0;
  background: var(--accent-dim);
  border: var(--bw) solid var(--text);
}

.asset-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ============================================================
   Proof band
   ============================================================ */

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 16px 0 48px;
  padding: 0;
  overflow: hidden;
  border: var(--bw) solid var(--text);
}

.proof-band > div {
  padding: 24px 28px;
  background: transparent;
  border-right: var(--bw) solid var(--text);
}

.proof-band > div:last-child {
  border-right: none;
}

/* ============================================================
   Section heads — Bebas Neue titles
   ============================================================ */

.search-section,
.detail-section,
.api-section,
.docs-grid,
.docs-section,
.related-section,
.discovery-section { margin-top: 48px; }

.section-head {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-head h3,
.docs-main h2 {
  margin-top: 6px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.section-head p:last-child,
.docs-main p {
  color: var(--muted);
  line-height: 1.8;
}

/* ============================================================
   Discovery
   ============================================================ */

.discovery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: var(--bw) solid var(--text);
}

.discovery-card {
  overflow: hidden;
  border-right: var(--bw) solid var(--text);
}

.discovery-card:last-child {
  border-right: none;
}

.discovery-image {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--accent-dim);
  border-bottom: var(--bw) solid var(--text);
}

.discovery-copy {
  display: grid;
  gap: 10px;
  padding: 18px 20px 20px;
}

.discovery-copy h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.discovery-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.discovery-button { margin-top: 4px; }

/* ============================================================
   Search
   ============================================================ */

.search-grid {
  grid-template-columns: 300px 1fr;
  align-items: start;
}

.control-card form { display: grid; gap: 14px; }

.control-card label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.results-column { display: grid; gap: 16px; }

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: var(--bw) solid var(--text);
}

/* ============================================================
   Result cards
   ============================================================ */

.result-card {
  border-radius: 0;
  overflow: hidden;
  border-right: var(--bw) solid var(--text);
  border-bottom: var(--bw) solid var(--text);
}

.empty-state,
.related-card {
  border-radius: 0;
}

.result-hit {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.result-hit:hover .result-image { opacity: 0.82; }

.result-image,
.related-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--accent-dim);
  transition: opacity 0.12s;
  border-bottom: var(--bw) solid var(--text);
}

.result-copy,
.result-footer { padding: 14px 16px; }

.result-copy { display: grid; gap: 8px; }

.result-copy h4 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.result-copy p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

.result-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.8rem;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-actions a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.12s;
}

.result-actions a:hover { color: var(--text); }

/* ============================================================
   Download button (result card)
   ============================================================ */

.button-download {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding: 3px 8px;
  border: 2px solid var(--line-strong);
  border-radius: 0;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.button-download:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.asset-download-row { margin-top: 16px; }

/* ============================================================
   Detail / asset page
   ============================================================ */

.detail-grid {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
}

.detail-copy { display: grid; gap: 14px; }

.detail-copy h4,
.asset-page-copy h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.snippet-stack { display: grid; gap: 12px; }

.snippet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.copy-button {
  border: 2px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  font-family: var(--sans);
}

.copy-button:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.manifest-grid,
.detail-copy-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.related-list { display: grid; gap: 0; border: var(--bw) solid var(--text); }

.related-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-bottom: 2px solid var(--line-strong);
  background: transparent;
  transition: background 0.12s;
}

.related-card:last-child { border-bottom: none; }

.related-card:hover { background: var(--accent-dim); }

.related-card img {
  aspect-ratio: 1;
  border-radius: 0;
  border: 2px solid var(--line-strong);
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ============================================================
   API / Docs grid
   ============================================================ */

.api-grid,
.docs-grid { grid-template-columns: repeat(2, 1fr); }

.api-card,
.docs-card { padding: 22px; }

.api-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.api-card p:last-child,
.docs-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.docs-main { display: grid; gap: 20px; margin-top: 24px; }

.docs-section h3 {
  margin-top: 0;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.asset-shell .asset-page-card,
.docs-shell .docs-card,
.docs-shell .docs-section { margin-top: 20px; }

/* ============================================================
   Asset page
   ============================================================ */

.asset-page-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.asset-page-copy { display: grid; gap: 12px; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 48px;
  padding: 16px 20px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  border-top: var(--bw) solid var(--text);
  background: transparent;
  box-shadow: none;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.footer a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.footer a:hover { opacity: 0.6; }

.empty-state { padding: 24px; }

/* ============================================================
   Packs — full page
   ============================================================ */

.packs-main { display: grid; gap: 40px; padding: 40px 0; }

.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border: var(--bw) solid var(--text);
}

.pack-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: var(--bw) solid var(--text);
  border-bottom: var(--bw) solid var(--text);
}

.pack-preview {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-bottom: var(--bw) solid var(--text);
}

.pack-copy {
  padding: 18px 20px;
  display: grid;
  gap: 8px;
  flex: 1;
}

.pack-copy h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.pack-copy p { margin: 0; font-size: 0.86rem; line-height: 1.6; color: var(--muted); }

/* ============================================================
   Packs — homepage strip
   ============================================================ */

.packs-section { display: grid; gap: 28px; padding: 48px 0; }

.packs-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
  border: var(--bw) solid var(--text);
}

.pack-strip-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-right: var(--bw) solid var(--text);
  border-bottom: var(--bw) solid var(--text);
  transition: background 0.12s;
}

.pack-strip-card:hover { background: var(--accent-dim); }

.pack-strip-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 0;
  border: 2px solid var(--line-strong);
  flex-shrink: 0;
}

.pack-strip-copy { flex: 1; min-width: 0; }

.pack-strip-copy h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.pack-strip-copy p {
  margin: 4px 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 500;
}

.pack-strip-btn {
  flex-shrink: 0;
  height: 32px;
  padding: 0 12px;
  font-size: 0.72rem;
}

.packs-see-all { display: flex; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .hero-grid,
  .search-grid,
  .detail-grid,
  .manifest-grid,
  .detail-copy-grid,
  .asset-page-card,
  .api-grid,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .proof-band {
    grid-template-columns: 1fr;
  }

  .discovery-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .proof-band > div {
    border-right: none;
    border-bottom: var(--bw) solid var(--text);
  }

  .proof-band > div:last-child { border-bottom: none; }

  .discovery-card { border-right: none; border-bottom: var(--bw) solid var(--text); }
  .discovery-card:last-child { border-bottom: none; }

  .result-card { border-right: none; }
}

@media (max-width: 720px) {
  .page-shell { width: min(100%, calc(100% - 24px)); }

  .topbar,
  .footer,
  .hero-search,
  .results-head,
  .snippet-head {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy,
  .hero-panel,
  .control-card,
  .detail-card,
  .docs-card,
  .docs-section,
  .asset-page-card {
    padding: 20px;
  }
}
