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

:root {
  --bg: #faf6f1;
  --surface: #ffffff;
  --text: #1c1814;
  --muted: #6b6458;
  --accent: #b33232;
  --accent-hover: #8c1f1f;
  --accent-light: #fdecea;
  --green: #476640;
  --green-light: #edf5eb;
  --border: #e5d9ce;
  --hero-bg: #26180e;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.13);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

/* ---- TYPOGRAPHY ---- */

h1,
h2,
h3 {
  font-family: Lora, Georgia, 'Times New Roman', serif;
  line-height: 1.25;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 0.8rem;
}

h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  margin: 0 0 0.5rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1rem 0 0.25rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.3rem;
  margin: 0 0 1rem;
}

li + li {
  margin-top: 0.3rem;
}

/* ---- LAYOUT ---- */

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

/* ---- SITE HEADER / NAV ---- */

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: Lora, Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.85rem 0;
  white-space: nowrap;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.site-logo:hover {
  color: var(--accent);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.05rem;
}

nav ul li a {
  display: block;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

nav ul li a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* ---- HERO ---- */

.hero-section {
  background: var(--hero-bg);
  background-image: radial-gradient(ellipse at 70% 50%, #3d2010 0%, var(--hero-bg) 70%);
  color: #f5ede4;
  padding: 4.5rem 0 4rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #d4916a;
  margin: 0 0 1rem;
}

.hero-section h1 {
  color: #faf0e8;
  margin-bottom: 1rem;
  max-width: 18ch;
}

.hero-section .lead {
  font-size: 1.1rem;
  color: #c9b9a9;
  max-width: 52ch;
  line-height: 1.65;
  margin: 0;
}

/* ---- MAIN ---- */

main {
  padding: 3rem 0 4rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin-bottom: 0.25rem;
}

.section-header p {
  color: var(--muted);
  font-size: 0.925rem;
  margin: 0;
}

/* ---- CARD GRID ---- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.7rem;
}

.badge-article {
  background: var(--accent-light);
  color: var(--accent);
}

.badge-recipe {
  background: var(--green-light);
  color: var(--green);
}

.card h3,
.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.card h3 a,
.card h2 a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.card h3 a:hover,
.card h2 a:hover {
  color: var(--accent);
}

.card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.55;
}

/* ---- ARTICLE ---- */

article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  max-width: 720px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.article-back:hover {
  color: var(--accent);
}

.article-back::before {
  content: '←';
}

article h1 {
  margin-bottom: 0.5rem;
}

article .lead {
  font-size: 1.08rem;
  color: #3a3530;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

article section {
  margin-bottom: 1.75rem;
}

article section h2 {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 0.8rem;
}

article section h3 {
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.1rem 0 0.25rem;
}

article section:last-child ul {
  list-style: none;
  padding: 0;
}

article section:last-child ul li a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}

article section:last-child ul li a::before {
  content: '→';
  color: var(--accent);
  font-size: 0.85em;
}

/* ---- FOOTER ---- */

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ---- RECIPE / ARTICLE FIGURE ---- */

.recipe-figure,
.article-figure {
  margin: 0 0 1.75rem;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
}

.recipe-figure img,
.article-figure img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.recipe-figure figcaption,
.article-figure figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.45rem 0 0;
  font-style: italic;
}

/* ---- PRODUCER BADGES ---- */

.badge-brand {
  background: #e8f0fe;
  color: #1a56c4;
}

.badge-craft {
  background: var(--green-light);
  color: var(--green);
}

/* ---- PRODUCER CARDS ---- */

.producer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.producer-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.producer-card .card-badge {
  margin-bottom: 0.7rem;
}

.producer-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.producer-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
  line-height: 1.55;
}

.producer-card a.producer-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.producer-card a.producer-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.producer-location {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.section-spacing {
  margin-top: 3rem;
}

.producer-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 720px;
}

.producer-note-heading {
  color: var(--text);
}

/* ---- UTILITIES ---- */

.lead {
  font-size: 1.06rem;
  color: #2f2b27;
}

.meta,
.muted {
  color: var(--muted);
}

/* ---- RESPONSIVE ---- */

@media (max-width: 640px) {
  .hero-section {
    padding: 3rem 0 2.5rem;
  }

  article {
    padding: 1.25rem 1rem;
  }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  nav ul {
    padding-top: 0;
    padding-bottom: 0.75rem;
  }
}
