:root {
  --bg: #f6fbf7;
  --surface: #ffffff;
  --text: #14301f;
  --muted: #4a6152;
  --accent: #1e7a45;
  --border: #d9e8dd;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111a15;
    --surface: #1a2620;
    --text: #e3f2e7;
    --muted: #a9bfb0;
    --accent: #7ddba0;
    --border: #2a3a31;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.hero {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.hero img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  flex: none;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0;
}

.tagline {
  color: var(--muted);
  margin: 4px 0 0;
}

h2 {
  font-size: 1.25rem;
  margin: 36px 0 8px;
}

h3 {
  font-size: 1.05rem;
  margin: 20px 0 4px;
}

a {
  color: var(--accent);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 24px;
  margin: 16px 0;
}

.muted {
  color: var(--muted);
}

/* Google's badge has transparent padding built in; pull it back so the
   button itself lines up with the text. */
.store-badge {
  margin: 8px 0 0 -12px;
}

.store-badge img {
  display: block;
}

footer {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.legal {
  font-size: 0.8rem;
  margin: 8px 0 0;
}

/* Plant care pages (tool/site/build_plant_pages.py). */
.crumbs {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 16px;
}

.plant-hero {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 8px;
}

.plant-hero img {
  width: 128px;
  height: 128px;
  flex: none;
}

.cite {
  font-size: 0.8rem;
  vertical-align: super;
  text-decoration: none;
  margin-left: 2px;
}

.sources {
  padding-left: 1.4em;
}

.sources li {
  margin: 6px 0;
}

.small {
  font-size: 0.9rem;
}

.cta {
  margin-top: 32px;
}

.cta .store-badge {
  margin-bottom: 8px;
}

.plant-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.plant-list a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.plant-list a:hover {
  border-color: var(--accent);
}

.plant-list img {
  flex: none;
}

.plant-list span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.plant-list small {
  color: var(--muted);
}

