/* Layout: full-bleed photo bands alternating with a calm reading column; a "tide line" rule marks section starts. */
:root {
  --paper: #f5f8f9;      /* morning haze over the bay */
  --surface: #ffffff;
  --ink: #102a3b;        /* deep bay navy */
  --muted: #4f6676;
  --line: #d5e0e6;
  --bay: #1a679b;        /* Delaware Bay blue: links, primary buttons */
  --bay-soft: #e2eef5;
  --sunset: #d9532a;     /* used sparingly: figures, highlights */
  --dune: #2f5b43;       /* pine on the dunes */
  --on-photo: #ffffff;
  --shade: rgba(9, 28, 41, .62);
  --font-display: "Libre Franklin", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --step--1: .875rem; --step-0: 1.0625rem; --step-1: 1.25rem; --step-2: 1.6rem; --step-3: 2.2rem; --step-4: clamp(2.4rem, 5.5vw, 3.9rem);
  --wrap: 72rem;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1c26; --surface: #132733; --ink: #e6eef2; --muted: #9fb3bf; --line: #24404f;
    --bay: #6fb4e3; --bay-soft: #183647; --sunset: #f08a5d; --dune: #8cc2a2; --shade: rgba(4, 14, 21, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1c26; --surface: #132733; --ink: #e6eef2; --muted: #9fb3bf; --line: #24404f;
  --bay: #6fb4e3; --bay-soft: #183647; --sunset: #f08a5d; --dune: #8cc2a2; --shade: rgba(4, 14, 21, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--bay); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--bay); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 650; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: .5rem 1rem; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.measure { max-width: 40rem; }
.stack { display: grid; gap: 1rem; }
.eyebrow {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--sunset); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { flex: none; font-family: "Cinzel", "Trajan Pro", Georgia, serif; font-weight: 700; font-size: 4rem; letter-spacing: .03em; color: var(--bay); padding-right: .1rem; line-height: .8; }
@media (max-width: 480px) { .brand-mark { font-size: 2.6rem; } .brand-name { font-size: .78rem; padding-left: .55rem; } .brand { gap: .4rem; } }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; line-height: 1.02; padding-left: .9rem; border-left: 2px solid var(--sunset); }
@media (max-width: 1180px) and (min-width: 1101px) { .brand-name { font-size: 1.15rem; } }
.site-footer .brand-name { padding-left: 0; border-left: 0; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { color: var(--ink); text-decoration: none; padding: .45rem .7rem; border-radius: 6px; font-weight: 500; }
.nav a:hover { background: var(--bay-soft); }
.nav a[aria-current="page"] { color: var(--bay); box-shadow: inset 0 -2px 0 var(--bay); border-radius: 0; }
.nav .btn { margin-left: .4rem; }
.menu-toggle { display: none; }
@media (max-width: 1100px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .4rem; background: none; border: 1px solid var(--line);
    color: var(--ink); font: inherit; padding: .4rem .75rem; border-radius: 6px; cursor: pointer;
  }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: .75rem .5rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--bay); padding-left: .9rem; }
  .nav .btn { margin: .5rem 0 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: .75rem 1.2rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--bay); color: var(--surface); }
.btn-primary:hover { filter: brightness(1.08); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--surface); background: var(--bay); }
.btn-ghost { border-color: currentColor; color: var(--on-photo); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--bay); color: var(--bay); background: transparent; }

