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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #F2EDE4;
  --charcoal: #191713;
  --terracotta: #C4633A;
  --deep-earth: #2E2B24;
  --off-white: #EDE8DF;
  --warm-sand: #B5AC9D;
  --sage: #7A8C6E;
  --body-width: 680px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

html { font-size: 18px; }
body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--serif);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--terracotta); }

img { display: block; width: 100%; height: auto; }

/* NAV */
nav {
  position: sticky;
  top: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--off-white);
  z-index: 100;
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-wordmark {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--charcoal);
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a { color: var(--deep-earth); }
.nav-links a:hover,
.nav-links a.active { color: var(--terracotta); }

/* FOOTER */
footer {
  margin-top: 6rem;
  border-top: 1px solid var(--off-white);
  padding: 3rem 2rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--warm-sand);
  letter-spacing: 0.03em;
}
footer a { color: var(--warm-sand); }
footer a:hover { color: var(--terracotta); }

/* ARTICLE LAYOUT */
.article-hero {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
}
.article-wrap {
  max-width: var(--body-width);
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}
.article-meta {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm-sand);
  margin-bottom: 1.25rem;
}
.article-meta span + span::before {
  content: ' · ';
  color: var(--off-white);
}
.article-title {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.article-subtitle {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: var(--deep-earth);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--off-white);
}
.article-body p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.75;
}
.article-body p:last-child { margin-bottom: 0; }

/* SCORECARD */
.scorecard {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--terracotta);
}
.scorecard-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}
.scorecard-address {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--deep-earth);
  margin-bottom: 0.25rem;
}
.scorecard-bill {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--deep-earth);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.scorecard-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.scorecard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--off-white);
}
.scorecard-row:last-child { border-bottom: none; }
.scorecard-label {
  color: var(--deep-earth);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.68rem;
}
.scorecard-score {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
}
.scorecard-bar {
  flex: 1;
  height: 2px;
  background: var(--off-white);
  margin: 0 1.25rem;
  position: relative;
}
.scorecard-bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--terracotta);
}

/* HOMEPAGE */
.home-header {
  max-width: 1140px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.home-header h1 {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.home-header p {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--deep-earth);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.home-divider {
  width: 40px;
  height: 2px;
  background: var(--terracotta);
  margin: 0 auto;
}

/* CARD GRID */
.card-grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 3rem 2.5rem;
}
.card { display: flex; flex-direction: column; }
.card-img-wrap {
  overflow: hidden;
  margin-bottom: 1.25rem;
  aspect-ratio: 4 / 3;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-img-wrap img { transform: scale(1.03); }
.card-category {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}
.card-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.card-excerpt {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--deep-earth);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}
.card-read {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
  display: inline-block;
  padding-bottom: 1px;
}
.card:hover .card-read { color: var(--terracotta); border-color: var(--terracotta); }

/* RECIPE */
.recipe-meta-bar {
  display: flex;
  gap: 2rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--deep-earth);
  padding: 1.5rem 0;
  border-top: 1px solid var(--off-white);
  border-bottom: 1px solid var(--off-white);
  margin-bottom: 2rem;
}
.recipe-meta-bar span strong {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--warm-sand);
  margin-bottom: 0.2rem;
  font-weight: 500;
}
.recipe-section-title {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 2.5rem 0 1rem;
}
.recipe-ingredients { list-style: none; }
.recipe-ingredients li {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--charcoal);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--off-white);
  display: flex;
  justify-content: space-between;
}
.recipe-steps { list-style: none; counter-reset: step; }
.recipe-steps li {
  counter-increment: step;
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.recipe-steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--off-white);
  min-width: 2rem;
  line-height: 1.2;
  flex-shrink: 0;
}
.recipe-steps li p {
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--charcoal);
  padding-top: 0.15rem;
}
.recipe-note {
  background: var(--off-white);
  padding: 1.25rem 1.5rem;
  margin-top: 0.5rem;
  border-left: 3px solid var(--sage);
}
.recipe-note p {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--deep-earth);
  line-height: 1.6;
}
.recipe-note strong {
  color: var(--charcoal);
  font-weight: 500;
}

/* ABOUT */
.about-wrap {
  max-width: var(--body-width);
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
}
.about-wrap h1 {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 2rem;
}
.about-wrap p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

/* RESPONSIVE */
@media (max-width: 720px) {
  .article-title { font-size: 1.75rem; }
  .home-header h1 { font-size: 2rem; }
  .card-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav-links { display: none; }
  .recipe-meta-bar { flex-wrap: wrap; gap: 1rem; }
}
