/* =========================================================
   The Page-Nelson Society of Virginia — site styles
   Colors and fonts are set once here in :root. Change them
   here and every page updates.
   ========================================================= */

/* Fonts are stored with the site (assets/fonts), so nothing loads from Google. Open Font License. */
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Display"; src: url("../fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --oxblood: #7a1c27;
  --oxblood-deep: #5c131c;
  --blue: #1e3a5c;
  --ink: #1d232b;
  --muted: #535b67;
  --paper: #fcfbf8;
  --stone: #eeebe4;
  --gold: #a8843a;
  --line: #d9d4c9;

  --serif: "Libre Caslon Text", "Baskerville", "Georgia", serif;
  --display: "Libre Caslon Display", "Libre Caslon Text", "Baskerville", "Georgia", serif;
  --sans: "Public Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --measure: 68ch;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::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);
  font-size: 1.125rem;          /* 18px — easy reading */
  line-height: 1.65;
}

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

a { color: var(--oxblood); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--oxblood-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--ink); margin: 0 0 .6em; }
h1 { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--stone { background: var(--stone); }
.lede { font-size: 1.25rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.2rem; line-height: 1.15; }
.brand small { display: block; font-family: var(--sans); font-size: .8rem; color: #b9bec6; letter-spacing: .02em; }
.brand:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: #e6e8eb; text-decoration: none; padding: 10px 14px; font-size: 1rem; border-radius: 3px; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav .btn { margin-left: 10px; }
.menu-toggle { display: none; background: none; border: 1px solid #5a616b; color: #fff; font: inherit; font-size: 1rem; padding: 8px 14px; border-radius: 3px; cursor: pointer; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; border-top: 1px solid #333a44; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 6px; font-size: 1.1rem; border-bottom: 1px solid #2c333c; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 14px; }
  .nav .btn { margin: 14px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1.05rem;
  padding: 13px 24px; border-radius: 3px; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; line-height: 1.2; background: var(--oxblood); color: #fff;
}
.btn:hover { background: var(--oxblood-deep); color: #fff; text-decoration: none; }
.btn--light { background: #fff; color: var(--oxblood); }
.btn--light:hover { background: var(--stone); color: var(--oxblood-deep); }
.btn--ghost { background: transparent; border-color: currentColor; color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { background: transparent; border-color: var(--oxblood); color: var(--oxblood); }
.btn--outline:hover { background: var(--oxblood); color: #fff; }
.nav .btn { padding: 9px 18px; font-size: .98rem; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: #fff; background: #23262b; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,22,26,.82) 0%, rgba(20,22,26,.55) 40%, rgba(20,22,26,0) 70%), linear-gradient(180deg, rgba(20,22,26,0) 55%, rgba(20,22,26,.6) 100%); }
@media (max-width: 760px) { .hero::after { background: linear-gradient(180deg, rgba(20,22,26,.1) 20%, rgba(20,22,26,.85) 75%); } }
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(40px, 7vw, 80px); width: 100%; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .35em; }
.hero p { font-size: clamp(1.15rem, 2vw, 1.35rem); color: #eceae4; max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero figcaption { position: absolute; right: var(--gutter); bottom: 14px; z-index: 1; font-size: .8rem; color: #c9ccd1; }

/* ---------- Page banner (inner pages) ---------- */
.banner { background: var(--oxblood); color: #fff; padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); }
.banner h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .25em; }
.banner p { color: #f1dfe1; font-size: 1.2rem; margin: 0; }

/* ---------- The founders diptych (signature element) ---------- */
.founders { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: start; margin-top: 40px; }
.founder { text-align: center; }
.founder img { height: 220px; width: auto; margin: 0 auto 22px; mix-blend-mode: multiply; }
.arms { mix-blend-mode: multiply; }
.founder h3 { font-size: 1.6rem; font-weight: 400; margin-bottom: .2em; }
.founder .dates { font-family: var(--serif); font-style: italic; color: var(--muted); margin: 0 auto .9em; }
.founder p { margin-left: auto; margin-right: auto; max-width: 36ch; }
.founders .amp { font-family: var(--display); font-size: clamp(4rem, 9vw, 7.5rem); color: var(--gold); line-height: 1; align-self: center; padding-top: 40px; }
.motto { display: block; font-size: .95rem; color: var(--blue); font-family: var(--serif); font-style: italic; }
@media (max-width: 760px) {
  .founders { grid-template-columns: 1fr; }
  .founders .amp { padding: 0; font-size: 4rem; margin: -10px 0; text-align: center; }
  .founder img { height: 180px; }
}

/* ---------- Two-column text + image ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split figure { margin: 0; }
.split figcaption, .caption { font-size: .9rem; color: var(--muted); margin-top: 10px; font-style: italic; font-family: var(--serif); }
@media (max-width: 860px) { .split, .split--flip { grid-template-columns: 1fr; } }

.portrait { max-width: 300px; }

.mission-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 18px; }
.mission-list li { padding-left: 22px; border-left: 3px solid var(--gold); max-width: var(--measure); }
.mission-list strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }

/* ---------- Photo placeholder (swap for a real photo later) ---------- */
.placeholder {
  aspect-ratio: 4 / 3; background: repeating-linear-gradient(45deg, #e4e0d6 0 12px, #ebe7de 12px 24px);
  border: 2px dashed #b9b2a3; display: grid; place-items: center; text-align: center;
  color: var(--muted); font-size: .95rem; padding: 20px;
}

/* ---------- Donate band ---------- */
.donate { position: relative; color: #fff; background: #2b2a2a; overflow: hidden; }
.donate > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.donate::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,24,24,.92) 0%, rgba(28,24,24,.82) 45%, rgba(28,24,24,.35) 100%); z-index: 1; }
.donate .wrap { position: relative; z-index: 2; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.donate h2 { color: #fff; }
.donate p { color: #e9e6e0; max-width: 52ch; }
.donate-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 22px; max-width: 620px; }
.donate-form label { display: block; font-size: .95rem; color: #e9e6e0; margin-bottom: 6px; }
.donate-form select { font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 3px; border: 0; min-width: 280px; max-width: 100%; color: var(--ink); background: #fff; }
.paynote { font-size: .9rem; color: #cfcac2; margin-top: 14px; }

/* ---------- Contact + footer ---------- */
.contact { background: var(--oxblood); color: #fff; }
.contact h2 { color: #fff; }
.contact p { color: #f1dfe1; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact a { color: #fff; }
.contact address { font-style: normal; line-height: 1.8; margin-bottom: 1em; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 12px 14px; border-radius: 3px;
  border: 1px solid #c8a3a8; background: #fff; color: var(--ink);
}
.form-row textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -5000px; }   /* spam trap, hidden from people */

.site-footer { background: var(--ink); color: #b9bec6; font-size: .95rem; padding: 28px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer a { color: #e6e8eb; }
.site-footer p { margin: 0; max-width: none; }

/* ---------- Events ---------- */
.event-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; }
@media (max-width: 760px) { .event-types { grid-template-columns: 1fr; } }
.event-types h3 { color: var(--oxblood); }

.upcoming { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.upcoming li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--oxblood); padding: 18px 22px; max-width: 760px; }
.upcoming strong { font-family: var(--serif); font-size: 1.2rem; display: block; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 4.6rem; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0 28px; padding: 10px 0; position: relative; }
.timeline .yr { font-family: var(--serif); font-size: 1.2rem; color: var(--oxblood); text-align: right; padding-right: 16px; }
.timeline li::after { content: ""; position: absolute; left: calc(4.6rem - 5px); top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.timeline .kind { font-weight: 600; }
.timeline .reunion .kind { color: var(--blue); }
@media (max-width: 560px) {
  .timeline::before { left: 3.4rem; }
  .timeline li { grid-template-columns: 3.4rem 1fr; gap: 0 22px; }
  .timeline li::after { left: calc(3.4rem - 5px); }
  .timeline .yr { font-size: 1.05rem; }
}

/* ---------- Membership ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 22px; max-width: 760px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 1.6rem; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--oxblood); color: #fff; }
.steps h3 { margin: 10px 0 .2em; font-size: 1.2rem; }
.steps p { margin: 0; }

details { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 0 22px; margin-bottom: 14px; max-width: 860px; }
details summary { cursor: pointer; padding: 18px 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 16px; }
details ul { padding-left: 1.2em; }
details li { margin-bottom: .6em; max-width: var(--measure); }

.pay-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .pay-options { grid-template-columns: 1fr; } }
.pay { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 26px; display: flex; flex-direction: column; }
.pay--primary { border-top-color: var(--oxblood); }
.pay .price { font-family: var(--display); font-size: 2.6rem; line-height: 1; margin: 6px 0 14px; color: var(--ink); }
.pay p { font-size: 1rem; }
.pay form { margin-top: auto; }
.pay .who { font-weight: 600; color: var(--oxblood); }

/* ---------- Officers ---------- */
.roster { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.roster li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.roster li:first-child { border-top: 1px solid var(--line); }
.roster .role { color: var(--muted); }
.roster .name { font-family: var(--serif); font-size: 1.2rem; }
@media (max-width: 560px) { .roster li { grid-template-columns: 1fr; } }

/* ---------- Research ---------- */
.linklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; max-width: 760px; }
.linklist a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.2rem; text-decoration: none; }
.linklist a:hover { text-decoration: underline; }
.refs { list-style: none; padding: 0; margin: 0; max-width: 820px; }
.refs li { padding-left: 2em; text-indent: -2em; margin-bottom: 1.1em; }
.refs cite { font-family: var(--serif); }

.section-head { max-width: 760px; margin-bottom: 32px; }
.arms-sm { width: 120px; }
.pay .pay-btn { margin: auto 0 0; padding-top: 6px; }