/* Photo bands */
.photo-band { position: relative; color: var(--on-photo); background: #1b3e55 center / cover no-repeat; isolation: isolate; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--shade) 0%, rgba(9,28,41,.25) 65%, rgba(9,28,41,0) 100%); }
.photo-band .wrap { padding-block: clamp(4rem, 12vw, 8.5rem); }
.photo-band .eyebrow { color: rgba(255,255,255,.85); }
.photo-band p { color: rgba(255,255,255,.92); }
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: var(--step-1); max-width: 34rem; margin-top: 1.1rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.page-head .wrap { padding-block: clamp(3rem, 9vw, 5.5rem); }
.page-head p { max-width: 36rem; margin-top: .8rem; font-size: var(--step-1); }
.photo-credit { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: .6rem; font-size: .75rem; color: rgba(255,255,255,.8); }

/* Boundary strip: the area LBCA represents */
.bounds { background: var(--ink); color: var(--paper); }
.bounds .wrap { display: grid; grid-template-columns: auto 1fr; gap: 1rem 2rem; align-items: center; padding-block: 1.1rem; }
.bounds .label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.bounds ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.bounds li { font-size: .95rem; }
.bounds b { font-family: var(--font-mono); font-weight: 500; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin-right: .4rem; }
@media (max-width: 640px) { .bounds .wrap { grid-template-columns: 1fr; gap: .5rem; } }

/* Sections */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: .75rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); max-width: 40rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 1rem; max-width: 40rem; }
.prose p { font-size: 1.1rem; }

figure { margin: 0; }
figure img { border-radius: var(--radius); width: 100%; height: auto; }
figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .5rem; }

/* Figures row */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.figure-stat { border-top: 3px solid var(--sunset); padding-top: .9rem; }
.figure-stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; color: var(--sunset); font-variant-numeric: tabular-nums; }
.figure-stat p { color: var(--muted); margin-top: .4rem; font-size: .98rem; }
@media (max-width: 640px) { .figures { grid-template-columns: 1fr; gap: 1.25rem; } }

/* Record list */
.record { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; counter-reset: rec; }
.record li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .5rem; padding-block: .9rem; border-bottom: 1px solid var(--line); counter-increment: rec; }
.record li::before { content: counter(rec, decimal-leading-zero); font-family: var(--font-mono); font-size: .85rem; color: var(--dune); padding-top: .15rem; }
@media (max-width: 720px) { .record { grid-template-columns: 1fr; } }
.callout { margin-top: 2.5rem; padding: 1.4rem 1.6rem; background: var(--bay-soft); border-radius: var(--radius); font-size: 1.12rem; max-width: 46rem; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { display: grid; gap: .6rem; align-content: start; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--bay); }
.news-card p { color: var(--muted); font-size: .98rem; }
.meta { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem .8rem; letter-spacing: .02em; }
.tag { color: var(--dune); text-transform: uppercase; letter-spacing: .08em; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { font: inherit; font-size: .92rem; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.year { font-family: var(--font-display); font-size: var(--step-2); padding-block: 2rem .5rem; color: var(--muted); }
.post { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; padding-block: 1.6rem; border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
.post .meta { flex-direction: column; gap: .3rem; }
.post .body { display: grid; gap: .75rem; min-width: 0; }
.post h3 { font-size: 1.3rem; }
.post .body > p { max-width: 42rem; }
.links { list-style: none; padding: 0; margin: .3rem 0 0; display: grid; gap: .35rem; }
.links li { padding-left: 1.3rem; position: relative; overflow-wrap: anywhere; }
.links li::before { content: "\2197"; position: absolute; left: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .post { grid-template-columns: 1fr; gap: .6rem; } .post .meta { flex-direction: row; } }

/* Library */
.doc-group + .doc-group { margin-top: 2.5rem; }
.doc-group h3 { margin-bottom: .6rem; }
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.docs .kind { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; padding: .15rem .45rem; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); margin-right: .5rem; }
.docs time { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.minutes { display: grid; gap: 0; margin-top: 1rem; }
.minutes div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.minutes dt { font-weight: 600; }
.minutes dd { margin: 0; }
@media (max-width: 640px) { .minutes div { grid-template-columns: 1fr; gap: .2rem; } }
.signed { font-style: italic; color: var(--muted); margin-top: 1rem; }

/* Board */
.board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; }
.board li { padding-block: .9rem; border-bottom: 1px solid var(--line); display: grid; gap: .1rem; }
.board .role { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dune); }
.board .name { font-weight: 600; font-size: 1.08rem; }
@media (max-width: 820px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .board { grid-template-columns: 1fr; } }
.note { color: var(--muted); font-size: .95rem; margin-top: 1rem; max-width: 44rem; }

/* Membership */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .5rem; align-content: start; }
.tier.featured { border: 2px solid var(--bay); }
.tier .price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.tier .price small { font-family: var(--font-body); font-size: .95rem; font-weight: 400; color: var(--muted); }
.tier p { color: var(--muted); }
.form { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: .65rem .75rem; width: 100%;
}
.field textarea { min-height: 7rem; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radio { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
.form-status { padding: .8rem 1rem; border-radius: 6px; background: var(--bay-soft); }

/* Contact */
.email-box { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.email-box code { font-family: var(--font-mono); font-size: 1.15rem; user-select: all; overflow-wrap: anywhere; }

/* CTA band */
.cta .wrap { display: grid; gap: 1rem; justify-items: start; }
.cta h2 { max-width: 20ch; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
.site-footer a { color: var(--paper); }
.site-footer h4 { font-family: var(--font-mono); font-weight: 500; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin: 0 0 .7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.2rem; font-size: .85rem; opacity: .7; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero .actions { animation: rise .7s ease-out both; }
  .hero .lede { animation-delay: .08s; } .hero .actions { animation-delay: .16s; }
  @keyframes rise { from { transform: translateY(10px); opacity: .001; } to { transform: none; opacity: 1; } }
}
.site-footer .stack { align-content: start; }
@media (max-width: 720px) {
  .photo-band::before { background: linear-gradient(180deg, var(--shade) 0%, rgba(9,28,41,.5) 100%); }
}

/* Bylaws */
.bylaws-layout { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.bylaws-toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 5.5rem); display: grid; gap: .75rem; }
.bylaws-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .95rem; }
.bylaws-toc a { color: var(--ink); text-decoration: none; }
.bylaws-toc a:hover { color: var(--bay); }
.bylaws-body { display: grid; gap: 3rem; max-width: 46rem; }
.bylaw-article { display: grid; gap: 1.6rem; scroll-margin-top: 6rem; }
.bylaw-article h2 { font-size: var(--step-2); display: grid; gap: .3rem; padding-bottom: .8rem; border-bottom: 2px solid var(--ink); }
.artnum, .secnum { font-family: var(--font-mono); font-weight: 500; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dune); }
.bylaw { display: grid; gap: .6rem; scroll-margin-top: 6rem; }
.bylaw h3 { font-size: 1.12rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; }
.bylaw-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .2rem; }
@media (max-width: 820px) { .bylaws-layout { grid-template-columns: 1fr; } .bylaws-toc { position: static; } }

