/* Moje kucha?ka ? Editorial Mono (B&W, sharp) */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors ? mono */
  --color-bg: #F3F3F1;
  --color-surface: #FFFFFF;
  --color-surface-elevated: #FFFFFF;
  --color-text: #0A0A0A;
  --color-text-muted: #5C5C5C;
  --color-text-subtle: #8A8A8A;
  --color-border: #D8D8D4;
  --color-border-strong: #0A0A0A;
  --color-accent: #0A0A0A;
  --color-accent-hover: #000000;
  --color-accent-muted: rgba(10, 10, 10, 0.08);
  --color-accent-subtle: rgba(10, 10, 10, 0.04);
  --color-danger: #B91C1C;
  --color-danger-muted: rgba(185, 28, 28, 0.1);
  --color-warning: #A16207;
  --color-success: #0A0A0A;
  --color-star: #0A0A0A;
  --color-overlay: rgba(10, 10, 10, 0.45);
  --color-ink: #0A0A0A;
  --color-paper: #F3F3F1;

  /* Typography */
  --font-ui: 'Syne', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-display: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --leading-tight: 1.15;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Layout */
  --container-max: 72rem;
  --container-narrow: 40rem;
  --header-height: 4.25rem;
  --mobile-nav-height: 4.25rem;
  --sidebar-width: 17rem;

  /* Sharp corners ? no pills */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-full: 0;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;

  /* Transitions */
  --transition-fast: 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-base: 280ms cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 300;
  --z-drawer: 400;
  --z-toast: 500;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: #FAFAF8;
  background-image: none;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-accent-hover); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }

/* Typography */
.font-display { font-family: var(--font-display); }
.text-muted { color: var(--color-text-muted); }
.text-subtle { color: var(--color-text-subtle); }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-tight { line-height: var(--leading-tight); }

h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  font-weight: 600;
  line-height: var(--leading-tight);
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }

.recipe-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--space-6); }
}

.page { padding-bottom: calc(var(--mobile-nav-height) + var(--space-8)); }
@media (min-width: 768px) {
  .page { padding-bottom: var(--space-12); }
}

.section { margin-bottom: var(--space-12); }
.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  margin: 0;
}

.grid {
  display: grid;
  gap: var(--space-5);
}
.grid--recipes {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.grid--categories {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(243, 243, 241, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border-strong);
}
.site-header__inner {
  display: none;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-4);
}
@media (min-width: 1024px) {
  .site-header__inner { display: flex; }
}
.site-logo {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--color-text);
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-weight: 400;
}
.site-logo:hover { color: var(--color-text); opacity: 0.7; }

.site-nav { display: none; }
@media (min-width: 1024px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 0;
  }
}
.site-nav__link {
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--color-text);
  background: transparent;
  border-bottom-color: var(--color-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.lang-switch {
  display: none;
  gap: 0;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid var(--color-border);
}
@media (min-width: 768px) { .lang-switch { display: flex; } }
.lang-switch__link {
  padding: var(--space-1) var(--space-2);
  color: var(--color-text-subtle);
  border-radius: 0;
  border-right: 1px solid var(--color-border);
}
.lang-switch__link:last-child { border-right: none; }
.lang-switch__link.is-active {
  color: #fff;
  background: var(--color-ink);
}
.lang-switch__link:hover { color: var(--color-text); }

/* Mobile top bar */
.mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
@media (min-width: 1024px) { .mobile-top { display: none; } }

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  display: flex;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (min-width: 768px) { .bottom-nav { display: none; } }
.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-2) var(--space-1);
  color: var(--color-text-muted);
  font-size: 0.625rem;
  font-weight: 500;
  text-align: center;
  transition: color var(--transition-fast);
}
.bottom-nav__item.is-active { color: var(--color-text); }
.bottom-nav__icon {
  width: 1.375rem;
  height: 1.375rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-10) 0 var(--space-8);
  margin-top: var(--space-12);
}
@media (max-width: 767px) {
  .site-footer { padding-bottom: calc(var(--mobile-nav-height) + var(--space-8)); }
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: space-between;
  align-items: center;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.site-footer__links a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.site-footer__links a:hover { color: var(--color-text); }

/* Buttons ? sharp, mono */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.35rem;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid var(--color-ink);
  border-radius: 0;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
}
.btn--primary:hover {
  background: #fff;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn--secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn--secondary:hover {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
}
.btn--ghost:hover {
  background: transparent;
  color: var(--color-text);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn--danger {
  background: var(--color-danger);
  color: #fff;
  border-color: var(--color-danger);
}
.btn--sm { padding: 0.55rem 0.9rem; font-size: 0.65rem; }
.btn--lg { padding: 1.05rem 1.75rem; font-size: var(--text-sm); }
.btn--icon {
  padding: 0.55rem;
  width: 2.5rem;
  height: 2.5rem;
  letter-spacing: 0;
}
.btn--block { width: 100%; }

/* Forms */
.form-group { margin-bottom: var(--space-5); }
.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-ink);
  box-shadow: none;
  outline: 1px solid var(--color-ink);
  outline-offset: 0;
}
.form-input::placeholder { color: var(--color-text-subtle); }
.form-textarea { min-height: 6rem; resize: vertical; }
.form-hint {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.form-error {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-danger);
}
.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}
.form-checkbox input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--color-accent);
}

