/* === Reset === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--heading);
  overflow-wrap: break-word;
}

/* === Design Tokens === */
:root {
  /* Colors */
  --navy-950: #0f172a;
  --navy-900: #1e293b;
  --navy-800: #1e3a5f;
  --navy-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Accent */
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: #a5b4fc;
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;

  /* Category colors */
  --cat-puzzle: #7c4dff;
  --cat-arcade: #ff5252;
  --cat-card: #26a69a;
  --cat-board: #8d6e63;
  --cat-word: #29b6f6;
  --cat-strategy: #ff7043;
  --cat-sports: #66bb6a;
  --cat-racing: #ffa726;
  --cat-action: #ec407a;
  --cat-simulation: #ab47bc;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--slate-50);
  --bg-card: var(--white);
  --text: var(--navy-900);
  --text-muted: var(--slate-600);
  --heading: var(--navy-950);
  --link: var(--accent);
  --link-hover: var(--accent-hover);
  --border: var(--slate-200);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.06), 0 12px 24px rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", var(--font-body);
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.4rem + 1.5vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.6rem + 2vw, 3.25rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-section: clamp(3rem, 2rem + 4vw, 6rem);

  /* Layout */
  --max-width: 1200px;
  --radius: 0;
  --radius-sm: 0;
  --radius-lg: 0;
  --header-height: 64px;
}

/* === Dark Mode === */
[data-mode="dark"] {
  --bg: var(--navy-950);
  --bg-alt: var(--navy-900);
  --bg-card: var(--navy-900);
  --text: var(--slate-300);
  --text-muted: var(--slate-400);
  --heading: var(--slate-100);
  --link: var(--accent-light);
  --link-hover: var(--white);
  --border: var(--navy-700);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.3), 0 12px 24px rgba(0, 0, 0, 0.25);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === Utilities === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

.section {
  padding-block: var(--space-section);
}

.section--alt {
  background: var(--bg-alt);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--accent);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  font-size: var(--text-sm);
  white-space: nowrap;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  min-height: 44px;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--white);
}

.btn--sm {
  padding: 0.375rem 0.75rem;
  font-size: var(--text-xs);
  min-height: 36px;
}

.btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: var(--text-base);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2em 0.6em;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: capitalize;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge--sm { font-size: 0.65rem; }

.badge--category { background: var(--accent); color: var(--white); border-color: var(--accent); }
.badge--multiplayer { background: var(--green); color: var(--white); border-color: var(--green); }
.badge--mobile { background: var(--green); color: var(--white); border-color: var(--green); }
.badge--desktop { background: var(--amber); color: var(--navy-950); border-color: var(--amber); }
.badge--easy { background: var(--green); color: var(--white); border-color: var(--green); }
.badge--medium { background: var(--amber); color: var(--navy-950); border-color: var(--amber); }
.badge--hard { background: var(--red); color: var(--white); border-color: var(--red); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 90;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* === Game Cards === */
.game-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  color: var(--text);
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.game-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.game-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-md);
}

.game-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.game-card__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--heading);
  line-height: 1.3;
}

.game-card__meta {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

/* Grid layouts */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.game-grid--small {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.game-grid__empty {
  text-align: center;
  color: var(--text-muted);
  padding: var(--space-3xl);
  font-size: var(--text-lg);
}

@media (min-width: 640px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

/* === Game Filters === */
.game-filter {
  margin-bottom: var(--space-xl);
}

.game-filter__bar {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.game-filter__btn {
  padding: 0.375rem 0.875rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  min-height: 36px;
}

.game-filter__btn:hover,
.game-filter__btn.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.game-filter__options {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.game-filter__sort,
.game-filter__search {
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  min-height: 40px;
}

.game-filter__search {
  flex: 1;
  min-width: 200px;
}

.game-filter__sort:focus,
.game-filter__search:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* === Footer === */
.site-footer {
  background: var(--navy-950);
  color: var(--slate-400);
  padding-block: var(--space-3xl) var(--space-xl);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer__brand .logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--white);
}

.site-footer__brand p {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
}

.site-footer__links h3 {
  color: var(--white);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.site-footer__links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.site-footer__links a {
  color: var(--slate-400);
  font-size: var(--text-sm);
}

.site-footer__links a:hover {
  color: var(--white);
}

.site-footer__bottom {
  border-top: 1px solid var(--navy-700);
  padding-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: var(--text-xs);
}

.site-footer__bottom a {
  color: var(--accent-light);
}

.site-footer__bottom a:hover {
  color: var(--white);
}

/* === Game Embed === */
.game-embed {
  margin-bottom: var(--space-xl);
}

.game-embed__wrapper {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--navy-950);
  border: 1px solid var(--border);
  max-width: 960px;
  margin-inline: auto;
}

.game-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.game-embed__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  font-size: var(--text-lg);
  pointer-events: none;
}

.game-embed__controls {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

/* === Hamburger Panel === */
.hamburger-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}

.hamburger-panel.open {
  visibility: visible;
  opacity: 1;
}

.hamburger-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hamburger-panel__content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--bg);
  padding: var(--space-xl);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.hamburger-panel.open .hamburger-panel__content {
  transform: translateX(0);
}

.hamburger-panel__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-bottom: var(--space-lg);
  color: var(--text);
}

.hamburger-panel__close:hover {
  color: var(--accent);
}

.hamburger-panel__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.hamburger-panel__nav a {
  display: block;
  padding: var(--space-sm) 0;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.hamburger-panel__nav a:hover,
.hamburger-panel__nav a[aria-current="page"] {
  color: var(--accent);
}

.hamburger-panel__extras {
  margin-top: var(--space-xl);
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  white-space: nowrap;
}

.site-header__logo:hover {
  color: var(--accent);
}

.logo-icon {
  display: flex;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.search-toggle,
.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text);
}

.search-toggle:hover,
.hamburger-btn:hover {
  color: var(--accent);
}

/* === Multiplayer Panel === */
.multiplayer-panel {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  max-width: 960px;
  margin-inline: auto;
}

.multiplayer-panel h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.multiplayer-panel p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}