/* Become a Member block: solid, high-contrast, placed right under the hero */
.member-cta { background: var(--bay); color: #ffffff; }
.member-cta .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.member-cta-text { display: grid; gap: 1rem; justify-items: start; }
.member-cta .eyebrow { color: rgba(255,255,255,.85); }
.member-cta h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); max-width: 18ch; }
.member-cta p { font-size: var(--step-1); max-width: 32rem; color: rgba(255,255,255,.92); }
.member-cta img { width: 100%; height: auto; max-width: 100%; aspect-ratio: 4 / 3; object-position: center 75%; object-fit: cover; border-radius: var(--radius); }
.btn-cta { background: var(--sunset); color: #ffffff; font-size: 1.1rem; padding: .9rem 1.7rem; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.member-cta .btn-cta { margin-top: .5rem; font-size: 1.15rem; padding: 1rem 1.9rem; }
.btn-cta:hover { filter: brightness(1.08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .member-cta { background: #164e75; } :root:not([data-theme="light"]) .btn-cta { background: #d9532a; } }
:root[data-theme="dark"] .member-cta { background: #164e75; }
:root[data-theme="dark"] .btn-cta { background: #d9532a; }
@media (max-width: 760px) { .member-cta .wrap { grid-template-columns: 1fr; } .member-cta img { aspect-ratio: 16 / 9; } }
.contact-card { display: grid; gap: .5rem; }
.contact-label span { color: var(--muted); }
.brand { gap: .55rem; align-items: flex-end; }
.brand-name { align-self: center; }
.brand-lighthouse { flex: none; width: 30px; height: 48px; margin-right: -.1rem; }
@media (max-width: 480px) { .brand-lighthouse { width: 19px; height: 30px; } }
