:root {
  --ink: #101315;
  --muted: #5f686f;
  --paper: #f7f3ec;
  --line: rgba(16, 19, 21, 0.14);
  --green: #0b7f5f;
  --gold: #d59b31;
  --red: #b7433f;
  --blue: #2469a6;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(14, 24, 32, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Noto Sans JP", system-ui, sans-serif;
}

body::selection {
  background: rgba(213, 155, 49, 0.35);
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.menu-toggle:focus-visible,
.content-filter:focus-visible,
.filter-button:focus-visible,
.back-to-top:focus-visible {
  box-shadow: 0 0 0 3px var(--gold);
  outline: 0;
}

.skip-link {
  background: var(--gold);
  color: #17110a;
  font-weight: 900;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -52px;
  z-index: 40;
}

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

.site-header {
  align-items: center;
  background: rgba(247, 243, 236, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(16, 19, 21, 0.08);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 52px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 900;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.nav {
  align-items: center;
  display: flex;
  gap: clamp(10px, 1.5vw, 22px);
  font-size: 0.82rem;
  font-weight: 800;
  justify-content: flex-end;
  min-width: 0;
}

.nav a {
  color: rgba(16, 19, 21, 0.72);
}

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

.menu-toggle {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.menu-toggle span {
  background: var(--white);
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 20px;
}

.hero {
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}

.hero-image,
.hero-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 12, 14, 0.84) 0%, rgba(9, 12, 14, 0.58) 38%, rgba(9, 12, 14, 0.12) 72%),
    linear-gradient(180deg, rgba(9, 12, 14, 0.12) 0%, rgba(9, 12, 14, 0.58) 100%);
}

.hero-content {
  color: var(--white);
  max-width: 760px;
  padding: 22vh clamp(22px, 6vw, 76px) 16vh;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 7.9rem);
  line-height: 0.9;
  margin-bottom: 24px;
  max-width: 720px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.8;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button {
  background: var(--gold);
  color: #17110a;
}

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

.primary-button:hover,
.primary-button:focus-visible {
  background: #efbd4d;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.8);
}

.countdown-panel {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.88);
  bottom: 34px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 20px;
  position: absolute;
  right: clamp(18px, 4vw, 52px);
  width: min(210px, calc(100vw - 36px));
  z-index: 3;
}

.countdown-panel strong {
  font-size: 3.1rem;
  line-height: 0.95;
}

.panel-label,
#countdown-detail {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.quick-stats {
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 clamp(18px, 4vw, 52px);
}

.quick-stats div {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  min-height: 132px;
  padding: 26px clamp(14px, 3vw, 34px);
}

.quick-stats div:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.quick-stats strong {
  display: block;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1;
}

.category-link {
  display: inline-block;
}

.category-link:hover strong,
.category-link:focus-visible strong {
  color: var(--gold);
}

.quick-stats span {
  color: rgba(255, 255, 255, 0.68);
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  margin-top: 8px;
}

.topics-section,
.clubs-section {
  background: #fffaf1;
}

.topics-section .section-heading p:not(.eyebrow),
.teams-section .section-heading p:not(.eyebrow),
.clubs-section .section-heading p:not(.eyebrow),
.cities-section .section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

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

