/* ==========================================================================
   Book Club IIT Kanpur — stylesheet
   Paper & ink by day, lamplight by night.
   ========================================================================== */

:root {
  --paper: #f7f0e1;
  --paper-2: #fbf7ee;
  --paper-3: #efe4cc;
  --ink: #2b2019;
  --ink-soft: #5e4b3c;
  --ink-faint: #8a7663;
  --oxblood: #7d1f2c;
  --oxblood-2: #9b2c3b;
  --forest: #2f4b3c;
  --gold: #a9812f;
  --rule: #d9c9a6;
  --rule-soft: #e7dbc0;
  --shadow: 43 32 25;
  --on-accent: #fbf4e6;
  --grain-opacity: .35;

  --f-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --f-body: "EB Garamond", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --radius: 4px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #17110d;
  --paper-2: #211913;
  --paper-3: #2a2018;
  --ink: #eee2cb;
  --ink-soft: #c4b398;
  --ink-faint: #94826b;
  --oxblood: #e0848d;
  --oxblood-2: #eb9aa2;
  --forest: #9cc0a8;
  --gold: #dcb767;
  --rule: #463729;
  --rule-soft: #33281e;
  --shadow: 0 0 0;
  --on-accent: #1b130e;
  --grain-opacity: .18;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.1875rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] body::before { mix-blend-mode: screen; }

main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--oxblood); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--oxblood-2); }
::selection { background: var(--oxblood); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.005em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 500; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
em, i { font-style: italic; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 12px; top: 12px; }

.smallcaps, .eyebrow {
  font-variant: all-small-caps;
  letter-spacing: .14em;
  font-weight: 500;
}
.eyebrow { color: var(--oxblood); font-size: 1.05rem; display: inline-flex; align-items: center; gap: .7em; margin-bottom: .6rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ornaments */
.fleuron { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--gold); margin: 2.4rem auto; max-width: 420px; font-size: 1.4rem; line-height: 1; }
.fleuron::before, .fleuron::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--rule) 30%, var(--rule)); }
.fleuron::after { background: linear-gradient(270deg, transparent, var(--rule) 30%, var(--rule)); }

/* ---------- Header ---------- */
.topline {
  background: var(--ink);
  color: var(--paper);
  font-size: .95rem;
}
:root[data-theme="dark"] .topline { background: #0e0a08; color: var(--ink-soft); }
.topline .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topline span { font-variant: all-small-caps; letter-spacing: .14em; opacity: .85; }
.topline .hours { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.topline .sep { font-style: normal; opacity: .6; }
@media (max-width: 520px) { .topline .sep { display: none; } .topline .hours { column-gap: 14px; row-gap: 0; } }
.topline .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; }
.topline .dot.open { background: #6fbf73; box-shadow: 0 0 0 3px rgba(111,191,115,.25); }
@media (max-width: 720px) { .topline .council { display: none; } .topline .wrap { justify-content: center; padding-top: 6px; padding-bottom: 6px; } }

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--rule-soft); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { width: 52px; height: 52px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--rule); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.brand:hover .brand-logo { transform: rotate(-8deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--f-display); font-size: 1.75rem; font-weight: 600; letter-spacing: .01em; }
.brand-name em { color: var(--oxblood); font-weight: 500; }
.brand-sub { font-variant: all-small-caps; letter-spacing: .2em; font-size: .95rem; color: var(--ink-soft); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a {
  position: relative;
  display: block;
  padding: 8px 11px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.12rem;
  font-variant: all-small-caps;
  letter-spacing: .1em;
  font-weight: 500;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 4px;
  height: 1px;
  background: var(--oxblood);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav a:hover { color: var(--oxblood); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--oxblood); }

.icon-btn {
  appearance: none;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { border-color: var(--gold); background: var(--paper-3); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-grid; }
  .nav ul {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 8px 16px 18px;
    box-shadow: 0 18px 30px -18px rgb(var(--shadow) / .35);
    display: none;
  }
  .nav.open ul { display: flex; }
  .nav ul a { padding: 13px 4px; font-size: 1.3rem; border-bottom: 1px solid var(--rule-soft); }
  .nav ul li:last-child a { border-bottom: 0; }
  .nav a::after { display: none; }
}
@media (max-width: 420px) {
  .brand-logo { width: 44px; height: 44px; }
  .brand-name { font-size: 1.4rem; }
  .brand-sub { font-size: .85rem; letter-spacing: .14em; }
}

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .7em 1.4em;
  border: 1px solid var(--oxblood);
  background: var(--oxblood);
  color: var(--on-accent);
  font-family: var(--f-body);
  font-size: 1.05rem;
  font-variant: all-small-caps;
  letter-spacing: .14em;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
  line-height: 1.2;
}
.btn:hover { background: var(--oxblood-2); border-color: var(--oxblood-2); color: var(--on-accent); transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgb(var(--shadow) / .5); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink-faint); }
.btn.ghost:hover { border-color: var(--oxblood); color: var(--oxblood); background: transparent; }
.btn svg { width: 1.05em; height: 1.05em; }

