/*
Theme Name: Ugenihaven
Theme URI: https://ugenihaven.dk
Description: Skandinavisk havebog møder moderne magasin. Standalone tema for Ugenihaven.dk.
Author: Ugenihaven
Version: 1.0.0
Text Domain: ugenihaven
*/

/* ================================================================
   Design system — matches docs/design-preview/styles.css
   ================================================================ */

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

:root {
  --green:        #3a6b35;
  --green-dark:   #284a25;
  --green-deep:   #1f3a1d;
  --green-soft:   #e6ede0;
  --green-tint:   #f1f4ec;

  --bg:           #f5f1e8;
  --bg-paper:     #faf7ee;
  --bg-deep:      #ede6d4;

  --ink:          #2a2018;
  --ink-soft:     #5a4a3a;
  --ink-mute:     #877560;
  --rule:         #d9cfb8;
  --rule-soft:    #e7dfc9;

  --terra:        #c45a3a;
  --terra-dark:   #a04829;
  --terra-soft:   #f1d9c9;

  --serif:  'Lora', 'Iowan Old Style', Georgia, serif;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w:   1240px;
  --read-w:  680px;
  --gutter:  clamp(20px, 4vw, 48px);
  --radius:  4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--green-dark);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color .15s;
}
a:hover { color: var(--terra); }
a.plain { border-bottom: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1.1em; text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.eyebrow.terra { color: var(--terra); }
.eyebrow.mute  { color: var(--ink-mute); }

.dropcap::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 4.4em;
  line-height: 0.85;
  padding: 6px 10px 0 0;
  color: var(--green-dark);
  font-weight: 600;
}

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- Layout ---------- */
.wrap  { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.read  { max-width: var(--read-w); margin: 0 auto; padding: 0 var(--gutter); }
.wide  { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

.rule       { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule.thick { height: 2px; background: var(--ink); }

/* ---------- Site Header ---------- */
.site-header {
  background: rgba(245,241,232,0.92);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(120%) blur(6px);
}
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  border: none;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  justify-self: start;
}
.brand__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--terra);
  display: inline-block;
  transform: translateY(-2px);
}
.brand__tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-left: 4px;
}
.nav {
  display: flex;
  gap: 26px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}
.nav a { color: var(--ink); border-bottom: none; padding: 8px 0; position: relative; }
.nav a:hover { color: var(--green-dark); }
.nav a.current-menu-item,
.nav a.current_page_item { color: var(--green-dark); }
.nav a.current-menu-item::after,
.nav a.current_page_item::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 4px;
  height: 2px; background: var(--terra);
}
.header-tools {
  display: flex; align-items: center; gap: 12px; justify-self: end;
}
.search-form { position: relative; display: flex; align-items: center; }
.search-form input[type="search"] {
  font-family: var(--sans); font-size: 14px;
  border: 1px solid var(--rule); background: var(--bg-paper); color: var(--ink);
  padding: 8px 14px 8px 34px; width: 200px; border-radius: 100px;
  outline: none; transition: border-color .15s, width .2s;
}
.search-form input[type="search"]:focus { border-color: var(--green); width: 240px; }
.search-form svg { position: absolute; left: 11px; width: 14px; height: 14px; color: var(--ink-mute); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule); background: var(--bg-paper); color: var(--ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--green); color: var(--green-dark); }

