* { box-sizing: border-box }
body { margin: 0; background: #080808; color: #f5f4ef; font: 16px/1.55 system-ui,sans-serif }
a { color: inherit }
.wrap { width: min(1180px,calc(100% - 48px)); margin: auto }
header { display:flex; justify-content:space-between; align-items:center; padding:24px 0; border-bottom:1px solid #333 }
header a { text-decoration:none }
.logo { font-weight:950; letter-spacing:-.05em; font-size:22px }
.hero,.product { display:grid; grid-template-columns:1fr 1fr; gap:clamp(24px,6vw,90px); align-items:center; padding:clamp(28px,7vw,94px) 0 }
h1,h2,h3,p { margin:0 }
h1 { font:900 clamp(52px,9vw,138px)/.86 Georgia,serif; letter-spacing:-.075em; margin:16px 0 22px }
h2 { font:700 clamp(30px,5vw,64px)/1 Georgia,serif; letter-spacing:-.05em }
h3 { font-size:24px; line-height:1.15; margin:12px 0 }
.meta,.tags { color:#bbb; font-size:14px }
.copy p + p { margin-top:12px }
.art { display:grid; place-items:center; width:100%; aspect-ratio:4/5; object-fit:cover; background:radial-gradient(ellipse at 52% 65%,#262626,#101010 70%); border:1px solid #333 }
.hero .art { aspect-ratio:5/4 }
.art span { width:34%; height:63%; border:1px solid #777; box-shadow:13px 0 0 #292929; transform:perspective(360px) rotateY(-17deg) }
.art[data-art="seam"] span { width:54%; height:44%; transform:rotate(-8deg); box-shadow:0 0 0 9px #202020,inset 0 0 45px #414141 }
.art[data-art="pet"] span { width:42%; height:42%; border-radius:50%; transform:none; box-shadow:0 0 45px #353535 }
.art[data-art="fly"] span { width:36%; height:36%; transform:rotate(45deg); box-shadow:0 0 0 9px #242424 }
.cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(14px,3vw,32px); margin-top:28px }
.catalog,.reader { border-top:1px solid #333; padding:32px 0 64px }
.actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px }
.button { display:inline-flex; align-items:center; padding:11px 16px; border:1px solid #777; text-decoration:none; font:700 15px/1.35 system-ui,sans-serif; color:inherit; background:transparent }
.primary { background:#f5f4ef; color:#080808; border-color:#f5f4ef }
.button[disabled] { color:#999; border-color:#555 }
.button:not(:disabled) { cursor:pointer }
.button:disabled { cursor:default }
.button:focus-visible,
.rating-stars button:focus-visible {
  outline:2px solid #f5f4ef;
  outline-offset:4px;
}
@media (hover:hover) {
  .button:not(:disabled):hover { background:#f5f4ef; border-color:#f5f4ef; color:#080808 }
  .button.primary:not(:disabled):hover { background:#ccc; border-color:#ccc }
}
.button:not(:disabled):active { background:#999; border-color:#999; color:#080808; transform:translateY(1px) }
.reader img { display:block; width:min(100%,650px); height:auto; margin:24px auto }
.reader p { margin-top:14px }
@media(max-width:680px) { .wrap { width:calc(100% - 32px) } .hero,.product { grid-template-columns:1fr } .hero .cover-link { grid-row:1 } .cards { grid-template-columns:repeat(2,minmax(0,1fr)) } }

body { min-height:100vh; display:flex; flex-direction:column }
body > .wrap { margin-block:0 }
body > main { flex:1 }
.site-footer {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:20px 32px;
  padding:28px 0 32px;
  border-top:1px solid #333;
}
.footer-brand a { text-decoration:none }
.footer-brand p { color:#bbb; font-size:14px }
.footer-links { display:flex; flex-wrap:wrap; gap:8px 20px }
.footer-links a { display:inline-flex; align-items:center; min-height:44px; font-size:14px; text-underline-offset:.25em }
.footer-links a:hover { color:#bbb }
.footer-links a[aria-current="page"] { font-weight:700 }
.policy { padding:clamp(36px,7vw,88px) 0 }
.policy h1 { font-size:clamp(40px,8vw,84px); line-height:1; margin:0 0 36px }
.policy section { max-width:65ch }
.policy section + section { margin-top:28px }
.policy h2 { font:700 21px/1.25 system-ui,sans-serif; letter-spacing:normal; margin-bottom:8px }
.policy p { color:#d5d4cf }
@media(max-width:680px) {
  .site-footer { align-items:flex-start; flex-direction:column; gap:8px }
}

.reader-navigation {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;
  align-items:start;
  gap:16px;
  max-width:920px;
  margin:28px 0 0;
}
.episode-picker {
  display:grid;
  gap:8px;
  font-size:14px;
  font-weight:700;
}
.episode-picker select {
  width:100%;
  min-height:44px;
  padding:8px 12px;
  border:1px solid #777;
  border-radius:0;
  background:#080808;
  color:#f5f4ef;
  color-scheme:dark;
  font:inherit;
}
.episode-picker select:not(:disabled) { cursor:pointer }
.episode-picker select:focus-visible { outline:2px solid currentColor; outline-offset:3px }

.preview-viewer {
  width:min(100%,650px);
  margin:24px auto 0;
}
.preview-viewer img {
  width:auto;
  max-width:100%;
  max-height:70vh;
  margin:0 auto 16px;
  object-fit:contain;
}
.preview-controls {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.preview-controls .button { min-height:44px }
.preview-pages .actions { align-items:center }

img.art, .hero img.art {
  display:block;
  width:auto;
  max-width:100%;
  max-height:75svh;
  height:auto;
  aspect-ratio:auto;
  object-fit:contain;
  justify-self:center;
}

.manga-stats { margin:18px 0 }
.rating-stars { display:flex; flex-wrap:wrap; gap:4px }
.rating-stars button {
  min-width:44px;
  min-height:44px;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  font-size:24px;
  cursor:pointer;
}
.rating-stars button:disabled { cursor:default }
@media (hover:hover) {
  .rating-stars button:not(:disabled):hover { background:#303030; color:#fff }
}
.rating-stars button:not(:disabled):active { background:#454545 }

.cover-link { display:block; min-width:0 }
.hero .cover-link { justify-self:center; width:100% }
.cover-link img.art { margin-inline:auto }
.cover-link:hover .art { border-color:#aaa }
.cover-link:focus-visible { outline:2px solid currentColor; outline-offset:4px }

.episode-download { display:grid; justify-items:start; gap:6px; padding-top:30px }
.episode-download .button { min-height:44px }
.reader .episode-download p { margin-top:0 }
@media(max-width:680px) {
  .reader-navigation { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .episode-download { grid-column:1 / -1; padding-top:0 }
}

.coming-soon-preview {
  overflow:hidden;
  border:1px solid #333;
  background:#141414;
}
.coming-soon-preview .art {
  filter:blur(9px);
  transform:scale(1.08);
  opacity:.72;
}
