.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  position: relative;
}

/* Desktop: sidebar + main */
@media (min-width: 768px) {
  .sidebar-layout {
    grid-template-columns: 240px 1fr;
    grid-template-rows: 1fr;
  }
}

/* Hamburger button - mobile only */
.sidebar-hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001;
}

@media (min-width: 768px) {
  .sidebar-hamburger {
    display: none;
  }
}

.sidebar-hamburger span {
  width: 28px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 1px;
  transition: all 300ms ease;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 998;
}

@media (max-width: 767px) {
  .sidebar-overlay {
    display: block;
  }
}

/* Sidebar navigation */
.sidebar {
  background: linear-gradient(135deg, rgba(81, 53, 31, 0.96), rgba(109, 76, 49, 0.92));
  border-right: 1px solid rgba(86, 56, 32, 0.3);
  padding: 28px 0;
  min-height: 100vh;
  overflow-y: auto;
  position: fixed;
  left: 0;
  top: 0;
  width: 240px;
  height: 100vh;
  z-index: 999;
  transition: transform 300ms ease;
}

/* Mobile: sidebar slides in from left */
@media (max-width: 767px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }
}

/* Desktop: sidebar always visible */
@media (min-width: 768px) {
  .sidebar {
    position: relative;
    width: auto;
    height: auto;
    transform: none;
  }
}

/* Main content area */
.sidebar-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px;
  width: 100%;
  position: relative;
  background:
    radial-gradient(circle at top right,
      rgba(109, 76, 49, 0.04) 0%,
      transparent 40%),
    radial-gradient(circle at bottom left,
      rgba(109, 76, 49, 0.04) 0%,
      transparent 45%),
    radial-gradient(circle at top left,
      rgba(93, 61, 39, 0.02) 0%,
      transparent 35%);
}

@media (min-width: 768px) {
  .sidebar-main {
    padding: 28px 30px 56px;
    max-width: none;
    margin: 0;
    background:
      radial-gradient(circle at top right,
        rgba(109, 76, 49, 0.06) 0%,
        transparent 50%),
      radial-gradient(circle at bottom left,
        rgba(109, 76, 49, 0.05) 0%,
        transparent 55%),
      radial-gradient(circle at top left,
        rgba(93, 61, 39, 0.03) 0%,
        transparent 40%);
  }
}

/* Ensure main content doesn't hide under fixed sidebar on mobile */
@media (max-width: 767px) {
  .sidebar-main {
    padding-top: 80px;
    padding-bottom: 30px;
  }
}.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 12px;
  margin: 16px 12px;
  border: 1px solid rgba(255, 248, 232, 0.2);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 248, 232, 0.08);
  transition: all 200ms ease;
}

.search-bar.active {
  background-color: rgba(255, 248, 232, 0.15);
  border-color: rgba(255, 248, 232, 0.35);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 0;
  color: var(--paper-soft);
  font-size: 0.9375rem;
  outline: none;
}

.search-input::placeholder {
  color: rgba(255, 248, 232, 0.5);
}

.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  opacity: 0.7;
  margin-right: 6px;
  flex-shrink: 0;
}

.search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  color: rgba(255, 248, 232, 0.6);
  cursor: pointer;
  transition: color 200ms ease;
}

.search-clear:hover {
  color: var(--paper-soft);
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .search-bar {
    margin: 16px 12px 12px;
  }
}.sidebar-nav {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--paper-soft);
  padding-top: 20px;
}

/* Logo section */
.sidebar-logo {
  padding: 0 20px 28px;
  border-bottom: 1px solid rgba(255, 248, 232, 0.1);
}

.sidebar-logo h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper-soft);
  line-height: 1.3;
}

/* Navigation sections */
.nav-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px;
}

.nav-section-user {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 248, 232, 0.1);
}

/* Navigation items */
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--paper-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: all 200ms ease;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.nav-item:hover {
  background-color: rgba(255, 248, 232, 0.12);
  color: var(--paper);
}

