:root {
  color-scheme: light;
  --ink: #18322d;
  --muted: #52645f;
  --paper: #f7faf7;
  --panel: #ffffff;
  --line: #d9e3de;
  --forest: #175c4b;
  --forest-dark: #103f35;
  --forest-soft: #dcebe5;
  --gold: #b66d00;
  --gold-dark: #a86604;
  --gold-soft: #fff0cf;
  --shadow: 0 18px 50px rgba(18, 55, 45, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 0%, rgba(217, 145, 22, 0.1), transparent 28rem),
    linear-gradient(180deg, #edf5f0 0, var(--paper) 31rem);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 5rem 0 3rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.65rem;
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 7vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.intro {
  max-width: 720px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.1vw, 1.35rem);
  line-height: 1.6;
}

.totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.total-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 1.5rem;
  border: 1px solid rgba(23, 92, 75, 0.14);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.total-card::after {
  position: absolute;
  right: -2.5rem;
  bottom: -3.5rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: var(--forest-soft);
  content: "";
}

.total-card--people::after {
  background: var(--gold-soft);
}

.total-card--coverage::after {
  background: #e5e9f3;
}

.total-label,
.total-period {
  position: relative;
  z-index: 1;
  display: block;
}

.total-label {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.total-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0.45rem 0 0.25rem;
  font-size: clamp(2.7rem, 6vw, 4.4rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 1;
}

.total-card--vehicles strong {
  color: var(--forest);
}

.total-card--people strong {
  color: var(--gold-dark);
}

.total-period {
  color: var(--muted);
  font-size: 0.95rem;
}

.panel {
  margin: 1rem 0 3.5rem;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.method-note h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-swatch {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 0.2rem;
}

.legend-swatch--vehicles,
.table-dot--vehicles {
  background: var(--forest);
}

.legend-swatch--people,
.table-dot--people {
  background: var(--gold);
}

.chart-wrap {
  width: 100%;
  overflow-x: auto;
}

#activity-chart {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
}

.chart-grid {
  stroke: #dde6e2;
  stroke-width: 1;
}

.chart-axis-label,
.chart-month,
.chart-value {
  fill: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.chart-axis-label {
  font-size: 14px;
}

.chart-month {
  font-size: 15px;
  font-weight: 700;
}

.chart-value {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.bar-vehicle {
  fill: var(--forest);
}

.bar-person {
  fill: var(--gold);
}

.insights {
  padding: 0.5rem 0 3.5rem;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.insight-card {
  padding: 1.5rem;
  border-top: 4px solid var(--forest);
  border-radius: 0.4rem 0.4rem 1rem 1rem;
  background: #e8f1ed;
}

.insight-card:nth-child(2) {
  border-color: var(--gold);
  background: #fff3d9;
}

.insight-card:nth-child(3) {
  border-color: #526b9c;
  background: #e9edf5;
}

.insight-number {
  display: block;
  margin-bottom: 1rem;
  color: var(--forest-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.insight-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  line-height: 1.35;
}

.insight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}

caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

th,
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

thead th {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

tbody tr:nth-child(even) {
  background: #f5f8f6;
}

.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.45rem;
  border-radius: 50%;
}

tfoot th,
tfoot td {
  border-top: 2px solid var(--ink);
  border-bottom: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.method-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  margin: 0 0 4rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-left: 5px solid var(--forest);
  border-radius: 0 1rem 1rem 0;
  background: var(--forest-soft);
}

.method-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.method-note h2 {
  font-size: 1.45rem;
}

.method-note p {
  max-width: 850px;
  margin: 0.65rem 0 0;
  color: #29463e;
  line-height: 1.65;
}

footer {
  padding: 1.5rem;
  background: var(--forest-dark);
  color: #dfece7;
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 780px) {
  .hero {
    padding-top: 3.5rem;
  }

  .totals,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .total-card {
    min-height: 150px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  th,
  td {
    padding-inline: 0.7rem;
  }
}

@media print {
  @page {
    margin: 0.55in;
    size: landscape;
  }

  body {
    background: white;
  }

  main {
    width: 100%;
  }

  .hero {
    padding: 0 0 1rem;
  }

  h1 {
    font-size: 3.3rem;
  }

  .total-card,
  .panel {
    box-shadow: none;
  }

  .total-card {
    min-height: 120px;
  }

  .chart-panel {
    break-inside: avoid;
  }

  .insights,
  .table-panel,
  .method-note,
  footer {
    display: none;
  }
}
