/* Norman Lodge No. 1334 - design preview stylesheet
   ---------------------------------------------------------------------------
   1  Fonts            5  Ornament          9   Components
   2  Tokens           6  Masthead          10  Pages
   3  Base             7  Hero              11  Footer
   4  Layout           8  Page heads        12  Utilities, print, motion

   Rules of the house:
   - Colours come from the tokens below, which start from the lodge's existing
     greens (#003f1e, #309030, #aaddaa, #cceecc) and add parchment and gold.
   - No gradients, soft shadows, blurred glass or bouncing motion. The look
     comes from rules, borders, pattern bands and type, as on an engraved
     certificate.
   - No inline styles anywhere, so the Content-Security-Policy can stay strict.
*/

/* 1  Fonts (self-hosted, SIL Open Font Licence 1.1; see assets/fonts/README.txt) */
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-002F, U+003A-10FFFF;
}
/* Cinzel's figures follow Roman inscriptions, so a 1 looks like an I. Digits set in the display
   face are taken from EB Garamond instead, at a size that matches Cinzel's capitals. */
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/eb-garamond.woff") format("woff");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039;
  size-adjust: 108%;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond.woff") format("woff");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* 2  Tokens */
:root {
  --forest-950: #06180f;
  --forest-900: #0a2a19;
  --forest-800: #003f1e;   /* the lodge's existing dark green */
  --forest-700: #0b5a32;
  --leaf-500: #309030;     /* the lodge's existing mid green */
  --sage-300: #aaddaa;     /* the lodge's existing pale green */
  --mist-100: #cceecc;     /* the lodge's existing palest green */
  --parchment: #f4e9cf;
  --vellum: #faf4e4;
  --gold-400: #d9b84a;
  --gold-500: #c9a227;
  --gold-700: #7d5f0c;
  --ink: #13241a;
  --ink-soft: #33473a;

  --display: "Cinzel", "Trajan Pro", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --text: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --measure: 40rem;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --focus: var(--forest-800);
}

/* 3  Base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1.125rem, 1.06rem + 0.28vw, 1.25rem);
  line-height: 1.62;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.05em;
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.3rem + 4.2vw, 4rem); letter-spacing: 0.06em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.7vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--forest-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover { text-decoration-thickness: 2px; }
/* a link that opens a new tab carries a small arrow, so nobody is surprised (screen readers are told in words) */
a[target="_blank"]::after { content: "\a0\2197\fe0e"; font-size: 0.78em; text-decoration: none; display: inline-block; }

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

img, svg { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }

::selection { background: var(--forest-800); color: var(--parchment); }

/* 4  Layout */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--vellum { background: var(--vellum); }
.section--dark {
  background: var(--forest-900);
  color: var(--parchment);
  --focus: var(--gold-400);
}
.section--dark a { color: var(--sage-300); }
.section--dark a:hover { color: var(--mist-100); }

.prose { max-width: var(--measure); }
.prose p:not(.kicker):not(.actions):not(.mailcall), .lead, .hero__lede, .eras p, .timeline p, .ledger dd, .faq details > div { font-variant-numeric: oldstyle-nums; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.75em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose > :first-child { margin-top: 0; }
.prose > .kicker + * { margin-top: 0; }
.prose + .faq, .prose + .linklist, .prose + .ledger, .prose + .steps, .prose + .facts { margin-top: 2.25rem; }
.ledger + .prose { margin-top: 2.25rem; }

.lead {
  font-size: 1.28em;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
}
.section--dark .lead, .page-head .lead { color: var(--mist-100); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 60em) {
  .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.center { text-align: center; }
.center .actions { justify-content: center; }
.center .prose, .center.prose { margin-inline: auto; }

.dropcap::first-letter {
  float: left;
  font-family: var(--display);
  font-weight: 600;
  font-style: normal;
  font-size: 4.4em;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--forest-700);
}

/* 5  Ornament */
.band { display: block; width: 100%; height: 16px; background-repeat: repeat-x; background-position: 0 0; }
.band--chevron { background-image: url("../img/chevron-gold.svg"); background-size: 32px 16px; }
.band--chevron-forest { background-image: url("../img/chevron-forest.svg"); background-size: 32px 16px; }
.band--pavement { height: 24px; background-image: url("../img/pavement.svg"); background-size: 24px 24px; }

.rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 20rem;
  margin: 1.25rem auto;
  color: var(--gold-500);
}
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.rule__gem { width: 0.6rem; height: 0.6rem; background: currentColor; transform: rotate(45deg); }
.rule--left { margin-inline: 0; }
.rule--left::before { display: none; }
.rule--on-light { color: var(--gold-700); }