.nav-item.active {
  background-color: rgba(255, 248, 232, 0.2);
  color: var(--paper);
  font-weight: 600;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Login button styling */
.nav-item-login {
  background-color: rgba(214, 181, 136, 0.2);
  color: var(--tan);
  font-weight: 600;
}

.nav-item-login:hover {
  background-color: rgba(214, 181, 136, 0.3);
  color: var(--tan);
}

/* User info section */
.nav-user-info {
  padding: 12px 0;
}

.nav-user-name {
  font-size: 0.8125rem;
  color: rgba(255, 248, 232, 0.7);
  padding: 0 16px 8px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.nav-button {
  margin-top: 8px;
  background-color: rgba(214, 181, 136, 0.15);
}

.nav-button:hover {
  background-color: rgba(214, 181, 136, 0.25);
}

/* Divider */
.nav-divider {
  height: 1px;
  background-color: rgba(255, 248, 232, 0.1);
  margin: 8px 0;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  .sidebar-nav {
    width: 240px;
  }

  .sidebar-logo {
    padding-top: 60px;
  }
}.form-feedback {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-base);
  border-radius: var(--radius-sm);
  border: 1px solid;
  margin: var(--space-md) 0;
  animation: slideIn 200ms ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-feedback-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form-feedback-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.form-feedback-message {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.5;
}

.form-feedback-details {
  margin-left: 28px;
  font-size: var(--text-xs);
  line-height: 1.6;
  opacity: 0.85;
}

.form-feedback-error {
  background: rgba(133, 43, 30, 0.08);
  border-color: rgba(133, 43, 30, 0.22);
  color: #8a2e24;
}

.form-feedback-success {
  background: rgba(83, 101, 53, 0.08);
  border-color: rgba(83, 101, 53, 0.22);
  color: #526335;
}

.form-feedback-info {
  background: rgba(109, 76, 49, 0.08);
  border-color: rgba(109, 76, 49, 0.22);
  color: var(--brown);
}

.form-feedback-warning {
  background: rgba(214, 159, 27, 0.1);
  border-color: rgba(214, 159, 27, 0.25);
  color: #cc8f00;
}/* Hero Section */
.home-hero {
  position: relative;
  margin: calc(var(--space-3xl) * -1) calc(var(--space-3xl) * -1) 0;
  padding: var(--space-3xl) calc(var(--space-3xl) + 28px);
  background:
    radial-gradient(circle at 30% 50%,
      rgba(109, 76, 49, 0.12) 0%,
      rgba(109, 76, 49, 0.06) 35%,
      transparent 70%),
    radial-gradient(circle at 100% 0%,
      rgba(93, 61, 39, 0.08) 0%,
      transparent 50%),
    radial-gradient(circle at 0% 100%,
      rgba(74, 48, 29, 0.08) 0%,
      transparent 50%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(255, 248, 232, 0.05) 0%,
      transparent 60%);
  pointer-events: none;
}

.home-hero-content {
  position: relative;
  max-width: 720px;
  margin: 0;
}

.home-eyebrow {
  margin: 0 0 var(--space-base) 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--text-sm);
  color: var(--tan-deep);
  font-weight: 600;
}

.home-title {
  margin: 0 0 var(--space-lg) 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 700;
}

.home-subtitle {
  margin: 0 0 var(--space-xl) 0;
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 600px;
}

/* Section Styling */
.home-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-2xl);
  background:
    radial-gradient(circle at center,
      rgba(109, 76, 49, 0.04) 0%,
      transparent 60%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(109, 76, 49, 0.08);
}

.home-section-content {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-base);
}

.home-section-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(214, 181, 136, 0.2), rgba(214, 181, 136, 0.1));
  border-radius: var(--radius-md);
  color: var(--tan-deep);
  flex-shrink: 0;
}

.home-section h2 {
  margin: 0 0 var(--space-md) 0;
  font-size: var(--text-3xl);
  line-height: 1.2;
  color: var(--brown-deep);
}

.home-section p {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink-soft);
}

.home-section-note {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--ink-soft);
  opacity: 0.8;
}

/* Features Section */
.home-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
}

.home-feature-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-2xl);
  background: linear-gradient(135deg,
      rgba(255, 251, 243, 0.88) 0%,
      rgba(245, 232, 209, 0.88) 100%);
  border: 1px solid rgba(109, 76, 49, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(74, 48, 29, 0.08);
  transition: all 200ms ease;
  text-align: center;
}

.home-feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(74, 48, 29, 0.12);
  border-color: rgba(109, 76, 49, 0.2);
}

