/* ============================================================
   dunsfordfield.eu — Organic Gardening & Vegetable Growing
   Design system: Clay-inspired (cream canvas, saturated cards)
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:          #0a0a0a;
  --primary-active:   #1f1f1f;
  --primary-disabled: #e5e5e5;
  --ink:              #0a0a0a;
  --body:             #3a3a3a;
  --body-strong:      #1a1a1a;
  --muted:            #6a6a6a;
  --muted-soft:       #9a9a9a;
  --hairline:         #e5e5e5;
  --hairline-soft:    #f0f0f0;
  --canvas:           #fffaf0;
  --surface-soft:     #faf5e8;
  --surface-card:     #f5f0e0;
  --surface-strong:   #ebe6d6;
  --surface-dark:     #0a1a1a;
  --surface-dark-el:  #1a2a2a;
  --on-primary:       #ffffff;
  --on-dark:          #ffffff;
  --on-dark-soft:     #a0a0a0;
  --brand-pink:       #ff4d8b;
  --brand-teal:       #1a3a3a;
  --brand-lavender:   #b8a4ed;
  --brand-peach:      #ffb084;
  --brand-ochre:      #e8b94a;
  --brand-mint:       #a4d4c5;
  --brand-coral:      #ff6b5a;
  --success:          #22c55e;
  --warning:          #f59e0b;
  --error:            #ef4444;

  --r-xs:   6px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-pill: 9999px;

  --sp-xxs: 4px;
  --sp-xs:  8px;
  --sp-sm:  12px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  32px;
  --sp-xxl: 48px;
  --sp-sec: 96px;

  --max-w: 1280px;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--canvas);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; }
a:hover { text-decoration: none; }

/* --- Container --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

/* --- Typography --- */
.display-xl {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -2.5px;
  color: var(--ink);
}
.display-lg {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--ink);
}
.display-md {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--ink);
}
.display-sm {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.title-lg {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
.title-md {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.title-sm {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}
.body-sm {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}
.caption {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.caption-upper {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  height: 44px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover { background-color: var(--primary-active); color: var(--on-primary); text-decoration: none; }
.btn-secondary {
  background-color: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn-secondary:hover { background-color: var(--surface-soft); text-decoration: none; }
.btn-on-color {
  background-color: var(--canvas);
  color: var(--ink);
}
.btn-on-color:hover { background-color: var(--surface-soft); text-decoration: none; }

/* --- Top Navigation --- */
.top-nav {
  background-color: var(--canvas);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--hairline-soft);
}
.top-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
}
.nav-menu a:hover { color: var(--muted); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-shrink: 0;
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-xs);
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: var(--sp-lg);
  z-index: 99;
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-md); }
.nav-mobile ul a { font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; }

/* --- Hero Band --- */
.hero-band {
  background-color: var(--canvas);
  padding: var(--sp-sec) 0;
}
.hero-band .container {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--sp-xxl);
  align-items: center;
}
.hero-content { display: flex; flex-direction: column; gap: var(--sp-lg); }
.hero-content h1 { color: var(--ink); }
.hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body-strong);
  max-width: 520px;
}
.hero-actions { display: flex; align-items: center; gap: var(--sp-sm); flex-wrap: wrap; }
.hero-illustration {
  border-radius: var(--r-xl);
  overflow: hidden;
  background-color: var(--surface-soft);
  aspect-ratio: 4/3;
}
.hero-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Section label --- */
.section-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-sm);
}

/* --- Feature Cards Grid --- */
.feature-section { padding: var(--sp-sec) 0; }
.feature-section-header {
  margin-bottom: var(--sp-xxl);
}
.feature-section-header h2 { margin-bottom: var(--sp-sm); }
.feature-section-header p {
  font-size: 18px;
  color: var(--body-strong);
  max-width: 560px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}
.feature-card {
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  min-height: 280px;
}
.feature-card-pink    { background-color: var(--brand-pink); color: var(--on-primary); }
.feature-card-teal    { background-color: var(--brand-teal); color: var(--on-dark); }
.feature-card-lavender{ background-color: var(--brand-lavender); color: var(--ink); }
.feature-card-peach   { background-color: var(--brand-peach); color: var(--ink); }
.feature-card-ochre   { background-color: var(--brand-ochre); color: var(--ink); }
.feature-card-cream   { background-color: var(--surface-card); color: var(--ink); }

