:root {
  --folio-paper: #f5f3ed; --folio-ink: #20211e; --folio-accent: #284cbd;
  --paper: var(--folio-paper); --ink: var(--folio-ink); --accent: var(--folio-accent);
  --muted: #5a5c55; --line: #c8c7be; --site-bar-height: 0px;
  --folio-serif: "Baskerville", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --folio-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  background: var(--paper); color: var(--ink);
}
body { padding: clamp(8px,1.18vw,19px); background: var(--folio-paper); color: var(--folio-ink); }
.shell {
  --shell-width: 100%;
  width: 100%; max-width: 1920px; min-height: calc(100svh - 2vw);
  margin: 0 auto; padding: 0 clamp(19px,2.35vw,44px) clamp(68px,6vw,96px);
  border: 1px solid #686b62;
}
.site-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: clamp(82px,8.1vw,126px); padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid #9c9e94;
}
.site-bar:focus, #cover:focus { outline: none; }
.folio-home { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 44px; width: fit-content; text-decoration: none; }
.folio-home strong { font-size: clamp(18px,1.5vw,25px); font-weight: 680; line-height: 1; letter-spacing: -.065em; }
.folio-home > span { font: 400 11px/1.3 var(--folio-mono); letter-spacing: -.035em; }
.folio-add {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 13px; min-height: 44px;
  border-bottom: 1px solid currentColor; font-size: 14px; font-weight: 560; text-decoration: none;
}
.folio-add span { color: var(--folio-accent); }
.folio-account { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }
.folio-role { color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.folio-add:hover, .folio-home:hover strong { color: var(--folio-accent); }
#cover, #materials, #collection, #materialSearch { scroll-margin-top: 12px; }
.folio-explore {
  position: fixed; right: max(clamp(16px,2.3vw,45px),env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 12; color: #fbfaf5;
}
.folio-explore summary {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; min-width: 44px;
  padding: 0 15px; list-style: none; cursor: pointer; border-radius: 24px; color: inherit;
  box-shadow: 0 2px 10px #24252222; background: #262821; font: 500 12px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.folio-explore summary::-webkit-details-marker { display: none; }
.explore-label { font: 400 11px/1.2 var(--folio-mono); letter-spacing: -.045em; }
.explore-divider { width: 1px; height: 12px; background: #818277; }
.explore-plus { font-size: 20px; line-height: 1; transition: transform .19s ease; }
.folio-explore[open] .explore-plus { transform: rotate(45deg); }
.explore-list {
  position: absolute; right: 0; bottom: calc(100% + 9px);
  width: min(285px, calc(100vw - 40px)); max-height: calc(100dvh - 105px); overflow: auto;
  padding: 6px 16px; background: var(--folio-paper); color: var(--folio-ink);
  border: 1px solid #8e9187; box-shadow: 0 7px 22px #272a2721; border-radius: 13px;
}
.explore-list a {
  display: flex; align-items: baseline; justify-content: space-between; column-gap: 14px; padding-block: 14px;
  text-decoration: none; border-block-end: 1px solid var(--line); font-size: 14px;
}
.explore-list a:last-child { border: 0; }
.explore-list strong { font-weight: 560; }
.explore-list a span { color: var(--muted); font: 400 10px var(--folio-mono); }
.explore-list a[aria-current], .explore-list a:hover { color: var(--folio-accent); }
.folio-skip { position: fixed; left: 18px; top: 12px; z-index: 20; transform: translateY(-180%); padding: 9px 14px; color: white; background: #284cbd; border-radius: 4px; }
.folio-skip:focus { transform: none; }
@media (max-width: 650px) {
  body { padding: 7px; }
  .shell { padding-inline: clamp(13px,4vw,23px); padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .site-bar { min-height: 74px; }
  .folio-explore { right: max(15px,env(safe-area-inset-right)); }
}
@media (prefers-reduced-motion:reduce) { .explore-plus { transition: none; } }
