/* Green Percent site. System fonts only: no font or script is loaded from a third party, so the site sets no cookies and sends visitors' addresses nowhere. */
:root {
  --paper: #f5f7f4;
  --sheet: #ffffff;
  --ink: #17251e;
  --muted: #56655c;
  --line: #cdd8d0;
  --green: #1d6a45;
  --green-soft: #e4efe7;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111a15;
    --sheet: #17221c;
    --ink: #e6eee8;
    --muted: #9fb0a5;
    --line: #2f4237;
    --green: #6fc196;
    --green-soft: #1c3127;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums tabular-nums;
}
a { color: var(--green); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* top bar */
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0 0; }
.mark { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.mark span { color: var(--green); }
.top nav { font-family: var(--sans); font-size: 0.92rem; display: flex; gap: 20px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--green); text-decoration: underline; }

/* hero: the statement on the left, a real finding on the right, set as it arrives in the email */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; padding: 72px 0 80px; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 24px; }
.hero p { margin: 0 0 16px; max-width: 34em; }
.hero .plain { color: var(--muted); font-size: 1rem; }

.finding {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  padding: 26px 28px 22px;
  font-size: 1.02rem;
}
.finding .when { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin: 0 0 12px; }
.finding h2 { font-size: 1.15rem; line-height: 1.35; margin: 0 0 12px; }
.finding p { margin: 0 0 12px; }
.finding .q { background: var(--green-soft); padding: 10px 14px; margin: 16px 0 14px; }
.finding .src { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin: 0; overflow-wrap: anywhere; }

/* sections: a narrow margin column with the section name, text in a reading column */
section { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; padding: 48px 0; border-top: 1px solid var(--line); }
section > h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--green); margin: 0.35em 0 0; }
section .body { max-width: 40em; }
section .body > p:first-child { margin-top: 0; }
section h3 { font-size: 1.15rem; margin: 28px 0 6px; }
section h3:first-child { margin-top: 0; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 20px; padding: 12px 0; border-bottom: 1px dotted var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .t { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); padding-top: 0.2em; }

.terms { margin: 0; padding-left: 1.1em; }
.terms li { margin: 4px 0; }

.contact { font-size: 1.3rem; }

footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 28px 0 48px; font-family: var(--sans); font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
footer p { margin: 0 0 8px; max-width: 70em; }

/* privacy page */
.doc { max-width: 42em; padding: 56px 0 24px; }
.doc h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.015em; }
.doc .updated { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 1.25rem; margin: 36px 0 8px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 4px 0; }

@media (max-width: 820px) {
  body { font-size: 1.0625rem; }
  .wrap { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 44px 0 56px; }
  section { grid-template-columns: 1fr; gap: 8px; padding: 36px 0; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .finding { padding: 20px 18px 18px; }
}
