:root {
  color-scheme: light;
  --bg: #eef2f6;
  --panel: #ffffff;
  --line: #ccd5df;
  --text: #17202a;
  --muted: #566778;
  --navy: #1d2b38;
  --blue: #167d9e;
  --gold: #f4c95d;
  --shadow: 0 8px 28px rgba(17, 24, 39, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
}

body {
  background:
    linear-gradient(180deg, #e4f3f6 0, var(--bg) 300px),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 900;
  text-decoration: none;
}

.site-header nav,
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.site-header nav a,
.site-footer a {
  color: #3d596c;
  font-size: 0.86rem;
}

.page-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

.breadcrumbs {
  display: flex;
  overflow: hidden;
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 0.8rem;
  gap: 7px;
  white-space: nowrap;
}

.breadcrumbs a,
.breadcrumbs span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.occult-article {
  min-width: 0;
}

.article-header {
  border-bottom: 3px solid var(--gold);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--navy), #24495a);
  box-shadow: var(--shadow);
  color: #ffffff;
  padding: clamp(26px, 7vw, 50px);
}

.series-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

h1 {
  margin: 10px 0 0;
  font-size: clamp(1.75rem, 5.7vw, 3.25rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.article-date {
  display: flex;
  margin: 20px 0 0;
  color: #cbdce2;
  font-size: 0.78rem;
  gap: 7px;
}

.manga-section,
.story-section {
  padding-top: 42px;
}

h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  line-height: 1.45;
}

.manga-stack {
  display: grid;
  min-width: 0;
  padding-top: 18px;
  gap: 16px;
}

figure {
  margin: 0;
}

.manga-page {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}

figcaption {
  width: min(100%, 520px);
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.approved-copy {
  width: min(100%, 600px);
  margin: 18px auto 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  font-size: 1.05rem;
  line-height: 2;
  padding: 24px;
  white-space: pre-line;
}

.source-note {
  width: min(100%, 600px);
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.source-note a {
  color: #0c6682;
  text-underline-offset: 0.18em;
}

.safety-note {
  width: min(100%, 600px);
  margin: 16px auto 0;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff9e8;
  color: #53616d;
  font-size: 0.9rem;
  line-height: 1.8;
  padding: 16px 18px;
}

.related-links {
  display: grid;
  margin-top: 40px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-links a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
  text-decoration: none;
}

.related-links span,
.related-links strong {
  display: block;
}

.related-links span {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
}

.related-links strong {
  margin-top: 7px;
  line-height: 1.5;
}

.site-footer {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 32px;
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-shell {
    padding: 0 12px;
  }

  .article-header {
    border-radius: 14px;
    padding: 28px 20px;
  }

  h1 {
    font-size: clamp(1.62rem, 7.7vw, 2rem);
  }

  .manga-section,
  .story-section {
    padding-top: 34px;
  }

  .manga-stack {
    gap: 12px;
  }

  .manga-page {
    box-shadow: none;
  }

  .approved-copy {
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.9;
    padding: 18px 16px;
  }

  .related-links {
    grid-template-columns: 1fr;
  }
}