/* Search */
.search-hero {
  max-width: 36rem;
  margin: 0 0 var(--space-6);
}
.search-box {
  position: relative;
}
.search-box__input {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  padding-left: 3rem;
  font-size: var(--text-lg);
  font-family: var(--font-ui);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 0;
  box-shadow: none;
}
.search-box__input:focus {
  border-color: var(--color-ink);
  box-shadow: none;
  outline: 1px solid var(--color-ink);
}
.search-box__icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-text-subtle);
  pointer-events: none;
}
.search-suggest {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  max-height: 20rem;
  overflow-y: auto;
  display: none;
}
.search-suggest.is-open { display: block; }
.search-suggest__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.search-suggest__item:hover,
.search-suggest__item.is-highlighted {
  background: var(--color-accent-subtle);
}
.search-suggest__type {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0;
  overflow: hidden;
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.card:hover {
  box-shadow: none;
  border-color: var(--color-ink);
  transform: translateY(-2px);
}

.recipe-card { display: flex; flex-direction: column; height: 100%; }
.recipe-card__link { color: inherit; display: flex; flex-direction: column; height: 100%; }
.recipe-card__link:hover { color: inherit; }
.recipe-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #E8E8E4;
  border-bottom: 1px solid var(--color-border);
}
.recipe-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
  filter: none;
}
.recipe-card:hover .recipe-card__img { transform: scale(1.04); }
.recipe-card__favorite {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  background: #fff;
  border-color: var(--color-ink);
}
.recipe-card__body {
  padding: var(--space-4) var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.recipe-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin: 0;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
}
.recipe-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: auto;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  color: var(--color-text);
  min-height: 7rem;
}
.category-card:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.category-card__name {
  font-weight: 600;
  font-size: var(--text-sm);
}
.category-card__count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Stars */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--color-star);
  font-size: var(--text-sm);
  line-height: 1;
}
.star--empty { opacity: 0.3; }
.star--half { opacity: 0.65; }
.stars--interactive .star--btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-star);
  font-size: var(--text-lg);
  padding: 0 var(--space-1);
  line-height: 1;
}
.stars--interactive .star--btn:hover,
.stars--interactive .star--btn[aria-pressed="true"] {
  transform: scale(1.1);
}

/* Badges & tags */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
  background: var(--color-ink);
  color: #fff;
}
.tag {
  display: inline-flex;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}
.tag:hover {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: #fff;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-6);
}
.empty-state__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto var(--space-5);
  color: var(--color-text-subtle);
  opacity: 0.5;
}
.empty-state__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.empty-state__text {
  color: var(--color-text-muted);
  max-width: 24rem;
  margin: 0 auto var(--space-6);
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--color-border) 25%, var(--color-bg) 50%, var(--color-border) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton--text { height: 1rem; margin-bottom: var(--space-2); }
.skeleton--title { height: 1.5rem; width: 70%; margin-bottom: var(--space-3); }
.skeleton--image { aspect-ratio: 4/3; border-radius: var(--radius-lg); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-10);
}
.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.pagination__link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.pagination__link.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.pagination__link.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Filters */
.filters-drawer-toggle { display: flex; }
@media (min-width: 1024px) { .filters-drawer-toggle { display: none; } }

.filters-sidebar {
  display: none;
}
@media (min-width: 1024px) {
  .filters-sidebar {
    display: block;
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
    align-self: start;
  }
}
.filters-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.filters-panel__title {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.filters-panel__group { margin-bottom: var(--space-5); }
.filters-panel__group:last-child { margin-bottom: 0; }

.filters-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  visibility: hidden;
  pointer-events: none;
}
.filters-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}
.filters-drawer__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.filters-drawer.is-open .filters-drawer__overlay { opacity: 1; }
.filters-drawer__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: var(--color-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--space-6);
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--transition-base);
}
.filters-drawer.is-open .filters-drawer__panel { transform: translateY(0); }
@media (min-width: 1024px) { .filters-drawer { display: none; } }

.recipes-layout {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 1024px) {
  .recipes-layout {
    grid-template-columns: var(--sidebar-width) 1fr;
  }
}

/* Recipe detail */
.recipe-hero {
  margin-bottom: var(--space-8);
}
.recipe-hero__image {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
  margin-bottom: var(--space-6);
}
.recipe-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recipe-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
}
.recipe-meta-bar__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.recipe-meta-bar__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.recipe-meta-bar__value {
  font-weight: 600;
  font-size: var(--text-sm);
}

.recipe-detail-grid {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 1024px) {
  .recipe-detail-grid {
    grid-template-columns: 1fr 20rem;
    align-items: start;
  }
}

