@font-face{font-family:"Uncial Antiqua";src:url(/fonts/UncialAntiqua-Regular.ttf) format("truetype");font-display:swap}@font-face{font-family:Alegreya;src:url(/fonts/Alegreya.ttf) format("truetype");font-weight:400 700;font-display:swap}@font-face{font-family:Alegreya;src:url(/fonts/Alegreya-Italic.ttf) format("truetype");font-style:italic;font-weight:400 700;font-display:swap}@font-face{font-family:"Alegreya Sans SC";src:url(/fonts/AlegreyaSansSC-Medium.ttf) format("truetype");font-weight:500;font-display:swap}

/* Layout: an illuminated leaf. Gloss-entry hero, the Beowulf opening as a rubricated incipit, four collections as manuscript quires, the channel, then the weekly tale. */
:root {
  --bg: #151a24;        /* oak-gall ink, night */
  --leaf: #1c2230;      /* raised folio */
  --ink: #ece4d0;       /* vellum text */
  --muted: #a9a38f;
  --gold: #cfa94d;      /* gold leaf */
  --rubric: #d9604a;    /* vermilion rubrication */
  --rule: #2e3647;
  --display: "Uncial Antiqua", "Palatino Linotype", Georgia, serif;
  --body: "Alegreya", Georgia, "Times New Roman", serif;
  --label: "Alegreya Sans SC", "Gill Sans", system-ui, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --bg: #e7e4d8; --leaf: #f3f0e6; --ink: #1d2230; --muted: #5d5a4c;
  --gold: #8f6c18; --rubric: #a8341f; --rule: #cfcab7; color-scheme: light } }
:root[data-theme="light"] {
  --bg: #e7e4d8; --leaf: #f3f0e6; --ink: #1d2230; --muted: #5d5a4c;
  --gold: #8f6c18; --rubric: #a8341f; --rule: #cfcab7; color-scheme: light }

* { box-sizing: border-box; }
body { margin:0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.125rem; line-height: 1.65; }
a { color: inherit; }
.wrap { max-width: 64rem; margin: 0 auto; padding-inline: 20px; padding-block: 0 4rem; display: grid; gap: 4.5rem; }
.label { font-family: var(--label); font-size: .82rem; letter-spacing: .14em; color: var(--gold); }

nav.main-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.4rem; border-bottom: 1px solid var(--rule); }
nav.main-nav .mark { font-family: var(--display); font-size: 1.5rem; text-decoration: none; }
nav.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0; padding: 0; font-family: var(--label); letter-spacing: .1em; font-size: .9rem; }
nav.main-nav ul a { text-decoration: none; color: var(--muted); }
nav.main-nav ul a:hover, nav.main-nav ul a:focus-visible { color: var(--gold); }

/* Hero: a dictionary gloss */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(3.4rem, 11vw, 7.2rem); line-height: .95; margin: .4rem 0 1.2rem; letter-spacing: -.01em; }
.gloss { display: grid; gap: .35rem; font-size: 1.05rem; color: var(--muted); border-left: 2px solid var(--gold); padding-left: 1rem; }
.gloss b { color: var(--ink); font-weight: 700; }
.gloss i { color: var(--rubric); }
.lede { font-size: 1.3rem; line-height: 1.5; margin: 0 0 1.6rem; max-width: 30ch; text-wrap: balance; }
.ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn { font-family: var(--label); letter-spacing: .12em; font-size: .92rem; text-decoration: none; padding: .75rem 1.3rem; border: 1px solid var(--gold); }
.btn.primary { background: var(--gold); color: var(--bg); }
.btn:hover, .btn:focus-visible { outline: 2px solid var(--rubric); outline-offset: 3px; }