.kicker {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.section--dark .kicker, .page-head .kicker, .hero .kicker { color: var(--gold-500); }
.kicker.values__kicker { margin-top: 4.5rem; }

/* 6  Masthead */
.preview-note {
  margin: 0;
  padding: 0.5rem var(--gutter);
  background: var(--gold-500);
  color: var(--forest-950);
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: center;
}
.preview-note strong { font-family: var(--display); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8em; }

.masthead {
  background: var(--forest-900);
  color: var(--parchment);
  border-bottom: 4px double var(--gold-500);
  --focus: var(--gold-400);
}
.masthead__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding-block: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
}
.brand__emblem { width: 3.25rem; height: 3.25rem; flex: none; }
.brand__name {
  display: block;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}
.brand__sub {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--gold-500);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.3rem;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding: 0.55rem 0.05rem;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--parchment);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold-500); }
.site-nav .nav-cta a {
  padding: 0.6rem 0.95rem;
  border: 2px solid var(--gold-500);
  color: var(--gold-400);
}
.site-nav .nav-cta a:hover, .site-nav .nav-cta a[aria-current="page"] {
  background: var(--gold-500);
  color: var(--forest-950);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.9rem;
  padding: 0.4rem 1rem;
  font: 600 0.8rem/1 var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--parchment);
  background: transparent;
  border: 2px solid var(--gold-500);
  cursor: pointer;
}
.nav-toggle__icon {
  position: relative;
  width: 1.15rem;
  height: 0.8rem;
  border-block: 2px solid currentColor;
}
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
}

@media (max-width: 30em) {
  .masthead__bar { gap: 0.5rem 0.75rem; }
  .brand { flex: 1 1 0; min-width: 0; gap: 0.6rem; }
  .brand__emblem { width: 2.5rem; height: 2.5rem; }
  .brand__name { font-size: clamp(0.86rem, 4.4vw, 1.05rem); letter-spacing: 0.1em; white-space: nowrap; }
  .brand__sub { margin-top: 0.3rem; font-size: 0.76rem; letter-spacing: 0.12em; white-space: nowrap; }
  .nav-toggle { flex: none; gap: 0.5rem; min-height: 2.6rem; padding: 0.3rem 0.7rem; font-size: 0.75rem; }
}

@media (max-width: 22em) {
  .nav-toggle__icon, .brand__sub { display: none; }
}

@media (max-width: 70em) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; flex-basis: 100%; }
  .js.nav-open .site-nav { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 0.5rem; }
  .js .site-nav li { border-top: 1px solid rgba(201, 162, 39, 0.35); }
  .js .site-nav a { display: block; padding: 1rem 0.25rem; }
  .js .site-nav .nav-cta { border-top: 0; padding-top: 0.75rem; }
  .js .site-nav .nav-cta a { text-align: center; }
  .site-nav { flex-basis: 100%; }
}

