:root {
  color-scheme: light;
  --paper: #fffaf1;
  --paper-soft: #f4f0e8;
  --ink: #17211a;
  --muted: #5f695f;
  --line: #d8d0c1;
  --accent: #1f6f4a;
  --accent-dark: #164f36;
  --accent-soft: #dfeadd;
  --shadow: 0 22px 60px rgba(36, 42, 32, 0.14);
  --content: min(100% - 32px, 1120px);
  --measure: 72ch;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(31, 111, 74, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #f7f2e9 0%, #fffaf1 38%, #f4f0e8 100%);
  background-size: 42px 42px, auto;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.reading-progress {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(31, 111, 74, 0.12);
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.site-header {
  width: var(--content);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border: 2px solid var(--accent);
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-32deg);
  background: radial-gradient(circle at 62% 34%, var(--accent-soft) 0 28%, transparent 30%);
}

.site-header nav {
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header nav a {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  background: rgba(31, 111, 74, 0.1);
  color: var(--ink);
}

main {
  overflow: clip;
}

.hero {
  width: var(--content);
  margin: 18px auto 0;
  min-height: min(620px, calc(100svh - 96px));
  display: flex;
  align-items: center;
  padding: clamp(48px, 10vw, 118px) 0 clamp(38px, 8vw, 82px);
}

.hero-copy {
  max-width: 860px;
}

.eyebrow,
.label {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 6.7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.lead {
  max-width: 68ch;
  margin: 28px 0 0;
  color: #394236;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: white;
}

.button.secondary {
  background: rgba(255, 250, 241, 0.8);
  color: var(--accent-dark);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.context {
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.context div {
  min-height: 132px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.context div + div {
  border-left: 1px solid var(--line);
}

.metric {
  color: var(--accent-dark);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 900;
  line-height: 1;
}

.context span:last-child {
  color: var(--muted);
  font-weight: 700;
}

.letter {
  width: min(100% - 32px, 860px);
  margin: clamp(48px, 8vw, 96px) auto;
  padding: clamp(28px, 6vw, 72px);
  border: 1px solid rgba(95, 105, 95, 0.15);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.94);
  box-shadow: 0 16px 48px rgba(36, 42, 32, 0.09);
}

.letter-header {
  margin-bottom: clamp(32px, 6vw, 58px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.letter p {
  max-width: var(--measure);
  margin: 0;
  font-size: clamp(1.12rem, 1.8vw, 1.36rem);
}

.letter p + p {
  margin-top: 1.25em;
}

.petition-link {
  overflow-wrap: anywhere;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.12rem) !important;
  font-weight: 800;
}

.signature {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.site-footer {
  width: var(--content);
  min-height: 90px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  .site-header nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 10ch;
  }

  .context {
    grid-template-columns: 1fr;
  }

  .context div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

}

@media (max-width: 560px) {
  :root {
    --content: min(100% - 24px, 1120px);
  }

  .site-header nav a {
    padding: 7px 10px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .letter {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 22px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .hero,
  .context,
  .documents,
  .site-footer,
  .reading-progress {
    display: none;
  }

  body {
    background: white;
  }

  .letter {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