.field { margin-bottom: 1.25rem; }
.field label, .label {
  display: block;
  font-variant: all-small-caps;
  letter-spacing: .12em;
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin-bottom: .3rem;
}
.req { color: var(--oxblood); }
input[type="text"], input[type="email"], input[type="search"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-faint);
  border-radius: 0;
  padding: .45em .1em;
  transition: border-color .2s, background .2s;
}
textarea { border: 1px solid var(--ink-faint); padding: .6em .7em; resize: vertical; min-height: 7.5em; background-image: repeating-linear-gradient(transparent, transparent 1.99em, var(--rule-soft) 1.99em, var(--rule-soft) 2em); background-attachment: local; line-height: 2em; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--oxblood); background-color: color-mix(in srgb, var(--paper-3) 45%, transparent); }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23977c62' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .3em center; padding-right: 1.6em; cursor: pointer; }
select option { background: var(--paper-2); color: var(--ink); }
.check { display: flex; gap: .7em; align-items: flex-start; font-size: 1.1rem; cursor: pointer; margin: .5rem 0 1.6rem; }
.check input { width: 1.15em; height: 1.15em; margin-top: .3em; accent-color: var(--oxblood); flex: none; }

/* ---------- Page heading ---------- */
.page-head { padding: clamp(48px, 8vw, 92px) 0 clamp(28px, 4vw, 44px); text-align: center; position: relative; }
.page-head .eyebrow { justify-content: center; }
.page-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.page-head h1 { margin-bottom: .2em; }
.page-head p { max-width: 640px; margin: 0 auto; color: var(--ink-soft); font-size: 1.25rem; font-style: italic; }

/* ---------- Layout helpers ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.tight { padding-top: 0; }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.with-aside aside { display: grid; gap: 26px; position: sticky; top: 110px; }
@media (max-width: 900px) { .with-aside { grid-template-columns: 1fr; } .with-aside aside { position: static; } }

.prose { max-width: 68ch; }
.prose p { hyphens: auto; }
.dropcap > p:first-of-type::first-letter {
  float: left;
  font-family: var(--f-display);
  font-size: 4.6em;
  line-height: .78;
  font-weight: 600;
  padding: .06em .1em 0 0;
  color: var(--oxblood);
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  position: relative;
  box-shadow: 0 1px 0 var(--rule-soft), 0 14px 30px -24px rgb(var(--shadow) / .45);
}
.card h3 { font-size: 1.5rem; margin-bottom: .4em; }
.card .card-title { display: flex; align-items: center; gap: 10px; }
.card .card-title svg { width: 20px; height: 20px; color: var(--gold); flex: none; }

/* index-card timings */
.index-card { padding-top: 16px; }
.index-card h3 { margin: 0 0 4px; padding-bottom: 10px; border-bottom: 1.5px solid var(--oxblood); font-size: 1.45rem; display: flex; align-items: center; gap: 10px; }
.index-card .note, .timings li { border-bottom: 1px solid color-mix(in srgb, #5a8bb0 32%, transparent); }
.index-card .note:last-child { border-bottom: 0; }
.timings { margin: 0; padding: 0; list-style: none; }
.timings li { display: flex; justify-content: space-between; gap: 12px; line-height: 32px; font-size: 1.12rem; }
.timings li span:first-child { color: var(--ink-soft); }
.timings li strong { font-weight: 500; font-variant-numeric: lining-nums; }
.index-card .note { line-height: 32px; margin: 0; font-style: italic; color: var(--ink-soft); font-size: 1.05rem; }
.stamp {
  position: absolute;
  right: 14px; top: -12px;
  background: var(--paper-2);
  border: 2px solid var(--oxblood);
  color: var(--oxblood);
  border-radius: 4px;
  padding: 1px 8px;
  font-variant: all-small-caps;
  letter-spacing: .12em;
  font-size: .9rem;
  font-weight: 600;
  transform: rotate(6deg);
  opacity: .8;
  line-height: 1.5;
}

.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.05rem;
  transition: border-color .2s, color .2s, background .2s;
}
.socials a:hover { border-color: var(--oxblood); color: var(--oxblood); background: var(--paper-3); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Home: hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: end; }
.hero h1 { font-size: clamp(2.9rem, 6.4vw, 5.4rem); line-height: 1; margin-bottom: .3em; }
.hero h1 em { color: var(--oxblood); font-weight: 500; display: block; }
.hero .lede { font-size: clamp(1.2rem, 1.8vw, 1.4rem); color: var(--ink-soft); max-width: 34em; margin-bottom: 1.8rem; }
.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 540px;
  border: 1px solid var(--ink-faint);
  background: var(--paper-2);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 12px 28px -20px rgb(var(--shadow) / .6);
  transition: border-color .2s;
}
.hero-search:focus-within { border-color: var(--oxblood); }
.hero-search svg { width: 20px; height: 20px; color: var(--ink-faint); flex: none; }
.hero-search input { border: 0; padding: .35em 0; background: transparent; min-width: 0; }
.hero-search input:focus { background: transparent; }
.hero-search .btn { border-radius: 999px; padding: .6em 1.2em; flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 1.3rem; font-size: 1.08rem; }
.hero-actions a { color: var(--ink-soft); }
.hero-actions a:hover { color: var(--oxblood); }

