/* The Spear Society. Ivory paper, navy ink, oxblood and gilt; a centred, ceremonial page.
 * IM Fell English and IM Fell English SC (SIL OFL, assets/OFL-im-fell.txt) for display; system serif for reading. */
@font-face {
  font-family: 'IM Fell English';
  src: url('/assets/im-fell-english-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IM Fell English';
  src: url('/assets/im-fell-english-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'IM Fell English SC';
  src: url('/assets/im-fell-english-sc-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbf7ec;
  --ink: #1c2541;
  --muted: #474d63;
  --accent: #7a1f2b;
  --accent-ink: #fbf7ec;
  --surface: #fffdf7;
  --line: #c9a54a;
  --gilt: #c9a54a;
  --gilt-ink: #7a5c14;
  --radius: 2px;
  --font: Georgia, Cambria, 'Times New Roman', 'Liberation Serif', serif;
  --fell: 'IM Fell English', Georgia, serif;
  --fell-sc: 'IM Fell English SC', 'IM Fell English', Georgia, serif;
  font-size: 17px;
}

body {
  background:
    linear-gradient(90deg, var(--ink) 0 8px, var(--gilt) 8px 10px, transparent 10px) left / 50% 100% no-repeat,
    linear-gradient(270deg, var(--ink) 0 8px, var(--gilt) 8px 10px, transparent 10px) right / 50% 100% no-repeat,
    var(--bg);
  padding: 0 10px;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link:focus { background: var(--ink); color: var(--bg); }

/* Header: the crest, centred. */
.site-header { text-align: center; padding-top: 26px; border-bottom: 3px double var(--gilt); }
.site-brand { flex-direction: column; gap: 8px; }
.site-logo { width: 84px; height: 84px; }
.site-name { font-family: var(--fell-sc); font-weight: 400; font-size: 1.9rem; letter-spacing: 0.06em; line-height: 1.1; }
.site-tagline { font-family: var(--fell); font-style: italic; color: var(--muted); max-width: 30em; margin: 6px auto 10px; }

/* Proceedings. */
.proceedings { text-align: center; }
.agenda {
  font-family: var(--fell-sc);
  color: var(--accent);
  letter-spacing: 0.12em;
  margin: 18px 0 4px;
}
.agenda::before, .agenda::after { content: '\2766'; color: var(--gilt-ink); margin: 0 10px; }
.report-title {
  font-family: var(--fell);
  font-weight: 400;
  font-size: clamp(2.1rem, 8.5vw, 3.2rem);
  line-height: 1.08;
  margin: 4px 0 12px;
}
.report-tagline { font-family: var(--fell); font-style: italic; font-size: 1.2rem; margin: 0 auto 20px; max-width: 32em; }
.order-title {
  font-family: var(--fell-sc);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  margin: 0 0 6px;
  color: var(--ink);
}
.order {
  list-style: lower-roman;
  text-align: left;
  max-width: 30em;
  margin: 0 auto 14px;
  padding: 12px 16px 12px 44px;
  border-top: 1px solid var(--gilt);
  border-bottom: 1px solid var(--gilt);
}
.order li { padding: 2px 0; }
.order li::marker { font-family: var(--fell); color: var(--accent); }
.report-asks { color: var(--muted); font-style: italic; font-size: 0.95rem; }

/* Widget: the ledger. */
.widget {
  background: var(--surface);
  border: 1px solid var(--gilt);
  outline: 3px double var(--gilt);
  outline-offset: 4px;
  border-radius: var(--radius);
  padding: 24px 18px;
  margin: 26px 6px 30px;
}
.widget-hint, .widget-msg { color: var(--ink); font-family: var(--fell); font-size: 1.15rem; }
.widget-qrbox svg { border: 1px solid var(--ink); padding: 4px; background: #fff; }
.widget-link, .widget-again {
  border-radius: 2px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--fell-sc);
  font-weight: 400;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
  border: 1px solid var(--accent);
  box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 4px var(--gilt);
  padding: 12px 26px;
}
.widget-link:hover, .widget-again:hover { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px var(--gilt); }
.widget-again { margin-top: 20px; }
.widget-error { color: var(--accent); }

/* Result: the finding, with a wax seal. */
.result { position: relative; text-align: center; padding-top: 6px; }
.result-call::after {
  content: 'S';
  position: absolute;
  top: -14px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a3343f, var(--accent) 60%, #5a141e);
  color: var(--gilt);
  font-family: var(--fell);
  font-size: 1.5rem;
  box-shadow: 0 0 0 3px rgb(122 31 43 / 0.25);
  transform: rotate(-12deg);
}
.result-call .finding-label { margin: 0 40px 2px; }
.finding-label { font-family: var(--fell-sc); color: var(--accent); letter-spacing: 0.14em; margin: 0 0 2px; }
.result-headline {
  font-family: var(--fell);
  font-weight: 400;
  font-size: clamp(2rem, 8vw, 2.8rem);
  line-height: 1.08;
  margin: 0 40px 14px;
}
.result:not(.result-call) .result-headline { margin: 0 0 14px; }
.particulars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 14px;
  border-top: 1px solid var(--gilt);
  border-bottom: 1px solid var(--gilt);
}
.particulars div { padding: 8px 6px; }
.particulars div + div { border-left: 1px solid var(--gilt); }
.particulars dt { font-family: var(--fell-sc); color: var(--muted); letter-spacing: 0.08em; font-size: 0.9rem; }
.particulars dd { margin: 2px 0 0; font-family: var(--fell); font-size: 1.15rem; }
.result-genotype { font-family: var(--font); letter-spacing: 0.12em; font-size: 1.2rem; }
.result-body { text-align: left; font-size: 1.05rem; }
.result-fact { text-align: left; font-style: italic; }
.result-fact b { font-style: normal; font-family: var(--fell-sc); color: var(--accent); letter-spacing: 0.04em; }
.result-disclaimer { text-align: left; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--gilt); padding-top: 10px; }

.site-footer { text-align: center; color: var(--muted); border-top: 3px double var(--gilt); font-style: italic; }
.site-footer p { margin: 6px 0; }
.site-footer a { color: var(--accent); font-style: normal; font-family: var(--fell-sc); letter-spacing: 0.05em; font-size: 1rem; }

.not-found { text-align: center; }
.not-found h1 { font-family: var(--fell); font-weight: 400; font-size: 2.6rem; }

@media (max-width: 420px) {
  body { padding: 0 6px; background: var(--bg); border-left: 6px solid var(--ink); border-right: 6px solid var(--ink); }
  .site-header, .site-main, .site-footer { padding-left: 12px; padding-right: 12px; }
}

@media print {
  body { background: #fff; border: 0; }
  .widget { outline: 0; border: 0; }
}
