@font-face {
  font-family: Lora;
  src: url(lora.woff2) format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Lora;
  src: url(lora-italic.woff2) format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Lora;
  src: url(lora-semibold.woff2) format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url(dm-sans.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url(dm-sans-bold.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --cream: #fdfdf5;
  --sky: #9fbaf1;
  --blue: #3d568f;
  --lime: #eaf3b2;
  --ink: #233656;
  --muted: #50617c;
  --canvas: #eef0ec;
  --line: #d4dce6;
  --soft-blue: #e9effa;
  --soft-lime: #f3f6dd;
  --white: #fff;
  --red: #8a393e;
  --serif: Lora, Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .58; cursor: wait; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 20;
  transform: translateY(-180%); padding: 12px; background: var(--white);
}
.skip-link:focus { transform: none; }
.album {
  --gutter: clamp(26px, 5.6vw, 78px);
  width: min(1280px, calc(100% - 66px));
  margin: 28px auto;
  border: 1px solid #d4dbde;
  border-radius: 14px;
  background: var(--cream);
  box-shadow: 0 10px 40px #34405d0a;
}
.topbar {
  min-height: 76px;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font: 600 clamp(17px, 2.1vw, 23px)/1.28 var(--serif);
}
.wordmark img { flex-shrink: 0; }
.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.admin-link:hover { background: var(--soft-blue); }
#view:focus { outline: none; }
.wait { padding: 58px 25px; text-align: center; color: var(--muted); }
.colophon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 21px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.colophon a, .text-link, .back {
  color: var(--blue);
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}
.colophon a:hover, .text-link:hover, .back:hover { text-decoration-thickness: 2px; }

.cover-width { margin-inline: var(--gutter); }
.cover-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 4.4vw, 64px);
  padding-block: clamp(38px, 5.5vw, 68px);
}
.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin-block: 14px 18px;
  color: var(--ink);
  font: 600 clamp(39px, 5.12vw, 73px)/1.13 var(--serif);
  letter-spacing: -.028em;
}
.hero-copy h1 span {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font-size: .86em;
  font-weight: 400;
  font-style: italic;
}
.cover-intro {
  max-width: 31ch;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.62;
}
.cover-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: clamp(16px, 2.5vw, 25px);
  border: 1px solid #dce3ed;
  border-radius: 9px;
  background-color: #f2f5fa;
  background-image: radial-gradient(#b4c3db77 .65px, transparent .8px);
  background-size: 12px 12px;
}
.cover-art.portraits-only { padding-block: 28px 21px; }
.manor-print {
  padding: 6px 6px 0;
  border: 1px solid #d6dce7;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 3px 8px #324c7010;
}
.manor-print img {
  width: 100%;
  aspect-ratio: 2.65;
  object-fit: cover;
  object-position: 50% 55%;
  border-radius: 2px;
}
.manor-print figcaption {
  padding: 7px 3px 8px;
  color: var(--muted);
  font: italic 400 13px/1.25 var(--serif);
  text-align: center;
}
.portrait-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 122px));
  justify-content: center;
  gap: clamp(12px, 2.5vw, 26px);
}
.print {
  display: block;
  position: relative;
  padding: 5px 5px 0;
  border: 1px solid #d5dfec;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 2px 7px #253d6912;
  text-decoration: none;
}
.cover-art .print::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -5px;
  left: 34%;
  width: 32%;
  height: 9px;
  border-radius: 1px;
  background: #9fbaf1d9;
  transform: rotate(-3deg);
}
.cover-art .print.faith::before {
  background: #eaf3b2e8;
  transform: rotate(3deg);
}
a.print:hover { border-color: var(--blue); }
a.print:hover .print-label { text-decoration: underline; text-underline-offset: .2em; }
.portrait-image { aspect-ratio: 1.25; overflow: hidden; border-radius: 2px; }
.portrait-image img { width: 100%; height: 100%; object-fit: cover; }
.print-label {
  padding: 7px 1px;
  color: var(--blue);
  text-align: center;
  font: 600 14px/1.3 var(--serif);
}
.monogram {
  display: grid;
  place-items: center;
  height: 100%;
  background: var(--soft-blue);
  color: var(--blue);
  font: 400 clamp(28px, 4vw, 45px)/1.1 var(--serif);
}
.faith .monogram { background: var(--soft-lime); }
.margin-note {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
  font: italic 400 13px/1.55 var(--serif);
  overflow-wrap: anywhere;
}

