@font-face {
  font-family: "IM Fell English";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/im-fell-english-regular.woff2") format("woff2");
}

@font-face {
  font-family: "IM Fell English";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/im-fell-english-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/spectral-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/spectral-semibold.woff2") format("woff2");
}

@font-face {
  font-family: "Spectral";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/spectral-italic.woff2") format("woff2");
}

:root {
  --vellum: #d9cfbd;
  --vellum-light: #e4dcce;
  --ink: #34332f;
  --ink-soft: #594e45;
  --ultramarine: #3c597f;
  --ultramarine-deep: #324461;
  --rubric: #845447;
  --rose: #c07c5c;
  --gold: #9e855b;
  --gold-light: #b29972;
  --measure: 40rem;
}

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

html { background: var(--vellum); }

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(228, 220, 206, 0.9), transparent 70%),
    var(--vellum);
  color: var(--ink);
  font-family: "Spectral", Georgia, serif;
  font-size: 1.1875rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--ultramarine-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--rubric); }
a:focus-visible { outline: 3px solid var(--rubric); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--ultramarine-deep);
  color: var(--vellum-light);
  z-index: 10;
}

.skip-link:focus { top: 1rem; }

.site-header {
  max-width: 54rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: "IM Fell English", Georgia, serif;
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1;
}

.brand svg { width: 2.4rem; height: 2.4rem; color: var(--ultramarine-deep); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
}

.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--rubric); }
.soon { color: var(--ink-soft); }
.soon small { font-variant: normal; font-style: italic; font-size: 0.8em; }

.frame {
  max-width: 54rem;
  margin: 0.5rem auto 4rem;
  padding: 14px;
  background:
    radial-gradient(circle, rgba(228, 220, 206, 0.85) 1.2px, transparent 1.7px) 0 0 / 9px 9px,
    var(--ultramarine);
  border: 2px solid var(--gold-light);
  box-shadow: 0 18px 40px rgba(52, 51, 47, 0.25);
}

.folio {
  background: var(--vellum-light);
  border: 2px solid var(--gold-light);
  padding: clamp(1.5rem, 4.5vw, 3.25rem) clamp(1.25rem, 6vw, 4.5rem) clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.folio > * { max-width: var(--measure); }
.folio > section + section { margin-top: clamp(2.5rem, 6vw, 4rem); }

.kicker {
  margin: 0 0 0.4rem;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  color: var(--rubric);
  font-weight: 600;
}

h1, h2, h3 { font-family: "IM Fell English", Georgia, serif; font-weight: 400; margin: 0; }

h1 {
  font-size: clamp(2.7rem, 8vw, 4.8rem);
  line-height: 0.95;
  color: var(--ink);
}

h1::first-letter { color: var(--ultramarine-deep); }

.page-title { font-size: clamp(2.3rem, 6.5vw, 3.8rem); line-height: 1; margin-bottom: 1.2rem; }

.tagline {
  margin: 0.8rem 0 1.4rem;
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  color: var(--ink-soft);
}

.lede::first-letter {
  float: left;
  font-family: "IM Fell English", Georgia, serif;
  font-size: 3.5em;
  line-height: 0.85;
  margin: 0.06em 0.16em 0 0;
  padding: 0.14em 0.16em 0.06em;
  color: var(--ultramarine-deep);
  background:
    radial-gradient(circle, rgba(192, 124, 92, 0.6) 1px, transparent 1.5px) 0 0 / 6px 6px,
    var(--vellum-light);
  border: 1px solid var(--rose);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 0.8rem; }

.button {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  background: var(--ultramarine-deep);
  color: var(--vellum-light);
  border: 2px solid var(--gold-light);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.button:hover { background: var(--ultramarine); color: var(--vellum-light); }
.button.secondary { background: transparent; color: var(--ultramarine-deep); border-color: var(--ultramarine); }
.button.secondary:hover { background: rgba(60, 89, 127, 0.1); }

.status { margin: 0; font-size: 1rem; color: var(--ink-soft); font-style: italic; }

h2 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.05; color: var(--rubric); }

h2::after {
  content: "";
  display: block;
  width: min(14rem, 60%);
  height: 14px;
  margin: 0.55rem 0 1.4rem;
  background:
    radial-gradient(circle, var(--vellum-light) 1.4px, transparent 2px) 0 50% / 10px 14px repeat-x,
    var(--ultramarine);
  border: 1.5px solid var(--gold-light);
}

.realm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.realm-list li { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.realm-list .shield { width: 3.6rem; height: auto; margin-top: 0.15rem; }
.realm-list h3 { font-size: 1.45rem; line-height: 1.2; color: var(--ink); }
.realm-list h3::first-letter { font-size: 1.35em; color: var(--rubric); }
.realm-list li:nth-child(even) h3::first-letter { color: var(--ultramarine-deep); }
.realm-list p { margin: 0.3rem 0 0; }

.shield .t-or { fill: url(#manuscript-gold-leaf); }
.shield .t-argent { fill: var(--vellum-light); }
.shield .t-azure { fill: var(--ultramarine); }
.shield .t-gules { fill: var(--rubric); }
.shield .t-sable { fill: var(--ink); }
.shield .gilt { fill: none; stroke: var(--gold-light); stroke-width: 7; }
.shield .edge { fill: none; stroke: var(--ink); stroke-width: 3.5; }

.patch { margin: 0 0 1.8rem; }
.patch h2 { font-size: 1.6rem; line-height: 1.2; color: var(--ink); }
.patch h2::after { content: none; }
.patch h2::before { content: "\00B6\00A0"; color: var(--rubric); }
.patch:nth-child(even of .patch) h2::before { color: var(--ultramarine-deep); }
.patch p { margin: 0.1rem 0 0; font-size: 1rem; font-style: italic; color: var(--ink-soft); }
.patch ul, #before-these-notes ul { margin: 0.5rem 0 0; padding-left: 1.4rem; }
.patch li + li, #before-these-notes li + li { margin-top: 0.35rem; }
.patch li::marker, #before-these-notes li::marker { color: var(--rubric); font-weight: 600; }

#before-these-notes { margin-top: clamp(2.5rem, 6vw, 4rem); }
#before-these-notes > p { margin: 0; font-style: italic; color: var(--ink-soft); }

.more { margin: 0; font-weight: 600; }

.site-footer {
  max-width: 54rem;
  margin: 0 auto;
  padding: 0 1rem 3rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.site-footer p { margin: 0 0 0.4rem; }

.site-footer .site-build {
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  cursor: default;
}

.site-footer .site-build:empty { display: none; }

@media (hover: hover) {
  .site-footer .site-build:hover { color: var(--ink-soft); }
}

@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  .frame { padding: 8px; margin: 0.25rem 0.5rem 3rem; }
  .site-header { padding-top: 1rem; }
  .realm-list li { grid-template-columns: 2.8rem minmax(0, 1fr); gap: 0.85rem; }
  .realm-list .shield { width: 2.8rem; }
}