/* Incipit */
.incipit { background: var(--leaf); border: 1px solid var(--rule); padding: clamp(1.6rem, 5vw, 3rem); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem 2rem; }
.drop { font-family: var(--display); font-size: clamp(4.5rem, 12vw, 7rem); line-height: .8; color: var(--rubric); }
.oe { font-size: clamp(1.25rem, 3vw, 1.6rem); font-style: italic; line-height: 1.5; margin: 0; }
.mne { margin: .9rem 0 0; color: var(--muted); max-width: 52ch; }
.cite { grid-column: 2; font-family: var(--label); letter-spacing: .12em; font-size: .82rem; color: var(--gold); }

/* Collections as quires */
.section-head { display: grid; gap: .5rem; margin-bottom: 1.8rem; }
.section-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 2.8rem); margin: 0; line-height: 1.1; }
.section-head p { margin: 0; color: var(--muted); max-width: 58ch; }
.quires { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.quire { background: var(--bg); padding: 1.6rem 1.4rem; display: grid; gap: .6rem; align-content: start; text-decoration: none; transition: background .2s; }
.quire:hover, .quire:focus-visible { background: var(--leaf); outline: none; }
.quire .sig { font-family: var(--display); font-size: 2.2rem; color: var(--rubric); line-height: 1; }
.quire h3 { margin: 0; font-size: 1.3rem; font-weight: 700; }
.quire p { margin: 0; color: var(--muted); font-size: 1rem; }
.quire .era { font-family: var(--label); letter-spacing: .12em; font-size: .78rem; color: var(--gold); }

/* Channel */
.channel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--gold); border-bottom: 1px solid var(--rule); }
.figures div { padding: 1.2rem .4rem; display: grid; gap: .2rem; }
.figures strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 5vw, 2.6rem); font-variant-numeric: tabular-nums; line-height: 1; }
.figures span { font-family: var(--label); letter-spacing: .12em; font-size: .78rem; color: var(--muted); }

