/* Fernleaf Garden Supplies - golden-set site for accessibility scoring.
   Base styles meet WCAG 2.2 AA contrast. Planted defects are documented in
   ../answer_key.json; nothing in this file is a defect unless a page says so. */
:root {
  --ink: #1d2a1f;
  --paper: #ffffff;
  --leaf: #1f5f2e;
  --leaf-dark: #143f1e;
  --muted: #4a5a4d;
  --band: #eef4ee;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: var(--leaf); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #b35c00;
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--leaf-dark); color: #fff; padding: 8px 12px;
}
.skip-link:focus { left: 8px; }
header.site {
  background: var(--leaf-dark); color: #fff; padding: 16px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
header.site .brand { font-size: 1.4rem; font-weight: bold; color: #fff; text-decoration: none; }
header.site nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
header.site nav a { color: #fff; }
main { max-width: 960px; margin: 0 auto; padding: 24px; }
footer.site { background: var(--band); color: var(--muted); padding: 16px 24px; font-size: 0.95rem; }
footer.site a { color: var(--leaf-dark); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.card { border: 1px solid #c9d6ca; border-radius: 6px; padding: 14px; background: #fff; }
.card img, .hero img { max-width: 100%; height: auto; display: block; }
.price { font-weight: bold; color: var(--leaf-dark); }
.btn {
  display: inline-block; background: var(--leaf); color: #fff; border: 0; border-radius: 4px;
  padding: 10px 16px; font-size: 1rem; cursor: pointer; text-decoration: none; min-height: 44px; min-width: 44px;
}
.btn:hover { background: var(--leaf-dark); }
form .field { margin-bottom: 14px; }
form label { display: block; font-weight: bold; margin-bottom: 4px; }
form input, form select, form textarea {
  font: inherit; padding: 8px; border: 1px solid #6b7a6d; border-radius: 4px; width: 100%; max-width: 420px;
}
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid #c9d6ca; padding: 8px; text-align: left; }
.band { background: var(--band); padding: 16px; border-radius: 6px; }