.feature-icon {
  font-size: 2.5rem;
  line-height: 1;
  text-align: center;
}

.home-feature-item h3 {
  margin: 0 0 var(--space-sm) 0;
  font-size: var(--text-xl);
  color: var(--brown-deep);
  font-weight: 600;
}

.home-feature-item p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--ink-soft);
}

.feature-link {
  display: inline-flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-base);
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--brown);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: all 160ms ease;
  border: 1px solid rgba(109, 76, 49, 0.2);
}

.feature-link:hover {
  background: rgba(109, 76, 49, 0.08);
  border-color: rgba(109, 76, 49, 0.35);
  color: var(--brown-deep);
}

/* Responsive Design */
@media (max-width: 767px) {
  .home-hero {
    margin: calc(var(--space-2xl) * -1) calc(var(--space-lg) * -1) 0;
    padding: var(--space-2xl) var(--space-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .home-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .home-subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-lg);
  }

  .home-actions {
    flex-direction: column;
  }

  .home-actions .button {
    width: 100%;
  }

  .home-section {
    padding: var(--space-2xl) var(--space-lg);
  }

  .home-features {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .home-hero {
    padding: var(--space-2xl) var(--space-base);
    margin-left: calc(var(--space-base) * -1);
    margin-right: calc(var(--space-base) * -1);
  }

  .home-eyebrow {
    font-size: var(--text-xs);
  }

  .home-title {
    font-size: 1.5rem;
  }

  .home-subtitle {
    font-size: var(--text-sm);
  }

  .home-feature-item {
    padding: var(--space-lg);
  }

  .feature-icon {
    font-size: 2rem;
  }

  .home-feature-item h3 {
    font-size: var(--text-lg);
  }

  .home-feature-item p {
    font-size: var(--text-xs);
  }
}.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  gap: var(--space-md);
  min-height: 200px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--paper-deep);
  border-top-color: var(--brown);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-message {
  font-size: var(--text-base);
  color: var(--ink-soft);
  margin: 0;
}.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  background: var(--paper-soft);
  border-radius: var(--radius-md);
  min-height: 200px;
  gap: var(--space-md);
}

.empty-state-icon {
  font-size: 3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: var(--tan);
}

.empty-state-title {
  font-size: var(--text-lg);
  color: var(--ink);
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
}

.empty-state-description {
  font-size: var(--text-base);
  color: var(--ink-soft);
  margin: 0;
  max-width: 320px;
}

.empty-state-action {
  margin-top: var(--space-sm);
}/* Recipe Detail Page Styling */

.recipe-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: 1200px;
}

@media (max-width: 900px) {
  .recipe-detail-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* Hero Section with Image */
.recipe-hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.recipe-hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(109, 76, 49, 0.12);
  background: linear-gradient(135deg, rgba(255, 248, 237, 0.8), rgba(245, 235, 216, 0.8));
}

@media (max-width: 900px) {
  .recipe-hero-image {
    max-height: 400px;
    aspect-ratio: auto;
  }
}

.recipe-header-title {
  margin: 0;
  font-size: var(--text-3xl);
  line-height: 1.2;
  color: var(--ink);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.recipe-favorite-button {
  appearance: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  margin: -4px -8px;
  border-radius: var(--radius-sm);
  transition: all 160ms ease;
  display: flex;
  align-items: center;
}

.recipe-favorite-button:hover {
  background: rgba(109, 76, 49, 0.08);
}

.recipe-favorite-button.active {
  color: #d63031;
}

/* Meta Information Grid */
.recipe-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-md);
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(255, 251, 243, 0.88) 0%, rgba(245, 232, 209, 0.88) 100%);
  border: 1px solid rgba(109, 76, 49, 0.12);
  border-radius: var(--radius-md);
}

.recipe-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
}

