/* ---------- Fonts (local, SIL Open Font License) ---------- */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/eb-garamond-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/eb-garamond-cyrillic-400-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/eb-garamond-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/eb-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/eb-garamond-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant SC"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/cormorant-sc-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant SC"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/cormorant-sc-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant SC"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/cormorant-sc-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant SC"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/cormorant-sc-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------- Palette ---------- */
:root {
  --parchment: #f4ecd8;
  --parchment-deep: #eadfc3;
  --ink: #2b2420;
  --ink-soft: #5a4e44;
  --burgundy: #7a1f2b;
  --navy: #1f2d4a;
  --gold: #b08d3c;
  --gold-light: #d8bd72;
  --olive: #6b7a3a;
  --rule: #c9b68a;
  --measure: 38rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(176,141,60,.10), transparent 70%);
  color: var(--ink);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.6;
  font-feature-settings: "liga", "onum";
}

a { color: var(--burgundy); text-decoration-color: var(--gold); text-underline-offset: .18em; }
a:hover { color: var(--navy); }

/* ---------- Header & navigation ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(244,236,216,.92);
}
.site-header .inner {
  max-width: 60rem;
  margin: 0 auto;
  padding: .7rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--navy);
  font-family: "Cormorant SC", serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .04em;
}
.brand img { width: 34px; height: auto; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .15rem 1.1rem;
}
.site-nav a {
  font-family: "Cormorant SC", serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .05em;
  text-decoration: none;
  color: var(--ink-soft);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--burgundy); }
.site-nav .members a {
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
}

/* ---------- Layout ---------- */
main { flex: 1; padding: 2.5rem 1rem 3rem; }
.page { max-width: var(--measure); margin: 0 auto; }

h1, h2, h3 {
  font-family: "Cormorant SC", serif;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .03em;
  line-height: 1.15;
}
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); margin: 0 0 .4rem; text-align: center; }
h2 { font-size: 1.6rem; margin: 2.2rem 0 .6rem; }
h3 { font-size: 1.3rem; margin: 1.6rem 0 .4rem; }

p { margin: 0 0 1rem; hyphens: auto; }

.lede {
  font-size: 1.25rem;
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 2rem;
}

/* Ornamental divider */
.fleuron {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 2rem auto;
  max-width: 18rem;
  color: var(--gold);
}
.fleuron::before, .fleuron::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* Drop cap */
.dropcap::first-letter {
  float: left;
  font-family: "Cormorant SC", serif;
  font-weight: 700;
  font-size: 3.6rem;
  line-height: .85;
  padding: .3rem .5rem 0 0;
  color: var(--burgundy);
}

/* ---------- Home ---------- */
.hero { text-align: center; max-width: 44rem; margin: 0 auto; }
.hero .crest { width: min(320px, 78vw); height: auto; display: block; margin: 0 auto 1.4rem; }
.hero h1 { color: var(--burgundy); }
.hero .subtitle {
  font-family: "Cormorant SC", serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .12em;
  color: var(--navy);
  margin: 0 0 1.2rem;
}
.motto {
  font-style: italic;
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0;
}
.motto-gloss { color: var(--ink-soft); font-size: 1rem; margin: .1rem 0 0; }

.notice {
  display: inline-block;
  margin: 1.8rem auto 0;
  padding: .55rem 1.3rem;
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 3px;
  font-family: "Cormorant SC", serif;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--burgundy);
}

.home-text { max-width: var(--measure); margin: 2.6rem auto 0; }

.cards {
  max-width: 52rem;
  margin: 2.6rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}
.card {
  display: block;
  padding: 1.1rem 1.2rem 1rem;
  background: rgba(255,255,255,.35);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, background-color .15s;
}
.card:hover { border-color: var(--gold); background: rgba(255,255,255,.6); color: var(--ink); }
.card h3 { margin: 0 0 .3rem; color: var(--burgundy); font-size: 1.25rem; }
.card p { margin: 0; font-size: 1rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  text-align: center;
  padding: 1.6rem 1rem 2rem;
  color: var(--ink-soft);
  font-size: .95rem;
}
.site-footer .seal { width: 26px; height: auto; opacity: .85; display: block; margin: 0 auto .5rem; }
.site-footer p { margin: 0; }
.site-footer .motto-small { font-style: italic; color: var(--navy); }

