/* ==========================================================================
   Lexicon theme – "Linen, embroidery and print"
   ========================================================================== */

:root {
	--linen: #F4EEE3;
	--paper: #FBF8F2;
	--ink: #1E1915;
	--ink-2: #2C2520;
	--muted: #5E554C;
	--line: #E0D6C5;
	--line-2: #CFC3B0;
	--red: #9B1C1C;
	--red-d: #7A1414;
	--red-soft: #F3E1DC;
	--gold: #B0843C;
	--dark: #1E1915;
	--display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wrap: 1240px;
	--gut: 40px;
	--radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--linen); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; margin: 0; line-height: 1.1; letter-spacing: .005em; }
p { margin: 0 0 1em; }
button { font: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.center { text-align: center; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000; top: 8px; left: 8px; background: #fff; padding: 12px 18px; border-radius: 8px; color: var(--ink); }

.eyebrow { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--red); margin: 0 0 12px; }
.eyebrow--light { color: #E3B5A8; }
.h2 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.05; }
.lead { font-family: var(--serif); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: #3E362F; }
.more { display: inline-flex; gap: 8px; font-weight: 600; color: var(--red); font-size: 15px; }

/* Buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15.5px; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; text-decoration: none; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-d); color: #fff; }
.btn--light { background: var(--linen); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--ghost { border-color: var(--line-2); background: transparent; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--red-soft); color: var(--red-d); }
a.chip:hover { background: var(--red); color: #fff; }

/* Ornaments */
.band { height: 57px; background: url(../img/band.svg) repeat-x center / auto 57px; }
.band--sm { height: 38px; background-size: auto 38px; }
.orn { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--gold); margin: 0 0 18px; }
.orn::before, .orn::after { content: ""; height: 1px; width: 64px; background: currentColor; opacity: .6; }
.orn img { width: 26px; height: 26px; }

/* ---------- Utility bar & header ---------- */
.util { background: var(--dark); color: #D9CFC0; font-size: 13px; letter-spacing: .02em; }
.util__in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.lang { display: flex; gap: 2px; border: 1px solid #4A3F35; border-radius: 999px; padding: 2px; }
.lang a { padding: 3px 12px; border-radius: 999px; color: #D9CFC0; font-weight: 500; min-width: 44px; text-align: center; }
.lang a:hover { color: #fff; }
.lang a.on { background: var(--linen); color: var(--ink); font-weight: 600; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; min-height: 96px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 14px; flex: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { height: 58px; width: auto; display: block; }
.logo__text { display: flex; flex-direction: column; }
.logo__name { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: .01em; }
.logo__sub { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.primary__list { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.primary__list a { position: relative; display: block; padding: 8px 0; color: var(--ink); }
.primary__list a:hover { color: var(--red); }
.primary__list .current-menu-item > a { color: var(--red); }
.primary__list .current-menu-item > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }

/* ---------- Search forms ---------- */
.sform__box { display: flex; align-items: center; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; }
.sform input[type="search"] { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); outline: none; -webkit-appearance: none; appearance: none; }
.sform input::placeholder { color: #8A7F72; }
.sform input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sform__box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(176, 132, 60, .35); }
.sform--header .sform__box, .sform--compact .sform__box { width: 250px; height: 46px; padding: 0 5px 0 18px; }
.sform--header input, .sform--compact input { font-size: 15px; height: 44px; }
.sform__btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.sform__btn:hover { background: var(--red-d); }
.sform--hero { margin-top: 40px; max-width: 640px; }
.sform--hero .sform__box, .sform--page .sform__box { height: 72px; padding: 0 8px 0 24px; gap: 12px; box-shadow: 0 18px 40px -22px rgba(60, 40, 20, .35); }
.sform--page .sform__box { border: 2px solid var(--ink); height: 68px; max-width: 820px; }
.sform--hero input, .sform--page input { font-size: 18px; height: 64px; }
.sform--page input { font-weight: 500; font-size: 20px; }
.sform__icon { color: #8A7F72; display: flex; }
.sform--hero .btn, .sform--page .btn { min-height: 56px; }
.sform__label { display: block; font-weight: 600; margin-bottom: 8px; }

/* ---------- Hero ---------- */
.hero { background: var(--paper); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 88px; padding-bottom: 104px; }
.hero__title { font-size: clamp(72px, 10.5vw, 150px); line-height: .9; font-weight: 600; letter-spacing: -.01em; margin: 10px 0 0; }
.hero__sub { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(24px, 2.6vw, 36px); color: #4A4038; margin: 16px 0 0; line-height: 1.2; }
.hero__lead { max-width: 560px; margin: 26px 0 0; }
.tries { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.tries__t { background: #F1EADD; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; color: var(--ink); min-height: 34px; display: inline-flex; align-items: center; gap: 4px; }
.tries__t:hover { border-color: var(--red); color: var(--ink); }
.tries__tr { color: var(--red); font-weight: 600; }
.hero__medal { position: relative; display: grid; place-items: center; height: 560px; }
.hero__medal::before { content: ""; position: absolute; width: 540px; height: 540px; border-radius: 50%; background: radial-gradient(circle, #F4EBDD 0%, #F4EBDD 55%, transparent 56%); }
.hero__medal::after { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; border: 1px dashed #D6C6AC; }
.hero__medal img { position: relative; z-index: 1; width: 420px; height: 420px; }
.hero__note { position: absolute; bottom: 2px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); z-index: 1; text-align: center; }

/* ---------- Sections ---------- */
.sec { padding: 104px 0; }
.sec--feat { padding-top: 0; padding-bottom: 120px; }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }

/* Alphabet */
.alpha ul { list-style: none; margin: 0; padding: 0; }
.alpha--grid ul { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 10px; margin-top: 48px; }
.alpha--grid .alpha__l { height: 78px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; font-family: var(--display); font-size: 38px; font-weight: 600; color: var(--ink); transition: background .15s, color .15s, transform .15s; }
.alpha--grid a.alpha__l:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(155, 28, 28, .7); }
.alpha__l.is-empty { color: #B9AE9E; background: transparent; border-style: dashed; cursor: default; }
.alpha--grid .alpha__all { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); border-style: dashed; }
.alpha--strip ul { display: flex; gap: 6px; margin-top: 36px; }
.alpha--strip li { flex: 1; }
.alpha--strip .alpha__l { height: 52px; display: grid; place-items: center; border-radius: 8px; font-family: var(--display); font-size: 26px; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.alpha--strip a.alpha__l:hover { border-color: var(--red); color: var(--red); }
.alpha__l.is-current { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; }
.alpha--mini ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.alpha--mini .alpha__l { height: 44px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-family: var(--display); font-size: 22px; font-weight: 600; }
.alpha--mini a.alpha__l:hover { border-color: var(--red); color: var(--red); }

/* Cards */
.feat { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; }
.feat__stack { display: grid; gap: 28px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 24px 40px -28px rgba(60, 40, 20, .45); transform: translateY(-2px); }
.card__media { display: block; position: relative; overflow: hidden; background: #E9DCC6; }
.card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card--big .card__media { height: 400px; }
.card--h { flex-direction: row; }
.card--h .card__media { width: 42%; flex: none; min-height: 220px; }
.card__body { padding: 28px 30px 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; }
.card__h { font-size: 40px; }
.card--h .card__h { font-size: 32px; }
.card__h a { color: var(--ink); }
.card__h a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__p { font-family: var(--serif); font-size: 17px; line-height: 1.6; color: #4A4038; margin: 0; }
.card .more { margin-top: auto; padding-top: 8px; }

.photo-ph { position: relative; width: 100%; height: 100%; min-height: 100%; background: url(../img/tile.svg) center / 168px repeat, linear-gradient(160deg, #E9DCC6, #D9C5A6); }
.photo-ph--star { background: #EFE7D9 url(../img/star.svg) center / 36px no-repeat; opacity: .9; }

/* Edition call to action */
.edition-cta { background: var(--dark); color: #EDE5D8; overflow: hidden; }
.edition-cta__in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; padding-top: 110px; padding-bottom: 110px; }
.edition-cta__h { font-size: clamp(38px, 4.6vw, 58px); line-height: 1.05; color: #F7F1E7; }
.edition-cta__lead { color: #CFC3B0; margin-top: 22px; max-width: 520px; }
.edition-cta__feats { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 28px 0 38px; padding: 0; list-style: none; font-size: 14.5px; color: #D9CFC0; }
.edition-cta__feats li { display: flex; gap: 10px; align-items: center; }
.edition-cta__feats svg { color: #E3B5A8; }
.book { position: relative; height: 460px; display: grid; place-items: center; }
.book__cover { width: 310px; height: 430px; background: var(--linen); border-radius: 4px 10px 10px 4px; box-shadow: 30px 30px 60px -20px rgba(0, 0, 0, .6), inset 14px 0 0 #E2D6C2; position: relative; transform: rotate(-4deg); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 44px 30px 36px; color: var(--ink); text-align: center; z-index: 1; }
.book__band { position: absolute; left: 14px; right: 0; top: 120px; height: 44px; background: url(../img/band.svg) repeat-x center / auto 44px; }
.book__cover b { font-family: var(--display); font-size: 56px; font-weight: 700; margin-top: 150px; }
.book__cover small { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); max-width: 220px; line-height: 1.5; }
.book__back { position: absolute; width: 310px; height: 430px; background: var(--red-d); border-radius: 4px 10px 10px 4px; transform: rotate(5deg) translate(34px, 10px); opacity: .9; }

/* About */
.sec--about { padding: 120px 0; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.about__box { position: relative; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 44px 48px; }
.about__star { position: absolute; right: 36px; top: 36px; width: 40px; height: 40px; opacity: .85; }
.about__h { font-size: 42px; margin: 4px 60px 14px 0; }
.about__p { font-family: var(--serif); font-size: 18px; line-height: 1.65; color: #4A4038; margin: 0 0 22px; }

/* ---------- Page headers ---------- */
.phead { background: var(--paper); border-bottom: 1px solid var(--line); padding: 36px 0 44px; position: relative; overflow: hidden; }
.phead--plain { background: transparent; border: 0; overflow: visible; }
.phead--letter { padding-bottom: 28px; border-bottom: 0; }
.phead__h { font-size: clamp(40px, 5vw, 66px); margin-top: 14px; }
.phead__h--xl { font-size: clamp(56px, 7vw, 96px); }
.phead__lead { max-width: 720px; margin: 14px 0 0; }
.phead__row { display: flex; align-items: center; gap: 48px; margin-top: 18px; }
.phead__text { flex: 1; min-width: 0; }
.phead__text .phead__h { margin-top: 0; }
.phead__text .lead { margin: 10px 0 0; }
.phead__desc { margin-top: 12px; max-width: 720px; }
.phead__medal { position: absolute; right: 40px; top: 24px; width: 230px; height: 230px; opacity: .16; pointer-events: none; }
.phead__row .phead__medal { position: static; flex: none; }
.phead__search { margin-top: 22px; }
.phead--plain .crumbs { margin-bottom: 22px; }
.phead__split { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.phead__intro { margin-top: 18px; max-width: 760px; }
.bigletter { font-family: var(--display); font-size: clamp(140px, 18vw, 260px); line-height: .8; font-weight: 600; color: var(--red); min-width: 200px; text-align: center; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: #B4A894; }
.crumbs a { color: var(--red); }

/* ---------- Entry listing ---------- */
.listing { padding-top: 64px; padding-bottom: 110px; }
.groups { columns: 2; column-gap: 72px; }
.grp { margin-bottom: 30px; }
.grp__h { display: flex; align-items: center; gap: 14px; font-size: 30px; color: var(--red); margin-bottom: 4px; break-after: avoid; }
.grp__h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grp__list { list-style: none; margin: 0; padding: 0; }
.grp__list li { break-inside: avoid; }
.erow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.erow__t { font-family: var(--display); font-size: 27px; font-weight: 600; line-height: 1.15; }
.erow__r { display: flex; align-items: center; gap: 14px; color: #B4A894; flex: none; }
.erow__c { font-size: 13.5px; color: var(--muted); text-align: right; }
.erow:hover .erow__t { color: var(--red); }
.erow:hover .erow__r { color: var(--red); }
.pag { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.pag .page-numbers { min-width: 48px; height: 48px; padding: 0 16px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 500; }
.pag .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pag .page-numbers.dots { border: 0; background: none; }
.empty { text-align: center; padding: 64px 0; max-width: 760px; margin: 0 auto; }
.empty .alpha ul { justify-content: center; flex-wrap: wrap; }
.empty .alpha--strip li { flex: 0 0 52px; }

/* ---------- Search results ---------- */
.translit { margin: 22px 0 0; display: inline-flex; align-items: center; gap: 14px; background: var(--red-soft); color: #5C1010; border-radius: 12px; padding: 14px 20px; font-size: 15.5px; }
.translit b { font-family: var(--display); font-size: 22px; }
.results { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-top: 56px; padding-bottom: 110px; }
.rlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.r { display: flex; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.r__media { width: 150px; height: 110px; border-radius: 10px; overflow: hidden; flex: none; display: block; }
.r__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r__h { font-size: 36px; margin-top: 10px; }
.r__h mark { background: linear-gradient(transparent 58%, #EBC8BE 58%); color: inherit; padding: 0 2px; }
.r__p { font-family: var(--serif); font-size: 17px; color: #4A4038; margin: 8px 0 10px; line-height: 1.6; }
.r__meta { font-size: 13.5px; color: var(--muted); margin: 0; }
.results__side { display: grid; gap: 24px; align-content: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.panel__h { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin: 0 0 18px; color: #3E362F; }
.panel__p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.map { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; margin: 0; font-size: 15px; }
.map div { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed var(--line); padding-bottom: 8px; gap: 8px; }
.map dt { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); font-size: 13.5px; }
.map dd { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1; }

/* ---------- Single entry ---------- */
.entry-head { background: var(--paper); padding: 36px 0 0; }
.entry-head__t { text-align: center; padding: 40px 0 56px; }
.entry-head__h { font-size: clamp(56px, 8.5vw, 120px); line-height: .95; margin: 18px 0 22px; overflow-wrap: anywhere; }
.entry-head__by { margin: 0; font-size: 15px; color: var(--muted); }
.entry-head__by strong { color: var(--ink); }
.entry-head__photo { padding-bottom: 0; }
.photo-fig { margin: 0; }
.photo-fig__img { position: relative; overflow: hidden; border-radius: 16px; background: #E9DCC6; -webkit-user-select: none; user-select: none; }
.photo-fig__img img { display: block; width: 100%; height: auto; }
.photo-fig--hero .photo-fig__img img { max-height: 640px; object-fit: cover; }
.photo-fig .wm { position: absolute; right: 18px; bottom: 14px; font-size: 12px; letter-spacing: .14em; font-weight: 600; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 3px rgba(0, 0, 0, .4); pointer-events: none; }
.photo-fig figcaption { display: flex; justify-content: space-between; gap: 20px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.photo-fig figcaption .inv { white-space: nowrap; }
.entry-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 80px; padding-top: 72px; padding-bottom: 110px; }
.entry-main { min-width: 0; max-width: 760px; }

.prose { font-family: var(--serif); font-size: 21px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure { margin: 0 0 26px; }
.prose h2 { font-size: 40px; margin: 48px 0 18px; }
.prose h3 { font-size: 30px; margin: 36px 0 14px; }
.prose a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 22px; font-style: italic; color: #4A4038; }
.prose img { border-radius: 10px; }
.prose figcaption { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.entry-content > p:first-of-type::first-letter { float: left; font-family: var(--display); font-size: 118px; line-height: .78; font-weight: 700; color: var(--red); padding: 10px 14px 0 0; }
.page-body .entry-content > p:first-of-type::first-letter { float: none; font: inherit; color: inherit; padding: 0; }
.entry-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 40px 0; }
.photo-fig--small .photo-fig__img { border-radius: 12px; }

.bib { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.bib__h { font-size: 40px; margin-bottom: 22px; }
.bib__list { margin: 0; padding: 0; list-style: none; counter-reset: b; display: grid; gap: 16px; font-family: var(--serif); font-size: 17px; line-height: 1.6; color: #3E362F; }
.bib__list li { counter-increment: b; position: relative; padding-left: 40px; }
.bib__list li::before { content: counter(b); position: absolute; left: 0; top: 0; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--red); line-height: 1.2; }
.bib__list a { color: var(--red); }
.adj { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 56px; }
.adj__a { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 22px 26px; display: block; }
.adj__a small { font-size: 13px; color: var(--muted); }
.adj__a b { display: block; font-family: var(--display); font-size: 30px; font-weight: 600; margin-top: 4px; line-height: 1.1; }
.adj__a--next { text-align: right; grid-column: 2; }
.adj__a:hover { border-color: var(--red); }
.entry-side { display: grid; gap: 22px; align-content: start; }
.dl { margin: 0; display: grid; gap: 16px; }
.dl dt { font-size: 12.5px; color: var(--muted); }
.dl dd { margin: 2px 0 0; font-size: 15.5px; }
.dl dd a { color: var(--red); font-weight: 500; }
.rel { list-style: none; margin: 0; padding: 0; }
.rel a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.15; }
.rel li:last-child a { border-bottom: 0; }
.rel span { color: #B4A894; }
.howcite { font-family: var(--serif); font-size: 15px; line-height: 1.6; background: #F1EADD; border-radius: 10px; padding: 16px 18px; margin: 0 0 16px; overflow-wrap: anywhere; }

/* ---------- Pages ---------- */
.page-body { padding-top: 64px; padding-bottom: 110px; max-width: 900px; }
.photo-fig--page { margin-bottom: 40px; }
.post-item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-item__h { font-size: 36px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; padding-top: 72px; padding-bottom: 110px; }
.contact__info { display: grid; gap: 20px; align-content: start; }
.contact__inst { display: flex; align-items: center; gap: 22px; padding: 8px 4px 10px; }
.logo-mark--contact { height: 84px; }
.contact__inst b { font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1.15; }
.contact__text { font-size: 18px; }
.ccard { display: flex; gap: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px 30px; }
.ccard__ic { width: 56px; height: 56px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }
.ccard__h { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin: 4px 0 10px; font-weight: 600; color: var(--muted); }
.ccard__v { font-family: var(--serif); font-size: 21px; line-height: 1.55; overflow-wrap: anywhere; }
.ccard__v a { color: var(--ink); }
.ccard__v a[href^="mailto"] { color: var(--red); }
.contact__map { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); min-height: 560px; background: #EDE6D8; }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.25) saturate(.85); }
.contact__open { position: absolute; right: 16px; bottom: 16px; min-height: 46px; font-size: 14px; }

/* ---------- PDF viewer ---------- */
.ro-pill { display: inline-flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: 14px; color: #3E362F; margin: 0; }
.lexv { background: #2A231D; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(30, 25, 21, .6); margin: 26px 0 22px; outline: none; }
.lexv:fullscreen { border-radius: 0; margin: 0; display: flex; flex-direction: column; }
.lexv:fullscreen .lexv__stage { height: auto; flex: 1; }
.lexv__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 64px; padding: 8px 14px; background: #1E1915; color: #E8DFD1; font-size: 14px; border-bottom: 1px solid #3A3129; }
.lexv__g { display: flex; align-items: center; gap: 4px; }
.lexv__title { margin-left: 8px; color: #CBBFAE; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.lexv__b { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; color: #E8DFD1; background: transparent; border: 0; cursor: pointer; }
.lexv__b:hover, .lexv__b[aria-pressed="true"] { background: #3A3129; color: #fff; }
.lexv__page { width: 58px; height: 36px; border: 1px solid #4A3F35; border-radius: 6px; background: #2A231D; color: #fff; text-align: center; font: inherit; }
.lexv__of { margin: 0 6px; color: #A99C8A; white-space: nowrap; }
.lexv__zoom { min-width: 56px; text-align: center; }
.lexv__sep { width: 1px; height: 26px; background: #3A3129; margin: 0 8px; }
.lexv__stage { display: flex; height: min(1000px, calc(100vh - 140px)); min-height: 520px; }
.lexv__thumbs { width: 170px; flex: none; background: #241E19; border-right: 1px solid #3A3129; overflow-y: auto; padding: 20px 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lexv.no-thumbs .lexv__thumbs { display: none; }
.lexv__th { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #A99C8A; font-size: 12px; background: none; border: 0; cursor: pointer; padding: 0; }
.lexv__th canvas, .lexv__th .lexv__thph { display: block; width: 100px; background: #F7F2E8; border-radius: 2px; }
.lexv__th.on { color: #fff; }
.lexv__th.on canvas, .lexv__th.on .lexv__thph { outline: 3px solid #C24A3A; outline-offset: 4px; }
.lexv__pages { position: relative; flex: 1; overflow: auto; padding: 36px 20px; display: flex; flex-direction: column; align-items: center; gap: 24px; -webkit-user-select: none; user-select: none; }
.lexv__pg { position: relative; background: #FCFAF5; box-shadow: 0 20px 40px rgba(0, 0, 0, .45); flex: none; }
.lexv__pg canvas { display: block; width: 100%; height: 100%; }
.lexv__pg::after { content: attr(data-wm); position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--sans); font-weight: 600; letter-spacing: .14em; font-size: clamp(18px, 3vw, 44px); color: rgba(155, 28, 28, .07); transform: rotate(-32deg); pointer-events: none; white-space: nowrap; }
.lexv__msg { color: #CBBFAE; margin: auto; text-align: center; }
.note { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); margin: 0 0 100px; }
.empty--edition { padding: 80px 0 120px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #CBBFAE; }
.site-footer .band { background-color: var(--linen); opacity: .92; }
.site-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding: 72px 0 56px; }
.site-footer__logo { display: flex; align-items: center; gap: 14px; }
.logo-mark--footer { height: 60px; }
.site-footer__name { font-family: var(--display); font-size: 36px; color: #F4EEE3; font-weight: 700; line-height: 1; }
.site-footer__inst { margin: 16px 0 0; max-width: 300px; line-height: 1.6; }
.site-footer__h { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #F4EEE3; margin: 0 0 18px; font-weight: 600; }
.site-footer__list, .site-footer ul.menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.site-footer a { color: #CBBFAE; }
.site-footer a:hover { color: #fff; }
.site-footer__hint { font-size: 13px; opacity: .8; }
.fcontact { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; font-size: 14.5px; line-height: 1.55; }
.fcontact li { display: flex; gap: 12px; align-items: flex-start; }
.fcontact svg { flex: none; margin-top: 3px; color: #E3B5A8; }
.site-footer__bottom { border-top: 1px solid #3A3129; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 0 30px; font-size: 13px; color: #A99C8A; }
.lex-admin-bar-notice { background: #fff4e5; color: #6b3e00; padding: 10px 20px; text-align: center; font-size: 14px; }
.lex-admin-bar-notice a { color: var(--red); font-weight: 600; text-decoration: underline; }

/* WordPress core classes */
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text, .wp-element-caption { font-size: 14px; color: var(--muted); }
.lex-protect img { -webkit-user-drag: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.site-header__in { min-height: 80px; }
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(30, 25, 21, .4); padding: 12px var(--gut) 24px; flex-direction: column; align-items: stretch; gap: 16px; }
	.site-nav.is-open { display: flex; }
	.primary__list { flex-direction: column; gap: 0; white-space: normal; font-size: 18px; }
	.primary__list a { padding: 14px 0; border-bottom: 1px solid var(--line); }
	.primary__list .current-menu-item > a::after { display: none; }
	.sform--header .sform__box { width: 100%; }
	.alpha--grid ul { grid-template-columns: repeat(11, minmax(0, 1fr)); }
	.alpha--strip ul { flex-wrap: wrap; }
	.alpha--strip li { flex: 0 0 calc((100% - 15 * 6px) / 16); }
}

@media (max-width: 980px) {
	:root { --gut: 24px; }
	.hero__in { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; }
	.hero__medal { display: none; }
	.feat { grid-template-columns: 1fr; }
	.edition-cta__in { grid-template-columns: 1fr; gap: 40px; padding-top: 72px; padding-bottom: 80px; }
	.book { height: 380px; }
	.book__cover, .book__back { width: 250px; height: 350px; }
	.book__cover b { font-size: 44px; margin-top: 110px; }
	.book__band { top: 96px; }
	.about { grid-template-columns: 1fr; }
	.results, .entry-body, .contact { grid-template-columns: 1fr; gap: 40px; }
	.entry-main { max-width: none; }
	.groups { columns: 1; }
	.site-footer__cols { grid-template-columns: 1fr 1fr; }
	.phead__row .phead__medal, .phead__medal { display: none; }
	.contact__map { min-height: 380px; }
	.sec { padding: 72px 0; }
	.sec--feat { padding-bottom: 80px; }
	.sec--about { padding: 80px 0; }
}

@media (max-width: 680px) {
	:root { --gut: 16px; }
	body { font-size: 15.5px; }
	.util__inst { font-size: 12px; line-height: 1.35; padding: 6px 0; }
	.logo-mark { height: 46px; }
	.logo__name { font-size: 27px; }
	.logo__sub { display: none; }
	.band { height: 40px; background-size: auto 40px; }
	.band--sm { height: 30px; background-size: auto 30px; }
	.sform--hero .sform__box, .sform--page .sform__box { height: 60px; padding: 0 6px 0 16px; }
	.sform--hero input, .sform--page input { font-size: 16px; height: 56px; }
	.sform--hero .btn, .sform--page .btn { min-height: 48px; padding: 0 18px; }
	.sform--hero .sform__icon, .sform--page .sform__icon { display: none; }
	.alpha--grid ul { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 32px; }
	.alpha--grid .alpha__l { height: 52px; font-size: 26px; border-radius: 8px; }
	.alpha--grid .alpha__all { font-size: 11px; }
	.alpha--strip ul { gap: 5px; margin-top: 24px; }
	.alpha--strip li { flex: 0 0 calc((100% - 7 * 5px) / 8); }
	.alpha--strip .alpha__l { height: 44px; font-size: 22px; }
	.card--h { flex-direction: column; }
	.card--h .card__media { width: 100%; min-height: 0; height: 200px; }
	.card--big .card__media { height: 240px; }
	.card__body { padding: 22px; }
	.card__h { font-size: 32px; }
	.about__box { padding: 32px 24px; }
	.about__h { font-size: 32px; }
	.bigletter { min-width: 0; font-size: 120px; }
	.phead__row { gap: 20px; }
	.erow__t { font-size: 24px; }
	.erow__c { display: none; }
	.r { gap: 16px; }
	.r__media { width: 84px; height: 84px; }
	.r__h { font-size: 28px; }
	.r__p { font-size: 15.5px; }
	.translit { font-size: 14px; padding: 12px 14px; }
	.prose { font-size: 18.5px; }
	.entry-content > p:first-of-type::first-letter { font-size: 84px; padding-top: 6px; }
	.entry-head__t { padding: 28px 0 36px; }
	.photo-fig figcaption { flex-direction: column; gap: 4px; }
	.entry-gallery { grid-template-columns: 1fr; }
	.adj { grid-template-columns: 1fr; }
	.adj__a--next { grid-column: auto; }
	.ccard { padding: 22px; gap: 16px; }
	.ccard__ic { width: 46px; height: 46px; }
	.ccard__v { font-size: 18px; }
	.contact__inst b { font-size: 24px; }
	.logo-mark--contact { height: 64px; }
	.site-footer__cols { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 40px; }
	.lexv__title, .lexv__sep, .lexv [data-act="fit"] { display: none; }
	.lexv__thumbs { display: none; }
	.lexv__pages { padding: 16px 8px; }
	.lexv__stage { height: calc(100vh - 160px); }
	.lexv__bar { justify-content: center; }
	.ro-pill { font-size: 13px; }
}

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

@media print {
	.util, .site-header, .site-footer, .band, .lexv, .entry-side, .adj, .sform, .alpha { display: none !important; }
	body { background: #fff; }
	.entry-body { display: block; }
}

/* ---------- Cross-references, citations, bibliography ---------- */
.prose a.xref { color: var(--red); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: rgba(155, 28, 28, .45); }
.prose a.xref:hover { text-decoration-color: var(--red); background: var(--red-soft); border-radius: 3px; }
.xref--missing { text-decoration: none; }
.xref--editor { text-decoration: underline dotted #b26a00; text-underline-offset: 4px; }
.see-box { font-family: var(--serif); font-size: 21px; padding: 22px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.see-box a { color: var(--red); font-family: var(--display); font-weight: 600; font-size: 28px; }
.entry-sign { text-align: right; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); margin: 8px 0 0; }
.cites { font-family: var(--serif); font-size: 17px; line-height: 2; color: #3E362F; margin: 0; }
.cite { position: relative; display: inline; }
.cite__btn { font: inherit; color: var(--red); background: none; border: 0; padding: 2px 3px; margin: 0 -3px; border-radius: 4px; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 4px; }
.cite__btn:hover, .cite__btn[aria-expanded="true"] { background: var(--red-soft); text-decoration-style: solid; }
.cite__pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; width: min(440px, 86vw); background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 24px 50px -20px rgba(30, 25, 21, .45); padding: 18px 20px; font-size: 16px; line-height: 1.6; color: var(--ink); display: block; }
.cite__pop[hidden] { display: none; }
.cite__pop::before { content: ""; position: absolute; top: -7px; left: 18px; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); transform: rotate(45deg); }
.cite__pop.is-right { left: auto; right: 0; }
.cite__pop.is-right::before { left: auto; right: 18px; }
.cite__full { display: block; }
.cite__all { display: inline-block; margin-top: 10px; font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--red); }
.bib__hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.erow__see { font-family: var(--serif); font-size: 16px; font-weight: 400; font-style: italic; color: var(--muted); }
.page-body--wide { max-width: var(--wrap); }
.srcnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 40px; }
.srcnav a { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-family: var(--display); font-size: 21px; font-weight: 600; }
.srcgrp { margin-bottom: 36px; scroll-margin-top: 20px; }
.srclist { list-style: none; margin: 0; padding: 0; font-family: var(--serif); font-size: 17.5px; line-height: 1.6; }
.srclist li { padding: 12px 0 12px 28px; text-indent: -28px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.srclist li:target { background: var(--red-soft); border-radius: 8px; }
@media (max-width: 680px) { .cite__pop { position: fixed; left: 12px !important; right: 12px !important; top: auto; bottom: 12px; width: auto; } .cite__pop::before { display: none; } }

/* ---------- Justified text (all body text on every page and entry) ---------- */
.prose p, .prose li, .prose blockquote,
.lead, .card__p, .about__p, .r__p, .edition-cta__lead, .phead__lead, .phead__desc,
.contact__text, .bib__list li, .srclist li, .cites, .see-box, .howcite, .panel__p {
	text-align: justify;
	-webkit-hyphens: auto;
	hyphens: auto;
	hyphenate-limit-chars: 7 3 3;
}
/* Short centred section intros stay centred. */
.center > .lead { text-align: center; hyphens: manual; }

/* Cross-reference to an entry that is not published yet: a link to a search. */
.prose a.xref--pending { text-decoration-style: dotted; }
.prose a.xref--editor { text-decoration-color: #b26a00; }