.recipe-meta-label {
  font-size: var(--text-xs);
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.recipe-meta-value {
  font-size: var(--text-lg);
  color: var(--brown-deep);
  font-weight: 600;
}

.recipe-meta-icon {
  width: 20px;
  height: 20px;
  color: var(--tan-deep);
  flex-shrink: 0;
}

/* Main Content Column */
.recipe-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Sections */
.recipe-section {
  padding: var(--space-lg);
  background: rgba(255, 252, 245, 0.76);
  border: 1px solid rgba(109, 76, 49, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.recipe-section h3 {
  margin: 0 0 var(--space-md) 0;
  font-size: var(--text-xl);
  color: var(--brown-deep);
  font-weight: 600;
}

/* Ingredients & Instructions */
.recipe-ingredients,
.recipe-instructions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ingredients-list,
.instructions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.ingredients-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(109, 76, 49, 0.08);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink-soft);
}

.ingredients-list li:last-child {
  border-bottom: none;
}

.instructions-list {
  counter-reset: step-counter;
}

.instructions-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 32px;
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink-soft);
}

.instructions-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--tan), var(--tan-deep));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
}

/* Attribution & Notes */
.recipe-attribution {
  padding: var(--space-lg);
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.6), rgba(245, 232, 209, 0.6));
  border: 1px dashed rgba(109, 76, 49, 0.22);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-base);
}

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

.attribution-label {
  font-size: var(--text-xs);
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.attribution-value {
  font-size: var(--text-base);
  color: var(--ink);
  font-weight: 500;
}

.attribution-link {
  color: var(--brown);
  text-decoration: none;
  border-bottom: 1px solid rgba(109, 76, 49, 0.3);
  transition: color 160ms ease;
}

.attribution-link:hover {
  color: var(--brown-deep);
  border-bottom-color: var(--brown-deep);
}

/* Notes from the Original */
.recipe-notes {
  padding: var(--space-lg);
  background: rgba(245, 232, 209, 0.4);
  border: 1px solid rgba(109, 76, 49, 0.12);
  border-radius: var(--radius-md);
  font-style: italic;
  line-height: 1.8;
  color: var(--ink-soft);
}

.recipe-notes-quote {
  margin: var(--space-md) 0 0 0;
  text-align: right;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  font-weight: 500;
}

/* Tags & Status */
.recipe-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding: var(--space-lg);
  background: rgba(255, 252, 245, 0.5);
  border-radius: var(--radius-md);
}

.recipe-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-base);
  background: linear-gradient(135deg, rgba(214, 181, 136, 0.28), rgba(214, 181, 136, 0.16));
  border: 1px solid rgba(109, 76, 49, 0.16);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--brown-deep);
  font-weight: 500;
}

/* Actions */
.recipe-actions {
  display: flex;
  gap: var(--space-base);
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .recipe-actions {
    flex-direction: column;
  }

  .recipe-actions .button {
    width: 100%;
  }
}

/* Ratings & Comments */
.recipe-ratings-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(109, 76, 49, 0.08);
}

.rating-average {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--brown-deep);
  min-width: 60px;
  text-align: center;
}

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

.rating-meta p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.rating-controls {
  display: flex;
  gap: var(--space-base);
  align-items: center;
  flex-wrap: wrap;
}

.rating-select {
  padding: var(--space-sm) var(--space-base);
  border: 1px solid rgba(109, 76, 49, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(255, 251, 243, 0.82);
  color: var(--ink);
  font-size: var(--text-sm);
  cursor: pointer;
}

/* Comments */
.comments-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.comment-item {
  padding: var(--space-md);
  background: rgba(255, 251, 243, 0.5);
  border: 1px solid rgba(109, 76, 49, 0.08);
  border-radius: var(--radius-sm);
}

.comment-author-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-sm);
}

.comment-author-name {
  font-weight: 600;
  color: var(--brown-deep);
  font-size: var(--text-base);
}

.comment-date {
  font-size: var(--text-xs);
  color: var(--ink-soft);
}

.comment-body {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--ink-soft);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(109, 76, 49, 0.08);
}

.comment-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Variations */
.variations-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.variation-item {
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(255, 251, 243, 0.88), rgba(245, 232, 209, 0.88));
  border: 1px solid rgba(109, 76, 49, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
  transition: all 160ms ease;
}

.variation-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(74, 48, 29, 0.1);
}

.variation-content {
  flex: 1;
}

.variation-title {
  margin: 0 0 var(--space-xs) 0;
  font-size: var(--text-base);
  color: var(--brown-deep);
  font-weight: 600;
}

