@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=Work+Sans:wght@400;500;600;700&display=swap");

:root {
  --teal: #00647f;
  --teal-deep: #06313f;
  --teal-ink: #0a2830;
  --teal-pale: #e6f1f3;
  --orange: #f05d00;
  --orange-deep: #c94a00;
  --green: #2f7a1d;
  --green-pale: #ecf4e6;
  --ink: #14262b;
  --muted: #55686d;
  --line: rgba(10, 40, 48, 0.12);
  --paper: #fffdf9;
  --canvas: #f5f3ee;
  --shadow-sm: 0 1px 2px rgba(10, 40, 48, 0.06), 0 6px 18px rgba(10, 40, 48, 0.06);
  --shadow-lg: 0 24px 60px rgba(6, 30, 38, 0.22);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shell: min(1180px, calc(100vw - 48px));
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Work Sans", "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--teal-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 100;
  top: 14px;
  left: 14px;
  padding: 10px 16px;
  color: white;
  background: var(--teal);
  border-radius: var(--radius-sm);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  z-index: 60;
  top: 0;
  background: rgba(255, 253, 249, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(14px);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal-ink);
  font-size: 1.18rem;
}

.brand-word span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--teal);
  background: var(--teal-pale);
  outline: none;
}

.nav-links .nav-cta {
  margin-left: 6px;
  color: white;
  background: var(--orange);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  background: var(--orange-deep);
  color: white;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--teal-ink);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:active {
  transform: translateY(1px);
}

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

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--orange-deep);
}

.button.secondary {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.42);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.button.ghost {
  color: var(--teal-ink);
  background: transparent;
  border-color: var(--line);
}

.button.ghost:hover,
.button.ghost:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 0;
  background: var(--teal-deep);
  color: white;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 24, 30, 0.94) 6%, rgba(6, 40, 51, 0.72) 42%, rgba(6, 40, 51, 0.32) 76%),
    linear-gradient(0deg, rgba(6, 24, 30, 0.55), rgba(6, 24, 30, 0) 46%),
    url("assets/village/hero.jpg") center 68% / cover no-repeat;
}

.hero-grid {
  position: relative;
  padding-bottom: 84px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--orange);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.hero-copy h1 {
  color: white;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 0.98;
}

.hero-copy h1 em {
  display: block;
  color: var(--orange);
  font-style: italic;
  font-weight: 500;
}

.hero-lead {
  max-width: 34em;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.42;
}

.hero-note {
  max-width: 32em;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-wave {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  margin-top: -2px;
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}

.section-tight {
  padding: 72px 0;
}

.section-heading {
  max-width: 46em;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  line-height: 1.08;
}

.section-heading p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.6;
}

/* ---------- Manifesto ---------- */

.manifesto {
  background: var(--canvas);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.manifesto-quote {
  position: relative;
  padding-left: 26px;
  border-left: 3px solid var(--orange);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 500;
  line-height: 1.32;
  color: var(--teal-ink);
}

.manifesto-text {
  display: grid;
  gap: 16px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.68;
}

.manifesto-text strong {
  color: var(--teal-ink);
}

/* ---------- Priorities ---------- */

.priority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 52px;
}

.priority-card {
  padding: 30px 26px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.priority-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  color: var(--teal);
  background: var(--teal-pale);
  border-radius: 14px;
}

.priority-card:nth-child(3n+2) .priority-icon {
  color: var(--orange-deep);
  background: #fdece2;
}

.priority-card:nth-child(3n) .priority-icon {
  color: var(--green);
  background: var(--green-pale);
}

.priority-icon svg {
  width: 24px;
  height: 24px;
}

.priority-card h3 {
  font-size: 1.14rem;
  line-height: 1.28;
}

.priority-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.56;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  padding: 76px 0;
  color: white;
  background: var(--teal-deep);
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 130% at 12% 0%, rgba(240, 93, 0, 0.22), transparent 60%),
    radial-gradient(50% 120% at 92% 100%, rgba(47, 122, 29, 0.22), transparent 60%);
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  color: white;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

.cta-band p {
  max-width: 40em;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
}

/* ---------- Candidates ---------- */

.candidates {
  background: var(--canvas);
}

.candidate-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 48px;
  padding: 28px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.candidate-feature img {
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 20%;
}

.candidate-feature h3 {
  font-size: 1.35rem;
}

.candidate-feature p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.candidate-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.candidate-card:hover,
.candidate-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(6, 30, 38, 0.16);
  outline: none;
}

.candidate-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--teal-pale);
  overflow: hidden;
}

.candidate-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.candidate-number {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--orange);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.candidate-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--teal);
  background: linear-gradient(160deg, var(--teal-pale), #fdece2);
  text-align: center;
  padding: 18px;
}

.candidate-placeholder svg {
  width: 56px;
  height: 56px;
  opacity: 0.85;
}

.candidate-placeholder span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.candidate-body {
  display: block;
  padding: 16px 18px 20px;
}

.candidate-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--teal-ink);
}

.candidate-body small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Modal ---------- */

.candidate-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease;
}

.candidate-modal.open {
  opacity: 1;
  visibility: visible;
}

.candidate-modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 30, 0.66);
  backdrop-filter: blur(2px);
}

.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(10px);
  transition: transform 200ms ease;
}

.candidate-modal.open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  color: var(--teal-ink);
  background: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  cursor: pointer;
}

.modal-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--teal-pale);
  overflow: hidden;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 26px 30px 32px;
}

.modal-number {
  color: var(--orange-deep);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-body h3 {
  margin-top: 8px;
  font-size: 1.5rem;
}

.modal-role {
  margin-top: 6px;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Voting guide ---------- */

.vote-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-top: 48px;
  align-items: start;
}

.vote-steps {
  display: grid;
  gap: 14px;
}

.vote-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.vote-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: white;
  background: var(--teal);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
}

.vote-step h4 {
  font-size: 1rem;
  color: var(--teal-ink);
}

.vote-step p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.94rem;
}

.vote-options {
  display: grid;
  gap: 14px;
}

.vote-option {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.vote-option-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: white;
  background: var(--orange);
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
}

.vote-option h4 {
  font-size: 1rem;
  color: var(--teal-ink);
}

.vote-option p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.94rem;
}

.vote-note {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--green-pale);
  border: 1px solid rgba(47, 122, 29, 0.22);
  border-radius: var(--radius-md);
  color: #294f1e;
  font-size: 0.94rem;
  line-height: 1.55;
}

.vote-note strong {
  color: var(--green);
}

/* ---------- Closing ---------- */

.closing {
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  max-width: 18em;
  margin-inline: auto;
}

.closing p {
  max-width: 42em;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.closing .button {
  margin-top: 32px;
}

/* ---------- Footer ---------- */

.footer {
  padding: 48px 0;
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.footer-brand img {
  height: 32px;
  width: auto;
}

.footer-meta {
  font-size: 0.9rem;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms ease, transform 560ms ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .priority-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .candidate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .candidate-feature {
    grid-template-columns: 1fr;
  }

  .vote-guide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 84px 16px auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .nav-links .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    padding-top: 108px;
  }

  .section {
    padding: 64px 0;
  }

  .priority-grid,
  .candidate-grid {
    grid-template-columns: 1fr;
  }
}
