/* Regional Gardening — minimalist serif/sans system. No emoji. */

:root {
  --bg: #f7f4ee;
  --bg-elev: #fffdf8;
  --ink: #1f2419;
  --ink-soft: #4a4f44;
  --ink-faint: #7a7e74;
  --rule: #e2dccf;
  --accent: #5a6b3f;       /* muted botanical green */
  --accent-ink: #3f4d2c;
  --accent-soft: #eef2e3;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1100px;
  --max-prose: 680px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); }
.header-inner { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 1rem 0; text-align: center; }
.brand { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.site-nav a { font-family: var(--sans); font-size: 0.92rem; text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--accent); }

@media (min-width: 600px) {
  .header-inner { flex-direction: row; justify-content: space-between; align-items: center; padding: 1.25rem 0; text-align: left; }
  .site-nav a { font-size: 0.95rem; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--rule); margin-top: 4rem; background: var(--bg); }
.footer-inner { padding: 2rem 0; text-align: center; }
.footer-brand { font-family: var(--serif); font-size: 1rem; font-weight: 600; margin: 0 0 0.5rem; color: var(--ink); }
.footer-nav a { margin: 0 0.75rem; color: var(--ink-soft); font-size: 0.9rem; text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-size: 0.85rem; color: var(--ink-faint); margin: 1rem 0 0; }

/* Hero (home) */
.hero { padding: 4rem 0 2rem; }
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 22ch; margin-bottom: 0.6em; }
.hero-lede { max-width: var(--max-prose); font-size: 1.15rem; color: var(--ink-soft); }

/* Section heading */
.section-heading { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); font-family: var(--sans); font-weight: 500; margin: 2rem 0 1.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--rule); }

/* Guides grid */
.guides-grid-section { padding: 2rem 0 4rem; }
.guides-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }
.guide-card-link { display: block; text-decoration: none; color: inherit; background: var(--bg-elev); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.guide-card-link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); border-color: var(--accent); }
.guide-card-cover { aspect-ratio: 3 / 4; background: var(--accent-soft); overflow: hidden; }
.guide-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.guide-card-text { padding: 1.25rem 1.25rem 1.5rem; }
.guide-card-eyebrow { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 0.4rem; }
.guide-card-title { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; margin: 0 0 0.5rem; color: var(--ink); }
.guide-card-status { font-size: 0.85rem; color: var(--accent-ink); margin: 0; }

/* Guide page */
.guide-page { padding: 3rem 0 4rem; }
.guide-hero { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 720px) { .guide-hero { grid-template-columns: 1.6fr 1fr; align-items: center; } }
.guide-eyebrow { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 0.75rem; }
.guide-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.5em; }
.guide-blurb { font-size: 1.1rem; color: var(--ink-soft); max-width: var(--max-prose); }
.guide-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.guide-hero-cover { background: var(--accent-soft); border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; }
.guide-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.guide-body { display: flex; flex-direction: column; gap: 3rem; max-width: var(--max-prose); }

/* Buttons */
.btn { display: inline-block; padding: 0.7rem 1.25rem; font-family: var(--sans); font-size: 0.95rem; font-weight: 500; text-decoration: none; border-radius: var(--radius); border: 1px solid transparent; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-link { background: transparent; color: var(--accent-ink); border-color: var(--rule); }
.btn-link:hover { border-color: var(--accent); color: var(--accent); }

/* Buy panel */
.buy-panel { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg-elev); padding: 1.75rem; }
.buy-heading { font-size: 1.3rem; margin-bottom: 1.25rem; }
.buy-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.buy-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.1rem; border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--bg); transition: border-color 0.15s ease, background 0.15s ease; }
.buy-link:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.buy-label { font-weight: 500; }
.buy-meta { font-size: 0.85rem; color: var(--ink-faint); letter-spacing: 0.04em; }
.buy-link-details { padding: 0; border: 1px solid var(--rule); background: var(--bg); }
.buy-link-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.1rem; cursor: pointer; list-style: none; }
.buy-link-details > summary::-webkit-details-marker { display: none; }
.buy-link-details[open] > summary { border-bottom: 1px solid var(--rule); }
.library-request-body { padding: 1rem 1.1rem 1.25rem; font-size: 0.95rem; color: var(--ink-soft); }
.library-request-info { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem; margin: 0.75rem 0; }
.library-request-info dt { color: var(--ink-faint); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.library-request-info dd { margin: 0; color: var(--ink); }
.library-request-note { font-size: 0.9rem; color: var(--ink-faint); margin-top: 0.5rem; }

/* Feedback CTA on guide page (legacy class name kept for layout reuse) */
.newsletter-cta { padding: 2rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--accent-soft); }
.newsletter-cta h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.newsletter-cta p { color: var(--ink-soft); margin-bottom: 1rem; }

/* Prose pages */
.prose { max-width: var(--max-prose); padding-top: 3rem; padding-bottom: 3rem; }
.prose h1 { font-size: 2.2rem; margin-bottom: 1rem; }
.prose h2 { margin-top: 2rem; }

/* Feedback form */
.feedback-form { display: flex; flex-direction: column; gap: 0.5rem; max-width: 540px; margin-top: 1.5rem; }
.feedback-form label { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.75rem; }
.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-elev);
  font-family: var(--sans);
  color: var(--ink);
  width: 100%;
}
.feedback-form textarea { font-family: var(--sans); resize: vertical; min-height: 140px; }
.feedback-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%), linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%); background-position: calc(100% - 18px) center, calc(100% - 12px) center; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.feedback-form button { align-self: flex-start; }
.form-note { font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.5rem; }

/* Print */
@media print {
  .site-header, .site-footer, .buy-panel, .newsletter-cta { display: none; }
}
