@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --paper: #F5F2ED;
  --ink: #1C1C1C;
  --terracotta: #B85C38;
  --line: rgba(28, 28, 28, .16);
  --soft: #ebe5dd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1200px, calc(100% - 48px)); margin: auto; }
.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--terracotta);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 25px;
  height: 1px;
  background: currentColor;
}

header { border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
}
.brand span { color: var(--terracotta); }
.nav-links { display: flex; align-items: center; gap: 29px; font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--terracotta); }
.menu { display: none; background: none; border: 0; padding: 5px; color: var(--ink); }

h1, h2, h3, p { margin-top: 0; }
h1 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 400;
}
h2 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -.04em;
  line-height: 1.08;
  font-weight: 400;
}
.button {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  background: var(--terracotta);
  color: #fff;
  padding: 15px 21px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .2s, background .2s;
}
.button:hover { background: #a34e2e; transform: translateY(-2px); }
.button span { font-size: 18px; line-height: 10px; }
.text-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--terracotta);
  padding-bottom: 5px;
}

footer { padding: 45px 0 25px; border-top: 1px solid var(--line); margin-top: 80px; }
.footer-main { display: flex; justify-content: space-between; gap: 25px; padding-bottom: 40px; }
.footer-copy { max-width: 250px; margin-top: 13px; font-size: 12px; color: rgba(28, 28, 28, .67); line-height: 1.55; }
.footer-links { display: flex; gap: 58px; font-size: 12px; }
.footer-links div { display: flex; flex-direction: column; gap: 11px; }
.footer-links strong { font-size: 10px; color: var(--terracotta); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.footer-bottom {
  padding-top: 19px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: rgba(28, 28, 28, .6);
  font-size: 10px;
}

/* Home page */
.hero { display: grid; grid-template-columns: 1.03fr .97fr; min-height: 600px; }
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 78px clamp(28px, 7vw, 100px) 78px max(0px, calc((100vw - 1200px) / 2));
}
.hero p { max-width: 410px; color: rgba(28, 28, 28, .72); font-size: 16px; line-height: 1.65; margin-bottom: 34px; }
.hero-image { position: relative; min-height: 450px; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption {
  position: absolute;
  bottom: 25px;
  right: 65px;
  color: #fff;
  background: rgba(28, 28, 28, .82);
  padding: 9px 13px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
section { padding: 105px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 36px; }
.recipes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.recipe-card { display: block; }
.recipe-photo { aspect-ratio: 1.03; overflow: hidden; background: var(--soft); }
.recipe-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.recipe-card:hover img { transform: scale(1.045); }
.recipe-meta { color: var(--terracotta); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin: 17px 0 9px; }
h3 { font-family: Georgia, 'Times New Roman', Times, serif; font-size: 26px; font-weight: 400; line-height: 1.08; letter-spacing: -.035em; margin-bottom: 8px; }
.recipe-time { font-size: 12px; color: rgba(28, 28, 28, .63); }
.categories-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 92px 0; }
.categories { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.category { background: var(--paper); padding: 31px 25px 25px; min-height: 166px; display: flex; flex-direction: column; justify-content: space-between; transition: background .2s, color .2s; }
.category:hover { background: var(--terracotta); color: #fff; }
.category-number { font-size: 11px; color: var(--terracotta); font-weight: 700; letter-spacing: .1em; }
.category:hover .category-number { color: #fff; }
.category-name { font-family: Georgia, 'Times New Roman', Times, serif; font-size: 24px; letter-spacing: -.04em; }
.category-arrow { font-size: 21px; align-self: end; }
.feature { display: grid; grid-template-columns: 1fr 1fr; background: #e9e0d5; }
.feature-image { min-height: 500px; overflow: hidden; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { padding: clamp(45px, 7vw, 100px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.feature-copy p { max-width: 370px; color: rgba(28, 28, 28, .72); line-height: 1.65; margin: 19px 0 29px; }
.feature .button { background: var(--ink); }
.feature .button:hover { background: var(--terracotta); }
.newsletter { text-align: center; padding: 117px 24px 125px; border-bottom: 1px solid var(--line); }
.newsletter .eyebrow { justify-content: center; }
.newsletter h2 { max-width: 560px; margin: 17px auto; }
.newsletter p { max-width: 430px; margin: 0 auto 25px; font-size: 15px; color: rgba(28, 28, 28, .7); line-height: 1.6; }
form { display: flex; max-width: 470px; margin: auto; border-bottom: 1px solid var(--ink); }
input { min-width: 0; flex: 1; border: 0; border-radius: 0; outline: 0; background: transparent; padding: 15px 2px; color: var(--ink); font: 14px "DM Sans", sans-serif; }
input::placeholder { color: rgba(28, 28, 28, .58); }
form button { cursor: pointer; border: 0; background: transparent; color: var(--terracotta); padding: 0 4px; font: 700 11px "DM Sans", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.fine-print { color: rgba(28, 28, 28, .52); font-size: 10px; margin-top: 12px; }

/* Recipe listing */
.recipe-index-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.recipe-index-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .2s, transform .2s;
}
.recipe-index-card:hover { border-color: var(--terracotta); transform: translateY(-2px); }
.recipe-index-card img { width: 140px; height: 140px; object-fit: cover; border-radius: 4px; }
.recipe-index-card h3 { font-size: 22px; margin-bottom: 6px; }
.page-intro { padding: 64px 0 24px; }
.page-intro p { max-width: 620px; color: rgba(28, 28, 28, .72); line-height: 1.65; }

/* Recipe detail */
.recipe-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 64px 0 48px; align-items: start; }
.recipe-hero-image { aspect-ratio: 4/3; overflow: hidden; background: var(--soft); }
.recipe-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.recipe-summary { color: rgba(28, 28, 28, .72); line-height: 1.65; margin: 18px 0 24px; }
.recipe-facts { display: flex; flex-wrap: wrap; gap: 24px; font-size: 13px; color: rgba(28, 28, 28, .75); }
.recipe-facts strong { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 4px; }
.recipe-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: 64px; }
.recipe-body h2 { margin-bottom: 18px; font-size: 28px; }
.recipe-body ul, .recipe-body ol { margin: 0; padding-left: 1.2rem; line-height: 1.7; color: rgba(28, 28, 28, .85); }
.recipe-body li + li { margin-top: 8px; }
.recipe-body li ul { margin-top: 8px; }
.back-link { display: inline-block; margin-bottom: 24px; font-size: 13px; font-weight: 600; color: var(--terracotta); }

@media (max-width: 780px) {
  .wrap { width: min(100% - 36px, 600px); }
  .nav-links { display: none; }
  .menu { display: block; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 64px 24px 55px; }
  .hero-image { min-height: 420px; }
  section { padding: 73px 0; }
  .recipes { grid-template-columns: 1fr; gap: 38px; }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .recipe-hero, .recipe-body { grid-template-columns: 1fr; gap: 32px; }
  .recipe-index-grid { grid-template-columns: 1fr; }
  .recipe-index-card { grid-template-columns: 100px 1fr; }
  .recipe-index-card img { width: 100px; height: 100px; }
  .footer-main { flex-direction: column; }
  .footer-links { gap: 40px; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}
