/* ---------------------------------------------------------------------------
   Colors live here as CSS variables — this is the place to change the
   background color later. --bg is currently a placeholder approximating
   the reference site's blue.
--------------------------------------------------------------------------- */
:root {
  --bg: #435fb0;
  --text: #ffd167;
  --nav-active: #f4d35e;
  --title: #35e07a;
  --muted: #cfe0ff;
  --overlay: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "JetBrains Mono", "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 24px 32px;
  gap: 20px;
}

.logo {
  height: 90px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 32px;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--nav-active);
}

.site-nav a.active {
  color: var(--nav-active);
  border-color: var(--nav-active);
}

.site-nav .nav-static {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  opacity: 0.6;
}

/* Gallery grid -------------------------------------------------------------*/

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.comic-card {
  padding: 40px;
  text-align: center;
}

.comic-card-image {
  position: relative;
  overflow: hidden;
  width: 80%;
  margin: 0 auto 20px;
}

.comic-card-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.comic-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.comic-card:hover .comic-card-image::after {
  opacity: 1;
}

.comic-title {
  color: var(--title);
  font-size: 16px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.comic-meta {
  color: var(--muted);
  font-size: 13px;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* About page ---------------------------------------------------------------*/

.about-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 24px 100px;
  line-height: 1.7;
  font-size: 15px;
}

.about-content h1 {
  color: var(--title);
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* Comic reader page ----------------------------------------------------- */

.reader-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 24px;
  text-align: center;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.back-link:hover {
  opacity: 1;
  color: var(--nav-active);
}

.reader-title {
  color: var(--title);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reader-pages {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.reader-pages img {
  width: 80%;
  height: auto;
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
  text-align: center;
  padding: 40px 24px 60px;
  font-size: 13px;
  color: var(--muted);
  opacity: 0.8;
}

.site-footer .copyright {
  color: var(--text);
  opacity: 1;
}