/* the bookshelf: one big shelf on desktop, two smaller shelves on phones */
.shelf-wrap { position: relative; padding-top: 30px; }
.shelf-set.sm { display: none; }
.shelf-unit { width: 100%; max-width: 600px; margin: 0 auto; }
.shelf-set.sm .shelf-unit { max-width: 330px; }
.shelf-unit + .shelf-unit { margin-top: 26px; }
.shelf {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 0 14px;
  height: 330px;
  position: relative;
  z-index: 1;
}
.spine {
  --h: 86%;
  --w: 46px;
  --c: #7d1f2c;
  flex: 0 1 var(--w);
  min-width: 30px;
  height: var(--h);
  background:
    linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.08) 18%, rgba(255,255,255,0) 40%, rgba(0,0,0,.08) 80%, rgba(0,0,0,.3)),
    var(--c);
  border-radius: 3px 3px 1px 1px;
  position: relative;
  color: #f4e9d2;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.spine::before, .spine::after {
  content: "";
  position: absolute;
  left: 5px; right: 5px;
  height: 2px;
  border-top: 1px solid rgba(232, 200, 130, .7);
  border-bottom: 1px solid rgba(232, 200, 130, .7);
}
.spine::before { top: 14px; }
.spine::after { bottom: 14px; }
.spine span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--f-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
  overflow: hidden;
  max-height: calc(100% - 44px);
  text-shadow: 0 1px 0 rgba(0,0,0,.3);
  color: #f1e2c0;
}
.spine:hover, .spine:focus-visible { transform: translateY(-14px); color: #fff; box-shadow: 0 14px 18px -10px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.15); }
/* last book leans left against its neighbour, resting on its bottom-left corner */
.spine.lean { transform-origin: bottom left; transform: rotate(-8deg); margin-left: calc(var(--lean, 34px)); }
.spine.lean:hover, .spine.lean:focus-visible { transform: rotate(-8deg) translateY(-10px); }
.shelf-plank {
  height: 22px;
  background: linear-gradient(#8a5a36, #6b4226 60%, #4e2f1a);
  border-radius: 2px;
  box-shadow: 0 16px 24px -12px rgba(40, 22, 10, .55);
  position: relative;
  z-index: 2;
}
.shelf-plank::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255, 220, 170, .25); }
.shelf-caption { text-align: center; color: var(--ink-faint); font-style: italic; font-size: 1.02rem; margin-top: 16px; }
.hero-grid > * { min-width: 0; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .shelf-wrap { padding-top: 6px; }
  .shelf { height: 280px; }
}
@media (max-width: 700px) {
  .shelf-set.lg { display: none; }
  .shelf-set.sm { display: block; }
  .shelf { height: 190px; padding: 0 10px; }
  .spine { min-width: 0; }
  .spine::before { top: 9px; } .spine::after { bottom: 9px; }
  .spine span { font-size: .95rem; max-height: calc(100% - 30px); }
  .spine:hover, .spine:focus-visible { transform: translateY(-8px); }
  .spine.lean:hover, .spine.lean:focus-visible { transform: rotate(-8deg) translateY(-6px); }
  .shelf-plank { height: 16px; }
}