.recipe-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
@media (min-width: 1024px) {
  .recipe-panel--sticky {
    position: sticky;
    top: calc(var(--header-height) + var(--space-4));
  }
}
.recipe-panel--mobile {
  position: fixed;
  bottom: var(--mobile-nav-height);
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 -4px 16px rgba(26, 26, 26, 0.06);
}
@media (min-width: 1024px) { .recipe-panel--mobile { display: none; } }
@media (max-width: 1023px) {
  .recipe-panel--desktop { display: none; }
}

.servings-scaler {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.servings-scaler__btn {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  font-size: var(--text-lg);
  color: var(--color-text);
  transition: border-color var(--transition-fast);
}
.servings-scaler__btn:hover { border-color: var(--color-accent); }
.servings-scaler__value {
  font-weight: 600;
  min-width: 2rem;
  text-align: center;
}

.ingredient-list { list-style: none; padding: 0; margin: 0; }
.ingredient-list__group { margin-bottom: var(--space-5); }
.ingredient-list__group-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ingredient-list__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}
.ingredient-list__item:last-child { border-bottom: none; }
.ingredient-list__qty {
  font-weight: 600;
  min-width: 4rem;
  color: var(--color-accent);
}

.steps-list { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps-list__item {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  padding-bottom: var(--space-6);
  border-left: 2px solid var(--color-border);
  margin-left: 1rem;
}
.steps-list__item:last-child { border-left-color: transparent; }
.steps-list__item::before {
  content: counter(step);
  position: absolute;
  left: -1.125rem;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-ink);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: 0;
}
.steps-list__text { line-height: var(--leading-relaxed); }
.steps-list__time {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
  gap: var(--space-3);
}
.nutrition-item {
  text-align: center;
  padding: var(--space-3);
  background: var(--color-bg);
  border-radius: var(--radius-md);
}
.nutrition-item__value {
  font-weight: 700;
  font-size: var(--text-lg);
}
.nutrition-item__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
  overflow-x: auto;
}
.tabs__btn {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.tabs__btn.is-active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.comment {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}
.comment__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.comment__author { font-weight: 600; font-size: var(--text-sm); }
.comment__date { font-size: var(--text-xs); color: var(--color-text-subtle); }

/* Shopping list */
.shopping-group { margin-bottom: var(--space-6); }
.shopping-group__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}
.shopping-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  transition: opacity var(--transition-fast);
}
.shopping-item.is-checked {
  opacity: 0.45;
  text-decoration: line-through;
}
.shopping-item.is-hidden { display: none; }
.shopping-item__source {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

/* Pantry */
.pantry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.pantry-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
}
.pantry-tag__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-subtle);
  padding: 0;
  line-height: 1;
}
.pantry-tag__remove:hover { color: var(--color-danger); }

/* Meal plan */
.meal-plan-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .meal-plan-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .meal-plan-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
}

.admin-table-wrap,
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  min-width: 36rem;
}

.flex {
  min-width: 0;
}

.cook-nav {
  flex-wrap: wrap;
  gap: var(--space-2);
}

.meal-plan-day {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  min-height: 10rem;
}
.meal-plan-day.is-today {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.meal-plan-day__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.meal-slot {
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-border);
}
.meal-slot:last-child { border-bottom: none; }

/* Auth */
.auth-page {
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
}
.auth-card {
  width: 100%;
  max-width: 26rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 0;
  padding: var(--space-8);
  box-shadow: none;
}
.auth-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  text-align: left;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}
.auth-card__footer {
  text-align: center;
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Toasts */
.toast-container {
  position: fixed;
  top: calc(var(--header-height) + var(--space-4));
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 22rem;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toast-in 0.3s ease;
}
.toast--success { border-left: 3px solid var(--color-success); }
.toast--error { border-left: 3px solid var(--color-danger); }
.toast__message { flex: 1; font-size: var(--text-sm); }
.toast__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-subtle);
  padding: 0;
  line-height: 1;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero home ? superseded by photo stage in v3 */
.hero {
  text-align: left;
  padding: 0;
  margin: 0 0 var(--space-12);
}
.hero__plane { display: none; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Utility */
.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;
}
.hidden { display: none !important; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.text-center { text-align: center; }

@media print {
  .site-header, .bottom-nav, .site-footer, .recipe-panel, .btn { display: none !important; }
  body { background: #fff; }
}

/* ?? Production polish (homepage + recipe detail + shopping) ?? */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: 0;
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background .15s, color .15s, border-color .15s;
}
.category-chip:hover, .category-chip:focus-visible {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: #fff;
  outline: none;
}
.section__link {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-text);
}
.section__link:hover { opacity: 0.55; text-decoration: none; }
.empty-state--compact {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px dashed var(--color-border-strong);
  border-radius: 0;
  text-align: center;
}
.shopping-preview {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 0;
  overflow: hidden;
}
.shopping-preview__item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}
.shopping-preview__item:last-child { border-bottom: none; }
.shopping-preview__qty { color: var(--color-text-muted); white-space: nowrap; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-accent); }

