/* Fallbrook Lodge No. 317, F.&A.M.
   Royal blue, gold and maroon from the lodge seal, on a warm parchment canvas.
   Follows the device light/dark setting; the header toggle overrides it.
   Text colors checked for WCAG AA contrast in both modes. */
:root {
  --blue: #1f3577;        /* header, bands */
  --blue-deep: #13224f;
  --gold: #e3bb55;        /* on blue only */
  --gold-ink: #7a5a10;    /* gold for text on light backgrounds */
  --maroon: #8a2432;
  --bg: #f8f5ee;
  --surface: #ffffff;
  --tint: #efe9dc;
  --ink: #1d2233;
  --muted: #4f566a;
  --line: #dcd2bd;
  --link: #24479a;
  --shadow: 0 1px 2px rgba(19, 34, 79, .06), 0 8px 24px rgba(19, 34, 79, .08);
  --radius: 14px;
  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --quote: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1325;
    --surface: #161d35;
    --tint: #121a30;
    --ink: #e9ecf3;
    --muted: #b6bdcd;
    --line: #2c3757;
    --link: #a9c4ff;
    --gold-ink: #f0cd7a;
    --maroon: #f0a3ad;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1325;
  --surface: #161d35;
  --tint: #121a30;
  --ink: #e9ecf3;
  --muted: #b6bdcd;
  --line: #2c3757;
  --link: #a9c4ff;
  --gold-ink: #f0cd7a;
  --maroon: #f0a3ad;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
main :focus-visible { outline-color: var(--link); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--gold); color: var(--blue-deep); padding: 8px 14px; z-index: 100; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 8px; }

/* Header */
.site-header { background: var(--blue); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0, 0, 0, .2); }
.bar { display: flex; align-items: center; gap: 14px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { width: 50px; height: 50px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; letter-spacing: .02em; }
.brand-sub { font-size: .82rem; color: #f2d98f; letter-spacing: .04em; }
.menu-btn { display: none; margin-left: auto; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .4); border-radius: 10px; padding: 8px 12px; font: 600 .95rem var(--sans); align-items: center; gap: 6px; cursor: pointer; }
#nav { margin-left: auto; }
#nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
#nav li { margin: 0; }
#nav a { display: block; color: #eef1f8; text-decoration: none; padding: 8px 11px; border-radius: 8px; font-weight: 600; font-size: .97rem; }
#nav a:hover { background: rgba(255, 255, 255, .1); }
#nav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.theme-btn { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; width: 38px; height: 38px; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.theme-btn[hidden] { display: none; }
.theme-btn:hover { background: rgba(255, 255, 255, .1); }
.theme-btn .i-sun { display: none; }
.theme-btn[aria-pressed="true"] .i-sun { display: block; }
.theme-btn[aria-pressed="true"] .i-moon { display: none; }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .no-js .menu-btn { display: none; }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--blue); padding: 8px 16px 16px; box-shadow: 0 10px 20px rgba(0, 0, 0, .2); }
  #nav.open, .no-js #nav { display: block; }
  .no-js #nav { position: static; padding: 0 0 10px; box-shadow: none; }
  .no-js .bar { flex-wrap: wrap; }
  #nav ul { flex-direction: column; }
  #nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); }
}

/* Hero and bands */
.hero { position: relative; color: #fff; background: var(--blue-deep); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--img) center/cover no-repeat; opacity: .45; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19, 34, 79, .95) 0%, rgba(19, 34, 79, .75) 55%, rgba(19, 34, 79, .35) 100%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: clamp(48px, 8vw, 96px) 0; }
.hero h1 { color: #fff; }
.hero .lede { font-size: 1.2rem; max-width: 40em; color: #eef1f8; }
.hero-seal { width: clamp(150px, 22vw, 250px); filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .4)); }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; font-weight: 700; color: var(--gold-ink); margin-bottom: .6em; }
.hero .kicker, .band .kicker { color: var(--gold); }
.band { background: var(--blue); color: #fff; padding: clamp(36px, 6vw, 64px) 0; }
.band h1 { color: #fff; margin-bottom: .3em; }
.band .lede { color: #e6eaf4; font-size: 1.12rem; max-width: 46em; margin: 0; }
.band a { color: #ffe2a0; }
@media (max-width: 700px) { .hero-inner { grid-template-columns: 1fr; } .hero-seal { order: -1; width: 130px; } }

.section { padding: clamp(40px, 6vw, 72px) 0; }
.section.tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .grid2, .grid3, .split { grid-template-columns: 1fr; } }
.grid2 > *, .grid3 > *, .split > * { min-width: 0; }
.facts a, .site-footer a { overflow-wrap: anywhere; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { color: var(--ink); }
.card .icon { color: var(--gold-ink); margin-bottom: 8px; }
.photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
figure { margin: 0; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-gold { background: var(--gold); color: var(--blue-deep); }
.btn-gold:hover { background: #f0cd70; }
.btn-line { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-line:hover { background: rgba(255, 255, 255, .12); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
:root[data-theme="dark"] .btn-blue { background: var(--gold); color: var(--blue-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-blue { background: var(--gold); color: var(--blue-deep); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.band .btn-gold, .hero .btn-gold { color: var(--blue-deep); }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.3em; }
.prose blockquote, .pull { font-family: var(--quote); font-size: 1.3rem; line-height: 1.5; border-left: 4px solid var(--gold-ink); margin: 1.4em 0; padding: .2em 0 .2em 1em; color: var(--ink); }
.quote-band { background: var(--blue-deep); color: #f3f4f8; padding: clamp(36px, 6vw, 60px) 0; text-align: center; }
.quote-band blockquote { font-family: var(--quote); font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.5; max-width: 860px; margin: 0 auto; }
.quote-band cite { display: block; margin-top: 12px; font-style: normal; color: var(--gold); font-size: .95rem; letter-spacing: .06em; }

.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts li:last-child { border-bottom: 0; }
.facts svg { color: var(--gold-ink); flex: none; margin-top: 3px; }
.next { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--gold-ink); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.next .label { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin: 0; }
.next .date { font-family: var(--serif); font-size: 1.35rem; margin: 4px 0; }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; }
:root[data-theme="dark"] .steps li::before { background: var(--gold); color: var(--blue-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .steps li::before { background: var(--gold); color: var(--blue-deep); } }
.steps h3 { margin-bottom: .25em; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .values { grid-template-columns: 1fr; } }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 8px; }

.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius); }
.cal-frame { width: 100%; height: 680px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
@media (max-width: 700px) { .cal-frame { height: 560px; } }

/* Footer */
.site-footer { background: var(--blue-deep); color: #d9deea; padding: 48px 0 20px; margin-top: 0; }
.site-footer h2 { color: #fff; font-size: 1.05rem; letter-spacing: .06em; }
.site-footer a { color: #f2d98f; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr; } }
.foot-seal { width: 96px; margin-bottom: 12px; }
.plain { list-style: none; padding: 0; margin: 0; }
.legal { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 32px; padding-top: 16px; font-size: .9rem; }
