@charset "UTF-8";

:root {
  --blue: #0d24cc;
  --mint: #00ffaf;
  --line: rgba(13, 36, 204, 0.22);
  --page-bg: #FAFAFA;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--blue);
  background: var(--page-bg);
  font-family: "Zen Kaku Gothic New", sans-serif;
}

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

a:hover {
  color: #5366ff;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 5vw;
  border-bottom: 1px solid var(--line);
  font-family: "Geist Mono", monospace;
}

.brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.07em;
}

.brand img {
  display: block;
  width: clamp(120px, 18vw, 190px);
  height: auto;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
}

.header-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

.header-label:hover {
  color: #5366ff;
}

/* Page layout */
.page {
  width: min(760px, 90vw);
  margin: clamp(48px, 9vw, 110px) auto 80px;
}

.eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  opacity: 0.7;
}

h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.credit {
  margin: 0 0 54px;
  font-size: 13px;
}

.credit a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contents */
.chapter {
  padding: 24px 0 18px;
  border-top: none;
}

.chapter h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin: 0 0 12px;
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  font-weight: 400;
}

.chapter h2 span {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 20px;
  font-weight: 500;
}

.chapter h2 small {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 12px;
  opacity: 0.65;
}

.episode {
  display: grid;
  grid-template-columns: 72px 1fr 18px;
  gap: 12px;
  align-items: center;
  padding: 12px 10px 2px;
  border-bottom: 1px solid rgba(13, 36, 204, 0.1);
  font-size: 14px;
}

.episode > span:first-child {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  opacity: 0.7;
}

.episode:hover {
  background: var(--mint);
  color: var(--blue);
}

.arrow {
  text-align: right;
}

/* Prologue */
.prologue-title {
  margin-bottom: 28px;
  font-size: clamp(32px, 6vw, 48px);
}

.prologue-body {
  padding: 20px 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  color: #0d24cc;
  font-size: 18px;
  line-height: 2.15;
  letter-spacing: 0.025em;
}

.prologue-body p {
  margin: 0 0 1.4em;
  text-indent: 1em;
}

.prologue-body p:last-child {
  margin-bottom: 0;
}

.prologue-body p.no-indent {
  text-indent: 0;
}

/* Log body typography */
.log-page .prologue-body,
.prologue-page .prologue-body {
  color: #0d24cc;
  font-family: "Zen Kaku Gothic New", sans-serif;
}

.log-page .prologue-body p,
.prologue-page .prologue-body p {
  text-indent: 1em;
}

.log-page .prologue-body p.no-indent,
.prologue-page .prologue-body p.no-indent {
  text-indent: 0;
}

/* Side credit */
.side-credit {
  margin: -14px 0 30px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.62;
}

/* Contents banner */
.novel-header-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 38px;
}

/* Navigation */
.prologue-nav {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  margin: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: "Geist Mono", monospace;
  font-size: 12px;
}

.prologue-nav-three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
}

.prologue-nav-three > a:nth-child(2) {
  text-align: center;
}

.prologue-nav-three > a:last-child {
  text-align: right;
}

.nav-spacer {
  display: block;
}

/* Footer */
footer {
  margin-top: 54px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  opacity: 0.6;
}

/* Mobile */
@media (max-width: 520px) {
  .prologue-body {
    font-size: 15px;
    line-height: 2.05;
  }

  .site-header {
    padding: 18px 5vw;
  }

  .header-label {
    font-size: 9px;
  }

  .episode {
    grid-template-columns: 58px 1fr 14px;
    gap: 8px;
    font-size: 13px;
  }

  .page {
    margin-top: 50px;
  }
}


/* Scene spacing without a visible symbol */
.scene-space {
  display: block;
  height: 4.5em;
  margin: 0;
}

.log-page .prologue-body p.scene-break,
.prologue-page .prologue-body p.scene-break {
  text-indent: 0;
  padding-right: 1em;
  margin: 1.8em 0;
}