.recipe-header { margin-bottom: var(--space-6); }
.recipe-header__category {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.recipe-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.recipe-header__rating { display: inline-flex; align-items: center; gap: 0.35rem; }
.recipe-header__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.recipe-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.recipe-hero-image {
  margin: 0 0 var(--space-8);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  background: var(--color-border);
}
.recipe-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 28rem;
  object-fit: cover;
}
.recipe-section { margin-bottom: var(--space-10); }
.recipe-section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  margin-bottom: var(--space-4);
}
.recipe-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.recipe-section__head .recipe-section__title { margin-bottom: 0; }
.ingredient-group { margin-bottom: var(--space-5); }
.ingredient-group__title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.time-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.steps-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps-list__item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}
.steps-list__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-accent);
}
.recipe-panel__card {
  position: sticky;
  top: 5.5rem;
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.recipe-panel__stat { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-3); }
.btn--block { width: 100%; justify-content: center; }
.rating-interactive { display: flex; gap: 0.25rem; }
.rating-star {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--color-star);
  cursor: pointer;
  line-height: 1;
  padding: 0.15rem;
}
.rating-star:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.badge--warn { background: var(--color-danger-muted); color: var(--color-danger); }
.badge--muted { background: var(--color-accent-subtle); color: var(--color-text-muted); }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: var(--space-3);
}
.photo-card {
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.photo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.photo-card figcaption { padding: var(--space-3); font-size: var(--text-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-hint { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 0.35rem; }
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.shopping-group { margin-bottom: var(--space-6); }
.shopping-group__title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.shopping-list { list-style: none; margin: 0; padding: 0; }
.shopping-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.shopping-item.is-checked { opacity: 0.45; }
.shopping-item.is-checked .shopping-item__name { text-decoration: line-through; }
.shopping-item.is-hidden { display: none; }
.shopping-item__label { display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; }
.shopping-item__text { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; }
.shopping-item__qty { font-weight: 600; min-width: 4.5rem; }
.shopping-item__sources { font-size: var(--text-xs); color: var(--color-text-muted); margin-left: 1.75rem; }
.shopping-item__sources a { color: var(--color-accent); }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-list li { padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); font-size: var(--text-sm); }
.comment { padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); }
.comment--reply { margin-left: var(--space-6); border-left: 2px solid var(--color-border); padding-left: var(--space-4); }
.comment__header { display: flex; gap: var(--space-3); margin-bottom: var(--space-2); font-size: var(--text-sm); }
.comment__author { font-weight: 600; }
.comment__date { color: var(--color-text-muted); }
.search-suggest__group {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-accent-subtle);
}
@media (max-width: 1023px) {
  .recipe-panel--desktop { display: none; }
  .recipe-detail-grid { display: block; }
}
@media (min-width: 1024px) {
  .recipe-panel--mobile { display: none; }
  .recipe-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16.5rem;
    gap: var(--space-8);
    align-items: start;
  }
}

/* ?? Editorial Mono polish ?? */
.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}
.section--reveal {
  animation: section-rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.section--reveal:nth-of-type(2) { animation-delay: 0.05s; }
.section--reveal:nth-of-type(3) { animation-delay: 0.1s; }
.section--reveal:nth-of-type(4) { animation-delay: 0.15s; }
@keyframes section-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.site-footer {
  border-top: 1px solid var(--color-border-strong);
  background: var(--color-surface);
}
.page-header,
.auth-card,
.filters-panel,
.recipe-panel,
.toast,
.meal-plan-day,
.comment-form,
.empty-state {
  border-radius: 0 !important;
}
.steps-list__number,
.step-number,
.cook-step-number {
  border-radius: 0 !important;
}
.pagination__link {
  border-radius: 0;
  border: 1px solid var(--color-border);
}
.pagination__link.is-active,
.pagination__link[aria-current="page"] {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
}
.recipe-header__category {
  color: var(--color-text-muted) !important;
}
.home .page { padding-top: 0; }
.home { margin-top: 0; }
.page--home {
  padding-top: 0;
  padding-bottom: calc(var(--mobile-nav-height) + var(--space-8));
}
.auth-card {
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  padding: var(--space-8);
}
.filters-panel {
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
}
.recipe-panel {
  border: 1px solid var(--color-border-strong);
}
.toast {
  border: 1px solid var(--color-border-strong);
  border-radius: 0;
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero__content,
  .section--reveal,
  .recipe-card:hover .recipe-card__img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ?? Production polish v2 ?? */

/* Softer header */
.site-header {
  background: rgba(250, 250, 248, 0.94);
  border-bottom: 1px solid #E6E6E2;
}

/* Recipe cards ? photo-first */
.card.recipe-card {
  border: 1px solid #E2E2DE;
  background: #fff;
}
.card.recipe-card:hover {
  border-color: #0A0A0A;
  transform: translateY(-3px);
}
.recipe-card__media {
  aspect-ratio: 4 / 3;
  background: #1a1a1a;
  border-bottom: none;
}
.recipe-card__img {
  filter: none;
}
.recipe-card__body {
  padding: 1.1rem 1.15rem 1.25rem;
  border-top: 1px solid #EDEDE9;
}
.recipe-card__title {
  font-size: 1.2rem;
}
.recipe-card__favorite {
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border: 1px solid #0A0A0A;
}

/* Fix sticky panel overflow */
@media (min-width: 1024px) {
  .recipe-detail-grid {
    grid-template-columns: minmax(0, 1fr) 16.5rem;
    gap: var(--space-8);
  }
}
.recipe-panel,
.recipe-panel__card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.recipe-panel__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid #0A0A0A;
  background: #fff;
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
}
.recipe-panel__card .flex {
  width: 100%;
  min-width: 0;
}
.recipe-panel__card .btn,
.recipe-panel .btn--block {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  padding: 0.8rem 0.75rem;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.recipe-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
}
.recipe-header__actions .btn {
  white-space: normal;
  max-width: 100%;
  line-height: 1.25;
  padding: 0.75rem 1rem;
  letter-spacing: 0.05em;
  font-size: 0.68rem;
}

/* Recipe hero always present */
.recipe-hero-image {
  margin: 0 0 var(--space-10);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid #0A0A0A;
  background: #111;
  aspect-ratio: 16 / 9;
}
.recipe-hero-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
  filter: none;
}