.variation-description {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .recipe-detail-container {
    grid-template-columns: 1fr;
  }

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

  .recipe-section h3 {
    font-size: var(--text-lg);
  }

  .recipe-meta-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
}

@media (max-width: 480px) {
  .recipe-header-title {
    font-size: var(--text-2xl);
    gap: var(--space-sm);
  }

  .recipe-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    padding: var(--space-base);
  }

  .recipe-meta-label {
    font-size: var(--text-xs);
  }

  .recipe-meta-value {
    font-size: var(--text-base);
  }

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

  .rating-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .rating-average {
    min-width: auto;
    text-align: left;
  }

  .recipe-actions {
    flex-direction: column;
  }

  .recipe-actions .button {
    width: 100%;
  }

  .variation-item {
    flex-direction: column;
    gap: var(--space-md);
  }
}
:root {
  color-scheme: light;
  --paper: #f5ebd8;
  --paper-deep: #ead9bf;
  --paper-soft: #fbf5e9;
  --ink: #4b3523;
  --ink-soft: #7a5a42;
  --line: rgba(112, 79, 46, 0.18);
  --tan: #d6b588;
  --tan-deep: #bc9261;
  --brown: #6d4c31;
  --brown-deep: #4a301d;
  --shadow: 0 20px 55px rgba(74, 48, 29, 0.16);
  --shadow-soft: 0 10px 24px rgba(74, 48, 29, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-base: 16px;
  --space-lg: 24px;
  --space-xl: 28px;
  --space-2xl: 32px;
  --space-3xl: 42px;

  /* Typography scale */
  --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: 1.875rem;
  --text-4xl: 2.25rem;

  /* Font families */
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;

  font-family: var(--font-serif);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 252, 245, 0.88), transparent 30%),
    radial-gradient(circle at top right, rgba(202, 159, 106, 0.18), transparent 22%),
    linear-gradient(180deg, #f7f0e4 0%, #e6d0b0 100%);
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: #f1e2c8;
  background-image:
    linear-gradient(rgba(110, 78, 48, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 78, 48, 0.04) 1px, transparent 1px),
    radial-gradient(circle at top, rgba(255, 248, 232, 0.9), rgba(230, 208, 176, 0.92));
  background-size: 24px 24px, 24px 24px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(88, 56, 29, 0.07), transparent 14%, transparent 86%, rgba(88, 56, 29, 0.07)),
    radial-gradient(circle at center, transparent 55%, rgba(88, 56, 29, 0.05));
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Page title section - for individual pages */
.page-title {
  margin: 0 0 28px;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.page-subtitle {
  margin: 8px 0 0;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  font-weight: 400;
}

/* Page header component */
.page-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

@media (max-width: 767px) {
  .page-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.page-header-content {
  display: flex;
  flex-direction: column;
}

.page-header-content .page-title {
  margin: 0;
}

.page-header-content .page-subtitle {
  margin: 8px 0 0;
}

.page-description {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.page-header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 767px) {
  .page-header-actions {
    justify-content: flex-start;
    width: 100%;
  }
}

/* Home page styles */
.home-page {
  display: grid;
  gap: var(--space-3xl);
}

.home-actions {
  display: flex;
  gap: var(--space-base);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--tan-deep);
}

.subtle-eyebrow {
  margin-top: 18px;
}


.hero-card,
.page-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 251, 243, 0.92), rgba(244, 232, 209, 0.98)),
    linear-gradient(90deg, rgba(131, 91, 53, 0.05), transparent 8%);
  box-shadow: var(--shadow);
}

.hero-card::after,
.page-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 22%);
}

.hero-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 42px;
}

@media (min-width: 900px) {
  .hero-card {
    grid-template-columns: 1.65fr 1fr;
  }
}

.hero-copy h2,
.page-card h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  color: var(--brown-deep);
}

.hero-copy p,
.section-lead,
.recipe-card p,
.sub-card p,
.list-card p {
  color: var(--ink-soft);
}

.section-lead {
  margin-top: 12px;
  font-size: 1.02rem;
  line-height: 1.7;
}

.compact-lead {
  margin-bottom: 10px;
}

.hero-actions,
.button-row,
.inline-form,
.section-header {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 24px;
}

.hero-note {
  align-self: end;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(117, 77, 45, 0.08), rgba(255, 250, 242, 0.52));
  border: 1px dashed rgba(117, 77, 45, 0.22);
}