/* ---------- Small screens ---------- */
@media (max-width: 40rem) {
  .hero h1 br { display: none; }
  body { font-size: 1.08rem; }
  .site-header .inner { justify-content: center; text-align: center; }
  .site-nav ul { justify-content: center; }
  main { padding-top: 1.8rem; }
}

/* ---------- Inner pages ---------- */
.page-head { text-align: center; margin-bottom: 2rem; }
.page-head .kicker {
  font-family: "Cormorant SC", serif;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--gold);
  margin: 0 0 .3rem;
}
.page-head h1 { color: var(--burgundy); }
.page-head .lede { margin: .4rem 0 0; }

.figure { margin: 1.5rem auto 2rem; text-align: center; }
.figure img { width: min(260px, 70vw); height: auto; }
.figure figcaption { font-size: .95rem; color: var(--ink-soft); font-style: italic; margin-top: .4rem; }

.blazon {
  margin: 1.5rem 0;
  padding: 1rem 1.3rem;
  border-left: 3px solid var(--gold);
  background: rgba(255,255,255,.35);
  font-style: italic;
}

ol.customs { counter-reset: c; list-style: none; padding: 0; margin: 1rem 0 0; }
ol.customs li { counter-increment: c; position: relative; padding: 0 0 1rem 3rem; }
ol.customs li::before {
  content: counter(c, upper-roman);
  position: absolute; left: 0; top: .05rem;
  width: 2.3rem; text-align: right;
  font-family: "Cormorant SC", serif; font-weight: 700;
  color: var(--burgundy);
}
ol.customs strong { font-weight: 600; color: var(--navy); }

.roll { margin: 1rem 0 0; padding: 0; }
.roll dt {
  font-family: "Cormorant SC", serif; font-weight: 700;
  font-size: 1.25rem; color: var(--burgundy);
  margin-top: 1.3rem;
}
.roll dd { margin: .15rem 0 0; }
.roll .badge { display: block; font-size: .95rem; color: var(--ink-soft); font-style: italic; }

.note { font-size: .98rem; color: var(--ink-soft); text-align: center; margin-top: 2.2rem; }

.next {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 2.6rem; padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: "Cormorant SC", serif; font-weight: 600; letter-spacing: .05em;
}
.next a { text-decoration: none; }
.next .right { margin-left: auto; text-align: right; }

/* ---------- Chapter (members' part) ---------- */
.chapter-bar {
  background: var(--navy);
  color: var(--parchment);
  text-align: center;
  font-family: "Cormorant SC", serif;
  font-weight: 600;
  letter-spacing: .12em;
  font-size: .95rem;
  padding: .3rem 1rem;
}
.statute { list-style: none; padding: 0; margin: 0; }
.statute li { margin: 0 0 1.3rem; }
.statute .art {
  display: block;
  font-family: "Cormorant SC", serif; font-weight: 700;
  color: var(--burgundy); font-size: 1.15rem; letter-spacing: .04em;
}
.roll-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.roll-table th, .roll-table td { text-align: left; vertical-align: top; padding: .65rem .5rem; border-bottom: 1px solid var(--rule); }
.roll-table th {
  font-family: "Cormorant SC", serif; font-weight: 700; color: var(--navy);
  font-size: 1.05rem; letter-spacing: .05em; border-bottom: 2px solid var(--gold);
}
.roll-table .title { font-family: "Cormorant SC", serif; font-weight: 700; color: var(--burgundy); font-size: 1.1rem; }
.roll-table .who { white-space: nowrap; font-style: italic; color: var(--navy); }
.roll-table .duty { display: block; font-size: .98rem; color: var(--ink-soft); margin-top: .15rem; }
.roll-table tr.vacant .who { color: var(--ink-soft); }
.magister {
  margin: 1.5rem 0 2rem; padding: 1.1rem 1.3rem; text-align: center;
  border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 3px;
}
.magister .label { font-family: "Cormorant SC", serif; font-weight: 700; color: var(--burgundy); font-size: 1.25rem; margin: 0; }
.magister .now { font-size: 1.15rem; margin: .3rem 0 .2rem; }
.magister .rule { font-size: .98rem; color: var(--ink-soft); font-style: italic; margin: 0; }
@media (max-width: 40rem) {
  .roll-table .who { white-space: normal; }
}
