:root { color-scheme: light; }
html { scroll-behavior: smooth; }
body.pm-comics-site { margin: 0; color: #162849; background: #e5f4ff; font: 18px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.pm-comics-site * { box-sizing: border-box; }
.pm-comics-site a { color: inherit; }
.pm-comics-site button { font: inherit; cursor: pointer; }
.pm-wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.pm-skip { position: absolute; left: 12px; top: -80px; z-index: 10; padding: 10px 16px; background: #fff; border-radius: 8px; }
.pm-skip:focus { top: 12px; }
.pm-header { background: #163d72; color: #fff; border-bottom: 6px solid #ffca39; }
.pm-header-inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pm-brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; font-size: clamp(1.25rem, 2.5vw, 1.8rem); font-weight: 850; line-height: 1.05; letter-spacing: -.035em; }
.pm-brand em { font-style: normal; color: #ffdb65; }
.pm-mark { display: inline-flex; align-items: center; gap: 2px; }
.pm-mark i, .pm-mark b { display: block; width: 35px; height: 35px; background: #ffcd3f; border: 3px solid #fff; }
.pm-mark i { border-radius: 50%; }
.pm-mark b { border-radius: 7px; transform: rotate(8deg); background: #fa7159; }
.pm-header nav { display: flex; flex-wrap: wrap; gap: 10px; }
.pm-header nav a { display: inline-block; padding: 10px 15px; border-radius: 999px; text-decoration: none; font-size: 1rem; font-weight: 700; }
.pm-header nav a:hover, .pm-header nav a[aria-current="page"] { background: #ffca39; color: #162849; }
.pm-page-top { padding: 42px 0 22px; }
.pm-eyebrow { margin: 0 0 8px; color: #a43e20; font-size: .9rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.pm-page-top h1, .pm-welcome h1 { max-width: 850px; margin: 0 0 8px; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -.04em; }
.pm-page-top time { font-size: 1rem; font-weight: 650; }
.pm-back-link { display: inline-block; margin: 0 0 16px; font-weight: 700; }
.pm-viewer { max-width: 900px; margin: 0 auto; padding: 12px; background: #fff; border: 4px solid #163d72; border-radius: 24px; box-shadow: 12px 12px 0 #b0def4; }
.pm-viewer-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scrollbar-width: none; border-radius: 12px; outline-offset: 4px; }
.pm-viewer-track::-webkit-scrollbar { display: none; }
.pm-viewer-page { flex: 0 0 100%; scroll-snap-align: start; display: grid; place-items: center; min-width: 0; background: #fff; }
.pm-viewer-page img { display: block; width: 100%; height: auto; max-height: min(72vh, 720px); object-fit: contain; }
.pm-viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px 2px; }
.pm-viewer-controls button { min-height: 48px; padding: 9px 18px; border: 2px solid #163d72; border-radius: 999px; background: #ffca39; color: #162849; font-weight: 800; }
.pm-viewer-controls button:hover:not(:disabled) { background: #ffe391; }
.pm-viewer-controls button:disabled { opacity: .45; cursor: default; }
.pm-counter { min-width: 68px; text-align: center; font-weight: 800; }
.pm-after-viewer { margin: 30px 0 56px; text-align: center; }
.pm-all-link { display: inline-block; padding: 12px 20px; border: 2px solid #163d72; border-radius: 999px; background: #fff; font-weight: 800; text-decoration: none; }
.pm-all-link:hover { background: #ffca39; }
.pm-welcome { max-width: 850px; margin: 64px auto 100px; padding: clamp(28px, 7vw, 72px); background: #fff; border: 4px solid #163d72; border-radius: 30px; box-shadow: 14px 14px 0 #ffca39; }
.pm-welcome p:last-child { max-width: 600px; margin-bottom: 0; font-size: 1.15rem; }
.pm-empty { margin: 22px 0 70px; padding: 30px; border: 3px dashed #638ab1; border-radius: 18px; background: #fff; }
.pm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-bottom: 56px; }
.pm-card { min-width: 0; overflow: hidden; border: 3px solid #163d72; border-radius: 20px; background: #fff; box-shadow: 7px 7px 0 #b0def4; }
.pm-card a { display: block; height: 100%; text-decoration: none; }
.pm-card-image { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: #ffdb65; }
.pm-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pm-card-image span { font-size: 3rem; letter-spacing: .2em; color: #163d72; }
.pm-card-copy { padding: 19px; }
.pm-card-copy time { font-size: .87rem; font-weight: 700; color: #5d6d80; }
.pm-card-copy h2 { margin: 7px 0 18px; font-size: 1.35rem; line-height: 1.2; }
.pm-card-link { font-weight: 800; text-decoration: underline; }
.pm-pagination ul { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; }
.pm-pagination a, .pm-pagination span { display: inline-block; min-width: 44px; padding: 8px 13px; border: 2px solid #163d72; border-radius: 10px; background: #fff; text-align: center; text-decoration: none; }
.pm-pagination .current { background: #ffca39; font-weight: 800; }
.pm-footer { margin-top: 70px; padding: 27px 0; background: #163d72; color: #fff; font-size: .9rem; }
@media (max-width: 800px) { .pm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pm-viewer-page img { max-height: 75vh; } }
@media (max-width: 600px) { .pm-header-inner { min-height: 0; padding-block: 18px; align-items: flex-start; flex-direction: column; } .pm-page-top { padding-top: 30px; } .pm-grid { grid-template-columns: 1fr; } .pm-viewer { padding: 6px; border-width: 3px; border-radius: 16px; box-shadow: 6px 6px 0 #b0def4; } .pm-viewer-controls button { padding-inline: 12px; } .pm-viewer-controls button span { display: none; } .pm-welcome { margin-top: 35px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