/* Weekly tale */
.tale { background: var(--leaf); border: 1px solid var(--rule); border-top: 3px solid var(--rubric); padding: clamp(1.6rem, 5vw, 3rem); display: grid; gap: 1.2rem; justify-items: start; }
.tale h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 4.5vw, 2.5rem); margin: 0; line-height: 1.1; }
.tale p { margin: 0; max-width: 54ch; color: var(--muted); }
form { display: flex; flex-wrap: wrap; gap: .7rem; width: 100%; max-width: 34rem; }
input[type=email] { flex: 1 1 14rem; min-width: 0; font: inherit; font-size: 1rem; padding: .75rem 1rem; background: var(--bg); color: var(--ink); border: 1px solid var(--rule); }
input[type=email]:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
button { font-family: var(--label); letter-spacing: .12em; font-size: .92rem; padding: .75rem 1.3rem; background: var(--rubric); color: #fff8ee; border: 0; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.note { font-size: .95rem; color: var(--gold); min-height: 1.4em; }

footer { border-top: 1px solid var(--rule); padding-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .95rem; }
footer .mark { font-family: var(--display); color: var(--ink); }

@media (max-width: 760px) {
  .hero, .channel { grid-template-columns: minmax(0, 1fr); }
  .incipit { grid-template-columns: minmax(0, 1fr); }
  .cite { grid-column: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: ink .9s ease-out both; }
  @keyframes ink { from { letter-spacing: .08em; opacity: .4; } to { letter-spacing: -.01em; opacity: 1; } }
}

html{scroll-behavior:smooth}main{display:grid;gap:4.5rem;min-width:0}.hero h1 span,.main-nav .mark span{color:var(--rubric)}.wrap{gap:3.5rem}a{text-underline-offset:.2em}a:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.skip-link{position:absolute;left:1rem;top:-5rem;background:var(--leaf);padding:.7rem;z-index:20}.skip-link:focus{top:1rem}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.text-link,.back-link{color:var(--gold);font-family:var(--label);font-size:1rem;letter-spacing:.04em}.text-link{display:inline-block;margin-top:.75rem}.collection-link{color:var(--gold);font-size:.95rem;margin-top:.7rem}.split-head{display:flex;align-items:end;justify-content:space-between;gap:1rem;flex-wrap:wrap}.video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.7rem}.video-card{background:var(--leaf);border:1px solid var(--rule);min-width:0}.video-card>a{display:block;text-decoration:none;height:100%}.poster{position:relative;aspect-ratio:16/9;overflow:hidden}.poster img{width:100%;height:auto;display:block}.play-mark{position:absolute;bottom:.7rem;right:.7rem;display:grid;place-items:center;width:2.1rem;height:2.1rem;border:1px solid #ece4d099;border-radius:50%;background:#151a24dd;color:#ece4d0;font-size:.85rem}.card-copy{padding:1rem 1.1rem 1.2rem}.card-copy .label{font-size:.72rem;letter-spacing:.09em}.card-copy h3{font-family:var(--body);font-size:1.25rem;line-height:1.3;margin:.5rem 0;overflow-wrap:anywhere}.card-copy p{margin:0;color:var(--muted);font-size:.95rem}.video-card:hover{border-color:var(--gold)}.page-heading h1,.reading h1,.prose h1{font-family:var(--display);font-size:clamp(2.1rem,5vw,3.7rem);font-weight:400;line-height:1.2;margin:.5rem 0 1rem;overflow-wrap:anywhere}.page-heading{margin:0}.search-form{max-width:none;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;gap:1rem;align-items:end;margin-bottom:-3rem}.search-form label{display:block;font-family:var(--label);font-size:.9rem;color:var(--muted);margin-bottom:.35rem}.search-form input,.search-form select{width:100%;min-width:0;background:var(--leaf);color:var(--ink);border:1px solid var(--rule);padding:.8rem;font:inherit;font-size:1rem;height:3.3rem}.search-form button{height:3.3rem}.result-count{margin:0 0 -3rem;color:var(--muted);font-size:.95rem}.pagination{display:flex;justify-content:center;gap:.5rem;flex-wrap:wrap}.pagination a{border:1px solid var(--rule);padding:.4rem .9rem;text-decoration:none}.pagination [aria-current=page]{background:var(--gold);color:var(--bg)}.empty{padding:3rem;background:var(--leaf);border:1px solid var(--rule)}.reading{display:grid;gap:1.5rem}.reading .section-head{margin:0}.reading-description{max-width:60ch;margin:0}.watch-poster{position:relative;border:1px solid var(--rule);line-height:0}.watch-poster img{display:block;width:100%;height:auto}.watch-poster form{position:absolute;inset:0;display:grid;place-items:center;max-width:none;background:linear-gradient(transparent 50%,#151a2499)}.watch-poster button{box-shadow:0 3px 20px #0006;padding:1rem 1.5rem;font-size:1.1rem;line-height:1.2}.player{aspect-ratio:16/9;background:#000}.player iframe{height:100%;width:100%;border:0}.short-player{aspect-ratio:9/16;max-width:420px;width:100%;justify-self:center}.player-note{font-size:.95rem;color:var(--muted);margin:0}.player-note a{color:var(--gold)}.prose{max-width:46rem}.prose p{font-size:1.15rem}footer>div{display:flex;gap:1.2rem;flex-wrap:wrap}.quire:focus-visible{outline:2px solid var(--gold);outline-offset:-3px}
@media(max-width:900px){.video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.wrap{padding-inline:16px;gap:2rem}main{gap:3rem}.hero h1{font-size:clamp(3.4rem,16vw,5.8rem)}.video-grid{grid-template-columns:1fr;gap:1.3rem}.search-form{grid-template-columns:1fr;margin-bottom:-1.5rem}.result-count{margin-bottom:-1.5rem}.search-form button{width:100%}.main-nav ul{gap:1rem}.figures strong{font-size:2rem}.figures span{font-size:.68rem}.watch-poster button{padding:.75rem 1rem}.prose h1{font-size:2.1rem}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
