:root {
  color-scheme: light;
  --ink: #151922;
  --muted: #5d6575;
  --paper: #f7fafc;
  --line: #dfe6ee;
  --navy: #18243a;
  --aqua: #13b7bd;
  --coral: #e24f5f;
  --gold: #f3b63d;
  --violet: #6a5cff;
  --leaf: #2f9c70;
  --shadow: 0 18px 60px rgba(21, 25, 34, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, #fbfdff 0%, #eef6f8 46%, #f8fbfc 100%);
  color: var(--ink);
}

body,
button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(223, 230, 238, 0.9);
  background: rgba(247, 250, 252, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.brand__mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(19, 183, 189, 0.35);
  border-radius: 8px;
  background: #ffffff;
  color: var(--aqua);
  font-size: 0.82rem;
  box-shadow: 0 8px 24px rgba(19, 183, 189, 0.14);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a,
.footer a {
  text-decoration: none;
}

.nav a:hover,
.footer a:hover {
  color: var(--coral);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url("assets/anime-welcome.png");
  background-position: 66% center;
  background-size: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 250, 252, 0.98) 0%, rgba(247, 250, 252, 0.86) 34%, rgba(247, 250, 252, 0.2) 68%),
    linear-gradient(180deg, rgba(21, 25, 34, 0.08), rgba(21, 25, 34, 0.2));
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(92vw, 760px);
  margin-left: clamp(22px, 6vw, 88px);
  padding-block: clamp(56px, 10vw, 112px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.2rem, 7.8vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.22rem, 2.1vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.intro {
  max-width: 43rem;
  margin: 26px 0 30px;
  color: #344057;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button--primary {
  border: 1px solid rgba(21, 25, 34, 0.14);
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(24, 36, 58, 0.2);
}

.button--secondary {
  border: 1px solid rgba(21, 25, 34, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--coral);
  box-shadow: 0 16px 34px rgba(226, 79, 95, 0.25);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  color: var(--coral);
  box-shadow: 0 14px 28px rgba(21, 25, 34, 0.1);
}

.button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(19, 183, 189, 0.32);
  outline-offset: 4px;
}

.updated {
  margin: 18px 0 0;
  color: #6b7483;
  font-size: 0.92rem;
  font-weight: 750;
}

.section {
  padding: clamp(56px, 7vw, 92px) clamp(20px, 5vw, 72px);
}

.section__inner {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.intro-band {
  background: #ffffff;
}

.two-column,
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.issue-card,
.content-panel,
.source-panel,
.update-grid article,
.rank-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 42px rgba(24, 36, 58, 0.07);
}

.issue-card {
  padding: 28px;
}

.issue-card dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.issue-card div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.issue-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.issue-card dt {
  color: var(--muted);
  font-weight: 750;
}

.issue-card dd {
  margin: 0;
  color: var(--navy);
  font-weight: 850;
  text-align: right;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.ranking-section {
  background:
    linear-gradient(180deg, #eef8f8 0%, #f8fbfc 100%);
}

.ranking-list {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rank-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 182px;
  overflow: hidden;
}

.rank-card--lead {
  border-color: rgba(19, 183, 189, 0.42);
  box-shadow: var(--shadow);
}

.rank-number {
  display: grid;
  place-items: center;
  min-height: 100%;
  background: var(--navy);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 950;
}

.rank-card:nth-child(3n + 1) .rank-number {
  background: var(--aqua);
}

.rank-card:nth-child(3n + 2) .rank-number {
  background: var(--coral);
}

.rank-card:nth-child(3n) .rank-number {
  background: var(--violet);
}

.rank-card article {
  padding: clamp(22px, 3vw, 32px);
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.rank-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf4f6;
  color: #465062;
  font-size: 0.8rem;
  font-weight: 800;
}

.rank-card p {
  margin: 14px 0 16px;
}

.rank-card a,
.source-panel a {
  color: var(--coral);
  font-weight: 850;
  text-underline-offset: 3px;
}

.ad-slot {
  width: min(1040px, calc(100% - 40px));
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 6px;
  margin: clamp(28px, 5vw, 48px) auto;
  padding: 24px;
  border: 1px dashed #a9b7c7;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(19, 183, 189, 0.08), rgba(243, 182, 61, 0.08)),
    #ffffff;
  color: #697484;
  text-align: center;
}

.ad-slot--top {
  margin-top: 32px;
}

.ad-slot span {
  color: #4b5565;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ad-slot p {
  max-width: 560px;
  margin: 0;
  font-size: 0.92rem;
}

.content-panel,
.source-panel {
  padding: clamp(24px, 4vw, 38px);
}

.source-panel ul {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  margin: 18px 0 0;
  color: var(--muted);
}

.monthly-section {
  background: #ffffff;
}

.update-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.update-grid article {
  min-height: 210px;
  padding: 24px;
}

.update-grid span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #eef8f8;
  color: var(--aqua);
  font-weight: 950;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: #ffffff;
}

.footer p {
  max-width: 520px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 800;
}

.footer a {
  color: #ffffff;
}

.text-page {
  min-height: 100vh;
  background: #f8fbfc;
}

.page-shell {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 86px) 0;
}

.page-card {
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 42px rgba(24, 36, 58, 0.07);
}

.page-card h1 {
  max-width: none;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.page-card h2 {
  margin-top: 34px;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.page-card ul {
  color: var(--muted);
  line-height: 1.72;
}

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

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .two-column,
  .article-grid,
  .update-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    align-items: end;
    min-height: calc(100svh - 112px);
    background-position: 67% center;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(247, 250, 252, 0.08) 0%, rgba(247, 250, 252, 0.78) 46%, rgba(247, 250, 252, 0.98) 100%),
      linear-gradient(90deg, rgba(247, 250, 252, 0.5), rgba(247, 250, 252, 0.08));
  }

  .hero__content {
    width: auto;
    margin: 0;
    padding: 42vh 22px 42px;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .rank-card {
    grid-template-columns: 1fr;
  }

  .rank-number {
    min-height: 58px;
  }

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