.hero-note h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--brown);
}

.button {
  appearance: none;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 48, 29, 0.15);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled,
.segment:disabled,
.nav-button:disabled,
.nav-link:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button-primary {
  background: linear-gradient(180deg, #7d5839, #5d3d27);
  color: var(--paper-soft);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}

.button-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #8b6344, #6b4530);
}

.button-secondary {
  background: rgba(255, 248, 237, 0.72);
  border-color: rgba(109, 76, 49, 0.22);
  color: var(--brown-deep);
}

.button-secondary:hover:not(:disabled) {
  background: rgba(255, 248, 237, 0.95);
  border-color: rgba(109, 76, 49, 0.35);
}

.auth-card,
.editor-card {
  padding: 34px;
}

.recipe-list-card {
  padding: 34px;
}

.jobs-card {
  padding: 34px;
}

.recipe-detail-card {
  padding: 34px;
}

.page-card-centered {
  padding: 32px;
  text-align: center;
}

.segmented-control {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin: 18px 0 20px;
  border-radius: 999px;
  background: rgba(125, 88, 57, 0.08);
}

.segment {
  appearance: none;
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--brown);
}

.segment-active {
  background: linear-gradient(180deg, #fff8ef, #f0dec1);
  box-shadow: inset 0 0 0 1px rgba(109, 76, 49, 0.14);
}

.form-grid {
  display: grid;
  gap: var(--space-lg);
}

.auth-form {
  max-width: 420px;
}

.editor-form {
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 900px) {
  .editor-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field-span-full {
  grid-column: 1 / -1;
}

/* Form Section Wrapper */
.form-section {
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(255, 251, 243, 0.88) 0%, rgba(245, 232, 209, 0.88) 100%);
  border: 1px solid rgba(109, 76, 49, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-section-title {
  margin: 0 0 var(--space-base) 0;
  font-size: var(--text-xl);
  color: var(--brown-deep);
  font-weight: 600;
  border-bottom: 2px solid rgba(109, 76, 49, 0.08);
  padding-bottom: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.field-label {
  display: block;
  font-size: var(--text-base);
  color: var(--brown-deep);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.field-label.required::after {
  content: "*";
  color: #d63031;
  font-weight: 700;
  margin-left: 2px;
}

.field-label > input,
.field-label > select,
.field-label > textarea {
  display: block;
  margin-top: var(--space-xs);
}

.field-label > p {
  margin-top: var(--space-xs);
  margin-bottom: 0;
}

.field-hint {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  font-weight: 400;
  line-height: 1.5;
}

.field-input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(109, 76, 49, 0.22);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-base);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 251, 243, 0.92) 100%);
  color: var(--ink);
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.04),
    0 2px 4px rgba(74, 48, 29, 0.08);
  transition: all 160ms ease;
  font-size: var(--text-base);
  line-height: 1.5;
}

.field-input::placeholder {
  color: rgba(123, 90, 66, 0.5);
  opacity: 1;
}

.field-input:hover:not(:disabled) {
  border-color: rgba(109, 76, 49, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 251, 243, 0.96) 100%);
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 8px rgba(74, 48, 29, 0.1);
}

.field-input:focus {
  outline: none;
  border-color: rgba(188, 146, 97, 0.8);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.04),
    0 0 0 3px rgba(188, 146, 97, 0.15),
    0 4px 12px rgba(74, 48, 29, 0.12);
}

.field-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(245, 232, 209, 0.6);
}

.field-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-serif);
  line-height: 1.7;
}

.field-textarea:focus {
  min-height: 140px;
}

.field-select {
  padding-right: 36px;
  appearance: none;
  background-color: rgba(255, 255, 255, 0.96);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236d4c31' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  background-attachment: local;
  cursor: pointer;
}

.field-select:hover:not(:disabled) {
  background-color: rgba(255, 251, 243, 0.98);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a301d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
}

.file-input {
  padding: var(--space-md) var(--space-base);
  cursor: pointer;
}

.file-input-wrapper {
  position: relative;
  display: inline-block;
}

.file-input::file-selector-button {
  padding: var(--space-sm) var(--space-base);
  background: linear-gradient(135deg, var(--tan-deep), var(--tan));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all 160ms ease;
  margin-right: var(--space-base);
}

