/* Base — shared chrome for the whole site */
* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  font-family: var(--font-body);
  background: var(--surface-page);
  color: var(--text-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  margin: 0;
  line-height: var(--leading-tight);
}

p { margin: 0; }

a { color: var(--brand-secondary-hover); text-decoration: none; font-weight: 700; }
a:hover { color: var(--brand-secondary); }

.cat svg { display: block; width: 100%; height: 100%; }
.cat { pointer-events: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  padding: 12px 22px; border-radius: var(--radius-lg);
  color: var(--text-on-primary); background: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .08s ease, color .15s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover { background: var(--brand-primary-hover); border-color: var(--brand-primary-hover); color: var(--text-on-primary); }
.btn:active { transform: translateY(2px); }
.btn:disabled { background: var(--surface-sunken); border-color: transparent; opacity: .55; cursor: not-allowed; transform: none; }

.btn-secondary { background: var(--brand-secondary); border-color: var(--brand-secondary); }
.btn-secondary:hover { background: var(--brand-secondary-hover); border-color: var(--brand-secondary-hover); }

.btn-soft { background: var(--brand-primary-soft); border-color: var(--brand-primary-soft); color: var(--brand-primary-hover); }
.btn-soft:hover { background: #ffd3bb; border-color: #ffd3bb; color: var(--brand-primary-hover); }

.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text-strong); }
.btn-ghost:hover { background: var(--surface-sunken); border-color: var(--border-strong); color: var(--text-strong); }

.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: var(--radius-md); }
.btn-lg { padding: 16px 30px; font-size: 19px; }

.icon-btn {
  width: 48px; height: 48px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; border: none; background: var(--brand-primary-soft); cursor: pointer;
  transition: transform .15s ease;
}
.icon-btn:hover { transform: scale(1.08) rotate(-4deg); }
.icon-btn.teal { background: var(--brand-secondary-soft); }

/* ---- Cards, badges ---- */
.card {
  background: var(--surface-card);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.card.teal  { background: var(--brand-secondary-soft); border-color: var(--teal-300); }
.card.peach { background: var(--brand-primary-soft); border-color: var(--peach-300); }
.card.mint  { background: #EAF7F0; border-color: var(--mint-300); }
.card.sky   { background: #EAF4FB; border-color: var(--sky-300); }
.card.hoverable { transition: transform .18s ease, box-shadow .18s ease; }
.card.hoverable:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--brand-primary-soft); color: var(--brand-primary-hover);
}
.badge.teal { background: var(--brand-secondary-soft); color: var(--brand-secondary-hover); }
.badge.mint { background: var(--mint-300); color: #22432f; }
.badge.sky  { background: var(--sky-300); color: #123049; }

/* ---- Nav ---- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,247,233,.92); backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border-soft);
}
.nav-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; color: inherit; }
.nav-brand:hover { color: inherit; }
.nav-brand .cat { width: 38px; height: 38px; color: var(--ink-900); }
.nav-brand span {
  font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--text-strong);
}
.nav-links { display: flex; align-items: center; gap: 18px; }

.footer {
  padding: 28px 40px; text-align: center;
  font-size: 13px; color: var(--text-muted);
}

/* ---- Utilities ---- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
