@font-face{font-family:ArchivoDisplay;src:url(assets/archivo-display.woff2) format("woff2");font-display:swap}
@font-face{font-family:Hanken;src:url(assets/hanken-grotesk-latin-wght-400-700.woff2) format("woff2");font-weight:400 700;font-display:swap}
:root{--paper:#d5c6ff;--ink:#1e1c21;--gray:#5c5a60;--rule:#cfccd5;--soft:#eae7f0;--rust:#4c347f;--selected:#e0daef;--sans:Hanken,Arial,sans-serif;--serif:ArchivoDisplay,Hanken,sans-serif;font-family:var(--sans)}
body { background-color: #d5c6ff; }
.masthead { background: #d5c6ff; border-bottom: 1px solid #d2cfd8; }
.mastinner { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 40px); min-height: 68px; }
#site-nav { order: 1; margin-left: auto; }
.reader-nav { order: 2; margin: 0; }
.primary { border: 1px solid #2a282f; border-radius: 8px; padding: 10px 17px; font: 700 15px/1.35 var(--sans); }
@media (max-width: 820px) {
  .mastinner { flex-wrap: wrap; gap: 0 16px; padding-block: 8px 0; }
  .reader-nav { margin-left: auto; }
  #site-nav { order: 3; width: 100%; margin: 0; gap: clamp(14px, 5vw, 36px); }
}
.masthead .brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 700 23px/1 var(--sans);
  letter-spacing: -.055em;
  text-transform: none;
}
.masthead .brand img { flex: none; display: block; }
.primary { background: #2a282f; border-color: #2a282f; color: #d5c6ff; }
.primary:hover { background: #3e3947; color: #d5c6ff; }
.search, .filters select, #calc-pool, #compare-panel .fw-compare-picks select { border-radius: 7px; }
#modal { border-radius: 13px; border-color: #b6b3be; background: #d5c6ff; }
#modal::backdrop { background: rgb(32 30 36 / .42); }
.offers-table .pool-link { flex-direction: row; align-items: center; justify-content: start; gap: 10px; }
.pool-link .project-icon { flex: none; border-radius: 7px; }
.offers-table .ask, .reading-terms dd { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .offers-table .pool-link { gap: 6px; }
  .pool-link .project-icon { width: 22px; height: 22px; border-radius: 5px; }
  .mastinner #site-nav { justify-content: space-between; gap: 6px; padding-top: 2px; }
}
@media (max-width: 359px) { .pool-link .project-icon { display: none; } }
.workspace { padding-bottom: clamp(32px, 6vw, 80px); }
#modal .detail-pool { justify-content: flex-start; }
#modal .dialog-actions { justify-content: flex-start; margin: 16px 0 24px; }
#modal .dialog-actions button, #detail-watch { min-height: 44px; }
@media (max-width:600px) {
  #modal { width:100%; max-width:100%; margin:auto 0 0; max-height:90dvh; border-radius:18px 18px 0 0; padding-bottom:env(safe-area-inset-bottom); overscroll-behavior:contain; }
  #modal .dialog-head { position:sticky; top:0; z-index:2; background:#d5c6ff; }
}
html { scrollbar-gutter: stable; }
#undo-removal:not([hidden]) {
  position: fixed; z-index: 8; bottom: max(12px, env(safe-area-inset-bottom));
  inset-inline: 12px; width: fit-content; max-width: calc(100% - 24px);
  align-items: center; margin: 0 auto; padding: 5px 14px;
  background: #d5c6ff; border: 1px solid var(--rule); border-radius: 12px;
  box-shadow: 0 4px 20px rgb(31 29 37 / .12);
}
.workspace:has(#undo-removal:not([hidden])) { padding-bottom: 96px; }
#undo-removal button { min-height: 44px; }
@media (max-width: 600px) {
  #modal:has(#detail-watch) .dialog-head { touch-action: pan-x; }
}
@media (prefers-reduced-motion: no-preference) {
  .primary { transition: background-color .12s, transform .12s; }
  .primary:active { transform: scale(.985); }
}
@media (pointer: coarse) {
  #close, .switch button { min-width: 44px; min-height: 44px; }
  .offers-table :is(th,td):last-child { width: 44px; padding-inline: 0; }
  .offers-table .bookmark-cell .fav { width: 44px; height: 44px; }
  #book-pager button, .calc-presets button { min-height: 44px; }
}

.masthead { background: #231938; border-color: #413b4d; }
.masthead .brand img { filter: brightness(0) invert(1); }
.masthead :is(.reader-nav, #site-nav) a { color: #f0eff3; }
.masthead #site-nav a[aria-current="page"] { color: #d5c6ff; border-color: #d5c6ff; }
.masthead a:focus-visible { outline-color: #d5c6ff; }
.primary { background: #2a1d46; border-color: #2a1d46; color: #fff; }
.primary:hover { background: #1e1435; color: #fff; }
.masthead :is(.reader-nav, #site-nav) a:is(:hover, :focus-visible, [aria-current="page"]) { color: #d5c6ff; }

.masthead { background: #25232b; }
.masthead .brand img { filter: none; }
.masthead .brand-name { font: 650 1.2rem/1 var(--sans); color: #faf9fc; }
