:root {
  /* InternetHounds house palette -- vintage-poster warm, distinct from the cooler
     tones of the individual Hounds properties it links to. */
  --ih-cream: #FFF9EE;       /* page background */
  --ih-ink: #191919;         /* near-black -- body copy, dark sections */
  --ih-gold: #F5A623;        /* primary accent -- buttons, grade highlights */
  --ih-red: #B92D25;         /* secondary accent -- headings, eyebrows */
  --ih-card: #FFFFFF;
  --ih-card-border: rgba(20, 20, 20, 0.08);
  --ih-charcoal: #1C1C1C;    /* private/age-restricted section background */
  --ih-charcoal-card: #262322;

  /* legacy aliases kept so nothing else has to change name */
  --brand-red: var(--ih-red);
  --brand-dark: var(--ih-ink);
  --brand-cream: var(--ih-cream);
  --brand-gold: var(--ih-gold);
  --text-dark: var(--ih-ink);
  --text-light: var(--ih-cream);
  --card-bg: var(--ih-card);
  --card-border: var(--ih-card-border);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ih-ink);
  background: var(--ih-cream);
  line-height: 1.6;
}

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

/* ---------- Header / nav ---------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2rem;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1240px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand a { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ih-ink); }
.brand-icon { border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; font-size: 0.95rem; font-weight: 600; }
.nav-links a { text-decoration: none; opacity: 0.75; }
.nav-links a:hover { opacity: 1; }
.nav-links .btn-primary { font-size: 0.88rem; padding: 0.5rem 1.1rem; }

/* ---------- Buttons ---------- */
.btn-outline, .btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
  font-size: 0.94rem;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
  border: none;
}
.btn-primary { background: var(--ih-gold); color: var(--ih-ink) !important; }
.btn-primary:hover { transform: translateY(-1px); }

.btn-secondary { border: 1.5px solid rgba(25,25,25,0.25); color: var(--ih-ink) !important; background: transparent; }
.btn-secondary:hover { background: rgba(25,25,25,0.06); }

