/* Moss & Mayhem — North Bend garden survival guide */
:root {
  --cedar: #5c3d2e;
  --cedar-dark: #3a2419;
  --moss: #3d5c45;
  --moss-deep: #24382a;
  --fir: #1a2e22;
  --lichen: #7a9b6d;
  --fog: #e8ebe4;
  --mist: #f4f6f1;
  --cream: #faf8f4;
  --slate: #4a5560;
  --ink: #1c1a17;
  --rust: #a85a3a;
  --gold: #c4a35a;
  --bark: #8b6b4a;
  --card: #ffffff;
  --shadow: 0 12px 40px rgba(26, 46, 34, 0.12);
  --shadow-sm: 0 4px 16px rgba(26, 46, 34, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
  background-image:
    radial-gradient(ellipse 120% 80% at 10% -20%, rgba(122, 155, 109, 0.12), transparent),
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(92, 61, 46, 0.08), transparent);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 46, 34, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(122, 155, 109, 0.25);
  color: var(--fog);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--cream);
  line-height: 1.15;
}
.brand strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lichen);
  opacity: 0.9;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  color: var(--fog);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.9;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); opacity: 1; }
.nav-dropdown { position: relative; }
.nav-dropdown > button {
  background: none;
  border: none;
  color: var(--fog);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  opacity: 0.9;
}
.nav-dropdown > button:hover { color: var(--gold); }
.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  min-width: 220px;
  background: var(--fir);
  border: 1px solid rgba(122, 155, 109, 0.3);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: var(--shadow);
  max-height: 70vh;
  overflow-y: auto;
}
.nav-dropdown.open .nav-dropdown-panel { display: grid; gap: 0.15rem; }
.nav-dropdown-panel a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
}
.nav-dropdown-panel a:hover { background: rgba(122, 155, 109, 0.2); color: var(--gold); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(232, 235, 228, 0.35);
  color: var(--cream);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 0.85rem;
}

/* —— Layout —— */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section-tight { padding: 2.25rem 0; }

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,46,34,0.25) 0%, rgba(26,46,34,0.55) 45%, rgba(26,46,34,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 3rem 0 3.5rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 1rem;
  max-width: 16ch;
}
.hero .lede {
  font-size: 1.15rem;
  max-width: 42ch;
  opacity: 0.92;
  margin: 0 0 1.75rem;
}
.page-hero {
  background: var(--fir);
  color: var(--cream);
  padding: 3rem 0 2.5rem;
  border-bottom: 4px solid var(--moss);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}
.page-hero .lede {
  max-width: 60ch;
  opacity: 0.88;
  margin: 0;
  font-size: 1.08rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gold);
  color: var(--fir);
}
.btn-primary:hover { background: #d4b56a; color: var(--fir); }
.btn-ghost {
  background: transparent;
  border-color: rgba(250, 248, 244, 0.45);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-moss {
  background: var(--moss);
  color: var(--cream);
}
.btn-moss:hover { background: var(--moss-deep); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* —— Cards —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(61, 92, 69, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  background: var(--fog);
}
.card-body { padding: 1.15rem 1.25rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  color: var(--fir);
}
.card-body p {
  margin: 0 0 1rem;
  color: var(--slate);
  font-size: 0.95rem;
  flex: 1;
}
.card-body .card-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--moss);
  font-size: 0.92rem;
}
.card-body .card-link:hover { color: var(--rust); }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--moss);
  background: rgba(61, 92, 69, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

/* —— Typography blocks —— */
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: var(--fir);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
h3 {
  font-family: var(--font-display);
  color: var(--cedar-dark);
  font-size: 1.25rem;
  margin: 1.75rem 0 0.5rem;
}
.section-intro {
  max-width: 62ch;
  color: var(--slate);
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
}
.prose {
  max-width: 70ch;
}
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--fir); }

