/* Food Matters Online — Editorial Stylesheet (foodmattersonline.com) */
:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --surface-alt: #F3EFE8;
  --ink: #1B2420;
  --ink-muted: #525E58;
  --accent: #B54D28;
  --accent-dark: #8E3A1C;
  --forest: #1F3B31;
  --gold: #A67C37;
  --border: #E5DFD5;
  --shadow-sm: 0 2px 10px rgba(27, 36, 32, 0.05);
  --shadow-md: 0 10px 28px rgba(27, 36, 32, 0.09);
  --radius: 10px;
  --max-w: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 13px;
  border-left: 4px solid var(--accent);
}

.brand-name {
  font-family: 'Oswald', 'DIN Condensed', 'Arial Narrow', 'Liberation Sans Narrow', 'Roboto Condensed', sans-serif;
  font-stretch: condensed;
  font-size: 1.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--forest);
  line-height: 0.98;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.brand-name span {
  color: var(--accent);
  font-weight: 500;
}

.brand-sub {
  font-family: 'Oswald', 'Arial Narrow', 'Liberation Sans Narrow', sans-serif;
  font-stretch: condensed;
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  line-height: 1.1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 6px;
  color: var(--ink);
  transition: background 0.18s ease, color 0.18s ease;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  background: var(--surface-alt);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

/* Leaderboard Ad Band (Every Page) */
.leaderboard-band {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.leaderboard-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ad-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.leaderboard-link {
  display: block;
  width: 100%;
  max-width: 970px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.leaderboard-link img {
  width: 100%;
  height: auto;
}

/* Section Headers */
.section {
  padding: 44px 0;
}

.section-tight {
  padding: 32px 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--forest);
  padding-bottom: 10px;
  margin-bottom: 26px;
}

.section-title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.55rem;
  color: var(--forest);
}

.section-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.section-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Hero Feature */
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hero-media {
  position: relative;
  min-height: 320px;
  background: #232A27;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-body {
  padding: 32px 32px 32px 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.hero-title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.85rem;
  line-height: 1.24;
  color: var(--ink);
}

.hero-excerpt {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.meta-row {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.18s ease, transform 0.18s ease;
  width: fit-content;
}

.btn-primary {
  background: var(--forest);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
}

.btn-outline:hover {
  background: var(--forest);
  color: #FFFFFF;
}

/* 4 Equal-Size Main Banner Ads */
.main-banners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.banner-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.banner-card img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

/* News Cards Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.news-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.news-card-title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.18rem;
  line-height: 1.32;
  color: var(--ink);
}

.news-card-title a:hover {
  color: var(--accent);
}

.news-card-excerpt {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
  flex: 1;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}

.read-more:hover {
  color: var(--accent-dark);
}

/* 10 Medium Banner Ads Grid */
.medium-banners-section {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.medium-banners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.medium-banner-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.medium-banner-card img {
  width: 100%;
  aspect-ratio: 32 / 13;
  object-fit: cover;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--forest);
  color: #FFFFFF;
  border-color: var(--forest);
}

/* Article Detail Page */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 36px;
  align-items: start;
}

.article-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.breadcrumb {
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--accent);
  font-weight: 600;
}

.article-headline {
  margin: 8px 0 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.05rem;
  line-height: 1.24;
  color: var(--ink);
}

.article-hero-img {
  width: 100%;
  border-radius: 8px;
  margin: 22px 0 26px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-content p {
  font-size: 1.03rem;
  line-height: 1.8;
  margin: 0 0 18px;
  color: #2A332E;
}

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar-box h3 {
  margin: 0 0 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.12rem;
  color: var(--forest);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-list a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.38;
  display: block;
}

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

/* Events List */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.event-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.event-date {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-region {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--forest);
}

.event-name {
  margin: 2px 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.24rem;
  color: var(--ink);
}

.event-loc {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest);
}

.event-focus {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--ink-muted);
  flex: 1;
}

/* Media Kit */
.page-banner {
  background: var(--forest);
  color: #FFFFFF;
  padding: 40px 0;
}

.page-banner h1 {
  margin: 0 0 8px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.1rem;
}

.page-banner p {
  margin: 0;
  color: #D7E2DD;
  max-width: 720px;
  font-size: 1rem;
}

.spec-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.spec-table th,
.spec-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}

.spec-table th {
  background: var(--surface-alt);
  color: var(--forest);
  font-weight: 700;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.info-card h3 {
  margin: 0 0 8px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  color: var(--forest);
}

.info-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-muted);
}

/* Contact Page (Strictly No Contact Form) */
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 780px;
  box-shadow: var(--shadow-sm);
}

.contact-email-box {
  margin: 22px 0;
  padding: 22px 24px;
  background: var(--surface-alt);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-email-link {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--forest);
  word-break: break-all;
}

.contact-email-link:hover {
  color: var(--accent);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.contact-item {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.contact-item h4 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.contact-item p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-muted);
}

/* Footer */
.site-footer {
  background: var(--forest);
  color: #D9E2DE;
  padding: 40px 0 28px;
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  font-family: 'Oswald', 'DIN Condensed', 'Arial Narrow', 'Liberation Sans Narrow', sans-serif;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.5rem;
  color: #FFFFFF;
  margin: 0 0 8px;
}

.footer-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #E6B668;
  margin: 0 0 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
  color: #B4C4BD;
}

/* Responsive */
@media (max-width: 1024px) {
  .main-banners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .medium-banners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-body {
    padding: 24px;
  }
  .news-grid,
  .news-grid-4,
  .events-grid,
  .info-grid,
  .footer-grid,
  .contact-list {
    grid-template-columns: 1fr;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open {
    display: flex;
  }
}

@media (max-width: 560px) {
  .main-banners-grid {
    grid-template-columns: 1fr;
  }
  .medium-banners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-main,
  .contact-panel {
    padding: 22px;
  }
  .article-headline {
    font-size: 1.55rem;
  }
}