.btn-outline { border: 1.5px solid var(--ih-cream); color: var(--ih-cream) !important; }
.btn-outline:hover { background: var(--ih-cream); color: var(--ih-ink) !important; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ih-cream);
  padding-bottom: 0;
  overflow: hidden;
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.hero-copy { flex: 0 0 44%; max-width: 44%; }
.hero-copy h1 {
  font-size: clamp(2.6rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.hero-copy h1 .accent { color: var(--ih-red); }

.hero-copy .lede { font-size: 1.08rem; opacity: 0.82; margin-bottom: 1.6rem; max-width: 46ch; }

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-art { flex: 0 0 56%; max-width: 56%; }
.hero-art img { width: 100%; border-radius: 0; display: block; }
.hero-art-placeholder {
  width: 100%; aspect-ratio: 16/10; border-radius: 24px;
  background: repeating-linear-gradient(135deg, #F1E7CF, #F1E7CF 12px, #EADFC4 12px, #EADFC4 24px);
  display: flex; align-items: center; justify-content: center;
  color: rgba(25,25,25,0.4); font-weight: 700; text-align: center; padding: 2rem;
}

@media (max-width: 860px) {
  .hero-inner { flex-direction: column; padding-top: 1.5rem; }
  .hero-copy, .hero-art { flex: 1 1 auto; max-width: 100%; text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

/* ---------- Layout ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 4rem 0; }
.section.alt { background: #F3EAD4; margin: 0 -1.5rem; padding: 4rem 1.5rem; }
.section.dark {
  background: var(--ih-charcoal); color: var(--ih-cream);
  margin: 0 calc(-50vw + 50%); padding: 4rem calc(50vw - 50% + 1.5rem);
  width: 100vw;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.section-head h2 { font-size: 2rem; margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.section-head p { opacity: 0.75; }
.section.dark .section-head p { opacity: 0.7; }
.category-tagline { font-weight: 700; color: var(--ih-red); opacity: 1 !important; margin-top: 0.8rem; }
.section.dark .category-tagline { color: var(--ih-gold); }

.category-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ih-red);
  margin-bottom: 0.5rem;
}
.section.dark .category-eyebrow { color: var(--ih-gold); }

/* ---------- Meet the Pack cards ---------- */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.6rem;
}

.pack-card {
  background: var(--ih-card);
  border: 1px solid var(--ih-card-border);
  border-radius: 28px;
  padding: 1.8rem;
  display: flex;
  gap: 1.3rem;
  text-decoration: none;
  color: var(--ih-ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 14px 40px rgba(30, 20, 10, 0.06);
}
.pack-card:hover { transform: translateY(-4px); box-shadow: 0 18px 46px rgba(30, 20, 10, 0.12); }

.pack-card-portrait {
  flex: 0 0 92px; width: 92px; height: 92px; border-radius: 20px;
  object-fit: cover; background: var(--ih-cream);
}

.pack-card-body { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.pack-card-name { font-size: 1.2rem; font-weight: 800; }
.pack-card-name .mascot { font-weight: 600; opacity: 0.55; font-size: 0.85em; }
.pack-card-hook { font-size: 0.95rem; font-weight: 700; color: var(--ih-red); }
.pack-card-desc { font-size: 0.92rem; opacity: 0.82; flex-grow: 1; }
.pack-card-foot { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; font-weight: 700; margin-top: 0.2rem; }
.pack-card-cta { color: var(--ih-red); }
.pack-card:hover .pack-card-cta { text-decoration: underline; }

/* ---------- Grading scale ---------- */
.grade-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem;
  margin: 2rem 0 1.6rem;
}
.grade-chip {
  min-width: 56px; padding: 0.5rem 0; text-align: center;
  border-radius: 12px; font-weight: 800; font-size: 1rem;
  background: var(--ih-cream); border: 1px solid var(--ih-card-border);
}
.grade-chip.top { background: var(--ih-gold); color: var(--ih-ink); border-color: transparent; }
.grade-chip.bottom { background: var(--ih-ink); color: var(--ih-cream); border-color: transparent; }
.grade-footnote { text-align: center; max-width: 560px; margin: 0 auto; opacity: 0.75; font-size: 0.95rem; }

/* ---------- What are you hunting today? ---------- */
.hunt-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem;
}
.hunt-tile {
  background: var(--ih-card); border: 1px solid var(--ih-card-border); border-radius: 20px;
  padding: 1.6rem 1rem; text-align: center; cursor: default;
  transition: transform 0.15s ease;
}
.hunt-tile:hover { transform: translateY(-4px); }
.hunt-tile .emoji { font-size: 2.2rem; display: inline-block; transition: transform 0.15s ease; }
.hunt-tile:hover .emoji { transform: translateY(-4px); }
.hunt-tile .label { display: block; margin-top: 0.6rem; font-weight: 700; font-size: 0.92rem; }

/* ---------- Private / age-restricted (dark) ---------- */
.private-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.project-card {
  background: var(--ih-charcoal-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ih-cream);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.project-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.35); }
.project-card.is-locked { cursor: pointer; }
.project-card.is-disabled { cursor: default; opacity: 0.8; }
.project-card.is-disabled:hover { transform: none; box-shadow: none; }

.project-card-head { display: flex; align-items: center; gap: 0.8rem; }
.project-card-icon { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--ih-cream); }
.project-card-name { font-size: 1.1rem; font-weight: 700; }
.project-card-tagline { font-size: 0.84rem; font-weight: 600; color: var(--ih-gold); opacity: 0.9; }
.project-card-desc { font-size: 0.9rem; opacity: 0.75; flex-grow: 1; }
.project-card-foot { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; font-weight: 700; }
.project-card-cta { color: var(--ih-gold); }
.project-card:hover .project-card-cta { text-decoration: underline; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-live { background: #24422C; color: #B7E6C2; }
.badge-soon { background: #3A2E17; color: #E9C48C; }
.badge-18 { background: #3A1420; color: #F6C6D3; }

.private-note {
  max-width: 640px;
  margin: 1.4rem auto 0;
  font-size: 0.86rem;
  text-align: center;
  opacity: 0.6;
}

/* ---------- About ---------- */
.about-wrap { max-width: 760px; margin: 0 auto; text-align: center; }
.about-wrap h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
.about-wrap p { opacity: 0.82; margin-bottom: 0; }

.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  max-width: 640px; margin: 2.2rem auto 0;
}
.stat-block { text-align: center; }
.stat-block .num { display: block; font-size: 2rem; font-weight: 800; color: var(--ih-red); }
.stat-block .label { font-size: 0.85rem; opacity: 0.75; }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; } }

footer {
  background: var(--ih-ink);
  color: var(--ih-cream);
  text-align: center;
  padding: 2.2rem 1.5rem;
  font-size: 0.88rem;
}
footer p { margin-bottom: 0.4rem; opacity: 0.75; }
footer a { text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal-hero { padding-bottom: 2.5rem; }
.legal-hero .navbar { max-width: 1240px; }
.legal-hero-content { max-width: 780px; margin: 0 auto; text-align: center; padding: 1rem 1.5rem 0; }
.legal-hero-content h1 { font-size: 2.2rem; }
.legal-hero-content .tagline { font-size: 1rem; opacity: 0.7; color: var(--ih-ink); }
.section.legal { max-width: 780px; margin: 0 auto; padding: 3rem 0; }
.section.legal h2 { margin-top: 1.8rem; margin-bottom: 0.6rem; font-size: 1.3rem; color: var(--ih-red); }
.section.legal h3 { margin-top: 1.1rem; margin-bottom: 0.4rem; font-size: 1.05rem; }
.section.legal p, .section.legal li { font-size: 0.95rem; opacity: 0.85; margin-bottom: 0.7rem; }
.section.legal ul { padding-left: 1.4rem; }

/* ---------- Age gate modal ---------- */
.age-gate-backdrop {
  position: fixed; inset: 0; background: rgba(10, 10, 10, 0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; z-index: 100;
}
.age-gate-modal {
  background: var(--ih-card); color: var(--ih-ink);
  border-radius: 22px; max-width: 420px; width: 100%;
  padding: 2rem; text-align: center;
}
.age-gate-icon { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 12px; }
.age-gate-modal h2 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.age-gate-modal p { font-size: 0.92rem; opacity: 0.75; margin-bottom: 1.4rem; }
.age-gate-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.age-gate-actions button { border: none; cursor: pointer; font-family: inherit; }
.age-gate-deny { background: #F1E7CF; color: var(--ih-ink); }
.age-gate-fine { margin-top: 1.2rem; font-size: 0.76rem; opacity: 0.55; }

@media (max-width: 640px) {
  .navbar { padding: 1rem; justify-content: center; text-align: center; }
  .nav-links { justify-content: center; width: 100%; }
  .pack-card { flex-direction: column; }
  .pack-card-portrait { width: 100%; height: 180px; flex-basis: auto; }
}