/* —— Callouts —— */
.callout {
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--moss);
  background: rgba(61, 92, 69, 0.08);
}
.callout.gremlin {
  border-left-color: var(--rust);
  background: rgba(168, 90, 58, 0.1);
}
.callout.warning {
  border-left-color: var(--gold);
  background: rgba(196, 163, 90, 0.15);
}
.callout h4 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--fir);
}
.callout p { margin: 0; color: var(--slate); font-size: 0.98rem; }
.callout ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--slate);
  font-size: 0.95rem;
}
.callout li { margin-bottom: 0.45rem; }
.callout li:last-child { margin-bottom: 0; }
.prose .muted em { color: var(--rust); font-style: normal; font-weight: 600; }
.callout.clinic h4::before,
.callout.field h4::before { content: none; }
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--moss);
  font-weight: 700;
}
.course-meta span {
  background: rgba(61, 92, 69, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

/* —— Stats / fact strips —— */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
}
.stat {
  background: var(--card);
  border: 1px solid rgba(61, 92, 69, 0.15);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.stat .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--moss);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.stat .value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--fir);
  font-weight: 600;
  line-height: 1.3;
}

/* —— Crop guide layout —— */
.guide-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 0 3.5rem;
}
@media (min-width: 900px) {
  .guide-layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}
.guide-main { min-width: 0; }
.guide-aside {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.toc {
  background: var(--card);
  border: 1px solid rgba(61, 92, 69, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.toc h4 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--fir);
}
.toc ol {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
}
.toc a { text-decoration: none; color: var(--slate); }
.toc a:hover { color: var(--moss); }
.quick-facts {
  margin-top: 1rem;
  background: var(--fir);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
}
.quick-facts h4 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.95rem;
}
.quick-facts dl { margin: 0; }
.quick-facts dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lichen);
  margin-top: 0.65rem;
}
.quick-facts dd {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
}

/* —— Gallery —— */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--fog);
  box-shadow: var(--shadow-sm);
}
.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.gallery figcaption {
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  color: var(--slate);
  background: var(--card);
}

/* —— Split media —— */
.split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1.1fr 1fr; }
  .split.reverse { direction: rtl; }
  .split.reverse > * { direction: ltr; }
}
.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* —— Tables —— */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(61, 92, 69, 0.15);
  background: var(--card);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(61, 92, 69, 0.1);
}
th {
  background: var(--fir);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: rgba(61, 92, 69, 0.04); }

/* —— Calendar months —— */
.month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}
.month-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(61, 92, 69, 0.12);
  box-shadow: var(--shadow-sm);
}
.month-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--moss);
}
.month-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--slate);
}

/* —— Footer —— */
.site-footer {
  background: var(--fir);
  color: var(--fog);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2rem;
}
.site-footer h4 {
  font-family: var(--font-display);
  color: var(--gold);
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
.site-footer a {
  color: var(--fog);
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  opacity: 0.85;
}
.site-footer a:hover { color: var(--gold); opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(232, 235, 228, 0.15);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* —— Blog —— */
.blog-list { display: grid; gap: 1.25rem; }
.blog-teaser {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(61, 92, 69, 0.12);
  box-shadow: var(--shadow-sm);
}
.blog-teaser h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.4rem;
}
.blog-teaser h3 a { text-decoration: none; color: var(--fir); }
.blog-teaser h3 a:hover { color: var(--moss); }
.meta { font-size: 0.82rem; color: var(--slate); }

/* —— Details / progressive disclosure —— */
details.deep-dive {
  background: var(--card);
  border: 1px solid rgba(61, 92, 69, 0.15);
  border-radius: var(--radius);
  padding: 0.85rem 1.15rem;
  margin: 1rem 0;
}
details.deep-dive summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--fir);
  font-family: var(--font-display);
}
details.deep-dive[open] summary { margin-bottom: 0.75rem; }
details.deep-dive p:last-child { margin-bottom: 0; }

/* —— Utility —— */
.muted { color: var(--slate); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.wood-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--cedar), var(--moss), var(--lichen));
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--fir);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.65rem;
    border-bottom: 1px solid rgba(122, 155, 109, 0.25);
  }
  .nav-links.open { display: flex; }
  .nav-dropdown-panel {
    position: static;
    display: none;
    margin-top: 0.35rem;
  }
  .nav-dropdown.open .nav-dropdown-panel { display: grid; }
  .guide-aside { position: static; }
}