.topic-card,
.article-card,
.utility-card,
.spotlight-card,
.history-card,
.club-grid > *,
.info-grid article,
.worldcup-summary article {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.topic-card:hover,
.article-card:hover,
.utility-card:hover,
.spotlight-card:hover,
.history-card:hover,
.club-grid > *:hover,
.guide-list .guide-card:hover,
.city-card:hover,
.info-grid article:hover {
  border-color: rgba(11, 127, 95, 0.34);
  box-shadow: 0 16px 36px rgba(14, 24, 32, 0.1);
  transform: translateY(-3px);
}

.topic-card {
  min-height: 210px;
  padding: 24px;
}

.featured-topic {
  background: var(--ink);
  color: var(--white);
  grid-column: span 2;
}

.topic-card span,
.club-grid strong {
  color: var(--green);
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.card-title-link {
  text-decoration: underline;
  text-decoration-color: rgba(16, 19, 21, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.featured-topic .card-title-link {
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.card-title-link:hover,
.card-title-link:focus-visible {
  text-decoration-color: currentColor;
}

.featured-topic span {
  color: #f0c15b;
}

.featured-topic p {
  color: rgba(255, 255, 255, 0.72);
}

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

.club-grid > * {
  min-height: 230px;
  padding: 26px;
}

.compact-list article {
  min-height: 190px;
}

.worldcup-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 46px;
}

.worldcup-summary article {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 128px;
  padding: 22px;
}

.worldcup-summary strong {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.worldcup-summary span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading-small {
  margin-top: 18px;
}

.section-heading-small h2 {
  font-size: clamp(1.8rem, 4vw, 3.6rem);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.split-section {
  display: grid;
  gap: clamp(34px, 6vw, 78px);
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
}

.section-copy,
.section-heading {
  max-width: 720px;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.9rem);
  line-height: 1;
  margin-bottom: 22px;
}

.section-copy p:not(.eyebrow),
.section-heading + p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

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

.overview-grid article,
.guide-list .guide-card,
.city-card {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.content-tools {
  align-items: flex-start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1fr) auto;
  margin: 28px 0 18px;
}

.search-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-box span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-box input {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  min-height: 48px;
  padding: 0 14px;
  width: 100%;
}

.search-box input:focus {
  border-color: rgba(11, 127, 95, 0.52);
  outline: 3px solid rgba(11, 127, 95, 0.14);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.content-filter {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  min-height: 40px;
  padding: 0 14px;
}

.content-filter.is-active,
.content-filter:hover,
.content-filter:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.result-count {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  grid-column: 1 / -1;
  margin: 0;
}

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

.article-card,
.utility-card,
.spotlight-card,
.history-card,
.info-grid article {
  min-height: 190px;
  padding: 22px;
}

.article-card span,
.utility-card span,
.spotlight-card span,
.history-card span {
  color: var(--green);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.article-card.is-hidden,
.guide-card.is-hidden {
  display: none;
}

.match-section,
.spotlight-section,
.history-section,
.info-section {
  background: var(--paper);
}

.utility-grid,
.spotlight-grid,
.history-grid,
.info-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.guide-search {
  margin-bottom: 18px;
  max-width: 620px;
}

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

.icon {
  align-items: center;
  background: rgba(11, 127, 95, 0.1);
  border: 1px solid rgba(11, 127, 95, 0.2);
  border-radius: 50%;
  color: var(--green);
  display: inline-flex;
  font-size: 1.15rem;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  margin-bottom: 32px;
  width: 42px;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.overview-grid p,
.guide-list p,
.topic-card p,
.article-card p,
.utility-card p,
.spotlight-card p,
.history-card p,
.info-grid p,
.club-grid p,
.city-card p,
.timeline p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0;
}

.cities-section {
  background: #fffaf1;
}

.section-heading {
  margin-bottom: 30px;
}

.city-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  min-height: 40px;
  padding: 0 16px;
}

.filter-button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

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

.city-card {
  min-height: 154px;
  padding: 20px;
}

.city-card strong {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.city-card h3 {
  font-size: 1.22rem;
}

.city-card[data-country="Canada"] {
  border-top: 4px solid var(--red);
}

.city-card[data-country="Mexico"] {
  border-top: 4px solid var(--green);
}

.city-card[data-country="United States"] {
  border-top: 4px solid var(--blue);
}

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

.timeline-section .eyebrow {
  color: #f0c15b;
}

.timeline {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

.timeline li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 22px;
  grid-template-columns: 170px minmax(0, 1fr);
  padding: 28px 0;
}

.timeline time {
  color: #f0c15b;
  font-size: 0.92rem;
  font-weight: 900;
}

.timeline p {
  color: rgba(255, 255, 255, 0.68);
}

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

.guide-list .guide-card {
  min-height: 236px;
  padding: 26px;
}

.site-footer {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 72px);
}

.site-footer p {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  margin: 0;
}

.site-footer a {
  font-weight: 900;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
  max-width: 740px;
}

.back-to-top {
  align-items: center;
  background: var(--gold);
  border: 0;
  border-radius: 50%;
  bottom: 22px;
  box-shadow: var(--shadow);
  color: #17110a;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.4rem;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 22px;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  width: 48px;
  z-index: 30;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.article-home-link {
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 900;
}

.article-home-link:hover,
.article-home-link:focus-visible {
  color: var(--ink);
}

.article-main {
  padding: 132px clamp(18px, 5vw, 72px) clamp(52px, 8vw, 104px);
}

.article-page {
  margin: 0 auto;
  max-width: 860px;
}

.article-lead {
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(34px, 6vw, 58px);
  padding-bottom: clamp(30px, 5vw, 48px);
}

.article-lead h1 {
  font-size: clamp(2.35rem, 6vw, 4.75rem);
  line-height: 1.08;
  margin-bottom: 22px;
  max-width: none;
}

.article-intro {
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.9;
  margin-bottom: 0;
  max-width: 720px;
}

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

.article-facts div {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.article-facts dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.article-facts dd {
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.article-section {
  border-bottom: 1px solid var(--line);
  padding: clamp(30px, 5vw, 46px) 0;
}

.article-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.25;
  margin-bottom: 16px;
}

.article-section p,
.article-section li {
  color: var(--muted);
  line-height: 1.9;
}

.article-section p:last-child {
  margin-bottom: 0;
}

.article-section ul {
  margin: 16px 0 0;
  padding-left: 1.25em;
}

.article-section li + li {
  margin-top: 8px;
}

.related-guides .guide-list {
  margin-top: 20px;
}

.related-guides .guide-card {
  min-height: 0;
  padding: 20px;
}

.related-guides .guide-card h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.related-guides .guide-card p {
  margin: 0;
}

.table-scroll {
  margin-top: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.history-table {
  border-collapse: collapse;
  min-width: 560px;
  width: 100%;
}

.history-table th,
.history-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
}

.history-table th {
  background: var(--ink);
  color: var(--white);
  font-size: 0.82rem;
}

.history-table td {
  color: var(--muted);
  font-weight: 700;
}

.article-note {
  background: #ece5d9;
  border-left: 4px solid var(--gold);
  color: var(--ink);
  font-weight: 800;
  margin-top: 20px;
  padding: 16px 18px;
}

.article-official-link {
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-return {
  margin-top: clamp(34px, 6vw, 56px);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

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

  .site-header {
    padding: 12px 18px;
  }

  .menu-toggle {
    display: inline-flex;
    position: absolute;
    right: 18px;
    top: 12px;
  }

  .nav {
    display: none;
    flex-direction: column;
    gap: 6px;
    max-width: 100%;
    padding-top: 10px;
    width: 100%;
  }

  .site-header.nav-open .nav {
    display: flex;
  }

  .nav a {
    border-top: 1px solid rgba(16, 19, 21, 0.08);
    min-height: 44px;
    padding: 12px 0;
  }

  .hero-content {
    padding-top: 26vh;
  }

  .quick-stats,
  .split-section,
  .overview-grid,
  .topic-grid,
  .article-grid,
  .utility-grid,
  .spotlight-grid,
  .history-grid,
  .info-grid,
  .club-grid,
  .worldcup-summary,
  .city-grid,
  .guide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-tools {
    grid-template-columns: 1fr;
  }

  .article-main {
    padding-top: 112px;
  }

  .filter-row {
    justify-content: flex-start;
  }

  .split-section {
    display: grid;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 96vh;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(9, 12, 14, 0.52) 0%, rgba(9, 12, 14, 0.86) 72%),
      linear-gradient(90deg, rgba(9, 12, 14, 0.55), rgba(9, 12, 14, 0.22));
  }

  .hero-content {
    padding: 24vh 18px 160px;
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 4.8rem);
  }

  .countdown-panel {
    bottom: 18px;
    left: 18px;
    right: auto;
  }

  .quick-stats,
  .overview-grid,
  .topic-grid,
  .article-grid,
  .utility-grid,
  .spotlight-grid,
  .history-grid,
  .info-grid,
  .club-grid,
  .worldcup-summary,
  .city-grid,
  .guide-list {
    grid-template-columns: 1fr;
  }

  .featured-topic {
    grid-column: span 1;
  }

  .quick-stats div,
  .quick-stats div:last-child {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    min-height: 104px;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

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

  .content-filter,
  .filter-button {
    min-height: 44px;
  }

  .article-main {
    padding-top: 104px;
  }

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