.file-input::file-selector-button:hover {
  background: linear-gradient(135deg, var(--brown-deep), var(--brown));
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(74, 48, 29, 0.15);
}

/* Form Error State */
.field-input.error,
.field-textarea.error,
.field-select.error {
  border-color: #d63031;
  background: linear-gradient(180deg, rgba(255, 245, 245, 0.96) 0%, rgba(255, 240, 240, 0.92) 100%);
}

.field-error {
  margin: 0;
  font-size: var(--text-sm);
  color: #d63031;
  font-weight: 500;
}

/* Form Row with Multiple Fields */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
}

@media (max-width: 900px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Form Actions/Buttons Row */
.form-actions {
  display: flex;
  gap: var(--space-base);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(109, 76, 49, 0.08);
}

@media (max-width: 767px) {
  .form-actions {
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }
}

.feedback {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
}

.feedback-error {
  background: rgba(133, 43, 30, 0.1);
  color: #8a2e24;
}

.feedback-success {
  background: rgba(83, 101, 53, 0.12);
  color: #526335;
}

.section-header {
  justify-content: space-between;
  margin-bottom: 20px;
}

.recipe-grid,
.stack-list,
.notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

@media (min-width: 900px) {
  .recipe-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.recipe-card,
.list-card,
.sub-card,
.uploader-fieldset {
  border: 1px solid rgba(109, 76, 49, 0.16);
  border-radius: 22px;
  background: rgba(255, 252, 245, 0.76);
  box-shadow: var(--shadow-soft);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.recipe-card:hover,
.list-card:hover,
.sub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(74, 48, 29, 0.12);
  border-color: rgba(109, 76, 49, 0.25);
}

.recipe-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.recipe-card-image {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(109, 76, 49, 0.16);
  background: linear-gradient(135deg, rgba(255, 248, 237, 0.8), rgba(245, 235, 216, 0.8));
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.recipe-card:hover .recipe-card-image {
  transform: scale(1.02);
}

.recipe-card h3,
.recipe-card p {
  margin-top: 0;
}

.recipe-link {
  color: var(--brown-deep);
}

.recipe-link:hover {
  text-decoration: underline;
  text-decoration-color: rgba(93, 61, 39, 0.45);
}

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

.compact-stack {
  margin-top: 8px;
}

.list-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
}

.list-card h3,
.recipe-card h3,
.sub-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--brown-deep);
}

.compact-card {
  align-items: center;
}

.recipe-detail-card {
  padding: 34px;
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 24px;
}

.chip,
.autosave-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(214, 181, 136, 0.28), rgba(214, 181, 136, 0.16));
  border: 1px solid rgba(109, 76, 49, 0.16);
  color: var(--brown-deep);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 200ms ease;
  white-space: nowrap;
}

.chip:hover {
  background: linear-gradient(135deg, rgba(214, 181, 136, 0.36), rgba(214, 181, 136, 0.24));
  border-color: rgba(109, 76, 49, 0.25);
}

.autosave-badge {
  background: linear-gradient(135deg, rgba(83, 101, 53, 0.12), rgba(83, 101, 53, 0.08));
  border-color: rgba(83, 101, 53, 0.2);
  color: #526335;
}

.recipe-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.sub-card {
  padding: 22px;
}

.detail-section {
  margin-top: 18px;
}

.notes-list {
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
}

.ordered-list {
  list-style: decimal;
  padding-left: 18px;
}

.comment-author {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--brown);
}

.uploader-fieldset {
  padding: 20px;
}

.uploader-fieldset legend {
  padding: 0 10px;
  color: var(--brown);
  font-weight: 700;
}

.create-options-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
}

.create-editor-form {
  margin: 0;
}

.parser-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

@media (max-width: 900px) {

  .site-header,
  .hero-card,
  .recipe-columns,
  .editor-form,
  .create-options-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
  }

  .section-header,
  .list-card {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding-inline: 14px;
  }

  .site-header,
  .hero-card,
  .page-card,
  .auth-card,
  .editor-card,
  .recipe-detail-card {
    padding: 22px;
  }

  .site-title,
  .hero-copy h2,
  .page-card h2 {
    font-size: 1.9rem;
  }
}