/* Saratoga Dads — styles. Tokens come from design/reference.dc.html. */

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --ink: #1B2420;
  --muted: #5A635D;
  --muted-strong: #3E4742;
  /* Design caption gray is #6E7A71 (4.29:1 on --bg); nudged to clear 4.5:1. */
  --caption: #6A766D;
  --placeholder: #8A918B;
  --hairline: #E4E2DB;
  --input-border: #C9CCC4;
  --green: #1F4A3A;
  --on-green: #D5E2DA;
  --red: #A8322B;
  --img-a: #DDE4DC;
  --img-b: #D6DED5;
  --font: 'Instrument Sans', system-ui, sans-serif;
  --max: 1120px;
  --gutter: 32px;
}

/* ---------- Base ---------- */

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--ink); }
a:hover { color: var(--green); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}
.join :focus-visible { outline-color: #FFFFFF; }
.join form :focus-visible { outline-color: var(--green); }

input::placeholder { color: var(--placeholder); }

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

section[id] { scroll-margin-top: 16px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Red/white track stripe, top and bottom of page */
.stripe {
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--red) 0 22px, var(--bg) 22px 44px);
}

/* ---------- Shared bits ---------- */

.eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
}

.section-title {
  font-weight: 600;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}
.btn-outline {
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 15px;
}
.btn-solid {
  height: 52px;
  padding: 0 26px;
  background: var(--green);
  color: #FFFFFF;
  font-size: 16px;
}
.btn-solid:hover { color: #FFFFFF; }

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
}

.stack { display: flex; flex-direction: column; }

.img-placeholder {
  border-radius: 4px;
  background: var(--img-a);
}
.img-placeholder.alt { background: var(--img-b); }

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 80px;
}
.brand {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
}
.nav-links a { text-decoration: none; }

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

.hero {
  padding-top: 56px;
  padding-bottom: 96px;
}
.hero .cols { align-items: center; }
.hero-copy { gap: 24px; }
.hero h1 {
  font-weight: 600;
  font-size: clamp(44px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.hero-sub {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 440px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}
.hero-link {
  font-weight: 500;
  font-size: 16px;
  color: var(--green);
}
.photo { gap: 10px; }
.hero-img {
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo figcaption {
  font-size: 13px;
  color: var(--caption);
}

/* ---------- Events ---------- */

.events {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 96px 0;
}
.events-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.events-meta {
  font-size: 15px;
  color: var(--muted);
}
.event-list {
  margin-top: 40px;
  border-top: 1px solid var(--ink);
}
.event {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 220px 90px;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
}
.event-date {
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
}
.event h3 {
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
}
.event-desc {
  margin-top: 6px;
  font-size: 16px;
  color: var(--muted);
}
.event-where {
  font-size: 15px;
  color: var(--muted);
}
.event-rsvp {
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
}

/* ---------- About ---------- */

.about {
  padding-top: 96px;
  padding-bottom: 96px;
}
.about .cols { align-items: start; }
.about-copy { gap: 20px; }
.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted-strong);
}
.about-note {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}
.pillar {
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}
.pillar:last-child { border-bottom: 1px solid var(--hairline); }
.pillar h3 {
  font-weight: 600;
  font-size: 19px;
}
.pillar p {
  margin-top: 6px;
  font-size: 16px;
  color: var(--muted);
}
.where { margin-top: 72px; }
.places {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.place { gap: 10px; }
.place .img-placeholder { height: 180px; }
.place figcaption {
  font-size: 15px;
  font-weight: 500;
}

/* ---------- Join ---------- */

.join {
  background: var(--green);
  color: #FFFFFF;
  padding: 96px 0;
}
.join .cols { align-items: start; }
.join-copy { gap: 20px; }
.join-copy p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--on-green);
  max-width: 420px;
}
.signup {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
}
.field input {
  height: 48px;
  box-sizing: border-box;
  padding: 0 14px;
  border-radius: 4px;
  border: 1px solid var(--input-border);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
}
.field input:focus-visible {
  outline-offset: 0;
  border-color: var(--green);
}
.field input[aria-invalid="true"] { border-color: var(--red); }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.signup button {
  margin-top: 6px;
  height: 52px;
  border: none;
  border-radius: 6px;
  background: var(--green);
  color: #FFFFFF;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}
.signup button:disabled {
  opacity: 0.7;
  cursor: progress;
}
.form-note {
  font-size: 13px;
  color: var(--muted);
}
.form-error {
  font-size: 14px;
  font-weight: 500;
  color: var(--red);
}
.form-error:empty { display: none; }
.signup-done {
  padding: 36px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer strong {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .nav-links { display: none; }
  .cols { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .event { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .hero-img { height: 320px; }
}