/* Custom checkbox / radio ? square mono */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.35rem 0;
  cursor: pointer;
  font-size: var(--text-sm);
}
.form-checkbox input {
  appearance: none;
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  border: 1.5px solid #0A0A0A;
  border-radius: 0;
  background: #fff;
  display: grid;
  place-content: center;
  cursor: pointer;
}
.form-checkbox input[type="radio"] {
  border-radius: 0;
}
.form-checkbox input:checked {
  background: #0A0A0A;
  box-shadow: inset 0 0 0 2px #fff;
}
.form-select,
.form-input,
.form-textarea {
  border-radius: 0;
  border-color: #C8C8C4;
}
.form-select:focus,
.form-input:focus,
.form-textarea:focus {
  border-color: #0A0A0A;
  outline: 1px solid #0A0A0A;
  box-shadow: none;
}

.filters-panel {
  border: 1px solid #0A0A0A;
  background: #fff;
  padding: var(--space-6);
}
.filters-panel__title {
  color: #0A0A0A;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid #E6E6E2;
}

/* Page headers */
.page-header .recipe-title,
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Auth / empty / shopping surfaces */
.auth-card,
.empty-state--compact,
.shopping-preview,
.meal-plan-day {
  border: 1px solid #0A0A0A;
  background: #fff;
}

/* Category chips ? denser, calmer */
.category-chip {
  background: #fff;
  border-color: #C8C8C4;
  padding: 0.7rem 1.05rem;
}
.category-chip:hover {
  border-color: #0A0A0A;
  background: #0A0A0A;
  color: #fff;
}

/* Sections breathe */
.section {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section__header {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid #E6E6E2;
}

/* Sticky panel servings row */
.servings-scaler--panel {
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid #E6E6E2;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .recipe-header__actions .btn {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
  }
}

