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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #3E2723;
  background-color: #FFF8F0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Container === */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Typography === */
h1, h2, h3, h4 {
  line-height: 1.3;
  color: #5D4037;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #D4A373;
  margin-top: 0.5rem;
  border-radius: 2px;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #5D4037;
}

/* === Header === */
.site-header {
  background: #FFFFFF;
  border-bottom: 2px solid #F0E0D0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(139, 94, 60, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #5D4037;
  font-weight: 700;
  font-size: 1.3rem;
}

.logo-text {
  letter-spacing: -0.01em;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

.main-nav a {
  text-decoration: none;
  color: #5D4037;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #D4A373;
  border-bottom-color: #D4A373;
  outline: none;
}

/* === Hero === */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #FFF8F0 0%, #F5E6D3 100%);
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1 1 400px;
}

.hero-visual {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.highlight {
  color: #D4A373;
  background: linear-gradient(180deg, transparent 60%, rgba(212, 163, 115, 0.2) 60%);
  padding: 0 0.1em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #6D4C41;
  margin: 1.2rem 0 0.8rem;
  max-width: 550px;
}

.hero-description {
  font-size: 0.95rem;
  color: #5D4037;
  margin-bottom: 1.8rem;
  max-width: 550px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  background: #D4A373;
  color: #FFFFFF;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(212, 163, 115, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #C18E5A;
  transform: translateY(-2px);
  outline: none;
}

/* === Recipes Section === */
.recipes-section {
  padding: 3.5rem 0;
  background: #FFFFFF;
}

.section-intro {
  color: #6D4C41;
  margin-bottom: 2rem;
  max-width: 650px;
  font-size: 1rem;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.recipe-card {
  background: #FFF8F0;
  border: 1px solid #F0E0D0;
  border-radius: 16px;
  padding: 1.5rem;
  transition: box-shadow 0.25s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
}

.recipe-card:hover {
  box-shadow: 0 8px 24px rgba(139, 94, 60, 0.12);
  transform: translateY(-3px);
}

.recipe-card.completed {
  opacity: 0.7;
  background: #F5F0EB;
  border-color: #D4A373;
}

.recipe-card.completed .recipe-title {
  text-decoration: line-through;
  color: #8B5E3C;
}

.recipe-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.recipe-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #5D4037;
  margin: 0;
}

.recipe-time {
  font-size: 0.85rem;
  color: #8B5E3C;
  background: #F5E6D3;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 500;
}

.recipe-desc {
  font-size: 0.9rem;
  color: #6D4C41;
  line-height: 1.5;
}

.recipe-ingredients {
  font-size: 0.85rem;
  color: #5D4037;
  background: #FFFFFF;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px dashed #D4A373;
}

.recipe-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-top: auto;
}

.btn-check {
  background: #FFFFFF;
  border: 2px solid #D4A373;
  color: #D4A373;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-check:hover {
  background: #D4A373;
  color: #FFFFFF;
}

.btn-check.checked {
  background: #D4A373;
  color: #FFFFFF;
}

.btn-timer {
  background: transparent;
  border: 2px solid #8B5E3C;
  color: #8B5E3C;
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
}

.btn-timer:hover {
  background: #8B5E3C;
  color: #FFFFFF;
}

.btn-timer.active {
  background: #8B5E3C;
  color: #FFFFFF;
  animation: pulse 1.2s infinite;
}

.timer-display {
  font-size: 0.9rem;
  font-weight: 700;
  color: #8B5E3C;
  min-width: 45px;
  text-align: center;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* === Progress === */
.progress-summary {
  text-align: center;
  padding: 1.2rem;
  background: #FFF8F0;
  border-radius: 12px;
  border: 1px solid #F0E0D0;
}

.progress-summary p {
  font-weight: 600;
  color: #5D4037;
  margin-bottom: 0.5rem;
}

.progress-bar {
  width: 100%;
  max-width: 400px;
  height: 12px;
  background: #F0E0D0;
  border-radius: 20px;
  margin: 0 auto;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #D4A373, #C18E5A);
  border-radius: 20px;
  transition: width 0.4s ease;
}

/* === How It Works === */
.how-section {
  padding: 3.5rem 0;
  background: #F5E6D3;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step {
  background: #FFFFFF;
  padding: 1.8rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(139, 94, 60, 0.06);
}

.step-icon {
  margin-bottom: 1rem;
}

.step h3 {
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.9rem;
  color: #6D4C41;
}

/* === Tips === */
.tips-section {
  padding: 3.5rem 0;
  background: #FFFFFF;
}

.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
}

.tips-list li {
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  background: #FFF8F0;
  border-radius: 12px;
  position: relative;
  font-size: 0.95rem;
  color: #5D4037;
  border-left: 4px solid #D4A373;
}

.tips-list li::before {
  content: '🥖';
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  font-size: 0.9rem;
}

/* === Footer === */
.site-footer {
  background: #3E2723;
  color: #F5E6D3;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-content p {
  font-size: 0.9rem;
}

.footer-content ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-content a {
  color: #D4A373;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-content a:hover {
  color: #FFFFFF;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .hero-visual svg {
    width: 200px;
    height: 200px;
  }
  
  .hero-subtitle,
  .hero-description {
    max-width: 100%;
  }
  
  .recipe-grid {
    grid-template-columns: 1fr;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .main-nav ul {
    gap: 1rem;
  }
  
  .site-header .container {
    height: auto;
    padding: 0.8rem 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    padding: 2.5rem 0 2rem;
  }
  
  .recipe-actions {
    flex-wrap: wrap;
  }
  
  .btn-timer,
  .btn-check {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* === Accessibility === */
:focus-visible {
  outline: 3px solid #D4A373;
  outline-offset: 2px;
}

/* === Print === */
@media print {
  .site-header,
  .site-footer,
  .btn-timer,
  .btn-check {
    display: none;
  }
  
  .recipe-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.site-utility-links {
  width: min(900px, calc(100% - 32px));
  margin: 32px auto;
  padding-top: 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(127, 127, 127, 0.25);
  font-size: 0.9rem;
}

.site-utility-links a {
  color: inherit;
  opacity: 0.75;
}
