/* Michigan Lavender Farms — single stylesheet. Mobile-first, system fonts, light + dark. */

:root {
  --bg: #fbfaff;
  --surface: #ffffff;
  --surface-2: #f3f0fb;
  --text: #241f31;
  --muted: #5b5570;
  --border: #e6e1f2;
  --brand: #6b4fa0;
  --brand-ink: #4a3570;
  --brand-soft: #efe9fb;
  --accent: #8a6fc4;
  --ring: #c9b8ec;
  --good: #2f7d4f;
  --shadow: 0 1px 2px rgba(40, 28, 70, 0.06), 0 6px 20px rgba(40, 28, 70, 0.06);
  --radius: 14px;
  --max: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #15121c;
    --surface: #1e1a28;
    --surface-2: #241f31;
    --text: #ece9f5;
    --muted: #b1a9c6;
    --border: #322b43;
    --brand: #b9a2ec;
    --brand-ink: #d6c8f5;
    --brand-soft: #241f31;
    --accent: #a98fe0;
    --ring: #5a4a86;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme='dark'] {
  --bg: #15121c;
  --surface: #1e1a28;
  --surface-2: #241f31;
  --text: #ece9f5;
  --muted: #b1a9c6;
  --border: #322b43;
  --brand: #b9a2ec;
  --brand-ink: #d6c8f5;
  --brand-soft: #241f31;
  --accent: #a98fe0;
  --ring: #5a4a86;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 1.05rem; }
.brand span { white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .sprig { width: 26px; height: 26px; flex: none; }
.site-nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  padding: 7px 12px; border-radius: 999px; color: var(--muted); font-size: 0.93rem; font-weight: 600;
}
.site-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; min-height: 0; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .brand { width: 100%; }
  .site-nav { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .site-nav a { white-space: nowrap; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--brand-soft), transparent 70%);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 36px;
}
.hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 20px; max-width: 60ch; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }

/* Breadcrumbs */
.crumbs { font-size: 0.86rem; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-ink); }
.crumbs span[aria-current] { color: var(--text); }

/* Sections */
main { padding: 8px 0 48px; }
section { margin: 36px 0; }
h2 { font-size: 1.5rem; letter-spacing: -0.01em; margin: 0 0 6px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }
.section-intro { color: var(--muted); margin: 0 0 18px; max-width: 70ch; }

/* Chips / meta */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
}
.chip.ok { color: var(--good); border-color: color-mix(in srgb, var(--good) 35%, var(--border)); }

/* Cards grid */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px;
}
.card h3 { margin: 0; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--brand-ink); text-decoration: none; }
.card .where { color: var(--muted); font-size: 0.92rem; }
.card .desc { color: var(--muted); font-size: 0.95rem; margin: 4px 0 0; }
.card .rownear { margin-top: auto; padding-top: 10px; font-size: 0.85rem; color: var(--muted); }
.card .dist { font-weight: 700; color: var(--brand-ink); }

/* Lists of links (regions, cities) */
.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .linklist { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .linklist.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
.linklist a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-weight: 600;
}
.linklist a:hover { border-color: var(--ring); text-decoration: none; }
.linklist a .count { color: var(--muted); font-weight: 600; font-size: 0.85rem; }

/* Region block */
.region { margin: 28px 0; }
.region > h3 { font-size: 1.25rem; color: var(--brand-ink); }
.region > p { color: var(--muted); margin: 2px 0 14px; max-width: 70ch; }

/* Farm detail */
.detail-head { display: grid; gap: 18px; }
.callout {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; margin: 18px 0;
}
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 620px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.facts .k { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand); font-weight: 700; margin-bottom: 3px; }
.facts .v { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem;
  padding: 11px 18px; border-radius: 10px; background: var(--brand); color: #fff; border: 1px solid transparent;
}
.btn:hover { background: var(--brand-ink); text-decoration: none; }
.btn.secondary { background: var(--surface); color: var(--brand-ink); border-color: var(--border); }
.btn.secondary:hover { border-color: var(--ring); background: var(--surface); }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 2px 16px; margin: 10px 0;
}
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.faq summary::marker { color: var(--brand); }
.faq details p { color: var(--muted); margin: 0 0 12px; }

/* Festival table */
.ftable { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ftable th, .ftable td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.ftable th { background: var(--surface-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand); }
.ftable tr:last-child td { border-bottom: none; }

/* Prose */
.prose p { margin: 0 0 16px; }
.prose h2 { margin-top: 28px; }
.prose ul { padding-left: 20px; color: var(--muted); }

/* Notice */
.notice { font-size: 0.85rem; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--border); border-radius: 10px; padding: 10px 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 32px 0; color: var(--muted); font-size: 0.92rem; }
.site-footer .cols { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: var(--text); font-size: 0.92rem; margin: 0 0 10px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brand-ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .legal { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 0.84rem; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 10px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 20; }
