/* Backyard Bird Field Guide — styles (2026) */
:root {
  --bg: #fbf8f1;
  --panel: #ffffff;
  --ink: #25311f;
  --muted: #64705a;
  --leaf: #3d7a3f;
  --leaf-dark: #2c5c2e;
  --sun: #e2a72e;
  --bar: #dbe7cf;
  --line: #e4e4d6;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.2rem; }
h1, h2, h3 { line-height: 1.25; }
h2 { font-size: 1.9rem; margin: 2.6rem 0 0.6rem; color: var(--leaf-dark); }
section p, section li { font-size: 1.02rem; }

.hero {
  background: linear-gradient(160deg, #2c5c2e 0%, #3d7a3f 55%, #6ea24d 100%);
  color: #f6f3e8;
  padding: 4rem 0 3.2rem;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0.2rem 0; }
.hero .accent { color: var(--sun); }
.hero .kicker {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; opacity: 0.85; margin: 0;
}
.hero .lede { max-width: 46rem; font-size: 1.08rem; opacity: 0.96; }
.hero-nav { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-nav a {
  color: #fff; text-decoration: none; font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.92rem; font-weight: 600;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.35);
  padding: 0.45rem 0.95rem; border-radius: 999px; transition: background 0.2s;
}
.hero-nav a:hover { background: rgba(255,255,255,0.28); }

.grid { display: grid; gap: 1.1rem; margin: 1.2rem 0; }
.cols3 { grid-template-columns: repeat(3, 1fr); }
.cols4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols3, .cols4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cols3, .cols4 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
  box-shadow: 0 1px 3px rgba(40,60,20,0.07);
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.12rem; color: var(--leaf-dark); }
.card.bird { border-top: 4px solid var(--sun); }
.card .latin { font-style: italic; color: var(--muted); margin: -0.2rem 0 0.5rem; }
.card.tip { border-left: 4px solid var(--leaf); }
.card.tip.wide { grid-column: 1 / -1; }
.card ul { margin: 0.3rem 0 0; padding-left: 1.2rem; }

.tablewrap { overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel); }
table { border-collapse: collapse; width: 100%; min-width: 640px; }
th, td { text-align: left; padding: 0.7rem 0.95rem; border-bottom: 1px solid var(--line); }
th { background: #eef3e4; color: var(--leaf-dark); font-family: 'Segoe UI', system-ui, sans-serif; }
tbody tr:last-child td { border-bottom: none; }

/* Life list */
.lifelist-card { margin-top: 1rem; }
.bar {
  background: var(--bar); border-radius: 999px; height: 12px; overflow: hidden;
  margin: 0.4rem 0 0.6rem;
}
.bar > div {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--leaf), var(--sun));
  transition: width 0.35s ease;
}
.ll-caption { font-size: 0.95rem; color: var(--muted); margin: 0 0 0.8rem; }
#ll-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
@media (max-width: 560px) { #ll-list { columns: 1; } }
#ll-list li { margin: 0.28rem 0; font-size: 1.02rem; break-inside: avoid; }
#ll-list input { transform: scale(1.15); margin-right: 0.5rem; accent-color: var(--leaf); }
#ll-list li.done { color: var(--muted); text-decoration: line-through; }
button.ghost {
  margin-top: 0.9rem; background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.9rem;
  font-family: 'Segoe UI', system-ui, sans-serif; cursor: pointer;
}
button.ghost:hover { border-color: var(--muted); color: var(--ink); }

footer { margin-top: 3.5rem; padding: 2rem 0 2.6rem; background: #f1eddd;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
