:root {
  color-scheme: light;
  --ink: #172c23;
  --green: #14271f;
  --deep: #0f211a;
  --gold: #cfb582;
  --paper: #f4efe4;
  --cream: #f9f3e7;
  --sand: #ebe3d2;
  --muted: #526157;
  --pale: #c4cfc1;
  --line: #c9c4b4;
  --serif: "Cormorant Garamond", "Baskervville", Georgia, serif;
  --sans: Inter, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --gutter: clamp(1.25rem, 5.8vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #a57b34; outline-offset: 5px; }
::selection { background: #dfc894; color: var(--deep); }

h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3, .protocol-title { font-family: var(--serif); font-weight: 400; }
h1, h2 { letter-spacing: -.063em; }
h1 em, h2 em { font-weight: inherit; }
.wrap { width: min(100% - var(--gutter) * 2, 77rem); margin-inline: auto; }
.section { padding-block: clamp(4.8rem, 8.2vw, 7.6rem); }
.section h2 { font-size: clamp(2.9rem, 5.25vw, 5.1rem); line-height: .99; }
.section h2 em { color: #4a654e; }
.kicker, .entry-type, .plate-heading, .plate-note, .ticket-label {
  font-family: var(--mono);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.45;
  text-transform: uppercase;
}
.kicker { color: #52684f; margin-bottom: 1.25rem; }
.skip-link {
  position: fixed;
  z-index: 5;
  inset: .75rem auto auto .75rem;
  transform: translateY(-200%);
  padding: .5rem 1rem;
  background: var(--cream);
  color: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.masthead {
  background:
    radial-gradient(ellipse at 72% 8%, #263c2e 0, transparent 40rem),
    linear-gradient(125deg, var(--deep), var(--green) 67%);
  color: var(--cream);
}
.site-header { border-bottom: 1px solid #dbd2b824; }
.header-layout {
  min-height: 5.35rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .76rem;
  width: fit-content;
  font-size: .85rem;
  font-weight: 650;
  line-height: 1.16;
  text-decoration: none;
}
.brand-mark {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--gold);
  font: italic 1.78rem/1 var(--serif);
}
.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.75rem); }
.site-nav a {
  padding-block: .6rem;
  color: var(--pale);
  font-size: .9rem;
  text-decoration: none;
  transition: color 150ms ease;
}
.site-nav a:hover { color: var(--cream); }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 1.45rem;
  min-height: 3.4rem;
  padding: .72rem 1.15rem;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: .9rem;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.button span[aria-hidden], .text-link span[aria-hidden] { font-size: 1.15em; line-height: 1; }
.button-outline { border-color: #cdb88a72; color: var(--cream); background: transparent; }
.button-outline:hover { background-color: #d3ba861c; border-color: var(--gold); }
.header-ticket { justify-self: end; min-height: 2.75rem; gap: .85rem; }
.button-paper { background: var(--cream); color: var(--ink); }
.button-paper:hover { background: #e8d9ba; }
.button-ink { background: var(--ink); color: var(--cream); }
.button-ink:hover { background: #334d3a; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  width: fit-content;
  font-size: .9rem;
  font-weight: 600;
  text-underline-offset: .32em;
  text-decoration-color: currentColor;
}
.text-link:hover { text-decoration-thickness: 2px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.4rem);
  padding-block: clamp(3.3rem, 5.8vw, 5.8rem) clamp(3.9rem, 6vw, 6.3rem);
}
.kicker-lined { display: flex; align-items: center; gap: .7rem; color: var(--gold); }
.kicker-lined::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; }
.hero h1 {
  font-size: clamp(4.15rem, 7.25vw, 7.1rem);
  line-height: .93;
  margin-block: 1.65rem;
}
.hero h1 em { display: block; color: var(--gold); }
.hero-lead { color: var(--pale); max-width: 29rem; font-size: clamp(1.02rem, 1.37vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.55rem; margin-top: 2rem; }
.hero-actions .text-link { color: var(--cream); }
.anatomy-plate { width: min(100%, 33rem); justify-self: end; }
.plate-frame {
  padding: clamp(.45rem, 1.1vw, .9rem);
  border: 1px solid #d2b77e64;
  background-color: #bd9b4f0c;
}
.plate-sheet {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6.2%;
  overflow: hidden;
  aspect-ratio: 1.065;
  background-color: #e9dfca;
  color: #34432e;
}
.plate-sheet::after {
  content: "";
  position: absolute;
  inset: 3.4%;
  z-index: -1;
  border: 1px solid #584d325d;
  pointer-events: none;
}
.plate-sheet img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plate-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.plate-heading span[lang="la"] {
  font: italic 1.24rem/1 var(--serif);
  letter-spacing: 0;
  text-transform: none;
}
.plate-note { width: fit-content; font-size: .65rem; }
.anatomy-plate figcaption {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .85rem;
  color: #b6bdac;
  font-size: .75rem;
  line-height: 1.35;
}

.manifesto { background: var(--paper); color: var(--ink); }
.manifesto-layout, .meetings-layout, .membership-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: clamp(2rem, 8vw, 7.6rem);
}
.manifesto h2 em, .meetings h2 em { display: block; }
.manifesto-copy { max-width: 38rem; font-size: 1.05rem; }
.manifesto-copy > p + p { margin-top: 1rem; }
.manifesto-copy blockquote {
  margin-top: 1.9rem;
  padding: .1rem 0 .1rem 1.3rem;
  border-left: 2px solid #a48a56;
}
.manifesto-copy blockquote p { font: italic 1.53rem/1.35 var(--serif); }
.manifesto-copy blockquote footer { margin-top: .6rem; color: var(--muted); font-size: .8rem; }

.archive { background: var(--sand); color: var(--ink); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: end;
  gap: 1.4rem 3.8rem;
  margin-bottom: clamp(2rem, 4.8vw, 3.75rem);
}
.section-heading > p { color: var(--muted); max-width: 24rem; }
.archive-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.archive-entry {
  display: grid;
  grid-template-columns: minmax(5rem, .19fr) minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem 2rem;
  padding-block: 1.8rem;
  border-bottom: 1px solid var(--line);
}
.archive-year { font: italic clamp(1.75rem, 3.25vw, 2.8rem)/1.15 var(--serif); color: #4d624d; }
.entry-type { color: var(--muted); font-size: .66rem; }
.archive-entry h3 {
  margin-block: .25rem .5rem;
  font-size: clamp(1.65rem, 2.65vw, 2.38rem);
  letter-spacing: -.038em;
  line-height: 1.16;
}
.archive-entry h3 + p { max-width: 42rem; color: var(--muted); font-size: .93rem; }
.archive-link {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-self: start;
  gap: .65rem;
  font-size: .83rem;
  font-weight: 650;
  text-decoration: none;
}
.round-arrow {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid #7b8472;
  border-radius: 50%;
  font-size: 1.06rem;
  transition: background-color 160ms ease, color 160ms ease;
}
.archive-link:hover .round-arrow { background: var(--ink); color: var(--cream); }

.meetings { background: var(--deep); color: var(--cream); }
.meetings .kicker, .meetings h2 em { color: var(--gold); }
.meetings-intro { margin-top: 1.35rem; max-width: 22rem; color: var(--pale); }
.protocols { border-top: 1px solid #e3d8b848; }
.protocols details { border-bottom: 1px solid #e3d8b848; }
.protocols summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding-block: 1.25rem;
}
.protocols summary::-webkit-details-marker { display: none; }
.protocols summary .entry-type { display: block; color: var(--gold); margin-bottom: .27rem; }
.protocol-title { display: block; font-size: clamp(1.4rem, 2.45vw, 1.95rem); line-height: 1.2; }
.protocols summary:hover .protocol-title { color: #e9cea1; }
.protocols details > p { max-width: 34rem; padding: 0 2rem 1.35rem 0; color: var(--pale); font-size: .94rem; }
.disclosure-icon {
  position: relative;
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  border: 1px solid #e3d8b868;
  border-radius: 50%;
}
.disclosure-icon::before, .disclosure-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: .61rem;
  height: 1px;
  background: var(--cream);
  transform: translate(-50%, -50%);
}
.disclosure-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.protocols details[open] .disclosure-icon::after { display: none; }

.membership { background: var(--paper); color: var(--ink); }
.membership-layout { align-items: center; }
.membership h2 em { display: block; }
.membership h2 + p { max-width: 24rem; margin-block: 1.3rem 1.65rem; color: var(--muted); }
.ticket-sample {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24%;
  width: min(100%, 31rem);
  min-height: clamp(12rem, 23vw, 16rem);
  justify-self: end;
  border: 5px double #cfb5829c;
  outline: 1px solid var(--ink);
  background: radial-gradient(ellipse at 90% 12%, #324b38, var(--green) 72%);
  color: var(--cream);
  box-shadow: 0 15px 32px #172c2320;
}
.ticket-main { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1rem, 3.1vw, 2rem); }
.ticket-label { color: var(--gold); font-size: .65rem; }
.ticket-name { font: clamp(1.75rem, 4vw, 3.3rem)/.98 var(--serif); letter-spacing: -.05em; }
.ticket-name em { color: var(--gold); }
.ticket-stub { display: grid; place-items: center; border-left: 1px dashed #cdbb8b80; }
.ticket-stub .brand-mark { width: clamp(2.5rem, 5.2vw, 4rem); height: clamp(2.5rem, 5.2vw, 4rem); font-size: 2.3rem; }

.site-footer { padding-block: 1.7rem; border-top: 1px solid var(--line); }
.footer-layout { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .85rem 1.35rem; }
.footer-layout .brand-mark { color: #52684f; }
.footer-layout > p { color: var(--muted); font-size: .82rem; }
.footer-layout .text-link { justify-self: end; }

.ticket-dialog {
  position: fixed;
  width: min(100% - 2rem, 29rem);
  max-height: calc(100% - 2rem);
  overflow: auto;
  padding: clamp(1.3rem, 5vw, 2.4rem);
  border: 1px solid #b0a485;
  background: var(--paper);
  color: var(--ink);
}
.ticket-dialog::backdrop { background: #081a13b8; }
.ticket-dialog h2 { margin-bottom: 1.4rem; font-size: clamp(2.3rem, 6vw, 3.35rem); line-height: 1; }
.close-form { position: absolute; top: .45rem; right: .55rem; }
.dialog-close {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
}
.dialog-close:hover { background-color: var(--sand); }
.ticket-dialog label { display: block; font-size: .86rem; font-weight: 650; margin-bottom: .4rem; }
.ticket-dialog input {
  width: 100%;
  min-height: 3.15rem;
  margin-bottom: 1rem;
  padding: .52rem .72rem;
  border: 1px solid #8a8e7d;
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
}
.ticket-status { color: var(--muted); margin-top: .65rem; font-size: .84rem; }
.ticket-status:empty { display: none; }

.error-page { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; padding-block: 3rem; }
.error-page h1 { margin-block: 1rem; max-width: 53rem; font-size: clamp(3.1rem, 7.8vw, 6.7rem); line-height: 1; }
.error-page .button { margin-top: 1.65rem; }

@media (max-width: 820px) {
  .header-layout { grid-template-columns: 1fr auto; gap: .45rem 1rem; padding-top: .8rem; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; gap: 1.6rem; }
  .header-ticket { grid-column: 2; grid-row: 1; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2.7rem; }
  .hero h1 { font-size: clamp(3rem, 11vw, 6rem); }
  .anatomy-plate { justify-self: start; }
  .manifesto-layout, .meetings-layout, .membership-layout, .section-heading { grid-template-columns: minmax(0, 1fr); }
  .ticket-sample { justify-self: start; }
  .archive-entry { grid-template-columns: 4.25rem minmax(0, 1fr) auto; gap: .9rem 1.15rem; }
  .meetings-intro { max-width: 32rem; }
}

@media (max-width: 520px) {
  .button { gap: .8rem; }
  .header-ticket { padding-inline: .72rem; font-size: .78rem; }
  .site-nav { justify-content: space-between; gap: .6rem; }
  .hero h1 { margin-block: 1.3rem; }
  .hero-actions { margin-top: 1.55rem; }
  .archive-entry { grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1rem; padding-block: 1.35rem; }
  .archive-year { grid-column: 1; grid-row: 1; }
  .archive-entry > div { grid-column: 1 / -1; }
  .archive-link { grid-column: 2; grid-row: 1; justify-self: end; }
  .footer-layout { grid-template-columns: 1fr auto; }
  .footer-layout > p { grid-column: 1 / -1; grid-row: 2; }
}

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