/* ============================================================
   Old Adams District — styles
   Civic / local / warm / historical. Fast static site.
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  --paper:      #f5edde;
  --paper-2:    #efe3cd;
  --ink:        #2c2017;
  --ink-soft:   #5a4632;
  --brick:      #8a3324;
  --brick-deep: #6f2719;
  --gold:       #b8862f;
  --gold-soft:  #c9a14a;
  --green:      #41614c;
  --line:       rgba(44, 32, 23, 0.16);
  --line-soft:  rgba(44, 32, 23, 0.10);

  --serif-display: "Fraunces", "Hoefler Text", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans-body: "Avenir Next", "Avenir", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gap: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans-body);
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.18rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, iframe { max-width: 100%; }
a { color: var(--brick); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brick-deep); }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--paper-2); }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--serif-display); color: var(--ink); line-height: 1.08; font-weight: 600; }
h1 {
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  font-variation-settings: "opsz" 144, "wght" 600;
  letter-spacing: -0.01em;
  margin: 0.1em 0 0.35em;
}
h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  font-variation-settings: "opsz" 60, "wght" 600;
  margin: 0.1em 0 0.6em;
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-variation-settings: "opsz" 30, "wght" 600;
  margin: 0 0 0.4em;
}
p { margin: 0 0 1.1em; }
strong { font-weight: 600; color: var(--ink); }

.eyebrow, .kicker {
  font-family: var(--sans-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brick);
  margin: 0 0 0.6em;
}
.kicker { letter-spacing: 0.18em; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.7em 1.1em; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

:where(a, button, input, iframe):focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-seal { display: block; }
.brand-text { font-family: var(--serif-display); font-weight: 600; font-size: 1.15rem; font-variation-settings: "opsz" 30; }
.site-nav { display: flex; flex-wrap: wrap; gap: clamp(0.8rem, 2vw, 1.7rem); }
.site-nav a {
  text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.01em; padding: 0.2em 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--brick); border-bottom-color: var(--gold-soft); }
.site-nav a[aria-current] { color: var(--brick); border-bottom-color: var(--brick); }
@media (max-width: 640px) {
  .brand-text { display: none; }
  .site-nav { gap: 0.7rem 1rem; font-size: 0.85rem; justify-content: flex-end; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% -10%, color-mix(in srgb, var(--gold-soft) 22%, transparent), transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(138,51,36,0.025) 22px 23px),
    var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
.hero-inner { max-width: 800px; margin-inline: auto; }
.hero h1 { font-variation-settings: "opsz" 144, "wght" 580; }
.lede { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); color: var(--ink-soft); line-height: 1.5; margin-inline: auto; max-width: 40ch; }
.lede strong { color: var(--ink); }
.coords {
  display: inline-flex; gap: 0.85em; align-items: center;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  color: var(--brick); margin: 1.6em 0 0;
}
.coords span[aria-hidden] { color: var(--gold); }
.hero-actions { margin-top: 1.8em; display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.98rem;
  padding: 0.72em 1.4em; border-radius: 999px; line-height: 1;
  background: var(--brick); color: var(--paper); border: 1.5px solid var(--brick);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--brick-deep); color: var(--paper); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brick); border-color: color-mix(in srgb, var(--brick) 35%, transparent); }
.btn-ghost:hover { background: color-mix(in srgb, var(--brick) 8%, transparent); color: var(--brick-deep); }

/* ---------- grid for the "where" section ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

.facts { margin: 1.6em 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { display: flex; gap: 1rem; padding: 0.7em 0; border-bottom: 1px solid var(--line-soft); }
.facts dt { flex: 0 0 8.5rem; font-weight: 600; color: var(--brick); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.06em; }
.facts dd { margin: 0; color: var(--ink-soft); }

/* ---------- map ---------- */
.map-figure { margin: 0; }
.map-figure iframe {
  width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line);
  border-radius: 10px; background: var(--paper-2);
  box-shadow: 0 14px 30px -22px rgba(44,32,23,0.55);
}
.map-figure figcaption { margin-top: 0.7em; font-size: 0.88rem; color: var(--ink-soft); }
.map-figure figcaption a { font-weight: 600; }

/* ---------- name section ---------- */
.lead-para { font-size: 1.12em; }
.photo-archival { margin: 2em auto; max-width: 620px; }
.photo img {
  width: 100%; height: auto; display: block; border-radius: 8px;
  border: 1px solid var(--line); box-shadow: 0 18px 40px -26px rgba(44,32,23,0.6);
}
.photo figcaption, .map-figure .credit, .credit {
  font-size: 0.85rem; color: var(--ink-soft); line-height: 1.45;
}
.photo figcaption { margin-top: 0.7em; text-align: center; }
.credit { display: block; color: color-mix(in srgb, var(--ink-soft) 80%, var(--paper)); }

.callout {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--brick); border-radius: 8px;
  padding: 1.4em 1.6em; margin: 2em 0;
}
.section-alt .callout { background: var(--paper); }
.callout h3 { color: var(--brick-deep); margin-bottom: 0.6em; }
.callout ul { margin: 0; padding-left: 1.1em; }
.callout li { margin-bottom: 0.7em; }
.callout li:last-child { margin-bottom: 0; }

.source-note { font-size: 0.9rem; color: var(--ink-soft); border-top: 1px solid var(--line-soft); padding-top: 1em; }

/* ---------- photo callout / contribute ---------- */
.photo-callout {
  margin-top: 2.2em; padding: 1.6em 1.7em; border-radius: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold-soft) 16%, var(--paper)), var(--paper));
  border: 1px dashed color-mix(in srgb, var(--brick) 38%, transparent);
}
.photo-callout h3 { color: var(--brick-deep); }
.photo-callout p:last-child { margin-bottom: 0; margin-top: 1em; }

/* ---------- FAQ ---------- */
.qa { padding: 1.3em 0; border-bottom: 1px solid var(--line-soft); }
.qa:last-child { border-bottom: 0; }
.qa h3 { color: var(--ink); margin-bottom: 0.35em; }
.qa p { margin: 0; color: var(--ink-soft); }

/* ---------- involve ---------- */
.involve-list { padding-left: 1.1em; margin: 0 0 1.4em; }
.involve-list li { margin-bottom: 0.8em; }
.contact-line { font-size: 1.05em; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink); color: color-mix(in srgb, var(--paper) 82%, var(--ink));
  padding: clamp(2.5rem, 6vw, 4rem) 0; margin-top: 0;
}
.footer-inner { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: 2rem; align-items: start; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 1.6rem; } }
.site-footer a { color: var(--gold-soft); }
.site-footer a:hover { color: #e7c878; }
.footer-brand { display: flex; gap: 0.8rem; align-items: center; }
.footer-brand p { margin: 0; line-height: 1.4; }
.footer-brand strong { color: var(--paper); font-family: var(--serif-display); font-size: 1.1rem; }
.footer-links h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold-soft); font-family: var(--sans-body); margin: 0 0 0.7em; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.5em; font-size: 0.94rem; }
.footer-meta { font-size: 0.85rem; line-height: 1.55; }
.footer-meta p { margin: 0 0 0.7em; }
.muted { color: color-mix(in srgb, var(--paper) 55%, var(--ink)); }
.site-footer .credit { color: color-mix(in srgb, var(--paper) 58%, var(--ink)); }
.site-footer abbr { text-decoration: none; border-bottom: 1px dotted currentColor; cursor: help; }
