:root {
  --bg: #f5f3ff;
  --bg-accent: #ede9fe;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-soft: rgba(108, 92, 231, 0.07);
  --line: rgba(108, 92, 231, 0.16);
  --line-strong: rgba(108, 92, 231, 0.26);
  --text: #1d1738;
  --muted: #5e5b76;
  --primary: #6c5ce7;
  --primary-strong: #5d4edf;
  --primary-soft: rgba(108, 92, 231, 0.12);
  --success: #1f9d78;
  --warning: #b7791f;
  --earth: #30695f;
  --shadow: 0 24px 60px rgba(68, 51, 153, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(108, 92, 231, 0.18), transparent 26%),
    radial-gradient(circle at 85% 8%, rgba(66, 165, 245, 0.12), transparent 22%),
    linear-gradient(180deg, #faf9ff 0%, var(--bg) 48%, #f0ecff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0,
      transparent 24px,
      rgba(255, 255, 255, 0.18) 24px,
      rgba(255, 255, 255, 0.18) 25px
    );
  opacity: 0.36;
  pointer-events: none;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.site-header,
.hero,
.section,
.cta-band,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: block;
  height: clamp(30px, 3.6vw, 38px);
  width: auto;
  max-width: min(170px, 44vw);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name {
  display: none;
}

.brand-tagline,
.section-lead,
.hero-copy p,
.stat-card p,
.info-card p,
.guide-copy p,
.teaser-note,
.sector-card p,
.route-row p,
.site-footer p {
  color: var(--muted);
  line-height: 1.65;
}

.site-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a,
.pill-link {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.pill-link:hover,
.pill-link:focus-visible {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 26px rgba(68, 51, 153, 0.1);
  transform: translateY(-1px);
}

.site-nav .site-nav-app {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.site-nav .site-nav-app:hover,
.site-nav .site-nav-app:focus-visible {
  background: var(--primary-strong);
  color: #fff;
  box-shadow: 0 14px 28px rgba(108, 92, 231, 0.24);
}

.hero,
.section,
.cta-band {
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero {
  overflow: hidden;
  padding: 36px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(241, 236, 255, 0.82));
}

.hero::after {
  content: "";
  position: absolute;
  right: -84px;
  top: -88px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.28), rgba(108, 92, 231, 0));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  text-decoration: none;
}

.hero-title {
  margin: 18px 0 14px;
  font-family: "Space Grotesk", "Avenir Next Condensed", sans-serif;
  font-size: clamp(2.6rem, 4.8vw, 4.6rem);
  line-height: 0.96;
  max-width: 760px;
}

.hero-copy p {
  margin: 0;
  max-width: 760px;
  font-size: 1.02rem;
}

.hero-actions,
.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 18px 32px rgba(93, 78, 223, 0.24);
}

.button-primary:hover {
  background: var(--primary-strong);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--line-strong);
  color: var(--text);
}

.stats-grid,
.crag-grid,
.sector-grid,
.guide-grid,
.guide-copy-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 28px;
}

.crag-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sector-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.guide-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.guide-copy-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 16px;
}

.section,
.cta-band {
  margin-top: 28px;
  padding: 32px;
  background: var(--surface);
  backdrop-filter: blur(10px);
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 22px;
}

.section-title {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next Condensed", sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.04;
}

.stat-card,
.crag-card,
.sector-card,
.route-row,
.band-chip,
.info-card,
.guide-copy {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.country-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(247, 244, 255, 0.78)),
    rgba(255, 255, 255, 0.72);
}

.country-card > :not(.country-flag-bg) {
  position: relative;
  z-index: 1;
}

.country-flag-bg {
  position: absolute;
  right: -12px;
  bottom: -26px;
  z-index: 0;
  font-size: clamp(5.4rem, 13vw, 8.8rem);
  line-height: 1;
  opacity: 0.2;
  filter: saturate(1.08);
  transform: rotate(-6deg);
  pointer-events: none;
}

.stat-card,
.crag-card,
.sector-card,
.info-card,
.guide-copy {
  padding: 18px;
}

.stat-card strong,
.crag-card strong,
.sector-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.stat-kicker,
.grade-band-system,
.info-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grade-bands {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.grade-chart {
  display: grid;
  gap: 12px;
}

.grade-chart-row {
  display: grid;
  grid-template-columns: minmax(54px, 82px) minmax(0, 1fr) minmax(42px, auto);
  gap: 12px;
  align-items: center;
}

.grade-chart-label,
.grade-chart-count {
  color: var(--text);
  font-weight: 800;
}

.grade-chart-label {
  font-size: 0.95rem;
}

.grade-chart-count {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.grade-chart-track {
  position: relative;
  height: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.08);
}

.grade-chart-fill {
  display: block;
  width: var(--grade-bar-width);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #42a5f5);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.24);
}

.guide-copy {
  margin-bottom: 16px;
}

.guide-copy-grid .guide-copy {
  margin-bottom: 0;
}

.guide-copy h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.guide-copy p,
.info-card p {
  margin: 0;
}

.info-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 1.08rem;
}

.band-chip {
  padding: 14px 16px;
  min-width: 150px;
}

.band-chip strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.band-chip span {
  color: var(--muted);
  font-size: 14px;
}

.crag-card h3,
.sector-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.crag-card a,
.sector-card a,
.card-link {
  text-decoration: none;
}

.card-link {
  display: block;
  color: inherit;
}

.card-link:hover,
.card-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 36px rgba(68, 51, 153, 0.12);
  outline: 3px solid rgba(108, 92, 231, 0.24);
  outline-offset: 3px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 14px;
}

.tag-panel {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.tag-group {
  display: grid;
  gap: 10px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.teaser-note {
  margin-top: 12px;
  font-size: 0.95rem;
}

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

.route-row {
  padding: 16px 18px;
}

.route-row h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.route-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.cta-band {
  display: grid;
  gap: 16px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  background: linear-gradient(145deg, rgba(108, 92, 231, 0.16), rgba(255, 255, 255, 0.84));
}

.article-section .section-header {
  align-items: flex-start;
  flex-wrap: wrap;
}

.article-section .section-lead {
  max-width: 520px;
}

.compact-meta-section {
  padding-block: 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-top: 28px;
  padding: 0 4px;
}

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

.footer-links a {
  text-decoration: none;
}

.redirect-note {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .page-shell {
    padding: 18px 16px 48px;
  }

  .site-header,
  .section-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .section,
  .cta-band {
    padding: 22px;
    border-radius: 24px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }
}