/* 7  Hero: a Norman doorway. Concentric round arches are drawn with borders. */
.hero {
  position: relative;
  background: var(--forest-900);
  color: var(--parchment);
  padding-top: clamp(3.25rem, 7vw, 5.5rem);
  --focus: var(--gold-400);
}
.hero__inner {
  position: relative;
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.hero__pillar {
  display: none;
  position: absolute;
  top: 2.5rem;
  bottom: 0;
  width: 5.5rem;
  border-inline: 2px solid var(--gold-500);
  background: var(--forest-950) url("../img/lattice.svg") repeat 0 0 / 28px 28px;
}
.hero__pillar::before,
.hero__pillar::after {
  content: "";
  position: absolute;
  left: -0.85rem; right: -0.85rem;
  height: 0.9rem;
  background: var(--gold-500);
}
.hero__pillar::before { top: -0.9rem; }
.hero__pillar::after { display: none; }
.hero__pillar--left { left: 0; }
.hero__pillar--right { right: 0; }
@media (min-width: 66em) { .hero__pillar { display: block; } }

.arch {
  position: relative;
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(6.75rem, 18vw, 9.5rem) clamp(1.25rem, 5vw, 3.5rem) clamp(2.25rem, 5vw, 3.5rem);
  border: 3px solid var(--gold-500);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  text-align: center;
}
.arch::before, .arch::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px 999px 0 0;
  border-bottom: 0;
}
.arch::before { inset: 11px 11px 0; border: 1px solid rgba(201, 162, 39, 0.7); border-bottom: 0; }
.arch::after { inset: 21px 21px 0; border: 4px dotted rgba(201, 162, 39, 0.75); border-bottom: 0; }
.arch__keystone {
  position: absolute;
  display: block;
  top: -3.3rem;
  left: 50%;
  width: 6.6rem;
  height: 6.6rem;
  margin-left: -3.3rem;
  border-radius: 50%;
}
.arch__keystone__face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: opacity 0.6s ease;
}
.arch__keystone__face--hover { opacity: 0; }
.arch__keystone:hover .arch__keystone__face--rest { opacity: 0; }
.arch__keystone:hover .arch__keystone__face--hover { opacity: 1; }
.arch__body { position: relative; z-index: 1; }

.hero__title {
  font-size: clamp(2.9rem, 1.6rem + 6.2vw, 5.6rem);
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--parchment);
}
.hero__word { display: block; }
.hero__number {
  display: block;
  margin-top: 1rem;
  font-size: clamp(0.95rem, 0.7rem + 1.2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  color: var(--gold-500);
}
.hero__lede {
  max-width: 31rem;
  margin: 0 auto 1.9rem;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--parchment);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin: 0; }
.hero__ground { margin-top: 0; }

.meeting-strip {
  background: var(--parchment);
  border-bottom: 1px solid var(--gold-700);
  padding-block: 1.6rem;
}
.meeting-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 2.25rem;
  text-align: center;
}
.meeting-strip__label {
  margin: 0;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.meeting-strip__when { margin: 0; font-size: 1.35rem; font-weight: 500; }
.meeting-strip__where { margin: 0; color: var(--ink-soft); }
.meeting-strip a { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; }

/* 8  Page heads (inner pages) */
.page-head {
  position: relative;
  background: var(--forest-900);
  color: var(--parchment);
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.25rem, 7vw, 5.25rem);
  --focus: var(--gold-400);
}
.page-head h1 { text-transform: uppercase; }
.page-head .lead { max-width: 34rem; margin-inline: auto; text-wrap: pretty; }
.page-head .band { position: absolute; left: 0; bottom: 0; }

