/* Standalone comic-reader styles; does not depend on landing.css. */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #101010;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
a { color: #aaaadd; text-underline-offset: 0.15em; }
a:visited { color: #aaa; }
a:hover { color: #fff; }
a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.site-header { padding: 1rem; text-align: center; }
.site-header > a { display: inline-block; padding: 0.5rem; }
h1 { margin: 0.25rem 0; font-size: clamp(1.5rem, 6vw, 2rem); }
h2 { margin: 0 0 0.5rem; font-size: 1.5rem; line-height: 1.3; }
p { margin: 0.5rem 0; }
.imgbox { padding: 0.5rem; }
.comic-image-link { display: block; width: fit-content; max-width: 100%; margin-inline: auto; }
.center-fit { display: block; max-width: 100%; max-height: 95vh; width: auto; height: auto; margin-inline: auto; }
.writeNav { padding: 0.75rem 1rem; }
.comicNav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; max-width: 36rem; margin: auto; }
.comicNav a, .comicNav span {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.5rem 0.25rem;
  border: 1px solid #777; border-radius: 4px;
  text-align: center; text-decoration: none;
}
.comicNav a { background: #222; }
.comicNav a:hover { background: #333; }
.comicNav [aria-disabled="true"] { color: #999; border-color: #444; }
.writeInfo, .view-count, .notice { max-width: 48rem; margin: 1rem auto; padding-inline: 1rem; text-align: center; }
.image-help { padding-inline: 1rem; text-align: center; color: #bbb; font-size: 0.9375rem; }
/* The supplied files do not populate the counter. Show it only when a script does. */
.view-count { display: none; }
.view-count:has(#visits:not(:empty)) { display: block; }
footer { margin: 2rem auto 0; padding: 1.5rem 1rem; max-width: 60rem; border-top: 1px solid #666; text-align: center; }
footer > p { margin-top: 1rem; }
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1rem; padding: 0; margin: 0.5rem 0 1rem; list-style: none; }
.social-links a { display: inline-block; padding: 0.5rem; min-height: 44px; }
@media (max-width: 48rem) {
  /* Tall comics stay readable: allow vertical scrolling instead of shrinking to viewport height. */
  .center-fit { max-height: none; }
}
@media (max-width: 24rem) {
  .comicNav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