/* stats band */
.band { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px; text-align: center; border-left: 1px solid var(--rule-soft); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 500; line-height: 1; color: var(--oxblood); font-variant-numeric: lining-nums; }
.stat span { font-variant: all-small-caps; letter-spacing: .14em; color: var(--ink-soft); font-size: 1.02rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--rule-soft); } }

/* about */
.chapter-num { font-family: var(--f-display); font-style: italic; color: var(--gold); font-size: 1.3rem; display: block; margin-bottom: .3rem; }
.reasons { list-style: none; padding: 0; margin: 1.6rem 0 1.8rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.reasons li { padding: 9px 0 9px 30px; border-bottom: 1px dotted var(--rule); position: relative; font-style: italic; color: var(--ink-soft); }
.reasons li::before { content: "❧"; position: absolute; left: 0; color: var(--gold); font-style: normal; }
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr; } }
.genres-inline { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0 1.4rem; padding: 0; list-style: none; }
.genres-inline a {
  display: inline-block;
  padding: 3px 13px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.02rem;
  background: var(--paper-2);
  transition: all .2s;
}
.genres-inline a:hover { border-color: var(--oxblood); color: var(--oxblood); }
.signoff { font-family: var(--f-display); font-style: italic; font-size: 1.7rem; color: var(--oxblood); }