/* 9  Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.75rem 1.7rem;
  font-family: var(--display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--parchment);
  background: transparent;
  border: 2px solid var(--gold-500);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { text-decoration: none; }
.btn--gold { background: var(--gold-500); color: var(--forest-950); }
.btn--gold:hover { background: var(--parchment); border-color: var(--parchment); }
.btn--ghost:hover { background: var(--gold-500); color: var(--forest-950); }
.btn--forest { background: var(--forest-800); border-color: var(--forest-800); color: var(--parchment); }
.btn--forest:hover { background: var(--forest-950); border-color: var(--forest-950); }
.btn--outline { border-color: var(--forest-800); color: var(--forest-800); }
.btn--outline:hover { background: var(--forest-800); color: var(--parchment); }
.section--dark a.btn--gold { color: var(--forest-950); }
.section--dark a.btn--gold:hover { color: var(--forest-950); }
.section--dark a.btn--ghost { color: var(--parchment); }
.section--dark a.btn--ghost:hover { color: var(--forest-950); }

.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }

.plaque {
  position: relative;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--vellum);
  border: 1px solid var(--gold-700);
}
.plaque::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--gold-500);
  pointer-events: none;
}
.section--vellum .plaque { background: var(--parchment); }
.section--dark .plaque { background: var(--forest-950); border-color: var(--gold-500); }
.section--dark .plaque::before { border-color: rgba(201, 162, 39, 0.55); }
.plaque > * { position: relative; }
.plaque h2, .plaque h3 { margin-bottom: 1.1rem; font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); }

.plaque blockquote { margin: 0; font-size: 1.22em; font-style: italic; line-height: 1.5; }
.plaque cite { display: block; margin-top: 1rem; font-family: var(--display); font-size: 0.78rem; font-style: normal; font-weight: 600; letter-spacing: 0.2em; line-height: 1.6; text-transform: uppercase; color: var(--gold-700); }
.section--dark .plaque cite { color: var(--gold-500); }

/* facts: a definition list set like a label on an old drawer */
.facts { display: grid; gap: 1.15rem; }
.facts dt {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.section--dark .facts dt { color: var(--gold-500); }
.facts dd { font-size: 1.1em; }
.facts address { font-style: normal; }
.facts--questions dt { font-family: var(--text); font-size: 1.1rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--forest-800); }

/* four values as a frieze, divided by rules */
.values { display: grid; gap: 0; margin-top: 2.75rem; border-top: 1px solid var(--gold-700); }
.values > div { padding: 1.5rem 0; border-bottom: 1px solid rgba(125, 95, 12, 0.45); }
.values dt {
  margin-bottom: 0.45rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-800);
  transition: color 0.2s ease;
}
.values > div:hover dt { color: var(--gold-700); }
.values dd { color: var(--ink-soft); }
@media (min-width: 40em) and (max-width: 63.99em) {
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
}
@media (min-width: 64em) {
  .values { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid rgba(125, 95, 12, 0.45); }
  .values > div { padding: 1.9rem 1.6rem 2rem; border-bottom: 0; border-left: 1px solid rgba(125, 95, 12, 0.45); }
  .values > div:first-child { border-left: 0; padding-left: 0; }
  .values > div:last-child { padding-right: 0; }
}

