:root {
  color-scheme: light;
  --paper: #f4e8cc;
  --pale: #fbf2df;
  --ink: #2c2117;
  --muted: #61513d;
  --red: #842f26;
  --blue: #263e59;
  --gold: #ac8650;
  --line: #c9ae80;
  --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper) url(pergament.svg) repeat;
  color: var(--ink);
  font: 17px/1.58 var(--serif);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
figure, p { margin: 0; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: 10px; left: 10px; transform: translateY(-180%); background: var(--pale); padding: 8px; z-index: 2; }
.skip:focus { transform: none; }
.top { background: #fff7e342; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 70px; }
.brand { display: inline-flex; gap: 8px; align-items: center; font-size: 24px; font-weight: bold; color: var(--red); letter-spacing: .06em; }
.brand img { border-radius: 50%; border: 1px solid var(--gold); }
.bar nav { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 3vw, 38px); font-size: .94rem; }
.nav-join { border: 1px solid var(--gold); padding: 5px 14px; color: var(--blue); white-space: nowrap; }
.hero {
  background: radial-gradient(ellipse at 30% 42%, #fff8e475, transparent 72%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: .9fr 1.15fr;
  align-items: center;
  gap: clamp(24px, 5vw, 68px);
  padding-block: clamp(48px, 8vw, 116px);
}
.eyebrow { color: var(--red); font: 750 .72rem/1.5 system-ui, sans-serif; letter-spacing: .17em; text-transform: uppercase; margin-bottom: 12px; }
.eyebrow span { display: inline-block; width: 20px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 7px; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -.043em; line-height: 1.02; }
h1 { font-size: clamp(37px, 4.9vw, 71px); }
h1 em { display: block; margin-top: .22em; color: var(--red); font-size: .74em; font-weight: inherit; }
h2 { font-size: clamp(36px, 4.8vw, 65px); }
.lede, .about-copy { max-width: 52ch; color: var(--muted); }
.lede { margin-top: 18px; font-size: 1.14rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; }
.button { display: inline-flex; gap: 12px; align-items: center; border: 1px solid transparent; background: var(--red); color: #fff6e5; padding: 11px 15px; font: 700 .85rem/1.3 system-ui, sans-serif; cursor: pointer; }
.button[hidden] { display: none; }
.button:hover { background: #64221b; color: white; }
.banner img, .certificate img { width: 100%; border: 1px solid var(--gold); box-shadow: 0 8px 18px #4a351626; }
figcaption { margin-top: 9px; color: var(--muted); font-size: .85rem; font-style: italic; text-align: right; }
.section { padding-block: clamp(52px, 7vw, 94px); scroll-margin-top: 12px; }
.about, .award-layout, .join-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 26px 56px; }
.about-copy p + p { margin-top: 14px; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
dt { font-size: .84rem; }
dd { margin: 3px 0 0; color: var(--blue); font-weight: bold; }
.honors { border-block: 1px solid var(--line); background: #9a5c2110; }
.enlarge { display: inline-block; margin-top: 9px; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; }
.tavern-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(14px, 2.6vw, 34px);
  margin-top: 18px;
  padding: clamp(20px, 3.6vw, 46px);
  border: clamp(8px, 1.4vw, 17px) solid #4e2c1c;
  border-top-color: #724728;
  border-left-color: #654027;
  background:
    radial-gradient(ellipse 75px 12px at 18% 24%, #2a150a99, transparent),
    radial-gradient(ellipse 100px 20px at 68% 68%, #2a150a99, transparent),
    repeating-linear-gradient(0deg, #251207aa 0 2px, #e5b07a30 2px 4px, transparent 4px 88px),
    repeating-linear-gradient(1deg, #dfae701f 0 1px, transparent 2px 6px, #2b160e33 7px 8px, transparent 9px 17px),
    linear-gradient(100deg, #704626, #8d5d35 46%, #5e3a23);
  box-shadow: inset 0 0 20px #241209a8, 0 9px 16px #4a35163b;
}
.tavern-note {
  position: relative;
  min-width: 0;
  padding: 30px clamp(14px, 2.1vw, 25px) 24px;
  border: 1px solid #b88c52;
  background: radial-gradient(ellipse at center, #fff2d880, #a56c2c21), #eed8ac url(pergament.svg) center / 400px;
  box-shadow: inset 0 0 14px #a5713938, 3px 6px 8px #24130bb3;
  transform: rotate(-1.8deg);
}
.tavern-note:nth-child(2) { transform: translateY(9px) rotate(1.6deg); }
.tavern-note:nth-child(3) { transform: rotate(-.8deg); }
.tavern-note::before {
  content: "";
  position: absolute;
  top: 8px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0cb8d, #966437 48%, #432413 85%);
  box-shadow: 1px 2px 2px #3320139c;
}
.note-kicker {
  margin-bottom: 7px;
  color: var(--red);
  font: 750 .68rem/1.4 system-ui, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.tavern-note h3 {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #af845772;
  font: bold clamp(20px, 2.6vw, 31px)/1.1 var(--serif);
}
.note-contacts { display: grid; gap: 8px; margin: 0; padding-left: 16px; }
.note-contacts li::marker { color: var(--red); }
@media (max-width: 760px) {
  .tavern-board { grid-template-columns: 1fr; gap: 15px; }
  .tavern-note:nth-child(2) { transform: rotate(1.6deg); }
}
.join { border-block: 1px solid var(--line); background: #28435f13; }
.command { border: 1px solid var(--gold); background: #fff7e465; padding: 16px; }
.command-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
code { overflow-wrap: anywhere; user-select: all; }
.command .button { padding: 8px 11px; border-color: #e6ba81; }
#copy-status { display: block; font-size: .85rem; }
#copy-status:not(:empty) { margin-top: 8px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 22px; font-size: .87rem; color: var(--muted); }

.intro { position: relative; }
.intro .actions { position: relative; }
.marginalia { display: flex; align-items: flex-end; gap: 8px; pointer-events: none; }
.marginalia img { width: var(--figure-size, 108px); height: auto; flex: 0 1 auto; min-width: 0; }
.marginalia--hero {
  --figure-size: 88px;
  position: absolute;
  bottom: -55px;
  right: -18px;
  transform: rotate(8deg);
}
.marginalia--about { --figure-size: 112px; margin-top: 10px; transform: rotate(-6deg); transform-origin: left center; }
.marginalia--fanfare { --figure-size: 118px; margin-top: 9px; }
.notice-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.notice-heading > div:first-child { flex: 1 0 auto; }
.marginalia--notice { --figure-size: 103px; justify-content: flex-end; }
.marginalia--notice img:first-child { transform: rotate(-8deg); }
.marginalia--gate { --figure-size: 125px; margin-top: 10px; }
.marginalia--gate img:last-child { width: 79px; transform: rotate(9deg); }
.footer-mark { display: flex; align-items: center; gap: 8px; }
.marginalia--footer { --figure-size: 49px; }
@media (max-width: 740px) {
  .wrap { width: calc(100% - 36px); }
  .bar { flex-wrap: wrap; padding-block: 9px; gap: 8px; }
  .bar nav { order: 3; width: 100%; justify-content: space-between; font-size: .85rem; }
  .hero-inner, .about, .award-layout, .join-layout { grid-template-columns: 1fr; }
  .team { gap: 7px; }
  .marginalia--hero { position: relative; bottom: auto; right: -8px; justify-content: flex-end; margin-top: 4px; --figure-size: 70px; }
  .marginalia--notice { --figure-size: 80px; }
  .notice-heading { flex-wrap: wrap; gap: 4px; }
  .notice-heading > div:first-child { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
