@font-face { font-family: "Unifraktur"; src: url("/fonts/UnifrakturCook-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fell"; src: url("/fonts/IMFellEnglish-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fell"; src: url("/fonts/IMFellEnglish-Italic.woff2") format("woff2"); font-style: italic; font-display: swap; }

:root {
  --paper: #f5f1e8;
  --ink: #141210;
  --muted: #5a544b;
  --rule: #141210;
  --blood: #7c0f0f;
  --card: #fbf8f1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14110f; --ink: #ece4d4; --muted: #a39a8a; --rule: #ece4d4; --blood: #b3262a; --card: #1c1815;
  }
}
:root[data-theme="dark"] {
  --paper: #14110f; --ink: #ece4d4; --muted: #a39a8a; --rule: #ece4d4; --blood: #b3262a; --card: #1c1815;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Fell", Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.55;
}
a { color: var(--blood); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.page { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }

nav.top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  border-bottom: 3px double var(--rule); padding-bottom: 10px; margin-bottom: 40px;
}
nav.top .mark { font-family: "Unifraktur", serif; font-size: 1.6rem; text-decoration: none; color: var(--ink); }
nav.top ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; font-style: italic; }
nav.top a[aria-current="page"] { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--blood); }

h1, h2 { font-family: "Unifraktur", serif; font-weight: 700; line-height: 1.05; margin: 0 0 12px; }
h1 { font-size: clamp(3.2rem, 13vw, 6.5rem); text-align: center; }
h1 .red { color: var(--blood); }
h2 { font-size: 2.1rem; }
.kicker { text-align: center; font-style: italic; color: var(--muted); margin: 0 0 32px; letter-spacing: .04em; }
.lede { font-size: 1.3rem; text-align: center; max-width: 34em; margin: 0 auto 40px; }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; position: relative; overflow: visible; }
.rule::after {
  content: "✠"; position: absolute; left: 50%; top: -0.8em; transform: translateX(-50%);
  background: var(--paper); padding: 0 12px; color: var(--blood); font-size: 1.1rem;
}

.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.door {
  display: block; text-decoration: none; color: var(--ink);
  border: 2px solid var(--rule); background: var(--card); padding: 22px 20px;
  box-shadow: 5px 5px 0 var(--rule); transition: transform .12s, box-shadow .12s;
}
.door:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--blood); color: var(--ink); }
.door .label { font-family: "Unifraktur", serif; font-size: 1.9rem; display: block; }
.door .desc { font-style: italic; color: var(--muted); }

.entry { border-top: 1px solid var(--rule); padding: 20px 0; }
.entry:last-child { border-bottom: 1px solid var(--rule); }
.entry .date { font-style: italic; color: var(--muted); font-size: .95rem; }
.entry h3 { font-family: "Unifraktur", serif; font-size: 1.7rem; margin: 4px 0 6px; font-weight: 700; }
.entry h3 a { color: var(--ink); text-decoration: none; }
.entry h3 a:hover { color: var(--blood); }
.entry p { margin: 0; }
.tag { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blood); }

article p:first-of-type::first-letter {
  font-family: "Unifraktur", serif; float: left; font-size: 3.6em; line-height: .8; padding: 6px 8px 0 0; color: var(--blood);
}

footer { margin-top: 64px; border-top: 3px double var(--rule); padding-top: 14px; font-style: italic; color: var(--muted); font-size: .95rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