/* feature: magazine teaser */
.feature {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  padding: clamp(28px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
:root[data-theme="dark"] .feature { background: #261c15; color: var(--ink); }
.feature h2 { color: inherit; }
.feature p { color: inherit; opacity: .82; }
.feature .eyebrow { color: #dcb767; }
.feature .btn { background: #dcb767; border-color: #dcb767; color: #22170f; }
.feature .btn:hover { background: #e8c67e; border-color: #e8c67e; color: #22170f; }
.magazine-cover { display: block; max-width: 270px; width: 100%; margin: 0 auto; transform: rotate(-3deg); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.magazine-cover img { width: 100%; height: auto; border-radius: 2px 6px 6px 2px; box-shadow: inset 6px 0 0 rgba(0,0,0,.25), 18px 22px 40px -18px rgba(0,0,0,.7); }
.magazine-cover:hover { transform: rotate(-1deg) translateY(-6px); }
@media (max-width: 780px) { .feature { grid-template-columns: 1fr; } .magazine-cover { max-width: 220px; } }

/* ---------- Blog cards ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.link-arrow { text-decoration: none; font-variant: all-small-caps; letter-spacing: .12em; font-size: 1.1rem; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 40px 30px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.post-card:hover { color: var(--ink); }
.post-cover {
  aspect-ratio: 2 / 3;
  background: var(--paper-3);
  border-radius: 2px 6px 6px 2px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 2px rgb(var(--shadow) / .2), 0 20px 30px -22px rgb(var(--shadow) / .8);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
  margin-bottom: 18px;
}
.post-cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 10px; background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(255,255,255,.12) 60%, transparent); z-index: 1; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card:hover .post-cover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 1px 2px rgb(var(--shadow) / .2), 0 28px 34px -22px rgb(var(--shadow) / .9); }
.post-meta { font-variant: all-small-caps; letter-spacing: .1em; color: var(--ink-faint); font-size: 1rem; }
.post-card h3 { font-size: 1.55rem; margin: .15em 0 .2em; transition: color .2s; }
.post-card:hover h3 { color: var(--oxblood); }
.post-card .by { color: var(--ink-soft); font-style: italic; font-size: 1.05rem; }

.posts.featured { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.lead-post {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 54px;
  margin-bottom: 54px;
  border-bottom: 1px solid var(--rule);
}
.lead-post:hover { color: var(--ink); }
.lead-post:hover h2 { color: var(--oxblood); }
.lead-post .post-cover { margin: 0; }
.lead-post h2 { transition: color .2s; }
.lead-post .excerpt { font-size: 1.25rem; color: var(--ink-soft); }
@media (max-width: 680px) { .lead-post { grid-template-columns: 1fr; } .lead-post .post-cover { max-width: 220px; } }

/* ---------- Article ---------- */
.article-head { text-align: center; padding: clamp(40px, 7vw, 80px) 0 0; }
.article-head .post-cover { width: 190px; margin: 0 auto 30px; transform: rotate(-2deg); }
.article-head h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); max-width: 18ch; margin: 0 auto .3em; }
.article-head .by { font-style: italic; color: var(--ink-soft); font-size: 1.25rem; }
.article-head .by strong { font-style: normal; font-weight: 500; color: var(--ink); }
.article { max-width: 680px; margin: 0 auto; font-size: 1.28rem; line-height: 1.75; }
.article p { hyphens: auto; }
.article blockquote, .article .pull {
  margin: 2rem 0;
  padding: 0 0 0 26px;
  border-left: 2px solid var(--gold);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.article .pull { border: 0; padding: 0; text-align: center; font-size: 1.75rem; color: var(--oxblood); margin: 2.4rem auto; max-width: 30ch; }
.article-foot { max-width: 680px; margin: 0 auto; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--rule); padding-top: 26px; margin-top: 40px; }
.pager a { text-decoration: none; color: var(--ink); display: block; padding: 6px 0; }
.pager a:hover h4 { color: var(--oxblood); }
.pager small { display: block; font-variant: all-small-caps; letter-spacing: .14em; color: var(--ink-faint); font-size: .98rem; }
.pager h4 { margin: .1em 0 0; transition: color .2s; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; text-align: left; } }

/* ---------- Rules ---------- */
.rules-section { margin-bottom: 3rem; }
.rules-section h2 { font-size: 2.1rem; display: flex; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 1.2rem; }
.rules-section h2 .num { font-style: italic; color: var(--gold); font-size: 1.6rem; min-width: 1.6em; }
.rules-list { counter-reset: r; list-style: none; padding: 0; margin: 0; }
.rules-list li { counter-increment: r; position: relative; padding: 0 0 1.1rem 3.2rem; }
.rules-list li::before {
  content: counter(r, lower-roman) ".";
  position: absolute; left: 0; top: 0;
  width: 2.4rem;
  text-align: right;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  color: var(--oxblood);
  font-size: 1.2rem;
}
.fine-table { width: 100%; border-collapse: collapse; margin: .8rem 0 0; font-size: 1.08rem; }
.fine-table th, .fine-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule-soft); }
.fine-table th { font-weight: 500; font-variant: all-small-caps; letter-spacing: .12em; color: var(--ink-soft); border-bottom-color: var(--rule); }
.fine-table td:last-child { font-variant-numeric: lining-nums; white-space: nowrap; color: var(--oxblood); font-weight: 500; }
@media (max-width: 560px) {
  .rules-list li { padding-left: 2.3rem; }
  .rules-list li::before { width: 1.8rem; }
  .fine-table th, .fine-table td { padding: 8px 6px; }
  .fine-table td:last-child { white-space: normal; }
  .rules-section h2 { font-size: 1.75rem; gap: 10px; }
}
.notice {
  border: 1px solid var(--oxblood);
  border-left-width: 4px;
  background: color-mix(in srgb, var(--oxblood) 6%, var(--paper-2));
  padding: 20px 24px;
  border-radius: var(--radius);
  font-size: 1.12rem;
}
.notice strong { color: var(--oxblood); font-variant: all-small-caps; letter-spacing: .12em; display: block; font-size: 1.1rem; }

/* ---------- Catalogue ---------- */
.search-panel {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 22px clamp(18px, 3vw, 30px) 24px;
  box-shadow: 0 18px 36px -30px rgb(var(--shadow) / .6);
  position: relative;
}
.search-row { display: grid; grid-template-columns: 1fr 170px 170px; gap: 18px; align-items: end; }
.search-row .field { margin: 0; }
.search-input { position: relative; }
.search-input svg { position: absolute; left: 2px; bottom: 12px; width: 20px; height: 20px; color: var(--ink-faint); }
.search-input input { padding-left: 32px; font-size: 1.3rem; }
@media (max-width: 760px) { .search-row { grid-template-columns: 1fr 1fr; } .search-row .field:first-child { grid-column: 1 / -1; } }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.chip {
  appearance: none;
  font: inherit;
  font-size: 1rem;
  padding: 3px 13px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s;
}
.chip:hover { border-color: var(--ink-faint); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--oxblood); border-color: var(--oxblood); color: var(--on-accent); }
.chips-toggle { appearance: none; border: 0; background: none; font: inherit; color: var(--oxblood); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 1rem; padding: 3px 6px; }

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 26px 0 18px; flex-wrap: wrap; }
.results-bar .count { font-style: italic; color: var(--ink-soft); font-size: 1.1rem; }
.results-bar .count b { font-style: normal; color: var(--ink); font-weight: 500; }
.shelf-note { color: var(--ink-faint); font-size: .98rem; margin: 0; }
.shelf-note::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--forest); margin-right: 8px; vertical-align: middle; }
.shelf-note.off::before { background: var(--ink-faint); }