/* three waymarks on one line: 1870, 1970, 2070 */
.eras { list-style: none; display: grid; gap: 2.25rem; margin-top: 3rem; position: relative; }
.eras li { position: relative; padding-left: 2.25rem; }
.eras li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6rem;
  width: 0.85rem; height: 0.85rem;
  background: var(--gold-500);
  transform: rotate(45deg);
}
.eras::before {
  content: "";
  position: absolute;
  left: 0.4rem; top: 1.2rem; bottom: 1rem;
  width: 1px;
  background: var(--gold-500);
  opacity: 0.6;
}
.eras__year {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--display);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--gold-500);
}
.eras p { color: var(--parchment); max-width: 22rem; }
@media (min-width: 52em) {
  .eras { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
  .eras::before { left: 0; right: 0; top: 0.42rem; bottom: auto; width: auto; height: 1px; }
  .eras li { padding-left: 0; padding-top: 2.1rem; }
  .eras li::before { top: 0; }
}

/* the road to membership, in Roman numerals */
.steps { list-style: none; counter-reset: step; }
.steps > li {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  column-gap: 1.4rem;
  padding-bottom: 2.25rem;
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before {
  content: counter(step, upper-roman);
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--forest-800);
  background: var(--parchment);
  border: 2px solid var(--gold-700);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.75rem; top: 3.5rem; bottom: 0;
  width: 1px;
  margin-left: -0.5px;
  background: var(--gold-700);
  opacity: 0.55;
}
.steps h3 { align-self: center; margin: 0; }
.steps p { grid-column: 2; margin: 0.4rem 0 0; }
.section--vellum .steps > li::before { background: var(--vellum); }

.steps--short { display: grid; gap: 0.9rem 1.5rem; }
.steps--short > li { display: flex; align-items: center; gap: 1rem; padding: 0; }
.steps--short > li::before { flex: none; grid-row: auto; width: 2.75rem; height: 2.75rem; font-size: 0.9rem; }
.steps--short > li::after { display: none; }
.steps--short span { font-size: 1.1em; line-height: 1.25; }
@media (min-width: 40em) { .steps--short { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* frequently asked questions */
.faq { border-top: 1px solid var(--gold-700); }
.faq details { border-bottom: 1px solid var(--gold-700); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 0.15rem;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--forest-800);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.3rem;
  border-right: 2px solid var(--gold-700);
  border-bottom: 2px solid var(--gold-700);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--forest-950); }
.faq details > div { padding: 0 0.15rem 1.4rem; max-width: var(--measure); }

/* the crest on a plaque, and mounted photographs */
.plaque__crest { display: block; width: min(13.5rem, 72%); height: auto; margin: 0 auto 1.5rem; }
.photo {
  margin: 0;
  padding: 0.6rem;
  background: var(--vellum);
  border: 1px solid var(--gold-700);
}
.photo img { width: 100%; height: auto; }
.photo figcaption { margin-top: 0.6rem; font-size: 0.92rem; font-style: italic; line-height: 1.4; color: var(--ink-soft); }
.section--vellum .photo { background: var(--parchment); }
.figure-row { display: grid; gap: 1.5rem; align-items: start; }
.facts + .photo, .prose + .photo, .lead + .photo, p + .photo { margin-top: 1.75rem; }
.photo + .actions { margin-top: 1.5rem; }
.photo--small { max-width: 11.75rem; }
.photo--panel { max-width: 17rem; }
.photo--hall { max-width: 20rem; }
.photo--knocker { max-width: 20rem; }
.plaque + .photo, .photo + .draft-note { margin-top: 1.75rem; }
.crest-figure img { display: block; width: min(100%, 27rem); height: auto; margin-inline: auto; }
.section--dark .photo { background: var(--forest-950); border-color: var(--gold-500); }
.section--dark .photo figcaption { color: var(--mist-100); }

/* a small menu inside one part of the site (Our Lodge: history, officers) */
.subnav { background: var(--vellum); border-bottom: 1px solid var(--gold-700); }
.subnav ul { display: flex; flex-wrap: wrap; gap: 0 2rem; list-style: none; padding-block: 0.35rem; }
.subnav a {
  display: inline-block;
  padding: 0.65rem 0.05rem;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-800);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.subnav a:hover, .subnav a[aria-current="page"] { border-bottom-color: var(--gold-700); }

/* jump links at the top of a long page */
.onpage { background: var(--parchment); border-bottom: 1px solid rgba(125, 95, 12, 0.35); }
.onpage .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1.5rem; padding-block: 0.7rem; }
.onpage p { margin: 0; font-family: var(--display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-700); }
.onpage ul { display: flex; flex-wrap: wrap; gap: 0.2rem 1.5rem; list-style: none; }
.onpage a { display: inline-block; padding-block: 0.15rem; }

/* an ordinary bulleted list, in the reading text */
.bullets { list-style: disc; padding-left: 1.3rem; margin: 0 0 1.2em; }
.bullets li { margin: 0 0 0.55rem; padding-left: 0.2rem; }
.bullets li::marker { color: var(--gold-700); }