.feature-card h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.feature-card p  { font-size: 15px; line-height: 1.55; opacity: 0.88; flex: 1; }
.feature-card-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: auto;
  aspect-ratio: 16/9;
}
.feature-card-img img { width: 100%; height: 100%; object-fit: cover; }

/* --- Articles Section --- */
.articles-section { padding: var(--sp-sec) 0; }
.articles-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-xxl);
  gap: var(--sp-lg);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}
.article-card {
  background-color: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.article-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.article-card:hover .article-card-image img { transform: scale(1.03); }
.article-card-body {
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  flex: 1;
}
.article-card-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.badge-pill {
  background-color: var(--surface-card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-pill);
  padding: 4px 12px;
  line-height: 1.4;
}
.badge-pill-pink   { background-color: var(--brand-pink); color: var(--on-primary); }
.badge-pill-teal   { background-color: var(--brand-teal); color: var(--on-dark); }
.badge-pill-peach  { background-color: var(--brand-peach); color: var(--ink); }
.badge-pill-ochre  { background-color: var(--brand-ochre); color: var(--ink); }
.badge-pill-lavender{ background-color: var(--brand-lavender); color: var(--ink); }

.article-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.article-card h3 a { text-decoration: none; color: var(--ink); }
.article-card h3 a:hover { text-decoration: underline; }
.article-card p { font-size: 14px; color: var(--body); line-height: 1.55; flex: 1; }
.article-card-footer {
  padding: var(--sp-md) var(--sp-lg);
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.article-date { font-size: 13px; color: var(--muted); }
.read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.read-more:hover { text-decoration: underline; }

/* --- CTA Band --- */
.cta-band {
  background-color: var(--surface-soft);
  border-radius: var(--r-xl);
  padding: 80px;
  margin: 0 var(--sp-xl);
  margin-bottom: var(--sp-sec);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xxl);
}
.cta-band-text { max-width: 600px; }
.cta-band-text h2 { margin-bottom: var(--sp-md); }
.cta-band-text p { font-size: 18px; color: var(--body-strong); margin-bottom: var(--sp-xl); }
.cta-band-visual {
  flex-shrink: 0;
  width: 280px;
  height: 200px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background-color: var(--surface-card);
}
.cta-band-visual img { width: 100%; height: 100%; object-fit: cover; }

/* --- Stats Band --- */
.stats-band {
  padding: var(--sp-sec) 0;
  background-color: var(--surface-strong);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-xl);
  text-align: center;
}
.stat-item {}
.stat-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: var(--sp-xs);
}
.stat-label { font-size: 15px; color: var(--muted); }

/* --- Tips Band --- */
.tips-band { padding: var(--sp-sec) 0; }
.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-xxl);
}
.tip-card {
  background-color: var(--surface-card);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  display: flex;
  gap: var(--sp-lg);
}
.tip-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background-color: var(--brand-ochre);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.tip-content h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: var(--sp-xs); }
.tip-content p  { font-size: 14px; color: var(--body); line-height: 1.55; }

/* --- Footer --- */
.footer {
  background-color: var(--surface-soft);
  padding: 80px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-xxl);
  margin-bottom: var(--sp-xxl);
}
.footer-brand {}
.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: block;
  margin-bottom: var(--sp-md);
}
.footer-desc { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 280px; }
.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-md);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-sm); }
.footer-col ul a { font-size: 14px; color: var(--body); text-decoration: none; }
.footer-col ul a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
}
.footer-copy { font-size: 13px; color: var(--muted-soft); }
.footer-legal { display: flex; gap: var(--sp-lg); }
.footer-legal a { font-size: 13px; color: var(--muted-soft); text-decoration: none; }
.footer-legal a:hover { color: var(--ink); }

/* --- Article Page --- */
.article-page { padding: var(--sp-sec) 0; }
.article-header { margin-bottom: var(--sp-xxl); max-width: 800px; }
.article-header .article-meta { margin-bottom: var(--sp-lg); }
.article-header h1 { margin-bottom: var(--sp-lg); }
.article-header .article-intro {
  font-size: 20px;
  color: var(--body-strong);
  line-height: 1.6;
  font-weight: 400;
}
.article-cover {
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--sp-xxl);
  aspect-ratio: 16/7;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-xxl);
  align-items: start;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: var(--sp-xxl) 0 var(--sp-md);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: var(--sp-xl) 0 var(--sp-sm);
}
.article-body p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: var(--sp-md);
}
.article-body ul, .article-body ol {
  margin: var(--sp-md) 0 var(--sp-lg) var(--sp-xl);
}
.article-body li { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: var(--sp-xs); }
.article-body figure {
  margin: var(--sp-xl) 0;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.article-body figure img { width: 100%; }
.article-body figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: var(--sp-sm) var(--sp-md);
  background: var(--surface-soft);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.article-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: var(--sp-lg); }