.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 18px; }
@media (max-width: 400px) { .books { grid-template-columns: 1fr; } }
.book {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
  min-width: 0;
}
.book:hover { border-color: var(--rule); box-shadow: 0 16px 30px -24px rgb(var(--shadow) / .7); }
.book .cover {
  width: 84px;
  aspect-ratio: 2 / 3;
  border-radius: 1px 4px 4px 1px;
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: 0 6px 12px -6px rgb(var(--shadow) / .6);
  position: relative;
}
.book .cover img { width: 100%; height: 100%; object-fit: cover; }
.book .cover::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(90deg, rgba(0,0,0,.25), transparent); }
.made-cover {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8px 7px;
  color: #f1e2c0;
  text-align: center;
  font-family: var(--f-display);
  font-size: .78rem;
  line-height: 1.1;
  font-weight: 600;
  overflow: hidden;
  word-break: break-word;
}
.made-cover::before, .made-cover::after { content: ""; display: block; height: 1px; background: rgba(241, 226, 192, .55); margin: 6px 4px; flex: none; }
.book-body { min-width: 0; display: flex; flex-direction: column; }
.book h3 { font-size: 1.28rem; margin: 0 0 .1em; line-height: 1.18; overflow-wrap: anywhere; }
.book .author { color: var(--ink-soft); font-style: italic; font-size: 1.05rem; margin-bottom: .45em; overflow-wrap: anywhere; }
.book-tags { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .98rem; margin-top: auto; }
.tag { font-variant: all-small-caps; letter-spacing: .1em; color: var(--forest); border: 1px solid color-mix(in srgb, var(--forest) 40%, transparent); padding: 0 8px; border-radius: 3px; }
.avail { display: inline-flex; align-items: center; gap: 6px; font-variant: all-small-caps; letter-spacing: .1em; color: var(--forest); }
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.avail.out { color: var(--oxblood); }
.stars { --pct: 0%; position: relative; display: inline-block; font-size: 1rem; letter-spacing: 2px; line-height: 1; color: var(--rule); }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--pct); overflow: hidden; color: var(--gold); }
.rating { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-faint); font-size: .95rem; font-variant-numeric: lining-nums; }
.book details { margin: .2em 0 .5em; font-size: 1.02rem; color: var(--ink-soft); }
.book summary { cursor: pointer; color: var(--oxblood); font-variant: all-small-caps; letter-spacing: .1em; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.book summary::-webkit-details-marker { display: none; }
.book summary::after { content: "+"; font-variant: normal; }
.book details[open] summary::after { content: "−"; }
.book details p { margin: .4em 0 0; line-height: 1.5; }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); font-style: italic; font-size: 1.25rem; grid-column: 1 / -1; }
.empty b { display: block; font-family: var(--f-display); font-style: normal; font-size: 2rem; color: var(--ink); font-weight: 500; margin-bottom: .3em; }
.more-wrap { text-align: center; margin-top: 34px; }
.loading { display: flex; justify-content: center; gap: 6px; padding: 60px 0; grid-column: 1 / -1; }
.loading i { width: 12px; height: 34px; background: var(--oxblood); border-radius: 2px; animation: bob 1s ease-in-out infinite; }
.loading i:nth-child(2) { background: var(--forest); animation-delay: .12s; height: 40px; }
.loading i:nth-child(3) { background: var(--gold); animation-delay: .24s; height: 30px; }
.loading i:nth-child(4) { background: var(--ink-soft); animation-delay: .36s; height: 38px; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Request / contact slip ---------- */
.slip {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(24px, 4vw, 44px);
  position: relative;
  box-shadow: 0 24px 44px -34px rgb(var(--shadow) / .8);
}
.slip::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--rule-soft); pointer-events: none; border-radius: 2px; }
.slip-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 26px; }
.slip-head h2 { margin: 0; font-size: clamp(1.9rem, 3.5vw, 2.4rem); }
.slip-head .no { font-variant: all-small-caps; letter-spacing: .14em; color: var(--ink-faint); font-size: 1rem; text-align: right; line-height: 1.3; white-space: nowrap; }
.slip .intro { color: var(--ink-soft); font-size: 1.15rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.required-note { font-size: .98rem; color: var(--ink-faint); font-style: italic; margin-bottom: 1.4rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 1.1rem 0 0; font-style: italic; font-size: 1.05rem; }
.form-status.ok { color: var(--ink-soft); }
.form-status.err { color: var(--oxblood); }

/* ---------- Team ---------- */
.tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 44px; border-bottom: 1px solid var(--rule); }
.tab {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink-faint);
  padding: 10px 22px 12px;
  cursor: pointer;
  position: relative;
  transition: color .2s;
}
.tab::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--oxblood); transform: scaleX(0); transition: transform .3s; }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab:hover { color: var(--ink); }
.js [role="tabpanel"][hidden] { display: none; }

