
/* === DESIGN SYSTEM — Mediterranean Warm Palette === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  --tomato: #c0452f;
  --tomato-dark: #93331f;
  --tomato-light: #e58a72;
  --tomato-soft: #fbeae4;
  --basil: #55705a;
  --basil-dark: #3c5240;
  --basil-light: #8ba887;
  --basil-soft: #eef3ea;
  --gold: #d9a441;
  --cream: #fdfaf4;
  --sand: #f4ecdd;
  --sand-dark: #efe4cf;
  --text: #3d2f24;
  --text-soft: #5a4a3c;
  --text-muted: #8a7a6a;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(61,47,36,0.08);
  --shadow-hover: 0 8px 30px rgba(61,47,36,0.14);
  --shadow-btn: 0 4px 14px rgba(192,69,47,0.3);
  --shadow-btn-hover: 0 6px 20px rgba(192,69,47,0.4);
  --radius: 16px;
  --radius-sm: 8px;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

/* === SELECTION === */
::selection { background: var(--tomato); color: white; }
::-moz-selection { background: var(--tomato); color: white; }

/* === FOCUS VISIBLE === */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* === TYPOGRAPHY === */
h1 { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; color: var(--text); font-weight: 700; letter-spacing: -0.02em; }
h1 i, h1 em { color: var(--tomato); font-style: italic; }
h2 { font-family: var(--font-heading); font-size: clamp(1.5rem, 3.5vw, 2.2rem); line-height: 1.25; color: var(--text); font-weight: 600; margin-bottom: 12px; letter-spacing: -0.015em; }
h2 i, h2 em { color: var(--tomato); font-style: italic; }
h3 { font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.35; color: var(--text); font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
h3 i, h3 em { color: var(--tomato); font-style: italic; }
p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 16px; color: var(--text-soft); }
a { color: var(--tomato); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; transition: color 0.2s; }
a:hover { color: var(--tomato-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === KICKER === */
.kicker {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 8px;
}

/* === SKIP LINK === */
.skip-link { position: absolute; top: -100px; left: 16px; background: var(--tomato); color: white; padding: 12px 24px; border-radius: var(--radius-sm); z-index: 1000; font-weight: 600; }
.skip-link:focus { top: 16px; }

/* === HEADER — Sticky glass effect === */
.header {
  background: rgba(253,250,244,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--tomato); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.logo:hover { color: var(--tomato-dark); }
.logo span { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; display: none; }
@media (min-width: 600px) { .logo span { display: inline; } }

.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  padding: 8px 16px; border-radius: 100px; font-size: 0.95rem; font-weight: 500;
  color: var(--text-soft); text-decoration: none; transition: all 0.2s;
}
.nav a:hover { background: var(--sand); color: var(--tomato); }
.nav .nav-cta { background: var(--tomato); color: white; }
.nav .nav-cta:hover { background: var(--tomato-dark); color: white; }

/* === HERO === */
.hero {
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(217,164,65,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 70% 60%, rgba(85,112,90,0.08) 0%, transparent 70%),
    linear-gradient(135deg, var(--cream) 0%, var(--sand) 100%);
  padding: 60px 24px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-emoji-strip {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 1.2rem;
  opacity: 0.25;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}
.hero h1 { margin-bottom: 16px; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 32px; color: var(--text-soft); }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* === BUTTONS — Pill style with colored shadow === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px; border-radius: 100px; font-size: 1.05rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer; transition: all 0.25s ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--tomato); color: white; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--tomato-dark); transform: translateY(-2px); box-shadow: var(--shadow-btn-hover); }
.btn-secondary { background: var(--white); color: var(--text); border: 2px solid var(--sand); }
.btn-secondary:hover { border-color: var(--tomato); color: var(--tomato); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-olive { background: var(--basil); color: white; box-shadow: 0 4px 14px rgba(85,112,90,0.3); }
.btn-olive:hover { background: var(--basil-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(85,112,90,0.4); }
.btn-large { padding: 18px 40px; font-size: 1.15rem; }

/* === SECTIONS === */
.section { padding: 60px 0; }
.section-alt { background: var(--white); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* === TODAY'S RECIPE CARD === */
.featured-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); max-width: 800px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  transition: all 0.3s ease;
}
.featured-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); background: var(--tomato-soft); }
.featured-card img { width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.featured-body .badge {
  display: inline-block; background: var(--basil-soft); color: var(--basil-dark); border: 1px solid var(--basil-light);
  padding: 4px 12px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; margin-bottom: 12px;
  align-self: flex-start;
}
.featured-body h3 { font-size: 1.4rem; margin-bottom: 8px; }
.featured-meta { display: flex; gap: 16px; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; flex-wrap: wrap; }
.featured-body p { font-size: 0.95rem; margin-bottom: 16px; }
.featured-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.featured-buttons .btn { padding: 12px 24px; font-size: 0.95rem; }

@media (max-width: 700px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card img { max-height: 280px; }
}

/* === CATEGORY GRID === */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat-card {
  background: var(--white); border: 1px solid var(--cream); border-radius: var(--radius-sm); padding: 20px 16px;
  text-align: center; text-decoration: none; color: var(--text);
  box-shadow: var(--shadow); transition: all 0.25s ease;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); color: var(--tomato); border-color: var(--tomato-light); background: var(--tomato-soft); }
