:root {
  --red: #D9381E;
  --green: #2D6A4F;
  --cream: #FDF6E3;
  --brown: #8B5A2B;
  --charcoal: #2C2520;
  --bg: #ffffff;
  --bg-alt: #FDF6E3;
  --text: #2C2520;
  --text-muted: #6B5E51;
  --border: #E3D9C6;
  --shadow: rgba(44, 37, 32, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1714;
    --bg-alt: #241F1A;
    --text: #EFEBE5;
    --text-muted: #B5ADA3;
    --border: #4A4138;
    --shadow: rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4, .logo {
  font-family: 'Playfair Display', serif;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

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

a {
  color: var(--red);
}

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--red);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65));
  z-index: -1;
}

.hero-text {
  position: relative;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s;
}

.btn-primary:hover {
  filter: brightness(0.92);
}

.featured {
  background: var(--bg-alt);
  padding: 4rem 0;
}

section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

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

.card {
  background: var(--bg);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 14px var(--shadow);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card h3 {
  padding: 1rem 1rem 0;
  font-size: 1.25rem;
}

.card p {
  padding: 0 1rem 0.5rem;
  margin: 0;
  color: var(--text-muted);
}

.card a {
  display: inline-block;
  padding: 0 1rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

.why {
  padding: 4rem 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.why-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg);
}

.why-card svg {
  width: 3rem;
  height: 3rem;
  color: var(--red);
}

.why-card h3 {
  margin: 0.75rem 0 0.25rem;
  font-size: 1.15rem;
}

.newsletter {
  background: var(--red);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.newsletter h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.newsletter p {
  max-width: 600px;
  margin-inline: auto;
}

.signup-form,
.footer-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.signup-form input,
.footer-form input {
  padding: 0.75rem;
  border: none;
  border-radius: 0.25rem;
  min-width: 260px;
  font-size: 1rem;
}

.signup-form button,
.footer-form button {
  background: var(--charcoal);
  color: var(--cream);
}

.thanks {
  margin-top: 1rem;
  font-weight: 600;
}

.page-hero {
  background: var(--bg-alt);
  padding: 4rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
}

.page-hero p {
  max-width: 760px;
  margin-inline: auto;
  color: var(--text-muted);
}

.recipes {
  padding: 2rem 0 4rem;
}

.recipe {
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.recipe h2 {
  color: var(--red);
  text-align: left;
  margin-bottom: 1.5rem;
}

.recipe-body {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  align-items: start;
}

.ingredients {
  background: var(--bg-alt);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.ingredients h3,
.method h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.ingredients ul {
  margin: 0;
  padding-left: 1.25rem;
}

.ingredients li,
.method li {
  margin-bottom: 0.5rem;
}

.method ol {
  margin: 0;
  padding-left: 1.25rem;
}

.timing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.timing > div {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 1rem;
}

.timing h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.pro-tip,
.note {
  margin-top: 1.5rem;
  padding: 1rem;
  border-left: 4px solid var(--red);
  background: var(--bg-alt);
  border-radius: 0 0.375rem 0.375rem 0;
}

.tips-layout {
  padding: 2rem 0 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.tips-block h2 {
  text-align: left;
  margin-bottom: 1rem;
}

.gear-list li {
  margin-bottom: 0.75rem;
}

.faq details {
  background: var(--bg-alt);
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
}

.technique .steps li {
  margin-bottom: 0.75rem;
}

.contact p {
  font-size: 1.1rem;
}

footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 3rem 0 1.5rem;
}

footer a {
  color: var(--cream);
  text-decoration: none;
}

footer .logo {
  color: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: start;
}

.footer-form {
  justify-content: flex-start;
  margin-top: 0;
}

.footer-form label {
  width: 100%;
  font-weight: 600;
}

.footer-form input {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-form input::placeholder {
  color: #D7D2C9;
}

.copy {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 2rem;
  color: #D7D2C9;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 1rem;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .recipe-body {
    grid-template-columns: 1fr;
  }

  .timing {
    grid-template-columns: 1fr;
  }
}
