/* Anime Cosmos Archive | Original responsive editorial layout */
:root {
  color-scheme: dark;
  --ink: #ecf2ff;
  --muted: #aab7d2;
  --deep: #0c1327;
  --panel: #121d37;
  --line: #2b3956;
  --violet: #ad9bff;
  --gold: #ffd18c;
  --cyan: #79e7ef;
  --radius: 22px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

body::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 0;
  height: 800px;
  background: radial-gradient(ellipse at 76% 9%, #35336f66, transparent 55%), radial-gradient(ellipse at 10% 13%, #173b5566, transparent 55%);
  pointer-events: none;
}

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

a:hover {
  color: var(--gold);
}

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

button, input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.shell {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 30;
  top: -100px;
  left: 18px;
  background: white;
  color: #0c1327;
  padding: 8px 16px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  border-bottom: 1px solid #ffffff1b;
  background: #0c1327e8;
  position: relative;
  z-index: 2;
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 850;
  white-space: nowrap;
  letter-spacing: 1px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #101525;
  font-size: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffdb90, #b29cfb);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.1;
  letter-spacing: 2px;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  gap: clamp(8px, 2vw, 28px);
  flex-wrap: wrap;
  justify-content: end;
}

.main-nav a {
  font-size: 13px;
  color: #c8d3e8;
  white-space: nowrap;
}

.main-nav a:hover {
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 54px;
  padding-block: 66px 70px;
}

.orbit-label, .section-number {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--cyan);
  font-weight: 800;
}