.sidebar-card {
  background-color: var(--surface-card);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
}
.sidebar-card h4 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: var(--sp-md); }
.sidebar-toc { list-style: none; display: flex; flex-direction: column; gap: var(--sp-sm); }
.sidebar-toc a { font-size: 14px; color: var(--muted); text-decoration: none; line-height: 1.4; }
.sidebar-toc a:hover { color: var(--ink); }
.sidebar-articles { list-style: none; display: flex; flex-direction: column; gap: var(--sp-sm); }
.sidebar-articles li a { font-size: 14px; color: var(--ink); text-decoration: none; line-height: 1.5; font-weight: 500; }
.sidebar-articles li a:hover { text-decoration: underline; }
.sidebar-articles li { padding-bottom: var(--sp-sm); border-bottom: 1px solid var(--hairline); }
.sidebar-articles li:last-child { border-bottom: none; padding-bottom: 0; }

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: var(--sp-lg) 0 0;
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  flex-wrap: wrap;
}
.breadcrumbs a, .breadcrumbs span {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { color: var(--muted-soft); }

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: var(--sp-xl);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 64px);
  max-width: 860px;
  background-color: var(--surface-dark);
  color: var(--on-dark);
  border-radius: var(--r-xl);
  padding: var(--sp-xl) var(--sp-xxl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.cookie-banner.hidden { display: none; }
.cookie-text { font-size: 14px; color: var(--on-dark-soft); line-height: 1.6; }
.cookie-text a { color: var(--on-dark); }
.cookie-actions { display: flex; gap: var(--sp-sm); flex-shrink: 0; }
.cookie-accept {
  background-color: var(--canvas);
  color: var(--ink);
  border: none;
  border-radius: var(--r-md);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-accept:hover { background-color: var(--surface-soft); }
.cookie-reject {
  background-color: transparent;
  color: var(--on-dark-soft);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-md);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-reject:hover { color: var(--on-dark); border-color: rgba(255,255,255,0.5); }

/* --- Simple Pages (About, Privacy, Terms) --- */
.simple-page { padding: var(--sp-sec) 0; max-width: 800px; }
.simple-page h1 { margin-bottom: var(--sp-xl); }
.simple-page h2 { font-size: 22px; font-weight: 600; color: var(--ink); margin: var(--sp-xxl) 0 var(--sp-md); }
.simple-page p { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: var(--sp-md); }
.simple-page ul { margin: var(--sp-md) 0 var(--sp-lg) var(--sp-xl); }
.simple-page li { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: var(--sp-xs); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .display-xl { font-size: 52px; letter-spacing: -1.5px; }
  .display-lg { font-size: 44px; letter-spacing: -1.5px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .cta-band { flex-direction: column; text-align: center; }
  .cta-band-visual { width: 100%; height: 200px; }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--sp-lg); }

  .nav-menu, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  .display-xl { font-size: 36px; letter-spacing: -1px; }
  .display-lg { font-size: 30px; letter-spacing: -0.5px; }
  .display-md { font-size: 26px; letter-spacing: -0.3px; }

  .hero-band .container { grid-template-columns: 1fr; }
  .hero-illustration { display: none; }
  .hero-band { padding: 64px 0; }

  .feature-grid    { grid-template-columns: 1fr; }
  .articles-grid   { grid-template-columns: 1fr; }
  .tips-grid       { grid-template-columns: 1fr; }
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }

  .articles-section-header { flex-direction: column; align-items: flex-start; }

  .cta-band { padding: var(--sp-xxl) var(--sp-xl); margin: 0 var(--sp-lg) var(--sp-sec); }
  .cta-band-visual { display: none; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .cookie-banner {
    width: calc(100% - 32px);
    flex-direction: column;
    padding: var(--sp-lg);
    bottom: var(--sp-md);
  }
  .cookie-actions { width: 100%; }
  .cookie-accept, .cookie-reject { flex: 1; text-align: center; }

  .article-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .stat-number { font-size: 36px; }
}