/* a note the committee sees in the preview and that must be gone before launch */
.draft-note {
  margin: 0 0 1.75rem;
  padding: 0.9rem 1.1rem;
  background: var(--vellum);
  border: 1px dashed var(--gold-700);
  font-size: 0.98rem;
}
.draft-note strong { font-family: var(--display); font-size: 0.78em; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); }
.section--dark .draft-note { background: var(--forest-950); border-color: var(--gold-500); }
.section--dark .draft-note strong { color: var(--gold-400); }

/* officers: a plain register, one line per office */
.officers { border-top: 1px solid var(--gold-700); }
.officers > div {
  display: grid;
  align-items: baseline;
  gap: 0.1rem 2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(125, 95, 12, 0.45);
}
.officers dt {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.officers dd { font-size: 1.12em; }
.officers .honours { margin-left: 0.4rem; font-size: 0.82em; letter-spacing: 0.04em; color: var(--ink-soft); font-style: italic; }
@media (min-width: 40em) { .officers > div { grid-template-columns: 15rem minmax(0, 1fr); } }

/* Past Masters: a dark board with the years in gold, like brass plates on the panel in the hall */
.board {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  background: var(--forest-900);
  color: var(--parchment);
  border: 1px solid var(--gold-500);
  --focus: var(--gold-400);
}
.board::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(201, 162, 39, 0.5); pointer-events: none; }
.board h2 { color: var(--parchment); text-align: center; margin-bottom: 1.6rem; }
.roll { list-style: none; columns: 3 15rem; column-gap: 2.75rem; position: relative; }
.roll li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  break-inside: avoid;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.28);
  font-size: 1.02em;
  line-height: 1.35;
}
.prose + .board { margin-top: 2rem; }
.roll--names { columns: 2 8.5rem; column-gap: 1.25rem; }
@media (min-width: 40em) { .roll--names { columns: 4 10.5rem; column-gap: 2rem; } }
.roll .yr { flex: none; width: 3.7rem; font-family: var(--display); font-size: 0.86em; font-weight: 600; letter-spacing: 0.06em; color: var(--gold-500); }

/* 10  Pages */

/* Timeline (Our Lodge) */
.timeline { list-style: none; position: relative; max-width: 50rem; margin-inline: auto; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.42rem; top: 0.5rem; bottom: 0.5rem;
  width: 1px;
  background: var(--gold-700);
  opacity: 0.6;
}
.timeline > li { position: relative; padding: 0 0 2.4rem 2.5rem; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5rem;
  width: 0.85rem; height: 0.85rem;
  background: var(--parchment);
  border: 2px solid var(--gold-700);
  transform: rotate(45deg);
}
.section--vellum .timeline > li::before { background: var(--vellum); }
.timeline .when {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.timeline h3 { margin-bottom: 0.4rem; }
.timeline p { max-width: 38rem; }
@media (min-width: 52em) {
  .timeline::before { left: 11.75rem; }
  .timeline > li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: 2.75rem; padding-left: 0; }
  .timeline > li::before { left: 11.33rem; }
  .timeline .when { grid-column: 1; text-align: right; margin: 0.35rem 0 0; }
  .timeline > li > div { grid-column: 2; }
}

/* Good works: a ledger */
.ledger { border-top: 1px solid var(--gold-700); max-width: 50rem; }
.ledger > div {
  display: grid;
  align-items: baseline;
  gap: 0.15rem 2rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(125, 95, 12, 0.45);
}
.ledger dt {
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--forest-800);
  font-variant-numeric: lining-nums;
}
@media (min-width: 40em) { .ledger > div { grid-template-columns: 7.5rem minmax(0, 1fr); } }

