:root {
  --ink: #17312f;
  --teal: #123f3b;
  --teal-2: #1d5b54;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --line: #cbd7cf;
  --muted: #5b6d69;
  --gold: #c99046;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(18, 63, 59, 0.1);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); font-size: 1rem; line-height: 1.65; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(23, 49, 47, 0.14);
  background: rgba(246, 241, 231, 0.92);
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.brand-logo { width: 32px; height: 32px; display: block; border-radius: 50%; object-fit: cover; }
.header-link { font-size: 0.9rem; font-weight: 600; text-underline-offset: 4px; }

.hero { padding: clamp(72px, 10vw, 140px) max(5vw, calc((100vw - 1080px) / 2)); background: var(--teal); color: var(--cream); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 480px; height: 480px; right: -260px; top: -120px; border: 1px solid rgba(246,241,231,.22); border-radius: 50%; box-shadow: 0 0 0 70px rgba(246,241,231,.035), 0 0 0 140px rgba(246,241,231,.025); }
.eyebrow, .section-kicker { text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.78rem; font-weight: 600; }
.eyebrow { color: #b8d2c6; margin-bottom: 24px; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; margin: 0; }
h1 { max-width: 880px; font-size: clamp(3rem, 7.4vw, 6.2rem); position: relative; z-index: 1; }
.hero-lede { max-width: 710px; margin: 30px 0 0; color: #d8e2dc; font-size: clamp(1.1rem, 2vw, 1.32rem); line-height: 1.65; position: relative; z-index: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; position: relative; z-index: 1; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: 3px; text-decoration: none; font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, .remove-event:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.button-primary { background: var(--teal); color: var(--white); }
.hero .button-primary { background: var(--cream); color: var(--teal); }
.button-secondary { background: transparent; color: var(--teal); border-color: #9db0a8; }
.hero .button-secondary { color: var(--cream); border-color: rgba(246,241,231,.45); }
.privacy-note { margin: 20px 0 0; color: #a9c8bb; font-size: 0.84rem; }
.privacy-note span, .local-badge span { color: #7eb89a; font-size: 0.65rem; margin-right: 5px; }

.guide-section, .builder-section { max-width: 1080px; margin: 0 auto; padding: clamp(76px, 10vw, 128px) 24px; }
.section-intro { display: grid; grid-template-columns: .7fr 1.35fr; column-gap: 50px; }
.section-kicker { color: var(--teal-2); margin: 0 0 14px; }
.section-intro .section-kicker { grid-column: 1 / -1; }
h2 { font-size: clamp(2.35rem, 5vw, 4.35rem); }
.section-intro > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 1.08rem; }
.steps { list-style: none; margin: 70px 0 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.step-number { font-family: Georgia, "Times New Roman", serif; color: var(--gold); font-size: 1.15rem; }
.steps h3 { font-family: Georgia, "Times New Roman", serif; margin: 0 0 6px; font-size: 1.65rem; font-weight: 600; letter-spacing: -0.015em; }
.steps p { margin: 0; color: var(--muted); max-width: 720px; }
.info-note { margin-top: 38px; background: #e7eee9; display: flex; gap: 16px; padding: 22px 24px; border-left: 3px solid var(--teal-2); }
.info-note > span { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border: 1px solid var(--teal-2); border-radius: 50%; font-family: Georgia, serif; font-style: italic; }
.info-note p { margin: 0; }

.builder-section { max-width: none; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-left: max(24px, calc((100vw - 1080px) / 2)); padding-right: max(24px, calc((100vw - 1080px) / 2)); }
.builder-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.builder-heading h2 { font-size: clamp(2.4rem, 4.5vw, 4rem); }
.builder-heading > div:first-child > p:last-child { max-width: 650px; color: var(--muted); margin: 18px 0 0; }
.local-badge { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; color: var(--muted); font-size: 0.8rem; }
.builder-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 16px; }
.status { min-height: 26px; color: var(--teal-2); margin: 0 0 6px; font-size: .9rem; }
.event-list { display: grid; gap: 18px; }
.event-card { background: var(--white); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(18,63,59,.05); padding: 24px; }
.event-card-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.event-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.remove-event { color: #7a3f37; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 7px; }
.event-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 20px 16px; }
.field { display: grid; align-content: start; gap: 7px; }
.field > span { font-weight: 600; font-size: .87rem; }
.field small { color: var(--muted); font-size: .75rem; }
.field input, .field textarea { width: 100%; border: 1px solid #9fb0aa; border-radius: 2px; background: var(--paper); color: var(--ink); padding: 11px 12px; min-height: 46px; }
.field textarea { resize: vertical; }
.field-evidence { grid-column: 1 / 3; }
.field-notes { grid-column: 1 / -1; }
.empty-state { border: 1px dashed #9fb0aa; padding: 36px 24px; text-align: center; color: var(--muted); }

.transition { background: var(--teal); color: var(--cream); padding: clamp(70px, 9vw, 120px) max(24px, calc((100vw - 1080px) / 2)); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 8vw, 110px); }
.transition .section-kicker { color: #a9c8bb; }
.transition h2 { max-width: 600px; }
.transition-copy > p:first-child { margin: 34px 0 30px; color: #d8e2dc; font-size: 1.08rem; }
.button-cream { background: var(--cream); color: var(--teal); }
.demo-note { color: #a9c8bb; font-size: .82rem; margin: 14px 0 0; }
footer { min-height: 150px; display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 36px 5vw; background: #0d302d; color: #c9d8d0; }
footer p { margin: 0; font-size: .9rem; }

@media (max-width: 760px) {
  .site-header { min-height: 66px; padding: 0 20px; }
  .header-link { font-size: 0; }
  .header-link span { font-size: 1.2rem; }
  .hero { padding-left: 24px; padding-right: 24px; }
  .hero::after { opacity: .5; }
  h1 { font-size: clamp(2.8rem, 14vw, 4.6rem); }
  .section-intro, .transition { grid-template-columns: 1fr; }
  .section-intro > p:last-child { margin-top: 24px; }
  .steps { margin-top: 45px; }
  .steps li { grid-template-columns: 52px 1fr; gap: 10px; padding: 27px 0; }
  .builder-heading { display: block; }
  .local-badge { display: inline-block; margin-top: 24px; }
  .builder-toolbar .button { flex: 1 1 auto; }
  .event-grid { grid-template-columns: 1fr; }
  .field-evidence, .field-notes { grid-column: auto; }
  .transition { gap: 10px; }
  footer { align-items: flex-start; flex-direction: column; }
}

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