.orbit-label {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.orbit-label span:last-child {
  color: var(--gold);
}

.signal {
  background: var(--cyan);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 18px var(--cyan);
}

.hero-kicker {
  margin: 30px 0 8px;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 2px;
}

h1, h2, h3, p {
  overflow-wrap: anywhere;
}

.hero h1 {
  font-size: clamp(36px, 4.6vw, 65px);
  letter-spacing: -.8px;
  line-height: 1.28;
  margin: 0;
}

.hero h1 span {
  display: block;
  color: #c4b6ff;
  font-size: clamp(25px, 3.2vw, 42px);
  line-height: 1.4;
  margin-top: 8px;
}

.hero-description {
  color: var(--muted);
  line-height: 2.1;
  max-width: 570px;
  margin: 28px 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.primary-btn {
  background: linear-gradient(135deg, #d4b8ff, #9ce9ff);
  display: inline-flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #13192c;
  padding: 13px 21px;
  font-weight: 800;
}

.primary-btn:hover {
  color: #16102c;
  filter: brightness(1.1);
}

.secondary-btn {
  border: 1px solid #64718b;
  border-radius: 12px;
  padding: 12px 19px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding-top: 20px;
}

.hero-metrics span {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}

.hero-metrics b {
  font: 700 28px Georgia, serif;
  color: #fff;
}

.hero-art {
  position: relative;
  border: 1px solid #ffffff26;
  border-radius: 50% 50% 20px 20px / 18% 18% 20px 20px;
  overflow: hidden;
  box-shadow: 0 24px 100px #0008;
}

.hero-art img {
  width: 100%;
  height: min(560px, 48vw);
  min-height: 360px;
  object-fit: cover;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, #061125dd);
  pointer-events: none;
}

.hero-art-caption {
  position: absolute;
  z-index: 1;
  bottom: 24px;
  left: 27px;
  right: 24px;
  display: grid;
  gap: 5px;
}

.hero-art-caption span {
  font-size: 10px;
  color: #a9e8ee;
  letter-spacing: 2px;
}

.hero-art-caption strong {
  font-size: 18px;
}

.intro-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 12px;
  border-block: 1px solid var(--line);
  padding: 18px;
}

.intro-strip span {
  font-size: 13px;
  color: #b2c1df;
  letter-spacing: 2px;
}

.section {
  padding-block: 83px 26px;
}

.section-heading {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: clamp(27px, 3vw, 38px);
  margin: 9px 0 5px;
  line-height: 1.3;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.more-link {
  font-size: 13px;
  padding-bottom: 8px;
  color: var(--gold);
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.world-card {
  position: relative;
  grid-column: span 2;
  min-height: 330px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid #ffffff1c;
  background: var(--panel);
}

.world-card:nth-child(1), .world-card:nth-child(2) {
  grid-column: span 3;
  min-height: 410px;
}

.world-art, .world-art::after {
  position: absolute;
  inset: 0;
}

.world-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.world-card:hover .world-art img {
  transform: scale(1.04);
}

.world-art::after {
  content: "";
  background: linear-gradient(0deg, #050b20fa, #07132708 75%);
}

.world-info {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 20px;
}

.world-info>span:first-child {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 2px;
}

.world-info h3 {
  font-size: 26px;
  line-height: 1.2;
  margin: 5px 0 4px;
}

.world-info p {
  color: #d4def0;
  font-size: 12px;
  margin: 0;
}

.world-arrow {
  position: absolute;
  right: 0;
  bottom: 9px;
  font-size: 20px;
}

.feature-band {
  margin-top: 80px;
  background: #192341;
  border-block: 1px solid #ffffff14;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
  padding-block: 40px;
}

.feature-visual {
  border-radius: 23px;
  overflow: hidden;
  max-height: 470px;
}

.feature-visual img {
  width: 100%;
  height: 470px;
  object-fit: cover;
}

.feature-copy h2 {
  font-size: clamp(26px, 3.7vw, 45px);
  line-height: 1.37;
  margin: 12px 0;
}

.feature-copy p:not(.tiny-rule) {
  color: var(--muted);
  margin-bottom: 26px;
  line-height: 2;
}

.tiny-rule {
  color: var(--gold);
  margin-top: 16px;
  letter-spacing: 1px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.story-card {
  min-width: 0;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #121c34;
  overflow: hidden;
}

.story-card-image {
  display: block;
  overflow: hidden;
}

.story-card-image img {
  aspect-ratio: 1.53;
  width: 100%;
  object-fit: cover;
  transition: transform .35s;
}

.story-card:hover img {
  transform: scale(1.04);
}

.story-card-body {
  padding: 21px;
}

.eyebrow {
  display: inline-block;
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 800;
}

.story-card h3 {
  font-size: 19px;
  line-height: 1.52;
  margin: 9px 0;
}

.story-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.8;
}

.read-link {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.perspective {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  padding-bottom: 100px;
}

.perspective h2 {
  font-size: 34px;
  margin: 13px 0;
}

.perspective p {
  color: var(--muted);
  max-width: 540px;
}

.method-list {
  display: grid;
  gap: 12px;
}

.method-list>div {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #131c32;
}

.method-list b {
  font: 30px Georgia, serif;
  color: var(--violet);
}

.method-list span {
  display: grid;
}

.method-list small {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #090f20;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 60px;
  padding-block: 52px;
}

.footer-grid strong {
  display: block;
  font-size: 17px;
  margin-bottom: 12px;
}

.footer-grid p {
  color: #8797b5;
  font-size: 12px;
  max-width: 400px;
}

.footer-grid a {
  display: block;
  font-size: 13px;
  color: #a8b6ce;
  margin: 9px 0;
}

.footer-bottom {
  border-top: 1px solid #ffffff17;
  padding-block: 17px;
  color: #7c8ba8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
}

.breadcrumbs {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #a7b7d3;
  margin-block: 25px;
}

.breadcrumbs a:hover {
  color: var(--gold);
}

.listing-hero {
  padding-top: 14px;
}

.listing-head {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #17233e;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  overflow: hidden;
  align-items: stretch;
}

.listing-head>div {
  padding: 48px;
  align-self: center;
}

.listing-head h1 {
  font-size: clamp(36px, 4vw, 56px);
  margin: 12px 0;
}

.listing-head p {
  color: var(--muted);
  max-width: 550px;
}

.listing-head .listing-subtitle {
  font-size: 19px;
  color: var(--gold);
}

.listing-head img {
  height: 350px;
  width: 100%;
  object-fit: cover;
}

.back-section {
  padding-bottom: 80px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 800px) 290px;
  justify-content: space-between;
  gap: 55px;
  padding-block: 15px 24px;
}

.article-header {
  padding-block: 12px 25px;
}

.article-header h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.35;
  margin: 16px 0;
}

.article-lead {
  color: #c3cee6;
  font-size: 18px;
  line-height: 1.9;
}

.article-meta {
  color: #8092b5;
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.article-cover {
  margin: 0 0 36px;
}

.article-cover img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  border-radius: 20px;
}

figcaption {
  font-size: 11px;
  color: #8393b4;
  margin-top: 11px;
}

.article-prose {
  font-size: 16px;
  line-height: 2.05;
  color: #cad5eb;
}

.article-prose p {
  margin: 0 0 22px;
}

.article-prose h2 {
  color: #eff3ff;
  font-size: 25px;
  margin: 40px 0 14px;
  border-left: 3px solid var(--violet);
  padding-left: 15px;
  line-height: 1.5;
}

.article-prose .first-paragraph {
  font-size: 19px;
  color: #f0e7fd;
}

.inline-figure {
  margin: 32px 0;
}

.inline-figure img {
  border-radius: 15px;
  width: 100%;
  object-fit: cover;
}

.article-sidebar {
  padding-top: 105px;
}

.sidebar-box {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: #141e37;
  margin-bottom: 16px;
}

.sidebar-box h2 {
  font-size: 17px;
  margin: 8px 0;
}

.sidebar-box p {
  color: var(--muted);
  font-size: 13px;
}

.sidebar-box a {
  display: flex;
  justify-content: space-between;
  color: var(--cyan);
  padding: 10px 0;
  border-bottom: 1px solid #ffffff13;
  font-size: 13px;
}

.related-section {
  padding-bottom: 100px;
}

.about-page {
  padding-block: 35px 105px;
  max-width: 950px;
}

.about-page h1 {
  font-size: 49px;
  margin: 12px 0;
}

.about-page h2 {
  font-size: 25px;
  margin-top: 35px;
}

.about-page>p {
  line-height: 2.1;
  color: var(--muted);
}

.about-page>.primary-btn {
  margin-top: 25px;
}

@media(max-width: 1020px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 17px;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    gap: 28px;
  }

  .story-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .article-shell {
    grid-template-columns: minmax(0,1fr);
  }

  .article-sidebar {
    padding-top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .feature-grid {
    gap: 28px;
  }

}

@media(max-width: 720px) {
  .shell {
    width: min(100% - 32px, 560px);
  }

  .main-nav {
    gap: 9px 17px;
  }

  .main-nav a {
    font-size: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-block: 36px;
  }

  .hero-art {
    border-radius: 22px;
  }

  .hero-art img {
    height: 350px;
    min-height: 0;
  }

  .hero-metrics {
    gap: 20px;
  }

  .intro-strip {
    justify-content: flex-start;
  }

  .section {
    padding-block: 57px 20px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .world-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }

  .world-card, .world-card:nth-child(1), .world-card:nth-child(2) {
    grid-column: span 1;
    min-height: 260px;
  }

  .world-card:last-child {
    grid-column: span 2;
  }

  .world-info {
    left: 14px;
    right: 12px;
    bottom: 13px;
  }

  .world-info h3 {
    font-size: 19px;
  }

  .world-info p {
    font-size: 11px;
    line-height: 1.45;
  }

  .feature-band {
    margin-top: 35px;
  }

  .feature-grid, .perspective, .listing-head {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    padding-block: 22px 32px;
  }

  .feature-visual img {
    height: 275px;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-card-image img {
    aspect-ratio: 1.75;
  }

  .listing-head>div {
    padding: 28px;
  }

  .listing-head img {
    height: 260px;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-grid>div:first-child {
    grid-column: span 2;
  }

  .perspective {
    gap: 24px;
  }

}

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

  .world-card, .world-card:nth-child(1), .world-card:nth-child(2), .world-card:last-child {
    grid-column: span 1;
    min-height: 250px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .primary-btn, .secondary-btn {
    flex-grow: 1;
  }

}

@media(prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: .01ms !important;
  }

}

/* Layout refinements: predictable rendering at every viewport width. */
html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
}

.hero,
.hero-copy,
.hero-art,
.feature-grid > *,
.section-heading > *,
.world-card,
.story-card,
.listing-head > * {
  min-width: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.world-art img,
.story-card-image img,
.article-cover img {
  object-position: center;
}

@media (max-width: 720px) {
  .hero h1 {
    font-size: clamp(33px, 8vw, 49px);
  }

  .hero h1 span {
    font-size: clamp(23px, 5.7vw, 33px);
  }

  .hero-description {
    line-height: 1.85;
  }

  .world-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .world-card,
  .world-card:nth-child(1),
  .world-card:nth-child(2) {
    min-height: 280px;
  }

  .world-card:last-child {
    grid-column: 1 / -1;
  }

  .world-info p {
    max-width: 22ch;
  }

  .feature-copy h2 {
    font-size: clamp(25px, 7vw, 36px);
  }

  .footer-grid {
    padding-block: 35px;
  }
}

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

  .world-card,
  .world-card:nth-child(1),
  .world-card:nth-child(2),
  .world-card:last-child {
    grid-column: 1 / -1;
    min-height: 275px;
  }

  .orbit-label {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .intro-strip span {
    letter-spacing: 1px;
  }
}