.cat-card .icon { font-size: 2rem; }
.cat-card .label { font-size: 0.95rem; font-weight: 600; }

/* === RECIPE CARDS === */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.recipe-card {
  background: var(--white); border: 1px solid var(--cream); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.25s ease; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column;
}
.recipe-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); background: var(--tomato-soft); border-color: var(--tomato-light); }
.recipe-card img { width: 100%; height: 200px; object-fit: cover; }
.recipe-card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.recipe-card-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.recipe-card-body .meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.recipe-card-body p { font-size: 0.9rem; color: var(--text-soft); margin-bottom: auto; }

/* === ASK VITA SECTION — Gradient with radial gold halo === */
.ask-section {
  background:
    radial-gradient(ellipse 40% 50% at 50% 30%, rgba(217,164,65,0.15) 0%, transparent 70%),
    linear-gradient(135deg, var(--tomato) 0%, var(--tomato-dark) 100%);
  color: white; padding: 60px 24px; text-align: center;
}
.ask-section h2 { color: white; }
.ask-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 600px; margin: 0 auto 24px; }
.ask-section .btn { background: white; color: var(--tomato-dark); }
.ask-section .btn:hover { background: var(--tomato-soft); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

/* === TIPS === */
.tip-card {
  background: var(--white); border: 1px solid var(--cream); border-radius: var(--radius-sm); padding: 20px;
  box-shadow: var(--shadow); border-left: 4px solid var(--basil);
  margin-bottom: 12px;
  transition: all 0.25s ease;
}
.tip-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.tip-card h4 { font-size: 1.05rem; margin-bottom: 4px; color: var(--basil-dark); }
.tip-card p { font-size: 0.95rem; margin: 0; }

/* === EBOOK PROMO === */
.ebook-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  max-width: 900px; margin: 0 auto;
}
.ebook-cover {
  width: 100%; max-width: 350px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  transition: transform 0.4s ease;
  transform: rotate(-2deg);
}
.ebook-cover:hover { transform: rotate(0deg) scale(1.02); }
.ebook-info .price { font-size: 1.5rem; font-weight: 700; color: var(--tomato); margin-bottom: 8px; }
.ebook-info .promo {
  background: linear-gradient(135deg, var(--sand) 0%, var(--sand-dark) 100%);
  padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 1rem;
  border: 1px dashed var(--gold);
}
.ebook-info .promo code {
  font-size: 1.1rem; font-weight: 700; color: var(--tomato);
  background: var(--white); padding: 2px 10px; border-radius: 100px;
  display: inline-block;
}

@media (max-width: 700px) {
  .ebook-section { grid-template-columns: 1fr; text-align: center; }
  .ebook-cover { transform: none; }
  .ebook-cover:hover { transform: scale(1.02); }
}

/* === FOOTER — Warm dark gradient === */
.footer {
  background: linear-gradient(180deg, #2c211a 0%, #211812 100%);
  color: rgba(255,255,255,0.8); padding: 48px 24px 24px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
}
.footer h4 {
  color: var(--gold); font-size: 0.85rem; margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
  font-family: var(--font-body);
}
.footer a { color: rgba(255,255,255,0.7); text-decoration: none; display: block; margin-bottom: 6px; font-size: 0.9rem; transition: color 0.2s; }
.footer a:hover { color: var(--tomato-light); }
.footer-bottom { max-width: 1200px; margin: 32px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.4); }

