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

:root {
  --sage: #7b9e87;
  --sage-dark: #5a7d66;
  --sage-pale: #eef5f0;
  --blush: #e4929a;
  --blush-pale: #fdf2f3;
  --cream: #fdf9f5;
  --cream-dark: #f5efe8;
  --forest: #1e3a35;
  --forest-mid: #2d5248;
  --white: #ffffff;
  --line: #e7ded3;
  --ink-soft: #66746c;
  --warn-bg: #fff3e8;
  --warn: #8b5d22;
  --max-width: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--forest);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--forest);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 249, 245, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max-width);
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.16em;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  color: var(--blush);
  text-decoration: none;
}

.brand-dot {
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 0.08em rgba(123, 158, 135, 0.22);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
  display: none;
}

.header-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  color: #57534e;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-nav a:hover {
  background: var(--cream-dark);
  color: var(--forest);
}

.header-nav a.active {
  background: var(--sage);
  color: var(--white);
}

.hero {
  background: var(--sage-dark);
  color: var(--white);
}

.hero-shell {
  max-width: var(--max-width);
  min-height: min(560px, calc(100svh - 72px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) 24px clamp(56px, 8vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #ffe4e8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 5.9rem);
}

.hero p {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

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

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

.button.primary {
  background: var(--blush);
  color: var(--forest);
}

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

.button.light {
  background: var(--forest);
  color: var(--white);
}

.button.soft {
  border-color: var(--line);
  background: var(--white);
  color: var(--forest);
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel h2 {
  font-size: 1.35rem;
}

.hero-panel ol {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.hero-panel li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.hero-panel strong {
  display: block;
  color: var(--white);
}

.hero-panel span:not(.step-number) {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.section {
  padding: clamp(56px, 7vw, 92px) 24px;
}

.section.alt {
  background: var(--cream-dark);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.section-heading p,
.lead {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.flow-grid,
.principle-grid,
.state-grid,
.town-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.principle-grid,
.state-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card,
.town-group,
.note-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 20px;
}

.card h3,
.town-group h3,
.note-panel h3 {
  font-size: 1.22rem;
}

.card p,
.town-group p,
.note-panel p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.label-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.label-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.label-table th,
.label-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.label-table th {
  color: var(--forest);
  background: var(--sage-pale);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.label-table tr:last-child td {
  border-bottom: 0;
}

.label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--forest);
  background: var(--cream-dark);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.label.good {
  background: var(--sage-pale);
  color: var(--sage-dark);
}

.label.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.label.soft {
  background: var(--blush-pale);
  color: var(--forest);
}

.town-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.town-list a {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.town-list a:hover {
  border-color: rgba(123, 158, 135, 0.55);
  background: var(--sage-pale);
}

.callout {
  border-left: 4px solid var(--sage);
  border-radius: 8px;
  background: var(--white);
  padding: 18px 20px;
  color: var(--forest);
}

.callout strong {
  display: block;
  margin-bottom: 6px;
}

.source-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  padding-left: 18px;
  border-left: 3px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream-dark);
  color: var(--ink-soft);
  padding: 30px 24px 36px;
}

.footer-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.footer-copy {
  color: var(--forest-mid);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.94rem;
}

.footer-links a {
  color: var(--forest);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-fineprint {
  font-size: 0.84rem;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(123, 158, 135, 0.35);
  outline-offset: 2px;
}

@media (max-width: 880px) {
  .hero-shell {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .flow-grid,
  .principle-grid,
  .state-grid,
  .town-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: auto;
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .header-nav {
    width: 100%;
    padding-bottom: 2px;
  }

  .hero-shell,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .flow-grid,
  .principle-grid,
  .state-grid,
  .town-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .town-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
