
:root {
  --bg: #F5EFE7;
  --text: #2B2B2B;
  --green: #2F4F3E;
  --accent: #A44A3F;
  --border: #E2D8CC;
  --shadow-soft: 0 10px 24px rgba(43, 43, 43, 0.08);
  --shadow-faint: 0 4px 12px rgba(43, 43, 43, 0.05);

  --serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.5rem;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--green);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

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

a:hover,
a:focus-visible {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 5 / 4;
  border-radius: 12px;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: var(--space-2) var(--space-3);
  background: var(--green);
  color: var(--bg);
  border-radius: var(--radius);
  z-index: 10;
}

.skip-link:focus-visible {
  left: var(--space-3);
  top: var(--space-3);
  outline: 2px solid var(--accent);
}

.site-header {
  background: rgba(245, 239, 231, 0.94);
  position: sticky;
  top: 0;
  z-index: 8;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}


.nav {
  font-weight: 500;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  gap: 0.2em;
}

.nav-logo span {
  color: var(--green);
}


.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  padding: 0.35rem 0.25rem;
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 1px;
  background: currentColor;
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--green);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: var(--green);
  color: var(--bg);
  border: none;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  font-weight: 500;
  margin-left: var(--space-3);
  cursor: pointer;
}

main {
  padding: var(--space-6) 0;
}

.hero {
  padding: var(--space-5) 0 var(--space-6);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr);
  gap: var(--space-5);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 560px;
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2.9rem, 5vw, 3.5rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.03em;
}

.hero h1 span {
  display: block;
}

.hero-em {
  font-style: italic;
  color: var(--green);
}

.hero-lead {
  margin: 0;
  color: var(--text);
  font-size: 1.06rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: 0.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, color 120ms ease;
}
.button-primary {
  background: var(--green);
  color: var(--bg);
  box-shadow: var(--shadow-soft);
}

.button-primary:hover,
.button-primary:focus-visible {
  transform: translateY(-1px);
  background: var(--accent);
}

.button-ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(164, 74, 63, 0.08);
  color: var(--accent);
  border-color: var(--accent);
}

.hero-visual {
  position: relative;
}

.hero-image {
  margin: 0;
  background: var(--bg);
  padding: var(--space-2);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 18px 22px auto auto;
  width: 38%;
  height: 46%;
  background: radial-gradient(circle at 30% 30%, rgba(164, 74, 63, 0.16), transparent 60%);
  filter: blur(6px);
  pointer-events: none;
}

.hero-image img,
.editorial-break img {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.hero-image img {
  height: 100%;
  aspect-ratio: 4 / 5;
}

.image-break {
  padding-top: 0;
}

.editorial-break {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.editorial-break img {
  min-height: 280px;
  max-height: 420px;
}

/* --- Sections --- */
.section {
  padding: var(--space-6) 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  max-width: 640px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.85rem, 2vw + 1rem, 2.45rem);
}

.section-lede {
  margin: 0;
  color: var(--text);
}

.recipe-groups {
  display: grid;
  gap: var(--space-4);
}

.recipe-group {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(245, 239, 231, 0.82);
  box-shadow: var(--shadow-faint);
}

.recipe-group h3 {
  margin: 0 0 var(--space-3);
  font-size: 1.35rem;
  color: var(--green);
}

.recipe-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.recipe-list li {
  display: grid;
  gap: 0.35rem;
}

.recipe-list strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.recipe-list p {
  margin: 0;
  color: var(--text);
}

.mood-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.mood-options button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mood-options button:hover,
.mood-options button:focus-visible {
  border-color: var(--accent);
}

.mood-options button.active {
  background: var(--green);
  color: var(--bg);
}

#mood-result {
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 500px;
  color: var(--text);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(245, 239, 231, 0.7);
  box-shadow: var(--shadow-faint);
}

.facts-box {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow-faint);
}

.facts-box p {
  margin: 0;
  color: var(--text);
}


.spice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.spice-card {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  padding: var(--space-3) var(--space-4);
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  box-shadow: var(--shadow-faint);
  transition: all 0.2s ease;
  color: var(--text);
}

.spice-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(43, 43, 43, 0.08);
}

.spice-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.spice-card.active {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(43, 43, 43, 0.1);
}

.spice-card-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  background: radial-gradient(circle at 30% 30%, rgba(47, 79, 62, 0.18), rgba(47, 79, 62, 0.05));
  color: transparent;
  border-radius: 50%;
}

.spice-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}

.spice-card-text strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.spice-card-text small {
  color: var(--text);
  letter-spacing: 0.02em;
  font-size: 0.9rem;
}

/* --- Remedy display placeholder --- */

#remedy-display {
  min-height: 140px;
  border: 1px solid var(--border);
  background: rgba(245, 239, 231, 0.75);
  border-radius: var(--radius);
  padding: var(--space-4);
  color: var(--text);
  display: block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
}

#remedy-display.visible {
  opacity: 1;
  transform: translateY(0);
}

.remedy-card.visible-card {
  display: grid;
  gap: var(--space-3);
}

.remedy-card.visible-card h2,
.remedy-card.visible-card h3 {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-4) 0 var(--space-5);
  background: linear-gradient(180deg, rgba(226, 216, 204, 0.45), rgba(245, 239, 231, 0.8));
}

.site-footer p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text);
}

.nani-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
  max-width: 48ch;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(245, 239, 231, 0.7);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    right: 4vw;
    top: calc(100% + 0.5rem);
    width: min(18rem, 92vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: var(--space-2);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(43, 43, 43, 0.08);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.65rem 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
  }

  .nav-inner {
    flex-wrap: nowrap;
    position: relative;
  }

  .hero {
    padding-top: var(--space-4);
  }

  .hero-image::after {
    display: none;
  }

  .hero-image {
    order: -1;
    padding: 0;
    border: none;
    box-shadow: var(--shadow-faint);
  }

  .spice-grid {
    gap: var(--space-2);
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  }

  .recipe-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .spice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 
Some layout and styling refinements were assisted using ChatGPT (OpenAI).
Foundational CSS concepts informed by W3Schools and course materials.
*/  