:root {
  --bg: #eef1f5;
  --bg-deep: #e2e7ee;
  --ink: #0b1426;
  --muted: #5b667a;
  --line: #c8d0dc;
  --signal: #ff5a1f;
  --signal-ink: #9a2f0a;
  --valo: #0f766e;
  --lol: #a16207;
  --surface: rgba(255, 255, 255, 0.72);
  --max: 44rem;
  --wide: 68rem;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(255, 90, 31, 0.12), transparent 55%),
    radial-gradient(700px 360px at -10% 20%, rgba(15, 118, 110, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(11, 20, 38, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 20, 38, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: grid-drift 28s linear infinite;
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 48px 24px, 24px 48px;
  }
}

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

  body::before,
  .hero-scan,
  .hero-copy > *,
  .post-row {
    animation: none !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0.25rem;
}

.skip-link:focus {
  top: 1rem;
}

a {
  color: var(--signal-ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

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

.site-header,
.site-footer,
main {
  position: relative;
  z-index: 1;
}

.site-header {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(238, 241, 245, 0.82);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 0.7rem;
  height: 1.7rem;
  background: var(--signal);
  transform: skewX(-12deg);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 500;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

nav a:hover {
  color: var(--signal-ink);
}

nav a:hover::after {
  transform: scaleX(1);
}

main:not(:has(.hero)) {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
}

main:has(.hero) {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* —— Hero (homepage first viewport) —— */
.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(115deg, #d7dee8 0%, #eef1f5 42%, #f7f4f0 100%);
}

.hero-grid {
  position: absolute;
  inset: -10%;
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 22px,
      rgba(11, 20, 38, 0.045) 22px,
      rgba(11, 20, 38, 0.045) 23px
    ),
    radial-gradient(ellipse 70% 50% at 70% 40%, rgba(255, 90, 31, 0.16), transparent 70%);
  animation: grid-drift 36s linear infinite reverse;
}

.hero-signal {
  position: absolute;
  left: -8%;
  bottom: 18%;
  width: 55%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--signal) 30%, rgba(255, 90, 31, 0.2));
  transform: skewY(-8deg);
}

.hero-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 48%,
    transparent 52%
  );
  background-size: 100% 220%;
  animation: scan-sweep 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scan-sweep {
  0%,
  100% {
    background-position: 0 -40%;
  }
  50% {
    background-position: 0 140%;
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: var(--wide);
  width: 100%;
  margin: 0 auto;
  padding: clamp(4rem, 14vh, 8rem) 1.5rem clamp(3rem, 8vh, 5rem);
}

.hero-kicker {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal-ink);
}

.hero-brand {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.2rem, 12vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 14ch;
}

.hero-headline {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--ink);
  max-width: 18em;
}

.hero-lede {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  color: var(--muted);
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.hero-copy > * {
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy > :nth-child(1) {
  animation-delay: 0.05s;
}
.hero-copy > :nth-child(2) {
  animation-delay: 0.12s;
}
.hero-copy > :nth-child(3) {
  animation-delay: 0.2s;
}
.hero-copy > :nth-child(4) {
  animation-delay: 0.28s;
}
.hero-copy > :nth-child(5) {
  animation-delay: 0.36s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--signal);
  color: #fff;
  border-color: var(--signal);
}

.btn-primary:hover {
  background: var(--signal-ink);
  border-color: var(--signal-ink);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

/* —— Feed / listing —— */
.feed {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
}

.feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}

.feed-head h2,
.page-intro h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.feed-note,
.lede {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-intro {
  margin-bottom: 2rem;
}

.page-intro .lede {
  margin-top: 0.75rem;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-row {
  border-bottom: 1px solid var(--line);
  animation: rise-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.06s * var(--i, 0) + 0.2s);
}

.post-link {
  display: block;
  padding: 1.35rem 0.15rem;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease;
}

.post-link:hover {
  background: rgba(255, 255, 255, 0.45);
  color: inherit;
  text-decoration: none;
}

.post-link:hover .post-title {
  color: var(--signal-ink);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.game-chip,
.patch-chip {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  line-height: 1.3;
}

.game-valo {
  color: var(--valo);
}

.game-lol {
  color: var(--lol);
}

.patch-chip {
  color: var(--muted);
  border-color: var(--line);
}

.kind-chip,
.cat-chip {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal-ink);
  border: 1px solid rgba(255, 90, 31, 0.35);
  line-height: 1.3;
}

.cat-patch {
  color: var(--ink);
  border-color: var(--ink);
}

.cat-news {
  color: var(--signal-ink);
  border-color: rgba(255, 90, 31, 0.45);
}

.cat-official {
  color: var(--valo);
  border-color: rgba(15, 118, 110, 0.45);
}

.cat-watch {
  color: var(--lol);
  border-color: rgba(161, 98, 7, 0.45);
}

.cat-brief {
  color: var(--muted);
  border-color: var(--line);
}

/* —— Home: game-split feed + cadence —— */
.game-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 2rem;
  margin-top: 0.5rem;
}

@media (min-width: 900px) {
  .game-sections {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2.5rem;
    align-items: start;
  }
}

.game-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.game-section-title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.game-section-more {
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
}

.game-section-more:hover {
  color: var(--signal-ink);
}

.game-section .post-title {
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.cadence-block {
  padding-top: 1rem;
}

.cadence-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.cadence-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.85rem 0.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .cadence-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.cadence-label {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.cadence-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  color: var(--muted);
  line-height: 1.55;
}

.cadence-foot {
  margin: 1.25rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.archive-game {
  margin-top: 2rem;
}

.archive-game-title {
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.archive-game[hidden] {
  display: none;
}

.feed-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.filter-btn {
  appearance: none;
  cursor: pointer;
  min-height: 2.25rem;
  padding: 0.35rem 0.85rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--ink);
}

.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.post-row[hidden] {
  display: none;
}

.post-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.post-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 40rem;
}

/* —— Article / prose —— */
h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  font-weight: 700;
}

.meta {
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  margin: 0 0 0.5rem;
}

main p {
  margin: 0 0 1rem;
}

main ul {
  padding-left: 1.2rem;
}

main li {
  margin-bottom: 0.4rem;
}

.legal table,
table.legal {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.95rem;
}

.legal th,
.legal td,
table.legal th,
table.legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.legal th,
table.legal th {
  width: 9rem;
  color: var(--muted);
  font-weight: 500;
}

table.legal thead th {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
}

.placeholder-note {
  margin-top: 1.75rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--signal);
  background: rgba(255, 90, 31, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.post-article .lede {
  margin: 0 0 1.25rem;
}

.related {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}

.related h2 {
  margin-top: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.15rem;
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.related-list li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.related-list a {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  padding: 0.75rem 0.1rem;
  color: inherit;
  text-decoration: none;
}

.related-list a:hover {
  color: var(--signal-ink);
  text-decoration: none;
}

.related-list time {
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  min-width: 6.5rem;
}

.post-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

/* —— Footer —— */
.site-footer {
  max-width: var(--wide);
  margin: 3rem auto 0;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-name {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-brand p:last-child {
  margin: 0;
  max-width: 28rem;
}

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

  .hero {
    min-height: 88vh;
  }

  .hero-brand {
    max-width: none;
  }

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