:root {
  --blue: #1a83b8;
  --blue-dark: #0d4d6e;
  --ink: #101418;
  --paper: #fffdf6;
  --yellow: #ffd21f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--paper);
  background: radial-gradient(circle at 20% 0%, var(--blue), var(--blue-dark) 90%) fixed;
}

.site-header {
  padding: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  color: var(--ink);
  background: var(--blue);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.logo-inf {
  font-size: 1.8rem;
  line-height: 1;
}

.logo-name {
  margin-left: 6px;
  padding-left: 12px;
  border-left: 3px solid var(--ink);
  font-size: 0.9rem;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 8px 16px 32px;
}

.issue {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
}

.cover {
  margin: 0;
  flex: 0 1 auto;
  transition: opacity 0.15s;
}

.cover img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 460px);
  max-height: 72vh;
  background: var(--paper);
  border: 4px solid var(--paper);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
}

.issue.loading .cover {
  opacity: 0.45;
}

.details {
  flex: 1 1 260px;
  max-width: 420px;
}

h1 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.15;
}

.series {
  margin: 0 0 24px;
  opacity: 0.85;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.button:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.button.secondary {
  background: var(--paper);
}

.button.next {
  font-size: 1.15rem;
}

.not-found {
  padding: 48px 0;
  text-align: center;
}

.site-footer {
  padding: 16px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.75;
}

@media (max-width: 640px) {
  .issue {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .details {
    text-align: center;
  }

  .actions {
    justify-content: center;
    gap: 10px;
  }

  .button {
    padding: 10px 14px;
  }
}
