:root {
  --charter-ink: #14352a;
  --living-green: #2e7d5b;
  --parchment: #f4efe3;
  --seal-gold: #b08a3e;
  --blue-ink: #0b2a4a;
  --blue-signal: #1e63a8;
  --paper-white: #fcfaf4;
  --line-soft: rgba(20, 53, 42, 0.16);
  --shadow-soft: 0 20px 50px rgba(20, 53, 42, 0.08);
  --radius-card: 1.5rem;
  --radius-button: 999px;
  --shell-width: 72rem;
  --font-display: Spectral, "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charter-ink);
  background:
    radial-gradient(circle at top left, rgba(176, 138, 62, 0.12), transparent 26%),
    linear-gradient(180deg, #f7f3e8 0%, var(--parchment) 45%, #f8f4ea 100%);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

p,
ul,
h1,
h2,
h3 {
  margin: 0;
}

.shell {
  width: min(calc(100% - 2rem), var(--shell-width));
  margin: 0 auto;
}

.site-header,
.site-footer,
.story-section,
.petition-section {
  position: relative;
}

.site-header {
  padding: 1rem 0 0;
}

.header-row,
.footer-row,
.hero-layout,
.section-grid,
.badge-layout {
  display: grid;
  gap: 1.5rem;
}

.header-row,
.footer-row {
  align-items: center;
}

.brand {
  display: inline-flex;
  max-width: 22rem;
}

.language-nav {
  justify-self: start;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-button);
  background: rgba(252, 250, 244, 0.86);
  backdrop-filter: blur(8px);
}

.lang-button {
  border: 0;
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--charter-ink);
  font: inherit;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.lang-button.is-active {
  background: var(--charter-ink);
  color: var(--paper-white);
}

.hero {
  padding: 2rem 0 4rem;
}

.hero-copy,
.badge-copy,
.badge-panel,
.notice-card,
.support-form {
  position: relative;
}

.hero-copy {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 0 0.5rem;
}

.eyebrow,
.section-label {
  color: var(--living-green);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  max-width: 15ch;
}

h3 {
  font-size: 1.35rem;
}

.hero-subhead,
.section-copy p,
.section-heading p,
.badge-copy p,
.notice-list,
.field label,
.form-status,
.footer-copy {
  font-size: 1rem;
}

.hero-subhead {
  max-width: 42rem;
}

.hero-actions,
.button-row,
.form-stack {
  display: grid;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 3.25rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: var(--charter-ink);
  color: var(--paper-white);
}

.button-secondary {
  background: transparent;
  color: var(--charter-ink);
  border-color: rgba(20, 53, 42, 0.3);
}

.button-light {
  width: 100%;
  background: var(--paper-white);
  color: var(--blue-ink);
}

.story-section,
.petition-section,
.badge-section,
.site-footer {
  padding: 4rem 0;
}

.story-section::before,
.petition-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(176, 138, 62, 0.06), transparent 28%),
    transparent;
  pointer-events: none;
}

.section-grid {
  align-items: start;
}

.section-heading,
.section-copy,
.badge-copy {
  display: grid;
  gap: 1rem;
}

.section-copy p + p,
.badge-copy p + p {
  margin-top: 0.35rem;
}

.form-grid {
  gap: 2rem;
}

.support-form,
.notice-card,
.badge-panel {
  padding: 1.35rem;
  border-radius: var(--radius-card);
}

.support-form,
.notice-card {
  background: rgba(252, 250, 244, 0.9);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}

.field {
  display: grid;
  gap: 0.55rem;
}

.field label {
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(20, 53, 42, 0.22);
  border-radius: 0.95rem;
  background: #fffef9;
  color: var(--charter-ink);
  font: inherit;
}

.field input:focus-visible,
.button:focus-visible,
.lang-button:focus-visible {
  outline: 2px solid var(--seal-gold);
  outline-offset: 2px;
}

.notice-card {
  display: grid;
  gap: 0.9rem;
}

.notice-list {
  padding-left: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.form-status {
  min-height: 1.5rem;
  color: var(--living-green);
  font-weight: 600;
}

.badge-section {
  color: var(--paper-white);
  background:
    radial-gradient(circle at top right, rgba(30, 99, 168, 0.24), transparent 28%),
    linear-gradient(180deg, var(--blue-ink) 0%, #123a64 100%);
}

.badge-layout {
  align-items: center;
}

.badge-panel {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  background: rgba(11, 42, 74, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 60px rgba(4, 15, 27, 0.28);
}

.badge-section .section-label {
  color: #9bc7f2;
}

.badge-panel img {
  filter: drop-shadow(0 0 24px rgba(30, 99, 168, 0.32));
}

.badge-form {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.badge-form .field input {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--blue-ink);
}

.form-status-light {
  color: #d8ebff;
}

.site-footer {
  padding-top: 2rem;
  border-top: 1px solid rgba(20, 53, 42, 0.1);
}

.footer-copy {
  display: grid;
  gap: 0.45rem;
}

.footer-copy a {
  text-decoration-thickness: 0.08em;
}

@media (min-width: 48rem) {
  .site-header {
    padding-top: 1.5rem;
  }

  .header-row,
  .footer-row {
    grid-template-columns: 1fr auto;
  }

  .language-nav {
    justify-self: end;
  }

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

  .hero-actions,
  .button-row {
    grid-auto-flow: column;
    justify-content: start;
  }

  .section-grid,
  .badge-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 3rem;
  }

  .form-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .form-stack {
    gap: 1rem;
  }

  .support-form,
  .notice-card,
  .badge-panel {
    padding: 1.6rem;
  }
}
