/* Empty Halls — shared styles. Black and white with red accents, like the book. */
/* Fonts are hosted on the site itself (SIL Open Font License). */
@font-face { font-family: "Special Elite"; src: url("/assets/fonts/special-elite-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/assets/fonts/caveat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #121212;
  --night: #0b0b0c;
  --paper: #f6f3ec;
  --paper-2: #ebe6da;
  --line: #2a2a2a;
  --muted: #5b5b5b;
  --red: #c8102e;
  --red-dark: #9c0c23;
  --ok: #1d6b3a;
  --type: "Special Elite", "Courier New", monospace;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* ---------- top bar ---------- */
.bar {
  background: var(--night);
  color: var(--paper);
  border-bottom: 4px solid var(--red);
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.brand { white-space: nowrap; font-family: var(--type); font-size: 1.35rem; letter-spacing: .12em; color: var(--paper); text-decoration: none; }
.brand span { color: var(--red); }
.bar nav { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 480px) { .brand { font-size: 1.1rem; letter-spacing: .08em; } .bar nav { gap: .9rem; } .bar nav a { font-size: .9rem; } }
.bar nav a { color: var(--paper); text-decoration: none; font-size: 1rem; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; }

.wrap { width: min(100% - 2.5rem, 960px); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 680px); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--type); font-weight: 400; line-height: 1.15; letter-spacing: .02em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin: 2.5rem 0 .75rem; }
h3 { font-size: 1.3rem; margin: 1.5rem 0 .5rem; }
.kicker { font-family: var(--type); color: var(--red); letter-spacing: .2em; font-size: .95rem; text-transform: uppercase; margin: 0 0 .5rem; }
.lead { font-size: 1.25rem; }
.small { font-size: .95rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--type); font-size: 1.2rem; letter-spacing: .06em;
  padding: .85rem 1.5rem; border-radius: var(--radius);
  background: var(--red); color: #fff; border: 2px solid var(--red);
  text-decoration: none; cursor: pointer; min-height: 52px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease, background .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.light { box-shadow: 4px 4px 0 #000; }
.btn[disabled] { opacity: .55; cursor: wait; }

/* ---------- case-file card ---------- */
.file {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: 8px 8px 0 var(--ink);
  position: relative;
}
.file .tab {
  position: absolute; top: -2px; left: 1.5rem; transform: translateY(-100%);
  background: var(--ink); color: var(--paper);
  font-family: var(--type); letter-spacing: .15em; font-size: .85rem;
  padding: .3rem .9rem; border-radius: var(--radius) var(--radius) 0 0;
}
.stamp {
  display: inline-block; font-family: var(--type); color: var(--red);
  border: 3px solid var(--red); padding: .2rem .8rem; letter-spacing: .15em;
  transform: rotate(-4deg); font-size: 1.1rem;
}

/* ---------- Scribbles' note ---------- */
.note {
  background: var(--paper-2);
  border-left: 6px solid var(--red);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.note strong { font-family: var(--type); font-weight: 400; letter-spacing: .05em; }

/* ---------- footer ---------- */
footer.site {
  margin-top: 4rem; padding: 2rem 0 2.5rem;
  background: var(--night); color: #cfcfcf; font-size: .95rem;
  border-top: 4px solid var(--red);
}
footer.site a { color: #fff; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

main { display: block; }
section { padding-block: 1rem; }

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

/* ---------- Meet the Lakeside Knights ---------- */
.bridge {
  display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center; text-align: left;
  margin-top: 3rem; padding-top: 2.5rem; border-top: 2px dashed var(--ink);
}
.bridge-cover img { width: 100%; height: auto; border-radius: 3px; box-shadow: 8px 8px 0 var(--ink); transition: transform .15s ease; }
.bridge-cover:hover img { transform: rotate(-1.5deg) translateY(-3px); }
.bridge h2 { margin-top: 0; font-size: clamp(1.4rem, 3vw, 1.85rem); }
.bridge .trilogy { font-size: .95rem; color: var(--muted); margin-bottom: 0; }
.bridge .trilogy span { display: block; font-family: var(--type); letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; color: var(--ink); }
.bridge .trilogy strong { color: var(--red); }
@media (max-width: 600px) {
  .bridge { grid-template-columns: 1fr; text-align: center; }
  .bridge-cover { width: 180px; margin-inline: auto; }
}
.next-book {
  grid-column: 1 / -1; display: grid; grid-template-columns: 90px 1fr; gap: 1.1rem; align-items: center;
  background: var(--paper-2); border-radius: var(--radius); padding: 1rem 1.25rem;
  color: var(--ink); text-decoration: none; font-size: 1rem; line-height: 1.5; text-align: left;
}
.next-book img { width: 90px; height: auto; border-radius: 2px; box-shadow: 4px 4px 0 var(--ink); }
.next-book .kicker { display: block; margin: 0 0 .1rem; font-size: .8rem; }
.next-book strong { display: block; font-family: var(--type); font-weight: 400; font-size: 1.25rem; }
.next-book .go { display: block; margin-top: .35rem; color: var(--red-dark); text-decoration: underline; text-underline-offset: 3px; }
.next-book:hover .go { color: var(--red); }
@media (max-width: 600px) { .next-book { grid-template-columns: 72px 1fr; } .next-book img { width: 72px; } }