/* ?? Production polish v3: header / hero / categories / recipe ?? */

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #0A0A0A;
  backdrop-filter: blur(16px);
}
.site-header__shell {
  position: relative;
}
.site-header__inner {
  height: 4.75rem;
  gap: 1.5rem;
}
.site-logo {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  letter-spacing: -0.01em;
  line-height: 1;
  flex-shrink: 0;
}
.site-logo:hover { opacity: 1; color: #0A0A0A; }
.site-nav {
  flex: 1;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
}
.site-nav__link {
  padding: 0.55rem 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #6A6A6A;
  border-bottom: none;
  position: relative;
}
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.2rem;
  height: 1px;
  background: #0A0A0A;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-nav__link:hover,
.site-nav__link.is-active {
  color: #0A0A0A;
  border-bottom-color: transparent;
}
.site-nav__link.is-active::after,
.site-nav__link:hover::after {
  transform: scaleX(1);
}
.header-actions {
  gap: 0.75rem;
  flex-shrink: 0;
}
.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #0A0A0A;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: border-color 160ms ease, background 160ms ease;
}
.header-icon:hover {
  border-color: #0A0A0A;
  background: #fff;
  color: #0A0A0A;
}
.header-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-text-link {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6A6A6A;
}
.header-text-link:hover { color: #0A0A0A; }
.lang-switch {
  border: none;
  gap: 0.2rem;
  background: transparent;
}
.lang-switch__link {
  padding: 0.35rem 0.45rem;
  border: 1px solid transparent;
  border-right: none;
  color: #8A8A8A;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}
.lang-switch__link:last-child { border-right: none; }
.lang-switch__link.is-active {
  background: #0A0A0A;
  color: #fff;
  border-color: #0A0A0A;
}
.lang-switch__link:hover:not(.is-active) {
  color: #0A0A0A;
  border-color: #0A0A0A;
}
.btn--ink {
  background: #0A0A0A;
  color: #fff;
  border: 1px solid #0A0A0A;
  border-radius: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.btn--ink:hover {
  background: #fff;
  color: #0A0A0A;
}
.mobile-top {
  height: 4.25rem;
}
.mobile-top__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Hero ? photo stage */
.hero {
  margin: 0 0 clamp(2.5rem, 6vw, 4.5rem);
}
.hero__stage {
  position: relative;
  min-height: clamp(28rem, 78vh, 42rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0A0A0A;
  color: #fff;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none;
  transform: scale(1.04);
  animation: hero- ken 18s ease-out both;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.45) 48%, rgba(0,0,0,0.2) 100%),
    linear-gradient(0deg, rgba(0,0,0,0.55) 0%, transparent 45%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 38rem;
  padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.75rem, 7vw, 5rem);
  animation: hero-rise 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6.25rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: #fff;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.35);
}
.hero__title {
  font-family: var(--font-ui);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: rgba(255,255,255,0.92);
}
.hero__subtitle {
  color: rgba(255,255,255,0.68);
  font-size: 1.05rem;
  max-width: 26rem;
  margin: 0 0 1.75rem;
  line-height: 1.55;
}
.hero .search-hero {
  max-width: 30rem;
  margin-bottom: 1.25rem;
}
.hero .search-box {
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}
.hero .search-box__input {
  color: #0A0A0A;
  font-size: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.hero__actions {
  margin-top: 0.25rem;
  gap: 0.65rem;
}
.hero .btn--primary {
  background: #fff;
  color: #0A0A0A;
  border-color: #fff;
  min-width: 9.5rem;
}
.hero .btn--primary:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.hero .btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
  min-width: 9.5rem;
}
.hero .btn--secondary:hover {
  background: #fff;
  color: #0A0A0A;
  border-color: #fff;
}
@keyframes hero-ken {
  from { transform: scale(1.08); }
  to { transform: scale(1.02); }
}

/* Categories page ? mosaic */
.cat-page {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}
.cat-page__header {
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
  max-width: 36rem;
}
.cat-page__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8A8A8A;
}
.cat-page__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 0.85rem;
  color: #0A0A0A;
}
.cat-page__lead {
  margin: 0;
  color: #6A6A6A;
  font-size: 1.05rem;
  line-height: 1.5;
}
.cat-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.75rem;
}
.cat-tile {
  position: relative;
  grid-column: span 6;
  min-height: 14rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid #0A0A0A;
  background: #111;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.cat-tile--wide {
  grid-column: span 8;
  min-height: 18rem;
}
.cat-tile--featured {
  min-height: 20rem;
}
.cat-tile--featured.cat-tile--wide {
  grid-column: span 12;
  min-height: clamp(18rem, 42vw, 26rem);
}
.cat-tile__media,
.cat-tile__veil {
  position: absolute;
  inset: 0;
}
.cat-tile__media { z-index: 0; }
.cat-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}
.cat-tile__veil {
  z-index: 1;
  background: linear-gradient(0deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.2) 55%, rgba(0,0,0,0.15) 100%);
  transition: background 0.35s ease;
}
.cat-tile__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.35rem 1.4rem 1.5rem;
  width: 100%;
}
.cat-tile__index {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
}
.cat-tile__name {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.cat-tile__desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.68);
  max-width: 28rem;
  line-height: 1.4;
}
.cat-tile:hover .cat-tile__media img,
.cat-tile:focus-visible .cat-tile__media img {
  transform: scale(1.06);
  filter: none;
}
.cat-tile:hover .cat-tile__veil,
.cat-tile:focus-visible .cat-tile__veil {
  background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.1) 100%);
}
.cat-tile:focus-visible {
  outline: 2px solid #0A0A0A;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .cat-tile { grid-column: span 4; min-height: 15rem; }
  .cat-tile--wide { grid-column: span 6; }
  .cat-tile--featured:not(.cat-tile--wide) { grid-column: span 6; }
  .cat-tile--featured.cat-tile--wide { grid-column: span 12; }
}
@media (min-width: 1100px) {
  .cat-mosaic { gap: 0.85rem; }
  .cat-tile { grid-column: span 3; min-height: 16rem; }
  .cat-tile--wide { grid-column: span 5; min-height: 18rem; }
  .cat-tile--featured:not(.cat-tile--wide) {
    grid-column: span 7;
    min-height: 22rem;
  }
  .cat-tile--featured.cat-tile--wide {
    grid-column: span 12;
    min-height: 24rem;
  }
  .cat-tile:nth-child(3) { grid-column: span 5; }
  .cat-tile:nth-child(4) { grid-column: span 4; }
  .cat-tile:nth-child(5) { grid-column: span 3; }
}