/* ---------- Subnav ---------- */
.subnav { border-bottom: 1px solid var(--rule); background: var(--bg); }
.subnav__inner {
  display: flex; gap: 28px; padding: 10px var(--gutter);
  max-width: 1440px; margin: 0 auto;
  font-family: var(--sans); font-size: 13px;
  overflow-x: auto; scrollbar-width: none;
}
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { color: var(--ink-soft); border: none; white-space: nowrap; font-weight: 500; }
.subnav a:hover { color: var(--green-dark); }
.subnav a.active { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  padding: 12px 22px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; letter-spacing: 0.01em;
  transition: all .15s;
}
.btn--primary { background: var(--terra); color: #fff; border-color: var(--terra); }
.btn--primary:hover { background: var(--terra-dark); border-color: var(--terra-dark); color: #fff; }
.btn--green { background: var(--green); color: #fff; border-color: var(--green); }
.btn--green:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--sm { padding: 8px 16px; font-size: 13px; }

/* ---------- Tag/Pill ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
  background: var(--green-soft); color: var(--green-dark); border: none;
}
.tag--terra { background: var(--terra-soft); color: var(--terra-dark); }
.tag--mute  { background: var(--bg-deep); color: var(--ink-soft); }
.tag--week  { background: var(--ink); color: var(--bg); }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-family: var(--sans); font-weight: 500;
  color: var(--ink-soft); background: var(--bg); border: 1px solid var(--rule);
  padding: 4px 10px; border-radius: 100px; text-decoration: none;
}
.pill:hover { background: var(--green-soft); color: var(--green-dark); border-color: var(--green-soft); }

/* ---------- Card ---------- */
.card { display: flex; flex-direction: column; gap: 12px; }
.card__img {
  aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--bg-deep);
}
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.03); }
.card__meta {
  display: flex; gap: 10px; align-items: center;
  font-size: 12px; color: var(--ink-mute); font-family: var(--sans);
}
.card__title {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 500;
  line-height: 1.25; color: var(--ink); letter-spacing: -0.005em;
}
.card__title a { color: inherit; border: none; }
.card__title a:hover { color: var(--green-dark); }
.card__excerpt { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.dot { color: var(--rule); }

/* ---------- Weekly task card ---------- */
.weekly {
  background: var(--bg-paper); border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.weekly:hover {
  transform: translateY(-2px); border-color: var(--green);
  box-shadow: 0 12px 32px -16px rgba(40,74,37,.18);
}
.weekly__icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--green-soft); border-radius: 50%; color: var(--green-dark);
}
.weekly__icon svg { width: 22px; height: 22px; }
.weekly h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.weekly__advice { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.weekly__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--tight { padding: 48px 0; }
.section__head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 32px; gap: 24px;
}
.section__head h2 { font-size: 2rem; }
.section__head .more {
  font-family: var(--sans); font-size: 14px; color: var(--ink-soft);
  border-bottom: 1px solid var(--rule); padding-bottom: 2px;
}
.section__head .more:hover { color: var(--terra); border-color: var(--terra); }

/* ---------- Hero variants ---------- */
.hero { padding: 56px 0 32px; }
.hero--mag {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.hero--mag .hero__img { aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; }
.hero--mag .hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero--mag h1 { font-size: clamp(2.4rem,4.5vw,3.6rem); font-style: italic; font-weight: 400; }
.hero--mag .hero__lede { font-size: 1.2rem; color: var(--ink-soft); margin: 20px 0 28px; max-width: 540px; }

.hero--full {
  position: relative; height: 70vh; min-height: 480px; max-height: 640px;
  border-radius: var(--radius-lg); overflow: hidden; margin: 0 var(--gutter);
}
.hero--full > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--full::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,rgba(0,0,0,0) 30%,rgba(0,0,0,.65) 100%);
}
.hero--full .hero__body {
  position: absolute; left: 48px; right: 48px; bottom: 48px;
  color: #fff; z-index: 2; max-width: 740px;
}
.hero--full h1 { color: #fff; font-size: clamp(2.4rem,4.5vw,4rem); }
.hero--full .hero__lede { color: rgba(255,255,255,.9); font-size: 1.15rem; margin: 16px 0 24px; max-width: 540px; }

.meta-line {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  font-family: var(--sans); font-size: 13px; color: var(--ink-mute);
}

/* ---------- Reading progress ---------- */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; background: transparent; z-index: 100; pointer-events: none;
}
.reading-progress__bar {
  height: 100%; width: 0; background: var(--terra); transition: width .05s linear;
}