.group-title { text-align: center; margin: 0 0 30px; }
.group-title h3 { font-size: 2rem; font-weight: 500; margin: 0; }
.group-title p { margin: 0; color: var(--ink-faint); font-style: italic; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 34px 22px; margin-bottom: 64px; }
.people.leads { grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; gap: 30px clamp(20px, 5vw, 60px); }
@media (max-width: 640px) { .people.leads { grid-template-columns: repeat(2, minmax(0, 1fr)); } .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; } }
.person { text-align: center; margin: 0; }
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 6px 6px / 40% 40% 6px 6px;
  overflow: hidden;
  background: var(--paper-3);
  padding: 6px;
  border: 1px solid var(--rule);
  box-shadow: 0 18px 28px -24px rgb(var(--shadow) / .9);
  margin-bottom: 14px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.person:hover .portrait { transform: translateY(-4px); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; border-radius: inherit; filter: sepia(.12) saturate(.95); transition: filter .4s; }
.person:hover .portrait img { filter: none; }
.person figcaption { font-family: var(--f-display); font-size: 1.32rem; font-weight: 600; line-height: 1.2; }
.person figcaption small { display: block; font-family: var(--f-body); font-weight: 400; font-variant: all-small-caps; letter-spacing: .14em; color: var(--ink-faint); font-size: .95rem; margin-top: 2px; }
.leads .person figcaption { font-size: 1.5rem; }
.leads .portrait { border-color: var(--gold); }

