/*
   guildhall.inc — the reading room.

   The face, ruled 2026-08-16: minimalist typographic from day one, its core
   focus conveying the information as concisely and easily as possible.
   Pixel-art embellishment joins later, with a very reserved and subtle hand.

   No web fonts, no scripts, no third-party requests of any kind. The stack
   the estate argues for is the stack the page is built from.
*/

:root {
  --ink:        #1c1a17;
  --ink-soft:   #55504a;
  --ink-faint:  #8a827a;
  --ground:     #fbf9f5;
  --ground-alt: #f2eee6;
  --rule:       #ddd6c9;
  --ember:      #a84420;
  --ember-lit:  #c4562c;
  --measure:    34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #e7e2d9;
    --ink-soft:   #a9a196;
    --ink-faint:  #776f66;
    --ground:     #14120f;
    --ground-alt: #1c1915;
    --rule:       #2e2923;
    --ember:      #e07b4a;
    --ember-lit:  #f09a68;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

/* ------------------------------------------------------------ the masthead */

.masthead {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 0;
}

.wordmark {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--ember);
}

.wordmark:hover { color: var(--ember); }

.wings {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.4rem;
  padding-top: 0.85rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.wings a { color: var(--ink-soft); text-decoration: none; }
.wings a:hover { color: var(--ember); }
.wings [aria-current="page"] { color: var(--ember); }

/* ---------------------------------------------------------------- the page */

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main > h1:first-child {
  margin-top: 3rem;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 600;
}

h1 {
  font-size: 1.9rem;
  margin: 3rem 0 1.75rem;
  letter-spacing: -0.012em;
}

h2 {
  font-size: 1.0625rem;
  margin: 2.75rem 0 0.9rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--ember);
}

h3 {
  font-size: 1.0625rem;
  margin: 2rem 0 0.6rem;
  font-style: italic;
  font-weight: 600;
}

h4, h5, h6 {
  font-size: 0.9375rem;
  margin: 1.6rem 0 0.5rem;
  color: var(--ink-soft);
}

p { margin: 0 0 1.15rem; }

a {
  color: var(--ember);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--ember-lit); }

strong { font-weight: 650; }

ul, ol {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
}

li { margin-bottom: 0.45rem; }
li::marker { color: var(--ink-faint); }

blockquote {
  margin: 1.5rem 0;
  padding-left: 1.15rem;
  border-left: 2px solid var(--rule);
  color: var(--ink-soft);
  font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

code {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-size: 0.875em;
  background: var(--ground-alt);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

/* Tables are wide by nature; they scroll inside their own box so the page
   itself never scrolls sideways on a phone. */
.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 1rem 0.7rem 0;
}

th {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
}

tbody tr + tr td { border-top: 1px solid var(--rule); }

hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 2.75rem 0;
}

/* --------------------------------------------------------------- the foot */

footer {
  max-width: var(--measure);
  margin: 4.5rem auto 0;
  padding: 1.75rem 1.5rem 4rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

footer p { margin: 0 0 0.5rem; }

footer .footnav {
  padding-top: 0;
  margin: 0 0 1.75rem; /* echo the footer's own top padding — the same breath above the rail and below it */
}

footer .colophon { color: var(--ink-faint); }

/* --------------------------------------------------------------- narrower */

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .masthead { padding-top: 2.25rem; }
  h1 { font-size: 1.6rem; }
}
