/* Sanguine — The Partnership Register
   Registry-ledger visual: warm ledger paper, crimson seal, gold rules.
   Flat, formal, serif. No rounded cards, no hover-lift, no emoji. */

:root {
  --paper: #fdfaf3;
  --paper-2: #f7f1e3;
  --ink: #241a1a;
  --ink-soft: #5a4a43;
  --crimson: #7a1f2b;
  --crimson-ink: #5d1620;
  --gold: #a8822b;
  --gold-soft: #cbb06a;
  --rule: #d8c69a;
  --rule-faint: #e7dcc0;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
}

a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--crimson); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-head {
  border-top: 4px solid var(--crimson);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.head-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.seal {
  width: 46px; height: 46px; flex: 0 0 46px;
  border: 2px solid var(--crimson); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: var(--crimson);
  font-family: var(--serif);
}
.seal-sm { width: 34px; height: 34px; flex-basis: 34px; font-size: 17px; }
.brand-name {
  font-size: 22px; letter-spacing: 0.04em; font-weight: 700;
  text-transform: uppercase; display: block; line-height: 1.1;
}
.brand-sub { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-link {
  padding: 5px 11px; font-size: 13px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--crimson); text-decoration: none; border-bottom-color: var(--gold-soft); }
.nav-link.is-active { color: var(--crimson); border-bottom-color: var(--crimson); font-weight: 700; }

main { max-width: 1080px; margin: 0 auto; padding: 30px 24px 60px; min-height: 60vh; }

/* ---------- breadcrumb ---------- */
.crumbs { font-size: 13px; letter-spacing: 0.03em; color: var(--ink-soft); margin-bottom: 26px; }
.crumbs a { color: var(--gold); }
.crumbs span[aria-hidden] { margin: 0 8px; color: var(--rule); }

/* ---------- home hero ---------- */
.hero {
  border: 1px solid var(--rule); padding: 40px 36px 34px;
  background: var(--paper); margin-bottom: 34px;
}
.hero-title {
  font-size: 40px; line-height: 1.1; font-weight: 700;
  letter-spacing: 0.01em; margin-bottom: 14px;
}
.hero-lead { font-size: 19px; color: var(--ink-soft); margin-bottom: 12px; max-width: 58ch; }
.hero-note { font-size: 14px; color: var(--gold); letter-spacing: 0.04em; text-transform: uppercase; }

.register-wrap { display: flex; flex-direction: column; gap: 30px; }

/* ---------- book (category) section ---------- */
.book { border: 1px solid var(--rule); }
.book-head {
  padding: 16px 22px 14px; border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.book-title { font-size: 21px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 4px; }
.book-blurb { font-size: 14px; color: var(--ink-soft); }

/* ---------- register list ---------- */
.register { list-style: none; }
.register-page { border: 1px solid var(--rule); }
.entry-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding: 13px 22px;
  border-bottom: 1px solid var(--rule-faint);
}
.entry-row:last-child { border-bottom: 0; }
.entry-row a { font-size: 17px; }
.entry-meta {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); white-space: nowrap;
}

/* ---------- category page ---------- */
.cat-hero { padding: 8px 4px 22px; }
.cat-title { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.cat-blurb { font-size: 16px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- article (entry) ---------- */
.entry { max-width: 820px; margin: 0 auto; }
.entry-head { margin-bottom: 22px; }
.entry-seal {
  width: 58px; height: 58px; border: 2px solid var(--crimson); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--crimson); font-size: 15px; letter-spacing: 0.08em;
  margin-bottom: 14px; font-weight: 700;
}
.entry-title { font-size: 36px; line-height: 1.15; font-weight: 700; margin-bottom: 8px; }
.entry-kicker {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
}

/* facts = register-entry table */
.facts {
  width: 100%; border-collapse: collapse; margin-bottom: 34px;
  border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
}
.facts th, .facts td { padding: 10px 14px; text-align: left; vertical-align: top; }
.facts th {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); font-weight: 400; white-space: nowrap; width: 30%;
  border-bottom: 1px solid var(--rule-faint);
}
.facts td { font-size: 15px; border-bottom: 1px solid var(--rule-faint); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }

/* ---------- rendered AsciiDoc body ---------- */
.entry-body { font-size: 17px; }
.entry-body .sect1 { margin-bottom: 26px; }
.entry-body h2 {
  font-size: 21px; font-weight: 700; margin: 0 0 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--rule);
  letter-spacing: 0.01em;
}
.entry-body p { margin-bottom: 14px; }
.entry-body p:last-child { margin-bottom: 0; }

/* ---------- related ---------- */
.related {
  margin-top: 38px; border-top: 2px solid var(--gold); padding-top: 20px;
}
.related-title {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.related-list { list-style: none; }
.related-item { padding: 9px 0; border-bottom: 1px solid var(--rule-faint); }
.related-item:last-child { border-bottom: 0; }
.related-item em {
  font-style: normal; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-soft); margin-left: 10px;
}
.related-pending span { color: var(--ink-soft); }

/* ---------- legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal-head { margin-bottom: 22px; border-bottom: 2px solid var(--gold); padding-bottom: 12px; }
.legal-title { font-size: 34px; font-weight: 700; }

/* ---------- not found ---------- */
.notfound { max-width: 640px; margin: 40px auto; text-align: center; border: 1px solid var(--rule); padding: 44px 30px; }
.nf-title { font-size: 30px; font-weight: 700; margin-bottom: 12px; }
.nf-text { color: var(--ink-soft); margin-bottom: 22px; }
.nf-link {
  display: inline-block; border: 1px solid var(--crimson); color: var(--crimson);
  padding: 9px 18px; letter-spacing: 0.04em; text-transform: uppercase; font-size: 13px;
}
.nf-link:hover { background: var(--crimson); color: #fff; text-decoration: none; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
}
.foot-inner {
  max-width: 1080px; margin: 0 auto; padding: 28px 24px 34px;
  display: flex; flex-direction: column; gap: 18px;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-name { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.foot-sub { font-size: 13px; color: var(--ink-soft); }
.foot-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-nav a { font-size: 14px; color: var(--ink-soft); }
.foot-nav a:hover { color: var(--crimson); }
.foot-copy { font-size: 12px; color: var(--gold); border-top: 1px solid var(--rule-faint); padding-top: 14px; }

@media (max-width: 640px) {
  .hero { padding: 26px 20px 24px; }
  .hero-title { font-size: 30px; }
  .entry-title { font-size: 27px; }
  .cat-title { font-size: 26px; }
  .facts th { width: 40%; }
  .entry-row { flex-direction: column; gap: 2px; }
  .entry-meta { white-space: normal; }
}
