:root {
  --ink: #111114;
  --paper: #f5f3ee;
  --purple: #472f7a;
  --soft: #a48dca;
  --muted: #9e9ca2;
  --line: #303037;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
.shell {
  width: 90%;
  margin: auto;
}
.rook-nav {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #29292f;
  color: #aaa8ae;
  font-size: 13px;
}
.rook-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  font-size: 15px;
  font-weight: 760;
}
.rook-brand img {
  width: 44px;
  height: 44px;
}
header {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: end;
  padding: 88px 0 48px;
  border-bottom: 1px solid #29292f;
  gap: 54px;
}
.brand {
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 0.78;
  font-size: clamp(4.8rem, 12vw, 9rem);
}
.brand > span {
  color: var(--soft);
  font-family: Georgia, serif;
  font-weight: 400;
}
.brand small {
  width: max-content;
  display: grid;
  grid-template-columns: auto auto;
  gap: 14px;
  margin-top: 30px;
  font:
    800 clamp(0.76rem, 1.7vw, 1.08rem) / 1.05 Arial,
    sans-serif;
  letter-spacing: 0.14em;
}
.brand small .name,
.brand small .interro {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand small .interro {
  border-left: 1px solid #57545d;
  padding-left: 14px;
  color: var(--soft);
}
header p {
  max-width: 370px;
  color: #b9b6bd;
  font-size: 19px;
  line-height: 1.55;
}
.comic-nav {
  display: flex;
  gap: 30px;
  padding: 18px 0;
  color: #aaa8ae;
  font:
    700 11px/1 Arial,
    sans-serif;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  border-bottom: 1px solid #29292f;
}
.comic-nav a:hover {
  color: #fff;
}
main {
  padding: 72px 0 100px;
}
.eyebrow {
  color: #9d97a5;
  font:
    800 11px/1 Arial,
    sans-serif;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.eyebrow:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: #67499b;
  box-shadow: 0 0 0 5px #472f7a55;
  vertical-align: 1px;
}
h1 {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 20px 0 18px;
}
.intro {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 42px;
}
.reader {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}
.comic {
  min-height: 320px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0;
}
.comic img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  background: transparent;
}
.controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 12px;
}
.controls > * {
  padding: 15px 18px;
  border: 1px solid #37373f;
  background: transparent;
  color: #c7c4ca;
  font:
    700 12px/1 Arial,
    sans-serif;
}
.controls a {
  text-align: center;
  margin-inline: -1px;
}
.controls button:last-child {
  text-align: right;
  background: var(--purple);
  border-color: #67499b;
}
.controls button:first-child {
  text-align: left;
}
.controls button:disabled {
  opacity: 0.35;
}
.controls button:not(:disabled) {
  cursor: pointer;
}
aside {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
aside h2 {
  font-size: 1.55rem;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}
.meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 24px;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.thumb {
  padding: 0;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #19191e;
  border: 1px solid var(--line);
  cursor: pointer;
}
.thumb[aria-current="true"] {
  border-color: var(--soft);
  box-shadow: 0 0 0 1px var(--soft);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}
.thumb:hover img,
.thumb[aria-current="true"] img {
  opacity: 1;
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #29292f;
  padding: 22px 0 42px;
  color: #68676e;
  font: 10px/1 monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .shell {
    width: min(100% - 30px, 1180px);
  }
  .rook-nav {
    height: 68px;
  }
  header {
    grid-template-columns: 1fr;
    padding: 58px 0 38px;
  }
  .brand {
    font-size: clamp(4.2rem, 22vw, 7rem);
  }
  .reader {
    grid-template-columns: 1fr;
  }
  aside {
    order: -1;
  }
  .comic img {
    max-height: none;
  }
  footer {
    gap: 10px;
    flex-wrap: wrap;
  }
}
