:root {
  --charcoal: #24302d;
  --charcoal-soft: #35423d;
  --sage: #8fa88d;
  --sage-light: #dce6d9;
  --gold: #d8b76b;
  --gold-soft: #f3e7c7;
  --gray: #f4f5f2;
  --white: #ffffff;
  --ink: #17201e;
  --muted: #66716c;
  --line: #d8ddd6;
  --shadow: 0 22px 60px rgba(23, 32, 30, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  color: var(--white);
  background: linear-gradient(180deg, rgba(23, 32, 30, 0.78), rgba(23, 32, 30, 0.1));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--charcoal);
  background: var(--gold);
  border-radius: 50%;
  font-size: 0.82rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-size: 0.95rem;
  font-weight: 650;
}

nav a {
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

nav a:hover,
nav a:focus-visible {
  color: var(--gold-soft);
}

.hero {
  position: relative;
  display: grid;
  min-height: 76vh;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -2;
  background-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/San_Ramon_City_Hall.jpg?width=2200");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 32, 30, 0.88) 0%, rgba(36, 48, 45, 0.67) 48%, rgba(36, 48, 45, 0.1) 100%),
    linear-gradient(180deg, rgba(23, 32, 30, 0.18), rgba(23, 32, 30, 0.35));
}

.hero-content {
  width: min(820px, calc(100% - 2rem));
  align-self: center;
  padding: 8rem 0 4rem;
  margin-left: clamp(1rem, 7vw, 6rem);
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.08rem;
  font-weight: 720;
  line-height: 1.25;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  color: var(--charcoal);
  background: var(--gold);
}

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

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 3.5rem);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.intro-band {
  background: var(--charcoal);
  color: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.intro-grid h2 {
  margin-bottom: 0;
}

.intro-grid p:last-child {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

.split,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.story-section {
  background: var(--gray);
}

.portrait-wrap {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portrait-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.image-note {
  margin: 0;
  padding: 0.8rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.copy-block p {
  color: var(--muted);
  font-size: 1rem;
}

.copy-block p:last-child {
  margin-bottom: 0;
}

.priorities-section {
  background: var(--white);
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

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

.priority-card {
  min-height: 245px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--white), var(--gray));
}

.priority-number {
  display: inline-block;
  margin-bottom: 1.4rem;
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 750;
}

.priority-card p {
  color: var(--muted);
}

.community-photo {
  height: clamp(280px, 42vw, 520px);
  overflow: hidden;
}

.community-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(220, 230, 217, 0.85), rgba(244, 245, 242, 0.95)),
    var(--gray);
}

.contact-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.78fr);
}

.contact-details {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.4rem;
  font-style: normal;
  font-weight: 700;
}

.contact-details a {
  width: fit-content;
  color: var(--charcoal);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.signup-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

label {
  font-size: 0.86rem;
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--gray);
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(216, 183, 107, 0.42);
  border-color: var(--gold);
  background: var(--white);
}

.form-button {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--charcoal-soft);
  font-weight: 700;
}

.hidden-field {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.5rem clamp(1rem, 4vw, 3.5rem);
  color: rgba(255, 255, 255, 0.76);
  background: var(--charcoal);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 940px) {
  .priority-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .portrait-wrap {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding-top: 0.85rem;
  }

  .brand {
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  nav {
    gap: 0.6rem;
    font-size: 0.85rem;
  }

  .hero {
    min-height: 640px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(23, 32, 30, 0.92) 0%, rgba(36, 48, 45, 0.78) 58%, rgba(36, 48, 45, 0.36) 100%);
  }

  .hero-content {
    width: calc(100% - 2rem);
    margin: 0 auto;
    padding-top: 7rem;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.45rem, 10.5vw, 3.55rem);
  }

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

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

  .priority-card {
    min-height: auto;
  }

  .site-footer {
    display: grid;
  }
}
