:root { color-scheme: dark; --ink: #17201c; --paper: #f4efe4; --line: rgba(255,255,255,.18); font-family: Inter,ui-sans-serif,system-ui,sans-serif; }
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; overflow: hidden; background: #252a27; color: white; }
.ecosystem-bar { position: fixed; z-index: 4; top: 0; right: 0; left: 0; display: flex; align-items: stretch; min-height: 34px; overflow-x: auto; overflow-y: hidden; color: #fff; background: #031827; scrollbar-width: none; }
.ecosystem-bar::-webkit-scrollbar { display: none; }
.ecosystem-bar a { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 34px; padding: 0 .75rem; color: inherit; font-size: .69rem; font-weight: 800; letter-spacing: .03em; line-height: 1; text-decoration: none; white-space: nowrap; }
.ecosystem-bar a:first-child { margin-left: 1.25rem; }
.ecosystem-bar a + a::before { position: absolute; top: 10px; bottom: 10px; left: 0; width: 1px; background: rgba(255,255,255,.16); content: ''; }
.ecosystem-bar a[aria-current="page"]::after { position: absolute; right: .75rem; bottom: 4px; left: .75rem; height: 3px; background: #ffb000; content: ''; }
.ecosystem-bar a:hover,.ecosystem-bar a:focus-visible { background: rgba(255,255,255,.1); }
.toolbar { position: fixed; z-index: 3; inset: 34px 0 auto; height: 64px; display: grid; grid-template-columns: 1fr minmax(0,2fr) 1fr; align-items: center; gap: 1rem; padding: 0 1.25rem; border-bottom: 1px solid rgba(23,32,28,.18); background: #f4efe4; color: #17201c; --line: rgba(23,32,28,.18); }
.brand { display: inline-flex; align-items: center; gap: .7rem; min-width: 0; color: inherit; text-decoration: none; }
.brand-logo { display: block; width: min(210px,22vw); height: auto; }
.brand-magazine { padding-left: .7rem; border-left: 1px solid var(--line); font-size: .68rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.download { color: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.document-title { overflow: hidden; font-family: Georgia,serif; font-size: 1.05rem; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.toolbar-actions { display: flex; justify-content: flex-end; align-items: center; gap: .3rem; }
button,.download { min-width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 0; background: transparent; color: inherit; cursor: pointer; }
button:hover,.download:hover { background: rgba(255,255,255,.1); }
button:disabled { cursor: default; opacity: .35; }
#zoom-level { width: 46px; font-size: .72rem; text-align: center; }
.download { margin-left: .4rem; padding: 0 .8rem; }
.viewer { position: fixed; inset: 98px 0 0; overflow: auto; display: grid; place-items: start center; padding: 3rem 1rem 7rem; }
.spread { display: none; align-items: flex-start; justify-content: center; gap: 3px; }
.spread canvas { max-width: none; background: white; box-shadow: 0 16px 55px rgba(0,0,0,.4); }
.status { margin-top: 20vh; color: rgba(255,255,255,.75); }
.status.error { display: flex; flex-direction: column; gap: 1.5rem; text-align: center; }
.status.error[hidden] { display: none; }
.status.error a { color: white; }
.page-controls { position: fixed; z-index: 3; bottom: 1rem; left: 50%; display: flex; align-items: center; gap: .55rem; padding: .45rem; border: 1px solid var(--line); background: rgba(23,32,28,.96); box-shadow: 0 8px 30px rgba(0,0,0,.3); transform: translateX(-50%); }
#page-number { width: 48px; padding: .4rem; border: 0; border-bottom: 1px solid var(--line); outline: 0; background: transparent; color: white; font: inherit; text-align: center; appearance: textfield; }
#page-number::-webkit-inner-spin-button { appearance: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 620px) {
  .ecosystem-bar { min-height: 38px; }
  .ecosystem-bar a { min-height: 38px; padding-inline: .625rem; font-size: .64rem; }
  .ecosystem-bar a[aria-current="page"]::after { right: .625rem; left: .625rem; }
  .toolbar { top: 38px; grid-template-columns: auto minmax(0,1fr) auto; padding-inline: .6rem; }
  .brand-logo { width: min(148px,42vw); }
  .brand { gap: .45rem; }
  .brand-magazine { padding-left: .45rem; font-size: .58rem; }
  #zoom-level,#zoom-out,#zoom-in { display: none; }
  .download { margin-left: 0; }
  .viewer { top: 102px; padding-inline: .5rem; }
}
