/* Pythagoras 33 - palette drawn from the lodge seal.
   Seal blue for actions, lodge blue for the name and headings, bronze as ornament only. */
:root {
  --ink: #16293a;
  --ink-muted: #5e6b78;
  --page: #faf6ee;
  --parchment: #f4ead5;
  --surface: #ffffff;
  --blue: #2d75a4;
  --blue-strong: #245f86;
  --blue-deep: #1a4e74;
  --bronze: #b89265;
  --bronze-text: #87653d;
  --line: #e3d8c3;
  --serif: 'EB Garamond', 'Times New Roman', serif;
  --sans: 'Fira Sans', 'Segoe UI', system-ui, sans-serif;
  --page-width: 1100px;
  color-scheme: light;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-strong); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 2; padding: 0.5rem 0.75rem; background: var(--surface); color: var(--ink); }
.skip-link:focus { top: 0.5rem; }

/* ---------------------------------------------------------------- header */
.masthead {
  background: var(--surface);
  border-bottom: 3px solid var(--bronze);
}
.masthead-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--blue-deep);
  text-decoration: none;
}
.brand img { width: 64px; height: 64px; flex: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.brand:hover { color: var(--blue-deep); }

.menu { display: flex; gap: 1.75rem; align-self: stretch; }
.menu a {
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  margin-bottom: -0.75rem;
  padding-bottom: 0.1rem;
}
.menu a:hover { color: var(--blue); }
.menu a[aria-current='page'] { color: var(--blue-deep); border-bottom-color: var(--blue-deep); }

.login {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.45rem 1.35rem;
  border-radius: 4px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
.login:hover { background: var(--blue-strong); color: #ffffff; }
/* ---------------------------------------------------------------- content */
main { flex: 1; width: 100%; max-width: var(--page-width); margin: 0 auto; padding: 3.5rem 1.5rem 3.5rem; }
h1, h2 { font-family: var(--serif); color: var(--blue-deep); font-weight: 600; letter-spacing: 0.005em; }
h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.1; }
h2 { margin: 0 0 0.5rem; font-size: 1.6rem; }
.lede { margin: 1rem 0 0; max-width: 60ch; font-size: 1.2rem; color: var(--ink-muted); }

.hero-figure { margin: 2.5rem 0 0; text-align: center; }
.hero-figure img { max-width: 100%; height: auto; }

.section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); max-width: 68ch; }
.section p { margin: 0 0 1rem; }

.contact-list { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 2rem; }
.contact-list dt { font-weight: 600; }
.contact-list dd { margin: 0; color: var(--ink-muted); }

/* ---------------------------------------------------------------- quotation */
.saying {
  background: var(--parchment);
  border-top: 1px solid var(--line);
  padding: 3.5rem 1.5rem;
}
.saying figure { max-width: 46rem; margin: 0 auto; text-align: center; }
.saying figure::before {
  content: '';
  display: block;
  width: 4rem;
  height: 2px;
  margin: 0 auto 1.75rem;
  background: var(--bronze);
}
.saying blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  color: var(--ink);
}
.saying figcaption {
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--bronze-text);
}

/* ---------------------------------------------------------------- footer */
footer { background: var(--blue-deep); color: #e7eef5; }
.footer-inner { max-width: var(--page-width); margin: 0 auto; padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; }

@media (max-width: 680px) {
  .masthead-inner { flex-wrap: wrap; gap: 0.75rem 1.25rem; padding: 0.75rem 1rem; }
  .brand img { width: 52px; height: 52px; }
  .brand-name { font-size: 1.4rem; }
  .menu { order: 3; width: 100%; min-height: 40px; }
  .menu a { margin-bottom: -0.75rem; }
  main { padding: 2.5rem 1rem; }
  .contact-list { grid-template-columns: 1fr; gap: 0.15rem; }
  .contact-list dd { margin-bottom: 0.75rem; }
  .footer-inner { flex-direction: column; }
}
