:root {
  --cream: #eeece2; --sage: #4a5d3a; --sage2: #5f7a4a;
  --terra: #b5453a; --amber: #c48c28; --blue: #3f5c6b; --ink: #2e2e2b;
  --row-alt: #f4f2e8; --border: #d8d4c4;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: Georgia, 'DejaVu Serif', serif;
}
a { color: var(--blue); }
.topbar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 16px 40px; display: flex; align-items: center; justify-content: space-between;
  font-family: Arial, sans-serif;
}
.topbar .brand {
  font-family: Georgia, serif; font-size: 21px; font-weight: bold; color: var(--ink);
  text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: 0.3px;
}
.topbar .brand img { width: 30px; height: 30px; display: block; }
.topbar nav a { margin-left: 20px; font-size: 13px; color: var(--sage); text-decoration: none; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; }
.topbar nav a:hover { text-decoration: underline; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 40px; }

/* hero section (index page) */
.hero {
  position: relative; overflow: hidden; border-radius: 10px; margin-bottom: 36px;
  background: var(--cream); border: 1px solid var(--border);
  background-image: url('assets/hero_bg.svg'); background-repeat: no-repeat;
  background-position: bottom center; background-size: cover;
}
.hero-inner { position: relative; padding: 56px 40px 44px; text-align: center; }
.hero-logo { width: 64px; height: 64px; margin: 0 auto 18px; display: block; }
.hero-eyebrow {
  font-family: Arial, sans-serif; font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--terra); font-weight: 700; margin-bottom: 10px;
}
.hero h1 {
  font-family: Georgia, 'DejaVu Serif', serif; font-size: 46px; letter-spacing: 0.5px;
  margin: 0; color: var(--ink);
}
.hero .hero-tagline {
  font-family: Georgia, serif; font-style: italic; font-size: 16px; color: var(--terra);
  margin-top: 10px; letter-spacing: 0.2px;
}
.hero .hero-count {
  font-family: Arial, sans-serif; font-size: 12.5px; color: var(--sage); margin-top: 14px;
  text-transform: uppercase; letter-spacing: 1px;
}
.hero-rule {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px;
}
.hero-rule .line { height: 1px; width: 60px; background: var(--border); }
.hero-rule .seal {
  width: 9px; height: 9px; border-radius: 50%; background: var(--terra);
}

/* index / tree-picker grid */
.tree-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px; margin-top: 24px;
}
.tree-card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; text-decoration: none; color: var(--ink); display: block;
  transition: box-shadow 0.15s ease;
}
.tree-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.tree-card img { width: 100%; height: 200px; object-fit: cover; display: block; background: var(--cream); }
.tree-card .card-body { padding: 14px 16px; font-family: Arial, sans-serif; }
.tree-card .card-id { font-family: Georgia, serif; font-size: 20px; font-weight: bold; margin-bottom: 2px; }
.tree-card .card-species { font-size: 12.5px; color: var(--sage); font-style: italic; }
.tree-card .card-style { font-size: 11.5px; color: var(--ink); margin-top: 6px; opacity: 0.75; }

/* per-tree page */
h1 { font-size: 40px; margin: 0; letter-spacing: 0.3px; }
.subtitle { color: var(--terra); font-style: italic; font-size: 18px; margin: 6px 0 2px 0; }
.id-tag {
  display: inline-block; background: var(--sage); color: #fff; font-family: Arial, sans-serif;
  font-size: 13px; letter-spacing: 1px; padding: 4px 12px; border-radius: 3px; margin-top: 10px;
}
.meta-row {
  display: flex; gap: 28px; margin-top: 18px; font-family: Arial, sans-serif;
  font-size: 13px; color: var(--ink); flex-wrap: wrap;
}
.meta-row div span.k { display: block; color: var(--sage); text-transform: uppercase; letter-spacing: 0.5px; font-size: 11px; margin-bottom: 2px; }
hr { border: none; border-top: 1px solid #ddd8c8; margin: 32px 0; }
.map-img { width: 100%; display: block; border: 1px solid var(--border); border-radius: 4px; }
h2 { font-family: Arial, sans-serif; font-size: 20px; color: var(--ink); border-left: 4px solid var(--sage); padding-left: 12px; margin: 0 0 14px 0; }
section { margin-bottom: 40px; }
p { font-family: Arial, sans-serif; font-size: 14.5px; line-height: 1.65; }
.style-box { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 20px 24px; font-family: Arial, sans-serif; }
.style-box .style-name { font-family: Georgia, serif; font-size: 22px; color: var(--sage); margin: 0 0 8px 0; }
table { width: 100%; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 13.5px; background: #fff; }
th { text-align: left; background: var(--sage); color: #fff; padding: 9px 12px; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
td { padding: 10px 12px; border-bottom: 1px solid #e6e2d4; vertical-align: top; }
tr:nth-child(even) td { background: var(--row-alt); }
.phase-name { font-weight: 700; color: var(--ink); }
.marker-ref {
  display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; margin-right: 4px;
}
footer { margin-top: 40px; font-family: Arial, sans-serif; font-size: 11.5px; color: #8a8677; border-top: 1px solid #ddd8c8; padding-top: 16px; }

/* timeline page */
.timeline-list { list-style: none; margin: 24px 0 0 0; padding: 0; font-family: Arial, sans-serif; }
.timeline-item {
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--sage);
  border-radius: 6px; padding: 14px 18px; margin-bottom: 10px; cursor: pointer;
}
.timeline-item .row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.timeline-item .date { font-weight: 700; font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.timeline-item .tree-link { font-size: 13px; color: var(--blue); font-weight: 600; text-decoration: none; }
.timeline-item .action-summary { font-size: 13.5px; margin-top: 4px; color: var(--ink); }
.timeline-item .action-detail {
  display: none; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border);
  font-size: 13px; color: var(--ink); line-height: 1.6;
}
.timeline-item.open .action-detail { display: block; }
.timeline-item .chevron { transition: transform 0.15s ease; display: inline-block; }
.timeline-item.open .chevron { transform: rotate(90deg); }
.filter-bar { margin-top: 16px; font-family: Arial, sans-serif; font-size: 13px; }
.filter-bar select { padding: 6px 10px; border-radius: 4px; border: 1px solid var(--border); font-family: Arial, sans-serif; }
