/* Merchants' Lodge No. 241: palette taken from the lodge crest */
:root {
  --navy: #1d2654;
  --navy-deep: #141a3d;
  --sail: #efe6d2;
  --sail-dark: #d9c9a4;
  --brass: #9a7a45;
  --ink: #23243a;
  --muted: #5b5d72;
  --paper: #fbf9f4;
  --flag: #b8352a;
  --measure: 36rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

a { color: var(--navy); text-decoration-color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--flag); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

h1, h2, h3 {
  font-family: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* Header */
.site-header {
  background: var(--navy);
  color: var(--sail);
  border-bottom: 3px solid var(--brass);
}
.site-header .inner {
  max-width: 72rem; margin: 0 auto; padding: .75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .75rem; color: var(--sail); text-decoration: none; }
.brand img { width: 44px; height: auto; background: var(--sail); border-radius: 50%; padding: 4px; }
.brand span { font-family: "Libre Caslon Display", Georgia, serif; font-size: 1.25rem; line-height: 1.1; }
.brand small { display: block; font-family: "Libre Caslon Text", Georgia, serif; font-size: .8rem; font-style: italic; color: var(--sail-dark); }
.brand:hover { color: #fff; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem 1.25rem; flex-wrap: wrap; }
.site-nav a { color: var(--sail); text-decoration: none; font-size: .95rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--brass); }

@media (max-width: 760px) {
  .site-nav { width: 100%; }
  .site-nav ul { gap: .35rem 1rem; }
  .site-nav a { white-space: nowrap; font-size: .9rem; }
}

/* Layout */
main { display: block; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--measure); }
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.tone-plain + .tone-plain { padding-top: 0; }

.button {
  display: inline-block; background: var(--navy); color: var(--sail);
  padding: .75rem 1.5rem; text-decoration: none; border: 2px solid var(--navy);
  font-size: 1rem; cursor: pointer; font-family: inherit;
}
.button:hover { background: var(--navy-deep); color: #fff; }
.button.ghost { background: transparent; color: var(--navy); }
.button.ghost:hover { background: var(--navy); color: var(--sail); }

/* Home hero */
.hero { background: var(--sail); border-bottom: 1px solid var(--sail-dark); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
  padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: clamp(2.5rem, 7vw, 5rem);
}
.hero-crest { justify-self: center; width: min(100%, 380px); }
.hero .founded { font-style: italic; color: var(--brass); font-size: 1.1rem; margin-bottom: .5rem; }
.hero h1 { margin-bottom: .35em; }
.hero .lede { font-size: 1.2rem; max-width: 30rem; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-crest { width: 220px; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .actions { justify-content: center; }
}

/* Two column feature */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split figure { margin: 0; }
.split figcaption { font-size: .9rem; font-style: italic; color: var(--muted); margin-top: .6rem; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Index of pages */
.page-index { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--sail-dark); }
.page-index li { border-bottom: 1px solid var(--sail-dark); }
.page-index a {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.5rem;
  padding: 1.4rem 0; text-decoration: none; color: var(--ink); align-items: baseline;
}
.page-index strong { font-family: "Libre Caslon Display", Georgia, serif; font-weight: 400; font-size: 1.6rem; color: var(--navy); }
.page-index a:hover strong { color: var(--flag); }
@media (max-width: 640px) { .page-index a { grid-template-columns: 1fr; gap: .25rem; } }

/* Meeting place band */
.band { background: var(--navy); color: var(--sail); }
.section.band { padding-top: clamp(3rem, 8vw, 5.5rem); }
.band h2 { color: #fff; }
.band a { color: #fff; }
.band .button { background: var(--sail); color: var(--navy); border-color: var(--sail); }
.band .button:hover { background: #fff; color: var(--navy); }
address { font-style: normal; margin-bottom: 1.5rem; }

/* Inner page heading */
.page-head { background: var(--sail); border-bottom: 1px solid var(--sail-dark); padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem); }
.page-head p { font-size: 1.15rem; max-width: var(--measure); color: var(--muted); margin: 0; }

/* Timeline (history page) */
.timeline { list-style: none; margin: 2rem 0 2.5rem; padding: 0; max-width: 46rem; }
.timeline li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.5rem; padding-bottom: 2rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 6.25rem; top: .6rem; bottom: 0; width: 1px; background: var(--sail-dark); }
.timeline li:last-child::before { display: none; }
.timeline .year { font-family: "Libre Caslon Display", Georgia, serif; font-size: 1.9rem; color: var(--brass); line-height: 1; text-align: right; }
.timeline p { margin: 0; }
@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; gap: .4rem; }
  .timeline li::before { display: none; }
  .timeline .year { text-align: left; }
}

/* Members */
.member { max-width: var(--measure); padding: 2rem 0; border-bottom: 1px solid var(--sail-dark); }
.member:first-of-type { padding-top: 0; }
.member h3 { margin-bottom: .2em; }
.member .role { font-style: italic; color: var(--brass); margin-bottom: .8em; }
blockquote { margin: 2.5rem 0; padding: 0 0 0 1.5rem; border-left: 3px solid var(--brass); max-width: var(--measure); font-size: 1.2rem; font-style: italic; color: var(--navy); }

/* Famous masons */
.masons { columns: 2 18rem; column-gap: 3rem; margin-top: 2rem; }
.masons section { margin-bottom: 2.25rem; }
.masons h3 { break-after: avoid; }
.masons li { break-inside: avoid; }
.masons ul { list-style: none; margin: 0; padding: 0; }
.masons li { padding: .35rem 0; border-bottom: 1px dotted var(--sail-dark); display: flex; justify-content: space-between; gap: 1rem; }
.masons li span { color: var(--muted); font-size: .9rem; white-space: nowrap; }

/* Forms */
form { max-width: 32rem; }
.field { margin-bottom: 1.25rem; }
label { display: block; font-size: .95rem; margin-bottom: .35rem; color: var(--navy); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: .7rem .8rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #b9b3a3; border-radius: 2px;
}
textarea { min-height: 8rem; resize: vertical; }
.check { display: flex; gap: .6rem; align-items: flex-start; }
.check input { margin-top: .45rem; }
.hidden { display: none; }
.note { font-size: .9rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--sail-dark); font-size: .9rem; padding: 2.5rem 0; margin-top: 0; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.site-footer a { color: var(--sail); }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .hero-crest { animation: rise .9s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

.prose + h2 { margin-top: 3rem; }

/* Section backgrounds chosen in the editor */
.tone-sail { background: var(--sail); border-top: 1px solid var(--sail-dark); border-bottom: 1px solid var(--sail-dark); }
.tone-navy { background: var(--navy); color: var(--sail); }
.tone-navy h2, .tone-navy h3 { color: #fff; }
.tone-navy a:not(.button) { color: #fff; }
.tone-navy .button { background: var(--sail); color: var(--navy); border-color: var(--sail); }
.tone-navy .button:hover { background: #fff; color: var(--navy); }
.tone-navy .button.ghost-light { background: transparent; color: var(--sail); }
.tone-navy .button.ghost-light:hover { background: var(--sail); color: var(--navy); }
.tone-navy .role, .tone-navy .timeline .year { color: var(--sail-dark); }
.tone-navy figcaption { color: var(--sail-dark); }
.page-head + .tone-plain, .hero + .tone-plain { padding-top: clamp(3rem, 8vw, 5.5rem); }

.actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.split.image-left > figure { order: -1; }
@media (max-width: 760px) { .split.image-left > figure { order: 0; } }
.hero .hero-plain { grid-template-columns: 1fr; }
.people-intro { margin-bottom: 1rem; }
blockquote { margin: 0; }
blockquote p { margin: 0; }
blockquote footer { font-style: normal; font-size: 1rem; color: var(--muted); margin-top: .75rem; }
.tone-navy blockquote { color: var(--sail); }
.tone-navy blockquote footer { color: var(--sail-dark); }

.gallery { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1.5rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { font-size: .9rem; font-style: italic; color: var(--muted); margin-top: .5rem; }