/* ---------- Article body (evergreen) ---------- */
.article-body { font-size: 17.5px; line-height: 1.75; color: var(--ink); }
.article-body h2 { font-size: 1.85rem; margin: 56px 0 16px; position: relative; }
.article-body h2::before {
  content: ''; position: absolute; left: -28px; top: 14px;
  width: 14px; height: 2px; background: var(--terra);
}
.article-body h3 { font-size: 1.35rem; margin: 36px 0 12px; }
.article-body p { margin: 0 0 1.2em; }
.article-body figure { margin: 32px 0; }
.article-body figcaption { font-size: 13px; color: var(--ink-mute); font-style: italic; margin-top: 8px; text-align: center; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 1.2em; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 3px solid var(--green); padding: 4px 0 4px 24px; margin: 32px 0;
  font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--ink); line-height: 1.4;
}

/* ---------- TOC ---------- */
.toc {
  position: sticky; top: 120px;
  font-family: var(--sans); font-size: 14px;
  border-left: 1px solid var(--rule); padding-left: 20px;
}
.toc__head {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 14px;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 12px; line-height: 1.4; }
.toc li::before {
  content: counter(toc,decimal-leading-zero);
  font-size: 11px; color: var(--ink-mute); margin-right: 10px;
}
.toc a { color: var(--ink-soft); border: none; }
.toc a:hover { color: var(--green-dark); }
.toc a.active { color: var(--ink); font-weight: 600; }

/* ---------- Callouts ---------- */
.callout { border-radius: var(--radius-lg); padding: 24px 28px; margin: 32px 0; font-size: 16px; }
.callout__head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px;
}
.callout__head svg { width: 18px; height: 18px; }
.callout p:last-child { margin-bottom: 0; }
.callout--tip  { background: var(--green-tint); border-left: 3px solid var(--green); }
.callout--tip .callout__head  { color: var(--green-dark); }
.callout--warn { background: #fbe9dd; border-left: 3px solid var(--terra); }
.callout--warn .callout__head { color: var(--terra-dark); }
.callout--season {
  background: var(--bg-deep); border-left: 3px solid #c8a44a;
  display: flex; align-items: center; gap: 20px;
}
.callout--season .callout__head { color: #8a6e23; margin-bottom: 4px; }
.callout--season .season-track {
  flex: 1; height: 8px; background: var(--bg); border-radius: 100px;
  position: relative; overflow: hidden;
}
.callout--season .season-track__active {
  position: absolute; top: 0; bottom: 0;
  background: linear-gradient(90deg,var(--green),#c8a44a); border-radius: 100px;
}

/* ---------- Steps ---------- */
.steps {
  background: var(--bg-paper); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: 28px 32px; margin: 32px 0;
  counter-reset: step;
}
.steps__title {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-dark); margin: 0 0 18px;
}
.steps ol { list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 36px 1fr;
  gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule-soft);
}
.steps li:last-child { border-bottom: none; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--green-dark);
  line-height: 1; border: 1.5px solid var(--green); background: var(--bg);
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.steps li > strong { display: block; margin-bottom: 4px; font-weight: 600; }
.steps li > p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq { margin: 32px 0; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); padding: 20px 0; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--green-dark); }
.faq details[open] summary::after { content: '−'; }
.faq details > div, .faq details > p { padding-top: 14px; color: var(--ink-soft); font-size: 16px; line-height: 1.65; }