/* === ACCESSIBILITY === */
.text-size-controls { display: flex; gap: 4px; align-items: center; }
.text-size-btn { padding: 4px 10px; border: 1px solid var(--sand); background: var(--white); border-radius: 4px; cursor: pointer; font-size: 0.85rem; }
.text-size-btn:hover { background: var(--sand); }
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; background: var(--tomato); color: white;
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1.2rem; box-shadow: var(--shadow-btn); z-index: 99;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--tomato-dark); transform: translateY(-2px); box-shadow: var(--shadow-btn-hover); }

/* === READER REQUEST CARD === */
.request-card {
  background: var(--white); border: 1px solid var(--cream); border-radius: var(--radius-sm); padding: 20px;
  box-shadow: var(--shadow); border-left: 4px solid var(--tomato-light);
  margin-bottom: 12px;
  transition: all 0.25s ease;
}
.request-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.request-card .question { font-style: italic; color: var(--text-soft); margin-bottom: 8px; }
.request-card .answer { font-size: 0.95rem; }
.request-card .author {
  font-size: 0.82rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .nav { width: 100%; overflow-x: auto; }
  .hero { padding: 40px 16px 50px; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-grid { grid-template-columns: 1fr; }
  .featured-buttons .btn { flex: 1; justify-content: center; }
}

/* === EBOOK PAGE — Volume cards === */
.volume-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; max-width: 900px; margin: 0 auto; }
.volume-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: all 0.3s ease; }
.volume-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.volume-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: center top; }
.volume-card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.volume-card-body h3 { font-size: 1.25rem; margin-bottom: 6px; }
.volume-card-body .vol-badge { display: inline-block; background: var(--tomato-soft); color: var(--tomato-dark); border: 1px solid var(--tomato-light); padding: 3px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; margin-bottom: 10px; align-self: flex-start; }
.volume-card-body .price { font-size: 1.4rem; font-weight: 700; color: var(--tomato); margin: 8px 0; }
.volume-card-body .price s { color: var(--text-muted); font-weight: 400; font-size: 1rem; margin-right: 8px; }
.volume-card-body p { font-size: 0.95rem; }
.volume-card-body .btn { margin-top: auto; justify-content: center; }
.sampler-box { max-width: 700px; margin: 40px auto 0; background: linear-gradient(135deg, var(--sand) 0%, var(--sand-dark) 100%); border: 2px dashed var(--gold); border-radius: var(--radius); padding: 32px; text-align: center; }
.sampler-box h3 { margin-bottom: 8px; }
.sampler-box p { font-size: 0.95rem; margin-bottom: 16px; }

/* === NEWSLETTER FORM === */
.newsletter-form { max-width: 560px; margin: 0 auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.newsletter-form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; color: var(--text-soft); }
.newsletter-form input[type=email], .newsletter-form input[type=text] { width: 100%; padding: 14px 16px; border: 2px solid var(--sand); border-radius: var(--radius-sm); font-size: 1rem; font-family: var(--font-body); margin-bottom: 16px; transition: border-color 0.2s; background: var(--cream); }
.newsletter-form input:focus { border-color: var(--tomato); outline: none; }
.newsletter-form .btn { width: 100%; justify-content: center; }
.newsletter-success { display: none; text-align: center; padding: 24px; color: var(--basil-dark); font-size: 1.05rem; }
.newsletter-form.sent .newsletter-fields { display: none; }
.newsletter-form.sent .newsletter-success { display: block; }
.page-hero { background: linear-gradient(135deg, var(--cream) 0%, var(--sand) 100%); padding: 50px 24px 40px; text-align: center; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { max-width: 600px; margin: 0 auto; }
.page-body { max-width: 720px; margin: 0 auto; padding: 40px 24px; }
.page-body h2 { margin-top: 32px; }
.prose { font-size: 1.02rem; line-height: 1.75; color: var(--text-soft); }
.prose p { margin-bottom: 16px; }