/* Recipe detail ? no floating dock */
.recipe-panel--mobile { display: none !important; }
.recipe-page {
  padding-bottom: 3rem;
}
.recipe-header {
  margin-bottom: 1.75rem;
}
.recipe-header__actions {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #E6E6E2;
}
.recipe-hero-image {
  margin: 0 0 var(--space-10);
  border: 1px solid #0A0A0A;
  aspect-ratio: 16 / 9;
  background: #0A0A0A;
}
.recipe-hero-image img {
  filter: none;
}

/* Home category chips ? less button-farm */
.category-chip {
  border: 1px solid #0A0A0A;
  background: transparent;
  padding: 0.85rem 1.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.category-chip:hover {
  background: #0A0A0A;
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 1023px) {
  .site-nav { display: none; }
}
@media (max-width: 640px) {
  .hero__stage { min-height: 85vh; align-items: center; }
  .hero__content { padding-top: 5rem; }
  .hero__brand { font-size: clamp(2.6rem, 14vw, 3.75rem); }
  .cat-tile,
  .cat-tile--wide,
  .cat-tile--featured,
  .cat-tile--featured.cat-tile--wide {
    grid-column: span 12;
    min-height: 13.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img,
  .cat-tile__media img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ---- Production polish v4: hero split + dense categories ---- */

.cat-mosaic,
.cat-tile,
.hero__stage,
.hero__plane,
.hero__media,
.hero__veil { display: none !important; }

.hero {
  margin: 0 0 clamp(2.25rem, 5vw, 3.75rem);
}
.hero__split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: auto;
  border-bottom: 1px solid #0A0A0A;
  background: #0A0A0A;
}
.hero__panel {
  background: #0A0A0A;
  color: #fff;
  display: flex;
  align-items: center;
  order: 2;
}
.hero__panel-inner {
  width: 100%;
  max-width: 34rem;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  animation: hero-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero__photo {
  order: 1;
  position: relative;
  min-height: 16rem;
  overflow: hidden;
  background: #111;
  border-bottom: 1px solid #0A0A0A;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  display: block;
  filter: none;
  transform: scale(1.03);
  animation: hero-ken 16s ease-out both;
}
.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.25rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: #fff;
  margin: 0 0 1rem;
  text-shadow: none;
}
.hero__title {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
  color: rgba(255,255,255,0.9);
}
.hero__subtitle {
  color: rgba(255,255,255,0.58);
  font-size: 0.98rem;
  max-width: 24rem;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}
.hero .search-hero {
  max-width: 100%;
  margin: 0 0 1rem;
}
.hero .search-box {
  background: #fff;
  border: 1px solid #fff;
  box-shadow: none;
}
.hero .search-box__input {
  color: #0A0A0A;
  font-size: 0.95rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0;
}
.hero .btn--primary {
  background: #fff;
  color: #0A0A0A;
  border-color: #fff;
  min-width: 0;
}
.hero .btn--primary:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.hero .btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
  min-width: 0;
}
.hero .btn--secondary:hover {
  background: #fff;
  color: #0A0A0A;
  border-color: #fff;
}

@media (min-width: 900px) {
  .hero__split {
    grid-template-columns: minmax(22rem, 0.92fr) minmax(0, 1.08fr);
    min-height: min(78vh, 36rem);
  }
  .hero__panel {
    order: 1;
    border-right: 1px solid #0A0A0A;
  }
  .hero__panel-inner {
    padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
  }
  .hero__photo {
    order: 2;
    min-height: 100%;
    border-bottom: none;
    height: 100%;
  }
  .hero__photo img {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
  }
  .hero__brand {
    font-size: clamp(3.25rem, 5.5vw, 5rem);
  }
}

.cat-page {
  padding-top: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.cat-page__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #0A0A0A;
  max-width: none;
}
.cat-page__eyebrow { display: none !important; }
.cat-page__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  color: #0A0A0A;
}
.cat-page__lead {
  margin: 0;
  color: #6A6A6A;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
}
@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

