/* Ross County Mesh — one small stylesheet, no external fonts. */
:root {
  --bg: #fbf7ee;
  --surface: #f2eada;
  --border: #d9cfb8;
  --text: #1c241d;
  --muted: #485348;
  --green: #1d4a2a;
  --green-ink: #fbf7ee;
  --accent: #b8460e;
  --accent-ink: #ffffff;
  --focus: #b8460e;
  --radius: 10px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111a13;
    --surface: #1a261c;
    --border: #34443a;
    --text: #ece6d6;
    --muted: #bdb7a6;
    --green: #9fd3a9;
    --green-ink: #111a13;
    --accent: #f08a4b;
    --accent-ink: #111a13;
    --focus: #f6b07f;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1875rem; /* 19px */
  line-height: 1.6;
}
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }

a { color: var(--green); text-decoration-thickness: 0.08em; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 0.15em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
main:focus { outline: none; }

.skip-link {
  position: absolute; left: 1rem; top: -10rem; z-index: 10;
  background: var(--green); color: var(--green-ink); padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; }

/* Header and navigation */
.site-header { background: var(--surface); border-bottom: 3px solid var(--green); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--green); font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.logo { flex: none; }
.nav-toggle { display: none; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; padding-bottom: 0.6rem; margin-top: 0; margin-bottom: 0; }
.site-nav a { display: block; padding: 0.35rem 0.55rem; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--text); }
.site-nav a:hover { background: var(--bg); }
.site-nav a[aria-current="page"] { background: var(--green); color: var(--green-ink); }

/* Phones with JavaScript: tuck the menu behind a button. Without JS, the full list just wraps. */
@media (max-width: 47.99rem) {
  .js .nav-toggle {
    display: inline-block; font: inherit; font-weight: 700; font-size: 1rem;
    background: var(--green); color: var(--green-ink); border: 0; border-radius: var(--radius);
    padding: 0.55rem 1rem; min-height: 44px; cursor: pointer;
  }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 0.7rem 0.5rem; font-size: 1.1rem; border-bottom: 1px solid var(--border); border-radius: 0; }
}

/* Content */
main { padding: 1.5rem 0 3rem; }
.prose h1 { font-size: 2.1rem; line-height: 1.2; color: var(--green); margin: 0.5rem 0 1rem; }
.prose h2 { font-size: 1.5rem; line-height: 1.25; color: var(--green); margin: 2.25rem 0 0.75rem; }
.prose h3 { font-size: 1.25rem; margin: 1.75rem 0 0.5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose li { margin-bottom: 0.45rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose img { max-width: 100%; height: auto; }

.button {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none; padding: 0.75rem 1.3rem; border-radius: var(--radius);
  min-height: 44px; margin: 0.25rem 0.5rem 0.25rem 0;
}
.button:hover { filter: brightness(1.08); }
.button.secondary { background: var(--green); color: var(--green-ink); }

.hero { padding: 0.5rem 0 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.hero h1 { font-size: 2.5rem; margin-bottom: 0.25rem; }
.hero .tagline { font-size: 1.35rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; }

/* Tables scroll inside their own box on small screens */
.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
table:has(th:nth-child(3)) { min-width: 36rem; } /* wide tables scroll; two-column ones just wrap */
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
th { background: var(--surface); }
tr:last-child td { border-bottom: 0; }

.last-reviewed, .post-date, .crumb { color: var(--muted); font-size: 0.95rem; }
.last-reviewed { margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 0.75rem; }

.note { background: var(--surface); border-left: 5px solid var(--accent); padding: 0.85rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; }
.callout { font-weight: 700; }

.post-list { list-style: none; padding: 0; }
.post-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.post-list a { font-weight: 700; font-size: 1.2rem; }

/* FAQ: question on its own line, bold */
.faq dt { font-weight: 700; margin-top: 1.4rem; }
.faq dd { margin: 0.25rem 0 0; }

.site-footer { background: var(--surface); border-top: 3px solid var(--green); padding: 1.5rem 0; font-size: 0.95rem; color: var(--muted); }
.site-footer p { margin: 0 0 0.6rem; }
.footer-links a { font-weight: 600; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