.cover-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 4.6vw, 63px);
  border-top: 1px solid var(--line);
  padding-block: 26px 40px;
}
.bookshelf h2 {
  margin-bottom: 13px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.bookshelf ul, .class-summary { margin: 0; padding: 0; list-style: none; }
.bookshelf ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.spine {
  background: var(--book);
  border: 1px solid var(--edge);
  border-radius: 4px 7px 7px 4px;
}
.spine.sky { --book: #dfeafb; --edge: #c3d2ef; --rib: #9fbaf1; }
.spine.cream { --book: #fffffb; --edge: #d5dfe8; --rib: #d6e2f2; }
.spine.lime { --book: #f3f7d6; --edge: #d5dfb3; --rib: #e1eca0; }
.spine.blue { --book: var(--blue); --edge: var(--blue); --rib: #a4bced; color: var(--cream); }
.spine > a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 11px 16px;
  border-left: 7px solid var(--rib);
  border-radius: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.32;
}
.spine > a:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
  text-decoration-thickness: 1px;
}

.windows { display: grid; gap: 12px; }
.widget {
  overflow: hidden;
  border: 1px solid #d4deee;
  border-radius: 8px;
  background: #fff;
}
.widget.diagon { background: #f3f7d9; border-color: #dce5b6; }
.window-head {
  padding: 11px 14px 8px;
  border-bottom: 1px solid #e1e8f2;
  color: var(--blue);
}
.diagon .window-head { border-color: #e0e7bc; }
.window-head h2 { font-size: 13px; line-height: 1.35; font-weight: 700; }
.widget-body { padding: 11px 14px 13px; }
.widget-value { font-size: 14px; line-height: 1.5; color: var(--muted); }
.class-summary li { display: grid; gap: 3px; }
.class-summary li + li { margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line); }
.class-summary strong { font: 600 19px/1.28 var(--serif); overflow-wrap: anywhere; }
.class-summary span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.count { font: 600 clamp(19px, 2.5vw, 29px)/1.3 var(--serif); font-variant-numeric: lining-nums; }
.quiet-count { color: var(--muted); font: 400 14px/1.5 var(--sans); }

.section-head, .tabs, .book-tabs, .card-grid, .chapters, .empty, .profile-card, .text-paper {
  width: calc(100% - 2 * var(--gutter)); margin-inline: auto;
}
.section-head { padding-top: clamp(27px, 5vw, 61px); padding-bottom: clamp(23px, 4vw, 37px); }
.section-head h1 { margin-top: 15px; font: 600 clamp(32px, 5.3vw, 66px)/1.15 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.section-head > p:not(.eyebrow, .index-meta) { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.section-head p.eyebrow, .section-head p.index-meta { margin-top: 23px; }
.section-head p.article-subtitle { font-size: 19px; }
.back, .text-link { font-size: 13px; font-weight: 700; }
.back { display: inline-flex; align-items: center; min-height: 32px; gap: 6px; }
.tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 19px; }
.tab {
  font-weight: 700; text-decoration: none; font-size: 13px; border: 1px solid var(--line); background: #fffef9;
  border-radius: 7px; padding: 8px 12px; color: var(--blue); min-height: 42px; display: inline-flex; align-items: center;
}
.tab:hover { background: var(--soft-blue); }
.tab.selected { background: var(--blue); border-color: var(--blue); color: var(--cream); }
.book-tabs {
  display: flex; flex-wrap: wrap; column-gap: 21px; row-gap: 9px;
  border-top: 1px solid var(--line); padding: 16px 0 22px; margin-top: 34px;
}
.book-tabs a { font-size: 12px; color: var(--blue); text-underline-offset: 3px; text-decoration: none; }
.book-tabs a[aria-current], .book-tabs a:hover { text-decoration: underline; }
.profile-card {
  display: grid; grid-template-columns: minmax(155px, 35%) minmax(0, 1fr); min-height: 325px;
  background: var(--white); border: 1px solid var(--line); border-radius: 13px; overflow: hidden;
}
.profile-card article { align-content: center; padding: clamp(21px, 5vw, 59px); }
.profile-card h2 { font: 600 clamp(26px, 4.2vw, 46px)/1.18 var(--serif); overflow-wrap: anywhere; }
.profile-card p.house { font-weight: 700; color: var(--blue); margin-top: 13px; margin-bottom: 14px; font-size: 13px; }
.profile-art {
  display: grid; place-items: center; position: relative; isolation: isolate;
  background: #eef3fb;
  padding: 28px;
}
.profile-art .print { width: min(75%, 180px); }
.profile-art .portrait-image { aspect-ratio: .86; }

.empty { padding: 38px 23px; border: 1px dashed #bdc9df; background: #fffef9; border-radius: 10px; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 15px; }
.index-card, .chapter-card, .text-paper {
  border: 1px solid var(--line); background: var(--white); border-radius: 12px;
  box-shadow: 0 2px 8px #465c7a0b;
}
.index-card { padding: 20px; }
.index-meta { display: flex; flex-wrap: wrap; gap: 8px 11px; align-items: center; font-size: 12px; color: var(--muted); }
.index-meta span { background: var(--lime); border-radius: 4px; color: var(--ink); padding: 4px 8px; }
.index-card h2 { margin: 11px 0 6px; font: 600 clamp(23px, 3vw, 34px)/1.22 var(--serif); overflow-wrap: anywhere; }
.index-card h2 a, .chapter-card h2 a { text-decoration: none; }
.index-card .text-link { display: inline-block; margin-top: 15px; }
.index-card > p:not(.index-meta), .chapter-card > div > p:not(.eyebrow) { color: var(--muted); line-height: 1.5; }
.effect-card figure, .effect-card .letter-art { margin-bottom: 15px; border-radius: 7px; overflow: hidden; height: 155px; }
.effect-card figure img { width: 100%; height: 100%; object-fit: cover; }
.letter-art { display: grid; place-items: center; background: var(--soft-blue); }
.letter-art span {
  border: 1px solid var(--blue); border-radius: 3px; width: 110px; height: 66px; display: grid; place-items: center;
  background: var(--cream); transform: rotate(-8deg); font: 28px var(--serif); color: var(--blue); box-shadow: 3px 4px 0 #cdd9eb;
}
.chapters { display: grid; gap: 21px; }
.chapter-card { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); overflow: hidden; }
.chapter-card > div { padding: clamp(23px, 4vw, 50px); align-content: center; min-height: 195px; }
.chapter-card > div:only-child { grid-column: 1 / -1; }
.chapter-card figure { margin: 0; min-height: 200px; background: var(--soft-blue); }
.chapter-card img { width: 100%; height: 100%; object-fit: cover; }
.chapter-card h2 { font: 600 clamp(26px, 3.7vw, 43px)/1.15 var(--serif); margin: 10px 0 13px; overflow-wrap: anywhere; }
.chapter-card .button { margin-top: 20px; }
.paper-article .section-head, .text-paper, .chronicle { max-width: 870px; }
.text-paper { padding: clamp(19px, 5vw, 62px); }
.chronicle {
  width: calc(100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-bottom: 17px;
}
.chronicle .article-photo { margin-bottom: clamp(24px, 5vw, 45px); }
.chronicle .article-photo img { aspect-ratio: 2.35; object-position: center 51%; }
.chronicle .reading {
  max-width: 62ch;
  margin-inline: auto;
  font: 400 clamp(16px, 1.7vw, 19px)/1.8 var(--serif);
}
.chronicle .reading p + p { margin-top: 1.2em; }
.article-photo { margin: 0 0 27px; }
.article-photo img { border-radius: 7px; width: 100%; max-height: 420px; object-fit: cover; }
.effect-photo img { max-height: 480px; object-fit: contain; background: var(--soft-blue); }
.reading { font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.reading p + p { margin-top: 1.2em; }
.reading h2, .notes h2 { font: 600 clamp(25px, 3vw, 34px)/1.2 var(--serif); margin-bottom: 15px; }
.notes { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 22px; }
.note-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 244px), 1fr)); gap: 14px; }
.character-note { padding: 19px; background: var(--soft-blue); border-radius: 8px; overflow-wrap: anywhere; }
.character-note.faith { background: var(--soft-lime); }
.character-note h3 { margin-bottom: 6px; color: var(--blue); font: 600 23px/1.23 var(--serif); }
.character-note p { font: italic 400 17px/1.55 var(--serif); }
.character-note p + p { margin-top: .7em; }
.chapter-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 30px; border-top: 1px solid var(--line); padding-top: 17px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--blue); background: var(--blue); color: var(--cream); text-decoration: none;
  border-radius: 7px; padding: 8px 13px; font-size: 13px; font-weight: 700; line-height: 1.35; min-height: 39px;
}
.button:hover { background: #314978; }
.button.light { color: var(--blue); background: var(--soft-blue); border-color: #cfdaf0; }
.button.light:hover { background: #dce7fa; }
.button.plain { color: var(--blue); background: var(--white); border-color: var(--line); }
.button.plain:hover { background: var(--soft-blue); }
.button.danger { color: var(--red); background: var(--white); border-color: #dfc8c3; }
.button.danger:hover { background: #faedec; }
.action-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.reading .action-row { margin-top: 16px; }

.admin #admin-view { padding: clamp(19px, 5vw, 54px); min-height: 490px; }
.login-panel { width: min(100%, 440px); padding: clamp(20px, 5vw, 34px); margin: 25px auto; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.login-panel h1, .admin-intro h1 { font: 600 clamp(32px, 5.1vw, 56px)/1.12 var(--serif); margin-bottom: 10px; }
.login-panel > p, .admin-intro p { line-height: 1.5; color: var(--muted); }
.login-panel form { margin-top: 22px; }
.login-panel .button { margin-top: 13px; }
.admin-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.admin-topnav { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.admin-box {
  border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: clamp(15px, 3.65vw, 31px); min-width: 0;
}
.admin-box h2, .admin-box h3 { font: 600 clamp(24px, 3.3vw, 32px)/1.2 var(--serif); margin-bottom: 12px; overflow-wrap: anywhere; }
.admin-box h3 { font-size: 27px; }
.admin-layout { display: grid; grid-template-columns: minmax(180px, 24%) minmax(0, 1fr); gap: 15px; }
.admin-side {
  display: flex; flex-direction: column; align-self: start; padding: 8px; background: var(--soft-blue);
  border: 1px solid #d9e3f3; border-radius: 11px; gap: 4px;
}
.admin-side a { border: 1px solid transparent; text-decoration: none; padding: 9px 10px; color: var(--blue); border-radius: 5px; font-size: 13px; }
.admin-side a[aria-current] { background: var(--sky); color: var(--ink); font-weight: 700; }
.admin-side a:hover:not([aria-current]) { background: #f5f7ff; }
.admin-head { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.admin-head h2, .admin-head h3 { margin-bottom: 0; }
.admin form { max-width: 920px; }
.fields { display: grid; gap: 13px; margin-block: 13px 18px; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%),1fr)); gap: 12px; }
.field { display: grid; min-width: 0; align-content: start; gap: 5px; }
.field label, .field span.title, .field legend { color: var(--blue); font-size: 12px; font-weight: 700; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  background: #fff; border: 1px solid #bfcbe0; border-radius: 6px; padding: 8px 9px;
  width: 100%; min-width: 0; color: var(--ink); line-height: 1.4; font-size: 14px; min-height: 39px;
}
.field textarea { resize: vertical; min-height: 74px; }
.field textarea[rows="11"] { min-height: 226px; line-height: 1.6; }
.field small, .admin-hint { color: var(--muted); font-size: 12px; line-height: 1.55; }
.admin-hint { margin: 7px 0 12px; }
.asset-field { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 9px; }
.asset-field img { margin-top: 2px; max-height: 147px; max-width: 100%; border-radius: 6px; object-fit: contain; object-position: left; }
.asset-field .action-row input[type="file"] { width: min(100%, 265px); min-width: 0; font-size: 12px; color: var(--muted); }
.status {
  background: var(--soft-blue); color: var(--blue); padding: 10px 12px;
  border: 1px solid #cfdbec; border-radius: 7px; font-size: 13px; margin-block: 12px;
}
.status.error { background: #fef1f0; border-color: #ebccca; color: var(--red); }
.record-list { list-style: none; padding: 0; margin: 19px 0; }
.record-row {
  display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line);
}
.record-row:first-child { border-top: 1px solid var(--line); }
.record-row strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.record-row p { font-size: 12px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.pill { display: inline-block; padding: 4px 7px; border-radius: 5px; color: var(--ink); background: var(--lime); font-size: 11px; }
.pill.warning { background: #fae9d9; color: #743e37; }
.record-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.manage-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.admin-empty { color: var(--muted); font-size: 14px; padding: 13px 0; }
.admin dialog {
  max-height: 85vh; width: min(720px, calc(100% - 25px)); padding: clamp(17px, 4vw, 30px);
  background: var(--cream); color: var(--ink); border: 1px solid var(--line); border-radius: 11px;
  overflow: auto;
}
.admin dialog::backdrop { background: #2036538e; }
.preview { padding-top: 17px; overflow-wrap: anywhere; }
.preview h2 { font: 600 clamp(26px, 4.6vw, 38px)/1.18 var(--serif); margin-bottom: 10px; }
.preview h3 { margin: 14px 0 7px; }
.preview img { max-height: 240px; border-radius: 6px; margin: 13px 0; }
.preview .reading { margin-top: 14px; }

@media (max-width: 930px) {
  .album { --gutter: clamp(21px, 4.8vw, 49px); width: calc(100% - 34px); margin-block: 17px; }
  .cover-hero { gap: 25px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 690px) {
  body.public { background: var(--cream); }
  .public .album { width: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .album { --gutter: clamp(19px, 5.6vw, 36px); }
  .topbar { min-height: 64px; gap: 10px; }
  .wordmark { gap: 8px; font-size: clamp(15px, 4.2vw, 19px); }
  .wordmark img { width: 23px; height: 28px; }
  .admin-link { min-height: 39px; padding: 7px 9px; font-size: 12px; }
  .admin-link svg { width: 12px; height: 15px; }
  .cover-hero { grid-template-columns: 1fr; gap: 28px; padding-block: 35px 28px; }
  .hero-copy h1 { margin-block: 13px 15px; font-size: clamp(32px, 9.6vw, 61px); }
  .hero-copy h1 span { margin-top: 3px; }
  .cover-intro { max-width: 31ch; font-size: 16px; }
  .cover-art { padding: 14px 14px 13px; gap: 14px; }
  .manor-print img { aspect-ratio: 2.5; }
  .portrait-pair { grid-template-columns: repeat(2, minmax(0, 100px)); gap: 19px; }
  .portrait-pair .monogram { font-size: 34px; }
  .cover-bottom { grid-template-columns: 1fr; gap: 24px; padding-block: 22px 30px; }
  .cover-bottom .spine > a { min-height: 52px; padding-inline: 12px; font-size: 14px; }
  .profile-card { grid-template-columns: 1fr; }
  .profile-art { min-height: 205px; padding: 20px; }
  .profile-art .print { width: 130px; }
  .chapter-card { grid-template-columns: 1fr; }
  .chapter-card figure { min-height: 0; aspect-ratio: 2.12; }
  .chapter-card > div { min-height: 0; }
  .book-tabs { gap: 12px 16px; padding-top: 17px; }
  .book-tabs a { font-size: 12px; }
  .admin .topbar .admin-link { font-size: 11px; }
  .admin-intro { align-items: center; }
  .admin-intro p { font-size: 13px; }
  .record-row { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 370px) {
  .bookshelf ul { grid-template-columns: 1fr; }
  .colophon { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