.multiplayer-panel__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
}

.multiplayer-panel__join {
  display: flex;
  gap: var(--space-sm);
}

.multiplayer-panel__input {
  padding: 0.5rem 0.75rem;
  font-size: var(--text-base);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  width: 140px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  min-height: 44px;
}

.multiplayer-panel__input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.multiplayer-panel__status {
  margin-top: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md);
  background: var(--bg);
  border: 1px solid var(--border);
}

.multiplayer-panel__room-code {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.multiplayer-panel__peers {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* === Navigation === */
.site-nav {
  display: none;
}

@media (min-width: 960px) {
  .site-nav {
    display: block;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
  }

  .site-nav__list a {
    color: var(--text);
    font-size: var(--text-sm);
    font-weight: 500;
    white-space: nowrap;
    padding: var(--space-sm) 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
  }

  .site-nav__list a:hover,
  .site-nav__list a[aria-current="page"] {
    color: var(--accent);
    border-bottom-color: var(--accent);
  }
}

/* === Search Modal === */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  background: rgba(0, 0, 0, 0.6);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s, opacity 0.2s;
}

.search-modal.open {
  visibility: visible;
  opacity: 1;
}

.search-modal__content {
  background: var(--bg);
  width: min(600px, 90vw);
  max-height: 60vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

/* Pagefind UI overrides */
.pagefind-ui__search-input {
  font-family: var(--font-body) !important;
  border-radius: 0 !important;
}

.pagefind-ui__result-link {
  color: var(--accent) !important;
}

/* === Theme Toggle === */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text);
}

.theme-toggle:hover {
  color: var(--accent);
}

[data-mode="light"] .theme-toggle__moon { display: none; }
[data-mode="dark"] .theme-toggle__sun { display: none; }

/* === Save Toast === */
.save-toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--green);
  color: var(--white);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 150;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.save-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* === Blog === */
.post-list {
  display: grid;
  gap: var(--space-xl);
}

.post-card {
  display: block;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.15s;
}

.post-card:hover {
  border-color: var(--accent);
  color: var(--text);
}

.post-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.post-card__meta {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Post layout */
.post__container {
  max-width: 720px;
}

.post__header {
  margin-bottom: var(--space-2xl);
}

.post__header h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}

.post__meta {
  display: flex;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.post__body {
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
}

.post__body h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.post__body h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.post__body p {
  margin-bottom: var(--space-md);
}

.post__body ul, .post__body ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.post__body ul { list-style: disc; }
.post__body ol { list-style: decimal; }

.post__body li {
  margin-bottom: var(--space-xs);
}

.post__footer {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

/* === Features Page === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  margin-bottom: var(--space-md);
  font-size: var(--text-xl);
}

.feature-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Changelog */
.changelog-list {
  max-width: 720px;
}

.changelog-entry {
  padding-bottom: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border);
}

.changelog-entry:last-child {
  border-bottom: none;
}

.changelog-entry__header {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.changelog-entry__version {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent);
}

.changelog-entry__date {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.changelog-entry ul {
  list-style: disc;
  padding-left: var(--space-xl);
}

.changelog-entry li {
  margin-bottom: var(--space-xs);
  font-size: var(--text-sm);
}

/* === Game Page === */
.game-page__header {
  margin-bottom: var(--space-xl);
}

.game-page__header h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}

.game-page__badges {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.game-page__mobile-warning {
  background: var(--amber);
  color: var(--navy-950);
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-xl);
  max-width: 960px;
  margin-inline: auto;
}

.game-page__info {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  max-width: 960px;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .game-page__info {
    grid-template-columns: 1fr 1fr;
  }
}

.game-page__info h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.game-page__related {
  margin-top: var(--space-3xl);
}

.game-page__related h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: var(--space-lg);
}

.breadcrumb ol {
  display: flex;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: var(--space-sm);
  color: var(--border);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* === Home Page === */
.hero {
  padding-block: var(--space-3xl);
  text-align: center;
}

.hero__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--text-muted);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: var(--space-2xl);
  justify-content: center;
  margin-top: var(--space-2xl);
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent);
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Categories strip */
.categories-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text);
}

.category-card__label {
  font-weight: 600;
  font-size: var(--text-sm);
}

/* === Style Guide === */
.style-section {
  margin-bottom: var(--space-3xl);
}

.style-section h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent);
}

.color-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
}

.color-swatch {
  text-align: center;
}

.color-swatch__preview {
  height: 80px;
  margin-bottom: var(--space-sm);
  border: 1px solid var(--border);
}

.color-swatch__label {
  font-size: var(--text-sm);
  font-weight: 600;
}

.color-swatch__value {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: monospace;
}

.type-sample {
  margin-bottom: var(--space-lg);
}