/* Link lists (Freemasonry, Contact) */
.linklist { list-style: none; max-width: var(--measure); border-top: 1px solid var(--gold-700); }
.linklist li { padding: 0.95rem 0; border-bottom: 1px solid rgba(125, 95, 12, 0.45); }
.linklist a { font-family: var(--display); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.1em; }
.linklist span { display: block; margin-top: 0.2rem; color: var(--ink-soft); }
.section--dark .linklist { border-top-color: rgba(201, 162, 39, 0.6); }
.section--dark .linklist li { border-bottom-color: rgba(201, 162, 39, 0.3); }
.section--dark .linklist span { color: var(--mist-100); }

/* Meeting dates (filled in by site.js; a sentence stands in when scripts are off) */
.dates { list-style: none; display: grid; gap: 0.15rem; margin-top: 1rem; }
.dates li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 1rem; padding: 0.7rem 0; border-bottom: 1px solid rgba(125, 95, 12, 0.45); }
.dates li:first-child { border-top: 1px solid var(--gold-700); }
.dates strong { font-family: var(--display); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.05em; color: var(--forest-800); }
.js .dates-fallback { display: none; }
.dates:empty { display: none; }

/* Email call-out */
.mailcall { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.4rem; }
.mailcall__address { font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }

/* Sanctuary knocker feature */
.feature { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.feature__art {
  width: min(12rem, 60%);
  margin-inline: auto;
  padding: 1.5rem;
  border: 1px solid var(--gold-500);
  border-radius: 999px 999px 0 0;
  background: var(--forest-950);
}
.feature__photo { margin: 0; width: min(18rem, 78%); margin-inline: auto; }
.feature__arch { border: 1px solid var(--gold-500); border-radius: 999px 999px 0 0; overflow: hidden; background: var(--forest-950); }
.feature__arch img { width: 100%; height: auto; }
.feature__photo figcaption { margin-top: 0.7rem; font-size: 0.9rem; font-style: italic; line-height: 1.4; color: var(--mist-100); }
@media (min-width: 52em) {
  .feature { grid-template-columns: 13rem minmax(0, 1fr); }
  .feature:has(.feature__photo) { grid-template-columns: 18rem minmax(0, 1fr); }
  .feature__art { width: 100%; margin: 0; }
  .feature__photo { width: 100%; margin: 0; }
}

/* 404 */
.lost { text-align: center; max-width: 34rem; margin-inline: auto; }
.lost .actions { justify-content: center; }

/* the guestbook: a form on a plaque, and the entries as a ruled ledger */
.gb-form label {
  display: block;
  margin: 1.15rem 0 0.4rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.gb-form .opt { font-family: var(--text); font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.gb-form input[type="text"], .gb-form textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--vellum);
  border: 1px solid var(--gold-700);
  border-radius: 0;
}
.gb-form textarea { min-height: 9rem; resize: vertical; }
.gb-form input:focus-visible, .gb-form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gb-form [aria-invalid="true"] { border: 2px solid #8a1c1c; }
.gb-hint, .gb-count { margin: 0.35rem 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.gb-count { text-align: right; }
.gb-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.gb-form .btn { margin-top: 1.4rem; }
.gb-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.gb-note { margin: 1.5rem 0 0; font-size: 0.98rem; color: var(--ink-soft); }
.gb-msg { margin: 1.1rem 0 0; padding: 0.75rem 1rem; border: 1px solid var(--forest-700); background: var(--vellum); }
.gb-msg:empty { display: none; }
.gb-msg[data-kind="error"] { border-color: #8a1c1c; color: #7a1717; }
#gb-status[data-kind="error"] { color: #7a1717; }
.entries { list-style: none; margin-top: 1.25rem; }
.entries li { padding: 1.2rem 0; border-top: 1px solid rgba(125, 95, 12, 0.55); }
.entries li:last-child { border-bottom: 1px solid rgba(125, 95, 12, 0.55); }
.entry__msg { margin: 0 0 0.55rem; white-space: pre-line; font-size: 1.12em; }
.entry__by { margin: 0; font-size: 0.98rem; color: var(--ink-soft); }
.entry__by strong { color: var(--forest-800); font-weight: 600; }
.entry__by > span::before, .entry__by strong + span::before { content: " \0000b7  "; }

/* 11  Footer */
.footer { background: var(--forest-950); color: var(--parchment); --focus: var(--gold-400); }
.footer a { color: var(--sage-300); }
.footer a:hover { color: var(--mist-100); }
.footer__grid { display: grid; gap: 2.5rem 3rem; padding-block: clamp(2.75rem, 6vw, 4.25rem); }
@media (min-width: 52em) { .footer__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.05fr); } }
@media (min-width: 72em) { .footer__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) auto; } }
.footer__brand { display: flex; gap: 1.2rem; align-items: flex-start; }
.footer__brand img { width: 5.5rem; height: 5.5rem; flex: none; }
.footer__name {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer__name span { display: block; margin-top: 0.35rem; font-size: 0.78rem; letter-spacing: 0.22em; color: var(--gold-500); }
.footer__brand p:not(.footer__name) { margin: 0; color: var(--mist-100); font-size: 0.98em; }
.footer__h {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.footer ul { list-style: none; }
.footer li + li { margin-top: 0.4rem; }
.footer__social { margin: 0.9rem 0 0; }
.footer__brand p.footer__h--social { margin: 0.6rem 0 0.55rem; color: var(--gold-500); font-family: var(--display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.social-icons { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0; padding: 0; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.15rem; height: 2.15rem; flex: none; border: 1.5px solid var(--sage-300); border-radius: 50%; color: var(--sage-300); }
a.social-icon:hover, a.social-icon:focus-visible { border-color: var(--mist-100); color: var(--mist-100); }
.social-icon--soon { opacity: 0.6; border-style: dashed; }
.social-icon svg { width: 1.2rem; height: 1.2rem; }
.recognition { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.recognition figure { margin: 0; width: 6.4rem; text-align: center; font-size: 0.8rem; line-height: 1.3; color: var(--mist-100); }
.recognition img { display: block; height: 5rem; width: auto; margin: 0 auto 0.45rem; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.4rem 2rem;
  border-top: 1px solid rgba(201, 162, 39, 0.4);
  font-size: 0.92rem;
  color: var(--mist-100);
}
.footer__legal p { margin: 0; }

/* 12  Utilities, print, motion */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 50;
  padding: 0.75rem 1.1rem;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--forest-950);
  background: var(--gold-400);
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .btn, .plaque, .arch { border-color: CanvasText; }
  .hero__pillar { background: Canvas; }
}

@media print {
  @page { margin: 1.6cm; }
  /* Ink on paper: drop every colour and background, keep the structure */
  *, *::before, *::after { color: #000 !important; background: transparent !important; }
  .preview-note, .skip-link, .nav-toggle, .site-nav, .band, .hero__pillar, .arch::before, .arch::after,
  .arch__keystone, .footer__grid > nav, .footer__grid > div:last-child { display: none !important; }
  body { font-size: 11.5pt; }
  h1, h2, h3 { break-after: avoid; }
  .masthead { border: 0; }
  .brand__sub, .kicker, .facts dt, .timeline .when, .ledger dt, .plaque cite, .meeting-strip__label { color: #444 !important; }
  .arch { border: 0; padding: 0; }
  .hero, .section, .page-head { padding-block: 1.2rem; }
  .btn { border: 1px solid #000; }
  a { text-decoration: underline; }
  a[href^="http"]:not(.btn)::after { content: " (" attr(href) ")"; font-size: 0.85em; overflow-wrap: anywhere; }
  .plaque, .steps > li, .timeline > li, .ledger > div, .faq details, .values > div { break-inside: avoid; }
  .faq details > div { display: block !important; }
  details::details-content { content-visibility: visible; }
}
