:root {
  --paper: #f2f0ea;
  --paper-deep: #e6e4de;
  --ink: #101116;
  --ink-soft: #696b70;
  --blue: #0757ff;
  --blue-light: #77a5ff;
  --line: rgba(16, 17, 22, 0.25);
  --line-dark: rgba(242, 240, 234, 0.24);
  --max: 1280px;
  --gutter: clamp(22px, 4.5vw, 72px);
  --display: "Inter", Arial, sans-serif;
  --mono: "Inter", Arial, sans-serif;
  --headline: "Bebas Neue", Impact, sans-serif;
}

@keyframes page-out {
  to {
    opacity: 0;
    filter: brightness(0.35) saturate(0.7);
    transform: translateX(-3vw) scale(0.985);
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    filter: brightness(0.65) saturate(0.8);
    transform: translateX(3vw);
  }

  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: none;
    transform: none;
  }
}

html {
  background: var(--paper);
}

body {
  min-width: 320px;
  background: var(--paper);
  font-family: var(--display);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  animation: page-in 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.is-page-leaving body {
  animation: page-out 320ms cubic-bezier(0.65, 0, 0.35, 1) both;
  pointer-events: none;
}

.server-bar {
  display: none;
}

.site-nav {
  top: 0;
  height: 80px;
  background: rgba(242, 240, 234, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-nav__inner {
  width: 100%;
  max-width: none;
  padding: 0 34px;
  grid-template-columns: minmax(240px, 1fr) auto minmax(300px, 1fr);
  gap: 32px;
}

.brand {
  gap: 14px;
  font-family: var(--headline);
  font-size: 31px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--ink);
}

.nav-links {
  height: 100%;
  align-items: stretch;
  gap: 38px;
}

.nav-links a {
  display: grid;
  height: 100%;
  place-items: center;
  font-family: var(--headline);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-links a::after {
  bottom: 17px;
  height: 3px;
  transform-origin: left;
}

.nav-action {
  min-height: 50px;
  padding: 0 24px;
  font-family: var(--headline);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.page-header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 30px;
}

.page-platform {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--headline);
  font-size: 17px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.page-platform i {
  width: 8px;
  height: 8px;
  background: var(--ink);
}

.nav-action:hover,
.nav-action:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
}

.menu-button {
  width: 46px;
  height: 46px;
  padding: 12px;
  background: var(--paper);
  transition: background 160ms ease, color 160ms ease;
}

.menu-button:hover,
.menu-button:focus-visible {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.menu-button:hover span,
.menu-button:focus-visible span {
  background: white;
}

.page-intro {
  position: relative;
  display: grid;
  min-height: clamp(470px, 58vh, 650px);
  padding: clamp(88px, 11vw, 150px) 0 clamp(64px, 8vw, 110px);
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  color: white;
  border-top: 5px solid var(--blue);
  border-bottom: 1px solid var(--ink);
}

.page-intro__grid {
  position: relative;
  z-index: 1;
  grid-template-columns: 120px minmax(0, 1fr) minmax(300px, 0.5fr);
  align-items: end;
  gap: 38px;
}

.page-intro__kicker,
.chapter-index {
  color: var(--blue);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-intro__kicker {
  padding: 0 0 17px;
}

.page-intro h1 {
  font-family: var(--headline);
  font-size: clamp(88px, 11vw, 156px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.015em;
}

.page-intro__copy {
  padding-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.42;
}

.wide-figure {
  padding: 0 var(--gutter);
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}

.wide-figure img {
  width: min(100%, var(--max));
  min-height: 360px;
  max-height: 680px;
  border: 1px solid rgba(242, 240, 234, 0.24);
  object-fit: cover;
}

.wide-figure figcaption,
.story__media figcaption,
.plate figcaption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.chapter {
  padding: clamp(88px, 10vw, 150px) 0;
  background: var(--paper);
}

.chapter--ink {
  background: var(--ink);
  color: white;
}

.chapter--blue {
  background: var(--blue);
  color: white;
}

.chapter-head {
  grid-template-columns: 120px minmax(0, 1fr) minmax(280px, 0.5fr);
  gap: 38px;
  margin-bottom: clamp(58px, 8vw, 104px);
}

.chapter-index {
  padding-top: 11px;
}

.chapter-index::before {
  display: none;
}

.chapter-head h2,
.join-band h2,
.rule-chapter h2,
.notice h2,
.connection-sheet h2,
.legal article h2,
.legal article h3,
.system-row h3,
.timeline-row h3,
.rank-summary__row h2,
.steps h3,
.footer-col h3 {
  font-family: var(--headline);
  font-weight: 400;
  letter-spacing: 0.015em;
}

.chapter-head h2 {
  font-size: clamp(64px, 8vw, 112px);
  line-height: 0.88;
}

.chapter-head p {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.5;
}

.chapter--ink .chapter-index,
.chapter--blue .chapter-index {
  color: var(--blue-light);
}

.system-index,
.rank-summary,
.faq,
.data-table-wrap,
.steps,
.rule-nav {
  border-top-color: var(--ink);
}

.system-row,
.rank-summary__row,
.steps li,
.faq details,
.rules-list li,
.rule-nav a {
  transition: background 180ms ease, padding 180ms ease, color 180ms ease;
}

.system-row:hover,
.rank-summary__row:hover,
.steps li:hover,
.rules-list li:hover {
  background: rgba(7, 87, 255, 0.055);
}

.chapter--ink .timeline-row:hover {
  background: rgba(7, 87, 255, 0.14);
}

.system-row h3 {
  font-size: 30px;
  line-height: 0.98;
}

.system-row__number,
.system-row__command,
.timeline-row time,
.rank-summary__row > span:first-child,
.steps li::before,
.rule-chapter__head span,
.rules-list li::before,
.legal__meta,
.data-table thead th,
.footer-bottom,
.footer-col h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.system-row__command {
  padding: 6px 9px;
  background: var(--blue);
}

.timeline-row h3 {
  font-size: 30px;
  line-height: 1;
}

.data-table {
  border-top: 3px solid var(--blue);
}

.data-table thead th {
  background: var(--ink);
  color: white;
}

.data-table th,
.data-table td {
  padding: 19px 18px;
}

.rank-summary__row {
  padding: 34px 0;
}

.rank-summary__row h2 {
  font-size: 42px;
}

.rank-summary__price {
  color: var(--blue);
  font-size: 17px;
  font-weight: 800;
}

.rank-summary__row li::before {
  color: var(--blue);
  font-weight: 900;
}

.join-switch {
  border-top: 3px solid var(--blue);
}

.join-switch button {
  padding: 18px 24px;
  font-family: var(--headline);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.join-switch button[aria-selected="true"] {
  background: var(--blue);
}

.steps h3 {
  font-size: 27px;
}

.connection-sheet {
  top: 112px;
  border-top-color: var(--blue);
}

.connection-sheet h2 {
  font-size: 31px;
}

.connection-line span:first-child,
.connection-line span:last-child {
  font-family: var(--display);
  font-weight: 750;
  letter-spacing: 0.08em;
}

.faq summary {
  padding: 26px 60px 26px 0;
  font-family: var(--headline);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.faq summary::after {
  top: 18px;
  color: var(--blue);
  font-family: var(--headline);
  font-size: 32px;
}

.rule-nav {
  top: 112px;
  border-top: 3px solid var(--blue);
}

.rule-nav a {
  padding: 15px 12px;
  font-size: 11px;
}

.rule-nav a:hover,
.rule-nav a:focus-visible {
  padding-left: 20px;
  background: var(--blue);
  color: white;
}

.rule-chapter {
  scroll-margin-top: 120px;
}

.rule-chapter__head {
  border-bottom: 3px solid var(--ink);
}

.rule-chapter h2 {
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.9;
}

.rules-list strong {
  font-family: var(--headline);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.notice {
  padding: 34px;
  background: rgba(7, 87, 255, 0.055);
  border-top-color: var(--blue);
}

.notice h2 {
  font-size: 38px;
}

.legal {
  grid-template-columns: 260px minmax(0, 800px);
  gap: clamp(56px, 7vw, 100px);
  padding: 100px 0 150px;
}

.legal__meta {
  top: 112px;
  padding-top: 18px;
  border-top: 3px solid var(--blue);
}

.legal article h2 {
  margin-top: 70px;
  padding-top: 24px;
  font-size: 39px;
  line-height: 1;
  border-top: 2px solid var(--ink);
}

.legal article h3 {
  font-size: 24px;
}

.legal article p,
.legal article li {
  font-size: 16px;
  line-height: 1.7;
}

.button {
  min-height: 54px;
  padding: 0 24px;
  border-width: 1px;
  font-family: var(--headline);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.button:hover,
.button:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  transform: translateY(-2px);
}

.button--light {
  color: var(--ink);
}

.button--outline:hover,
.button--outline:focus-visible {
  background: white;
  border-color: white;
  color: var(--ink);
}

.join-band.chapter--blue {
  min-height: 62vh;
  padding: clamp(88px, 10vw, 150px) 0;
  align-content: end;
  background: var(--ink);
}

.join-band h2 {
  max-width: 900px;
  font-size: clamp(72px, 10vw, 148px);
  font-weight: 400;
  line-height: 0.82;
}

.join-band .chapter-index {
  display: block;
  margin-bottom: 32px;
  color: var(--blue);
}

.site-footer {
  padding: 70px 0 30px;
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
}

.footer-main {
  padding-bottom: 64px;
}

.footer-brand .brand {
  font-size: 28px;
}

.footer-brand p {
  line-height: 1.55;
}

.footer-col h3 {
  color: var(--blue-light);
  font-family: var(--display);
  font-size: 10px;
}

.footer-col a {
  font-family: var(--headline);
  font-size: 18px;
  letter-spacing: 0.025em;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--blue-light);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 520ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .site-nav__inner {
    grid-template-columns: 1fr auto auto;
    padding: 0 24px;
  }

  .nav-links {
    top: 80px;
    bottom: auto;
    height: calc(100dvh - 80px);
    padding: 30px 24px;
    background: var(--paper);
    border-top: 5px solid var(--blue);
  }

  .nav-links a {
    display: block;
    height: auto;
    padding: 16px 0;
    font-size: 36px;
    line-height: 1;
  }

  .page-platform {
    display: none;
  }

  .chapter-head,
  .page-intro__grid {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .page-intro__copy,
  .chapter-head p {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .site-nav {
    height: 72px;
  }

  .site-nav__inner {
    padding: 0 16px;
  }

  .brand {
    font-size: 25px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .nav-links {
    top: 72px;
    height: calc(100dvh - 72px);
  }

  .page-header-actions {
    display: none;
  }

  .page-intro {
    min-height: 470px;
    padding: 88px 0 64px;
  }

  .page-intro__grid,
  .chapter-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-intro__kicker {
    padding-bottom: 4px;
  }

  .page-intro h1 {
    font-size: clamp(76px, 25vw, 116px);
    line-height: 0.84;
  }

  .page-intro__copy,
  .chapter-head p {
    grid-column: auto;
  }

  .wide-figure {
    padding: 0 20px;
  }

  .wide-figure img {
    min-height: 260px;
  }

  .chapter {
    padding: 84px 0;
  }

  .chapter-head {
    margin-bottom: 52px;
  }

  .chapter-head h2 {
    font-size: clamp(54px, 17vw, 78px);
  }

  .system-row h3,
  .timeline-row h3 {
    font-size: 25px;
  }

  .rank-summary__row h2 {
    font-size: 34px;
  }

  .rule-chapter h2 {
    font-size: 55px;
  }

  .notice {
    padding: 28px 20px;
  }

  .join-band.chapter--blue {
    min-height: 74vh;
  }

  .join-band h2 {
    font-size: clamp(72px, 24vw, 112px);
  }

  .footer-main {
    gap: 38px 28px;
  }
}

@media (max-width: 430px) {
  .brand span {
    font-size: 22px;
  }

  .page-intro h1 {
    font-size: clamp(72px, 24vw, 96px);
  }

  .chapter-head h2 {
    font-size: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  html.is-page-leaving body {
    animation: none;
  }

  html.is-page-leaving body {
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