/* ---------- Calendar widget ---------- */
.cal-mini { background: var(--green-deep); color: var(--bg); border-radius: var(--radius-lg); padding: 28px; margin: 32px 0; }
.cal-mini__eye { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: .7; }
.cal-mini h4 { color: var(--bg); font-family: var(--serif); font-size: 1.4rem; margin: 6px 0 14px; }
.cal-mini__strip { display: grid; grid-template-columns: repeat(12,1fr); gap: 2px; margin-top: 12px; }
.cal-mini__m { text-align: center; font-size: 11px; padding: 8px 0 6px; background: rgba(255,255,255,.06); border-radius: 4px; }
.cal-mini__m.on  { background: var(--terra); color: #fff; font-weight: 600; }
.cal-mini__m.now { outline: 2px solid #fff; outline-offset: 1px; }

/* ---------- Year track ---------- */
.year-track { background: var(--bg-paper); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 20px 24px; }
.year-track__bar {
  position: relative; height: 36px; border-radius: 100px; margin-bottom: 8px;
  background: linear-gradient(90deg,
    #d5dbe3 0%,#d5dbe3 16.6%,#cfe1c9 16.6%,#cfe1c9 41.6%,
    #f1d989 41.6%,#f1d989 66.6%,#d9b890 66.6%,#d9b890 91.6%,
    #d5dbe3 91.6%,#d5dbe3 100%);
}
.year-track__pin {
  position: absolute; top: -6px; bottom: -6px; width: 4px;
  background: var(--terra); border-radius: 4px; box-shadow: 0 0 0 3px rgba(196,90,58,.18);
}
.year-track__pin::after {
  content: attr(data-label); position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--terra-dark); white-space: nowrap;
}
.year-track__labels {
  display: grid; grid-template-columns: repeat(12,1fr);
  font-size: 11px; color: var(--ink-mute); font-weight: 500;
}
.year-track__labels span { text-align: center; cursor: pointer; }
.year-track__labels span.now { color: var(--terra-dark); font-weight: 700; }

/* ---------- Task card (calendar) ---------- */
.task {
  background: var(--bg-paper); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 10px;
  position: relative; transition: border-color .15s, transform .15s;
}
.task:hover { border-color: var(--green); transform: translateY(-1px); }
.task__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task__crop { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.task__icon {
  width: 36px; height: 36px; background: var(--green-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--green-dark);
}
.task__icon svg { width: 18px; height: 18px; }
.task__type {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
}
.task__type--sow     { background: #e6ede0; color: #2f5a2c; }
.task__type--plant   { background: #d8e5d0; color: #1f4a1c; }
.task__type--harvest { background: var(--terra-soft); color: var(--terra-dark); }
.task__type--care    { background: #ece1d2; color: #6a543a; }
.task__desc { font-size: 14px; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.task__link { font-size: 13px; color: var(--green-dark); border-bottom: 1px solid var(--rule); align-self: flex-start; }
.task__link:hover { color: var(--terra); border-color: var(--terra); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--bg-deep); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 56px 0; }
.newsletter__inner { max-width: 760px; margin: 0 auto; text-align: center; padding: 0 var(--gutter); }
.newsletter h3 { font-family: var(--serif); font-size: 2rem; margin-bottom: 12px; }
.newsletter p { color: var(--ink-soft); margin-bottom: 24px; }
.newsletter form {
  display: flex; max-width: 480px; margin: 0 auto;
  background: var(--bg-paper); border: 1px solid var(--ink); border-radius: 100px;
  overflow: hidden; padding: 4px;
}
.newsletter input { flex: 1; border: 0; background: transparent; padding: 10px 18px; font-family: var(--sans); font-size: 15px; color: var(--ink); outline: none; }
.newsletter button {
  border: 0; background: var(--ink); color: var(--bg); padding: 10px 22px; border-radius: 100px;
  font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer;
}
.newsletter button:hover { background: var(--terra); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: var(--bg); padding: 72px 0 32px; margin-top: 96px; }
.site-footer a { color: var(--bg); border: none; opacity: .85; }
.site-footer a:hover { opacity: 1; color: var(--terra-soft); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; }
.site-footer h4 {
  color: var(--bg); font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 18px; opacity: .7;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { font-size: 14.5px; margin-bottom: 10px; }
.site-footer .brand { color: var(--bg); font-size: 26px; }
.site-footer .brand__tag { color: var(--bg); opacity: .6; }
.site-footer__bot {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; font-size: 13px; opacity: .7;
}

/* ---------- Archive / filter sidebar ---------- */
.arc-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 56px; align-items: start; }
.arc-filters { position: sticky; top: 120px; font-family: var(--sans); }
.arc-filters h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 14px; font-family: var(--sans);
}
.arc-filters__group { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--rule); }
.arc-filters__group:last-child { border-bottom: none; }
.arc-filters ul { list-style: none; padding: 0; margin: 0; }
.arc-filters li { padding: 5px 0; }
.arc-filters label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.arc-filters label:hover { color: var(--green-dark); }
.arc-filters .count { margin-left: auto; color: var(--ink-mute); font-size: 12px; }
.arc-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.arc-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 36px 28px; }
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin-top: 56px; font-family: var(--sans); font-size: 14px;
}
.pagination .page-numbers {
  padding: 8px 12px; color: var(--ink-soft); border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none;
}
.pagination .page-numbers:hover { color: var(--green-dark); border-color: var(--rule); }
.pagination .current { background: var(--ink); color: var(--bg); font-weight: 600; }

/* ================================================================
   DARK MODE
   ================================================================ */
:root[data-theme="dark"] {
  --bg: #1a1611; --bg-paper: #221d16; --bg-deep: #2a241b;
  --ink: #e8e0d0; --ink-soft: #b8ad97; --ink-mute: #8a8170;
  --rule: #3a3127; --rule-soft: #2c251c;
  --green: #6b9a64; --green-dark: #8db984; --green-deep: #1a2f17;
  --green-soft: #2a3a25; --green-tint: #1f2a1b;
  --terra: #d97a5a; --terra-dark: #e89578; --terra-soft: #3a261e;
}
[data-theme="dark"] .site-header { background: rgba(26,22,17,.92); }
[data-theme="dark"] .site-footer { background: #0f1a0d; }
[data-theme="dark"] .newsletter input { color: var(--ink); }
[data-theme="dark"] .callout--warn { background: #2e1f15; }
[data-theme="dark"] .task__type--sow     { background: #2a3a25; color: #b8d4a8; }
[data-theme="dark"] .task__type--plant   { background: #233220; color: #a8c89a; }
[data-theme="dark"] .task__type--harvest { background: #3a261e; color: #e89578; }
[data-theme="dark"] .task__type--care    { background: #2e271d; color: #c8b89a; }
[data-theme="dark"] .year-track__bar {
  background: linear-gradient(90deg,#2a323a 0%,#2a323a 16.6%,#2a3a25 16.6%,#2a3a25 41.6%,
    #3a3220 41.6%,#3a3220 66.6%,#3a2e22 66.6%,#3a2e22 91.6%,#2a323a 91.6%,#2a323a 100%);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 980px) {
  .hero--mag { grid-template-columns: 1fr; gap: 32px; }
  .hero--mag .hero__img { aspect-ratio: 16/10; }
  .hero--full .hero__body { left: 24px; right: 24px; bottom: 24px; }
}
@media (max-width: 900px) {
  .site-header__inner { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .arc-layout { grid-template-columns: 1fr; }
  .arc-filters { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: start; gap: 12px; }
  .article-body h2::before { display: none; }
}

/* ================================================================
   HOMEPAGE — FRONT-PAGE COMPONENTS
   ================================================================ */

/* Hero — Magazine variant */
.hero--mag {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--gutter) 56px;
  align-items: start;
}
.hero--mag .hero__main { display: flex; flex-direction: column; gap: 0; }
.hero--mag .hero__img { border-radius: var(--radius-lg); overflow: hidden; }
.hero--mag .hero__img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.hero--mag .hero__body { padding: 24px 0 0; }
.hero--mag .hero__title { font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 500; line-height: 1.2; margin: 12px 0 16px; }
.hero--mag .hero__title a { color: var(--ink); border: none; }
.hero--mag .hero__title a:hover { color: var(--green-dark); }
.hero--mag .hero__deck { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; margin: 0 0 16px; }
.hero--mag .hero__meta { display: flex; gap: 12px; font-family: var(--sans); font-size: 13px; color: var(--ink-mute); }
.hero__stack { display: flex; flex-direction: column; gap: 20px; }
.hero__item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }
.hero__item-img { border-radius: var(--radius); overflow: hidden; }
.hero__item-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero__item h3 { font-size: 1.05rem; font-weight: 500; margin: 6px 0 4px; line-height: 1.3; }
.hero__item h3 a { color: var(--ink); border: none; }
.hero__item h3 a:hover { color: var(--green-dark); }
.hero__item .meta { font-family: var(--sans); font-size: 12px; color: var(--ink-mute); }
@media (max-width: 980px) {
  .hero--mag { grid-template-columns: 1fr; }
  .hero__stack { flex-direction: row; flex-wrap: wrap; }
  .hero__item { grid-template-columns: 100px 1fr; }
}

/* Section head — shared across homepage sections */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; margin: 0; }
.text-link { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--green-dark); border-bottom: 1px solid var(--green-soft); }
.text-link:hover { border-color: var(--green-dark); }

/* Weekly section */
.weekly-section { padding: 56px 0; }
.weekly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Latest section */
.latest-section { padding: 56px 0; }

/* Evergreen section */
.evergreen-section { padding: 56px 0; background: var(--bg-deep); margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.arc-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .arc-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .arc-grid--3 { grid-template-columns: 1fr; } }

/* Havekalender CTA */
.cal-cta { padding: 56px 0; }
.cal-cta__inner {
  background: var(--green-deep);
  color: white;
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.cal-cta__inner .eyebrow { color: rgba(255,255,255,0.6); }
.cal-cta__inner h2 { color: white; font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 12px 0 16px; }
.cal-cta__inner p { color: rgba(255,255,255,0.75); margin: 0 0 28px; font-size: 1.05rem; }

/* ================================================================
   ARCHIVE / CATEGORY — page-specific additions
   ================================================================ */
.arc-head {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}
.arc-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
.arc-head .lede { max-width: 580px; margin: 16px 0 0; color: var(--ink-soft); font-size: 1.1rem; }

/* ================================================================
   HAVEKALENDER PAGE
   ================================================================ */
.kal-head { padding: 56px 0 32px; text-align: center; }
.kal-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; max-width: 720px; margin: 0 auto; }
.kal-head .lede { max-width: 560px; margin: 20px auto 0; font-size: 1.15rem; color: var(--ink-soft); }

.kal-filters {
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin: 32px 0 48px;
}
.kal-filters label.f {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.kal-filters select {
  appearance: none;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 14px 40px 14px 18px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232a2018' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.kal-filters select:focus { border-color: var(--green); }

.kal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0;
  align-items: center;
}
.kal-chip {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kal-chip:hover { border-color: var(--green); }
.kal-chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.kal-chip__dot { width: 8px; height: 8px; border-radius: 50%; }
.kal-chip[data-type="sow"]     .kal-chip__dot { background: #2f5a2c; }
.kal-chip[data-type="plant"]   .kal-chip__dot { background: #4a7d44; }
.kal-chip[data-type="harvest"] .kal-chip__dot { background: var(--terra-dark); }
.kal-chip[data-type="care"]    .kal-chip__dot { background: #8a6d4a; }

.kal-result-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
  gap: 24px;
  flex-wrap: wrap;
}
.kal-result-head h2 { font-size: 1.6rem; font-weight: 500; margin: 0; }
.kal-result-head .count { font-family: var(--sans); font-size: 14px; color: var(--ink-mute); }

.kal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.kal-empty {
  padding: 64px;
  text-align: center;
  background: var(--bg-paper);
  border: 1px dashed var(--rule);
  border-radius: var(--radius-lg);
  color: var(--ink-mute);
  font-family: var(--serif);
  font-size: 1.2rem;
}
@media (max-width: 800px) {
  .kal-filters { grid-template-columns: 1fr; padding: 20px; gap: 14px; }
}

/* ================================================================
   EVERGREEN ARTICLE — 3-COLUMN LAYOUT
   ================================================================ */
.ev-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--read-w)) 220px;
  gap: 60px;
  justify-content: center;
  align-items: start;
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 0 var(--gutter);
}
.ev-aside { padding-top: 8px; }
.ev-aside--left { position: sticky; top: 100px; }
.toc { font-family: var(--sans); }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc a { color: var(--ink-soft); border: none; font-size: 13.5px; }
.toc a:hover { color: var(--green-dark); }

.ev-aside--right { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); }
.ev-aside--right h5 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 12px;
}
.ev-aside--right ul { list-style: none; padding: 0; margin: 0 0 28px; }
.ev-aside--right li { margin-bottom: 8px; }
.ev-aside--right a { color: var(--ink-soft); border: none; }
.ev-aside--right a:hover { color: var(--green-dark); }

.toc-mobile {
  display: none;
  margin: 0 var(--gutter) 32px;
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}
.toc-mobile summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: '▾'; font-size: 14px; color: var(--ink-mute); }
.toc-mobile[open] summary::after { content: '▴'; }
.toc-mobile ol { padding-left: 24px; margin: 14px 0 0; color: var(--ink-soft); }
.toc-mobile li { padding: 4px 0; }
.toc-mobile a { color: var(--ink-soft); border: none; }

@media (max-width: 1100px) {
  .ev-grid { grid-template-columns: minmax(0, var(--read-w)) 220px; }
  .ev-aside--left { display: none; }
  .toc-mobile { display: block; }
}
@media (max-width: 820px) {
  .ev-grid { grid-template-columns: 1fr; }
  .ev-aside--right { display: none; }
}

/* ================================================================
   DARK MODE — additional page-specific overrides
   ================================================================ */
[data-theme="dark"] .kal-filters { background: var(--bg-paper); border-color: var(--rule); }
[data-theme="dark"] .kal-filters select { background: var(--bg); color: var(--ink); }
[data-theme="dark"] .kal-chip { background: var(--bg); border-color: var(--rule); color: var(--ink-soft); }
[data-theme="dark"] .kal-chip.active { background: var(--ink); color: var(--bg); }
[data-theme="dark"] .cal-cta__inner { background: #0f1a0d; }
[data-theme="dark"] .toc-mobile { background: var(--bg-paper); border-color: var(--rule); }

/* ================================================================
   COMPLETION PASS
   ================================================================ */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus,
.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 16px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--bg);
  z-index: 120;
  border-radius: var(--radius);
}
:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
}
.desktop-only { display: block; }
.mobile-only { display: none; }
.menu-open { overflow: hidden; }

.nav-toggle {
  border-radius: 999px;
  gap: 3px;
  flex-direction: column;
}
.nav-toggle__line {
  display: block;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  border-radius: 999px;
}
.mobile-nav {
  border-top: 1px solid var(--rule);
  background: var(--bg);
}
.mobile-nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px var(--gutter) 24px;
}
.mobile-nav__search { margin-bottom: 20px; }
.mobile-nav__links {
  display: grid;
  gap: 12px;
}
.mobile-nav__links a {
  border: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 6px 0;
}

.subnav {
  position: relative;
}
.subnav--fade-left::before,
.subnav--fade-right::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  z-index: 2;
}
.subnav--fade-left::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(245,241,232,0) 100%);
}
.subnav--fade-right::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 0%, rgba(245,241,232,0) 100%);
}

.weekly-content {
  max-width: var(--read-w);
  margin: 0 auto;
}

.comments-area {
  display: grid;
  gap: 24px;
}
.comments-title,
.comment-reply-title,
.widget-title {
  font-size: 1.2rem;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}
.comment-list .comment-body {
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.comment-metadata,
.comment-awaiting-moderation,
.logged-in-as,
.comment-notes {
  font-size: 13px;
  color: var(--ink-mute);
}
.comment-form {
  display: grid;
  gap: 14px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-paper);
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
}
.comment-form textarea { min-height: 160px; }

.widget {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.widget:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.widget a {
  border: 0;
}

@media (max-width: 900px) {
  .desktop-only { display: none; }
  .mobile-only { display: inline-flex; }
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }
  .header-tools {
    gap: 8px;
  }
  .kal-filters {
    grid-template-columns: 1fr;
  }
  .newsletter form {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }
  .newsletter button {
    width: 100%;
  }
  .site-footer__bot {
    flex-direction: column;
    gap: 12px;
  }
}