.cat-item {
  display: flex;
  flex-direction: column;
  border: 1px solid #0A0A0A;
  background: #fff;
  color: #0A0A0A;
  text-decoration: none;
  min-height: 0;
  transition: background 180ms ease, color 180ms ease;
}
.cat-item__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
  border-bottom: 1px solid #0A0A0A;
}
.cat-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
}
.cat-item__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem 1.15rem;
  flex: 1;
}
.cat-item__index {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #8A8A8A;
}
.cat-item__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.cat-item__desc {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #5C5C5C;
  margin-top: 0.15rem;
}
.cat-item:hover {
  background: #0A0A0A;
  color: #fff;
}
.cat-item:hover .cat-item__index,
.cat-item:hover .cat-item__desc {
  color: rgba(255,255,255,0.62);
}
.cat-item:hover .cat-item__media img {
  transform: scale(1.05);
  filter: none;
}
.cat-item:focus-visible {
  outline: 2px solid #0A0A0A;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .hero__stage { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo img,
  .cat-item__media img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ---- Blog + recipes rail + home + footer ---- */

.recipes-page__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.recipes-page__heading .recipe-title { margin-bottom: 0.35rem; }
.recipes-page__heading .text-muted { margin: 0; }

.filter-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.15rem 0 1.15rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #E6E6E2;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.filter-rail__chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid #0A0A0A;
  background: #fff;
  color: #0A0A0A;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}
.filter-rail__chip:hover,
.filter-rail__chip.is-active {
  background: #0A0A0A;
  color: #fff;
}
.filter-rail__sep {
  flex: 0 0 auto;
  width: 1px;
  align-self: stretch;
  background: #D0D0CC;
  margin: 0 0.2rem;
}

.home-discover {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 900px) {
  .home-discover { grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
}
.home-discover__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid #0A0A0A;
  background: #fff;
  color: #0A0A0A;
  text-decoration: none;
  min-height: 6.5rem;
  transition: background 180ms ease, color 180ms ease;
}
.home-discover__item:hover {
  background: #0A0A0A;
  color: #fff;
}
.home-discover__label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.home-discover__hint {
  font-size: 0.8rem;
  color: #6A6A6A;
  line-height: 1.35;
}
.home-discover__item:hover .home-discover__hint { color: rgba(255,255,255,0.65); }

.home-cta {
  margin: clamp(2rem, 5vw, 3.5rem) 0;
}
.home-cta__inner {
  border: 1px solid #0A0A0A;
  background: #0A0A0A;
  color: #fff;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.home-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 400;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}
.home-cta__text {
  margin: 0 0 1.25rem;
  max-width: 34rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.5;
}
.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.home-cta .btn--primary {
  background: #fff;
  color: #0A0A0A;
  border-color: #fff;
}
.home-cta .btn--primary:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.home-cta .btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.home-cta .btn--secondary:hover {
  background: #fff;
  color: #0A0A0A;
  border-color: #fff;
}

.blog-page__header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid #0A0A0A;
}
.blog-page__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}
.blog-page__lead {
  margin: 0;
  color: #6A6A6A;
  max-width: 36rem;
}
.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.blog-cats__link {
  padding: 0.45rem 0.75rem;
  border: 1px solid #0A0A0A;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0A0A0A;
}
.blog-cats__link.is-active,
.blog-cats__link:hover {
  background: #0A0A0A;
  color: #fff;
}

.blog-featured { margin-bottom: 1.5rem; }
.blog-hero {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid #0A0A0A;
  color: #fff;
  text-decoration: none;
  background: #0A0A0A;
  overflow: hidden;
}
@media (min-width: 900px) {
  .blog-hero { grid-template-columns: 1.2fr 0.8fr; min-height: 22rem; }
}
.blog-hero__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}
@media (min-width: 900px) {
  .blog-hero__media { aspect-ratio: auto; height: 100%; }
}
.blog-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  display: block;
}
.blog-hero__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 1.5rem 1.4rem;
}
.blog-hero__eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.blog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.blog-hero__excerpt {
  color: rgba(255,255,255,0.68);
  font-size: 0.95rem;
  line-height: 1.45;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 700px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #0A0A0A;
  background: #fff;
  color: #0A0A0A;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}
.blog-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid #0A0A0A;
  background: #111;
}
.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  display: block;
  transition: transform 0.5s ease, filter 0.35s ease;
}
.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem 1.15rem;
  flex: 1;
}
.blog-card__cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A8A8A;
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.blog-card__excerpt {
  font-size: 0.85rem;
  color: #5C5C5C;
  line-height: 1.4;
}
.blog-card:hover {
  background: #0A0A0A;
  color: #fff;
}
.blog-card:hover .blog-card__cat,
.blog-card:hover .blog-card__excerpt { color: rgba(255,255,255,0.62); }
.blog-card:hover .blog-card__media img {
  transform: scale(1.04);
  filter: none;
}

.blog-detail__header { margin-bottom: 1.5rem; max-width: 42rem; }
.blog-detail__cat {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A8A8A;
}
.blog-detail__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
}
.blog-detail__meta {
  margin: 0 0 1rem;
  color: #6A6A6A;
  font-size: 0.9rem;
}
.blog-detail__excerpt {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #3A3A3A;
}
.blog-detail__cover {
  margin: 0 0 2rem;
  border: 1px solid #0A0A0A;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}
.blog-detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none;
}
.blog-detail__body {
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid #0A0A0A;
  background: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}
.site-footer__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #0A0A0A;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-footer__tagline {
  margin: 0.65rem 0 0;
  color: #6A6A6A;
  font-size: 0.9rem;
  max-width: 16rem;
  line-height: 1.45;
}
.site-footer__heading {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0A0A0A;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.site-footer__col a {
  color: #5C5C5C;
  text-decoration: none;
  font-size: 0.9rem;
}
.site-footer__col a:hover { color: #0A0A0A; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #E6E6E2;
}
.site-footer__inner { display: none; }