.ledger { max-width: 860px; margin: 0 auto; }
.ledger-year { display: grid; grid-template-columns: 150px 1fr; gap: 26px; padding: 30px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.ledger-year:first-child { border-top: 1px solid var(--rule); }
.ledger-year h3 { font-style: italic; font-weight: 500; color: var(--oxblood); font-size: 1.7rem; margin: 0; padding-top: 4px; font-variant-numeric: lining-nums; }
.ledger-year .people { margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ledger-year .portrait { max-width: 140px; margin: 0 auto 10px; }
.ledger-year .person figcaption { font-size: 1.2rem; }
.names { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 4px 0 0; list-style: none; font-family: var(--f-display); font-size: 1.4rem; font-weight: 500; }
.names li:not(:last-child)::after { content: "·"; color: var(--gold); margin: 0 14px; }
@media (max-width: 640px) { .ledger-year { grid-template-columns: 1fr; gap: 14px; } .ledger-year .people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .ledger-year .person figcaption { font-size: 1.02rem; } }

/* ---------- Mellifluous ---------- */
.edition { margin-bottom: clamp(56px, 8vw, 96px); }
.edition-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 26px; align-items: end; margin-bottom: 26px; }
.edition-head .roman { font-family: var(--f-display); font-size: clamp(4rem, 9vw, 6.5rem); line-height: .8; font-weight: 500; color: var(--gold); font-style: italic; grid-row: span 2; }
.edition-head h2 { margin: 0; }
.edition-head p { margin: 0; color: var(--ink-soft); max-width: 62ch; }
.flipbook {
  position: relative;
  background: linear-gradient(#3b2a1f, #2a1d15);
  padding: clamp(10px, 2vw, 22px);
  border-radius: 8px;
  box-shadow: 0 30px 60px -36px rgba(30, 18, 10, .9), inset 0 0 0 1px rgba(255, 220, 170, .1);
}
.flipbook iframe { display: block; width: 100%; height: clamp(440px, 72vh, 760px); border: 0; border-radius: 3px; background: #1d140e; }
.flipbook-foot { display: flex; justify-content: flex-end; margin-top: 12px; }

/* ---------- Footer ---------- */
.epigraph { padding: clamp(56px, 8vw, 96px) 0; text-align: center; border-top: 1px solid var(--rule); background: var(--paper-2); position: relative; }
.epigraph blockquote { margin: 0 auto; max-width: 820px; font-family: var(--f-display); font-style: italic; font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.25; font-weight: 500; }
.epigraph blockquote::before { content: "“"; display: block; font-size: 4.5rem; line-height: .6; color: var(--gold); font-style: normal; margin-bottom: .1em; }
.epigraph cite { display: block; margin-top: 1rem; font-style: normal; font-variant: all-small-caps; letter-spacing: .18em; color: var(--ink-soft); font-size: 1.1rem; }

.site-footer { background: var(--ink); color: color-mix(in srgb, var(--paper) 82%, transparent); padding: 56px 0 30px; font-size: 1.05rem; }
:root[data-theme="dark"] .site-footer { background: #0e0a08; color: var(--ink-soft); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #dcb767; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid h4 { color: #dcb767; font-family: var(--f-body); font-variant: all-small-caps; letter-spacing: .16em; font-size: 1.05rem; font-weight: 500; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.foot-brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(220, 183, 103, .35); }
.foot-brand b { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; color: var(--paper); line-height: 1.1; }
:root[data-theme="dark"] .foot-brand b { color: var(--ink); }
.foot-social { display: flex; gap: 10px; margin-top: 4px; }
.foot-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(220, 183, 103, .35); display: grid; place-items: center; }
.foot-social a:hover { border-color: #dcb767; }
.foot-social svg { width: 17px; height: 17px; }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(220, 183, 103, .2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .98rem; opacity: .8; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* print */
@media print {
  .topline, .masthead, .site-footer, .epigraph, body::before, .btn, .pager { display: none !important; }
  body { background: #fff; color: #000; }
}

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rs { font-family: "Noto Sans", "DejaVu Sans", "Segoe UI", system-ui, sans-serif; font-size: .86em; font-feature-settings: normal; }
.book details p.via { font-size: .88rem; font-style: italic; color: var(--ink-faint); margin-top: .3em; }
.portrait.monogram { display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, var(--paper-2), var(--paper-3)); }
.portrait.monogram span { font-family: var(--f-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 500; font-style: italic; color: var(--oxblood); letter-spacing: .04em; opacity: .85; }
.ledger-year .portrait.monogram { max-width: 140px; margin: 0 auto 10px; }
.secs .people.many, .ledger-year .people.many { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 22px 16px; }
.ledger-year .people.many .person figcaption { font-size: 1.1rem; }
@media (max-width: 640px) { .ledger-year .people.many { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* past team: per-year secretaries toggle */
.secs { margin-top: 22px; text-align: center; }
.secs summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .45em 1.1em;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--oxblood);
  font-variant: all-small-caps;
  letter-spacing: .12em;
  font-size: 1.02rem;
  font-weight: 500;
  transition: border-color .2s, background .2s;
}
.secs summary::-webkit-details-marker { display: none; }
.secs summary:hover { border-color: var(--oxblood); background: var(--paper-3); }
.secs .when-open, .secs[open] .when-closed { display: none; }
.secs[open] .when-open { display: inline; }
.secs .people.many { text-align: left; margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--rule); }
.rating .src { font-variant: all-small-caps; letter-spacing: .08em; font-size: .95em; }
