@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Source+Serif+4:wght@400;600;700&display=swap");

:root {
  --ink: #111417;
  --ink-soft: #2c353d;
  --paper: #f7f2e9;
  --paper-strong: #efe7d6;
  --line: rgba(17, 20, 23, 0.12);
  --green: #1f7a62;
  --green-deep: #16493f;
  --gold: #e9af39;
  --clay: #ce5f3f;
  --ice: #dbeaf0;
  --sky: #8dc7d8;
  --white: #ffffff;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 24px 60px rgba(17, 20, 23, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

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

main {
  overflow: hidden;
}

.shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
  background: rgba(247, 242, 233, 0.88);
  border-bottom: 1px solid rgba(17, 20, 23, 0.08);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--green) 0%, var(--green-deep) 58%, var(--gold) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand__eyebrow {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
}

.brand__name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topnav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(10, 12, 15, 0.15) 0%, rgba(10, 12, 15, 0.76) 74%),
    linear-gradient(120deg, rgba(22, 73, 63, 0.56), rgba(17, 20, 23, 0.1)),
    var(--hero-image) center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(233, 175, 57, 0.22), transparent 28%),
    radial-gradient(circle at 82% 30%, rgba(206, 95, 63, 0.24), transparent 30%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 72px 0 56px;
}

.hero__eyebrow {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.7rem, 5.6vw, 5.3rem);
  line-height: 0.95;
}

.hero__lede {
  max-width: 700px;
  margin: 22px 0 30px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button--primary {
  background: var(--gold);
  color: var(--ink);
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

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

.fact {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.fact strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.fact span {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.84);
}

.band {
  padding: 72px 0;
}

.band--light {
  background: var(--paper);
}

.band--soft {
  background: var(--paper-strong);
}

.band--dark {
  color: var(--white);
  background:
    linear-gradient(180deg, #153730 0%, #101417 100%);
}

.band--tool {
  background:
    radial-gradient(circle at 6% 0%, rgba(233, 175, 57, 0.24), transparent 28%),
    radial-gradient(circle at 92% 20%, rgba(141, 199, 216, 0.28), transparent 30%),
    linear-gradient(180deg, #f8f0dc 0%, #efe7d6 100%);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head__eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--green);
  margin-bottom: 12px;
}

.band--dark .section-head__eyebrow {
  color: var(--gold);
}

.section-head h2 {
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1;
}

.section-head p {
  margin: 0;
  line-height: 1.7;
  color: rgba(17, 20, 23, 0.72);
}

.band--dark .section-head p {
  color: rgba(255, 255, 255, 0.74);
}

.grid {
  display: grid;
  gap: 18px;
}

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

.grid--matches,
.grid--guides,
.grid--areas,
.grid--fan {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.planner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(17, 20, 23, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 42px rgba(17, 20, 23, 0.08);
}

.planner__label {
  grid-column: 1 / -1;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
}

.planner__input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(17, 20, 23, 0.16);
  border-radius: 999px;
  padding: 0 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 1.05rem;
  outline: none;
}

.planner__input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 122, 98, 0.14);
}

.planner__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green-deep);
  white-space: nowrap;
}

.planner-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-height: 620px;
  overflow: auto;
  padding-right: 6px;
}

.planner-card {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 20, 23, 0.1);
}

.planner-card h3 {
  margin: 0 0 10px;
  line-height: 1.15;
}

.planner-card p {
  margin: 0 0 10px;
  color: rgba(17, 20, 23, 0.72);
  line-height: 1.6;
}

.planner-card__meta {
  font-size: 0.84rem;
  color: var(--green-deep) !important;
}

.score-strip,
.country-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.score-strip > div,
.country-links a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.score-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.score-strip strong {
  display: block;
  font-size: 1.25rem;
}

.country-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.country-links a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(31, 122, 98, 0.28);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  min-height: 100%;
}

.card a,
.planner-card a,
.related-link,
.table-shell a {
  text-decoration: underline;
  text-decoration-color: rgba(31, 122, 98, 0.28);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.band--dark .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.card__kicker {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 14px;
}

.band--dark .card__kicker {
  color: var(--gold);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.card p {
  margin: 0 0 16px;
  line-height: 1.7;
  color: rgba(17, 20, 23, 0.72);
}

.band--dark .card p {
  color: rgba(255, 255, 255, 0.76);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 20, 23, 0.06);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.band--dark .chip {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

.split-callout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.image-panel {
  min-height: 380px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(17, 20, 23, 0.04), rgba(17, 20, 23, 0.14)),
    var(--panel-image) center / cover no-repeat;
  box-shadow: var(--shadow);
}

.image-panel--contain {
  background:
    linear-gradient(180deg, rgba(17, 20, 23, 0.02), rgba(17, 20, 23, 0.08)),
    var(--panel-image) center / contain no-repeat;
  background-color: #143a34;
}

.panel-copy {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(17, 20, 23, 0.04);
  border: 1px solid var(--line);
}

.band--dark .panel-copy {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.panel-copy h3,
.cta h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.panel-copy p,
.cta p,
.prose p,
.prose li {
  line-height: 1.8;
}

.checklist,
.timeline,
.faq-list,
.bullet-list {
  display: grid;
  gap: 14px;
}

.timeline__item,
.faq-list details {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.band--dark .timeline__item,
.band--dark .faq-list details {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.timeline__item strong,
.faq-list summary {
  display: block;
  margin-bottom: 8px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.cta {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(233, 175, 57, 0.16), rgba(31, 122, 98, 0.14));
  border: 1px solid rgba(31, 122, 98, 0.18);
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
}

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

.related-link {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  text-decoration: none;
}

.related-link span {
  font-weight: 700;
}

.related-link small {
  color: rgba(17, 20, 23, 0.62);
  line-height: 1.5;
}

.band--dark .table-shell {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

.band--dark th,
.band--dark td {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
}

.band--dark th {
  color: var(--gold);
}

.notice {
  margin-top: 18px;
  font-size: 0.85rem;
  color: rgba(17, 20, 23, 0.62);
}

.band--dark .notice,
.site-footer .notice {
  color: rgba(255, 255, 255, 0.64);
}

.page-hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(10, 12, 15, 0.22) 0%, rgba(10, 12, 15, 0.78) 74%),
    linear-gradient(120deg, rgba(22, 73, 63, 0.62), rgba(17, 20, 23, 0.24)),
    var(--page-image) center / cover no-repeat;
}

.page-hero__content {
  padding: 110px 0 52px;
}

.page-hero--compact .page-hero__content {
  padding: 96px 0 64px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero h1 {
  margin: 0;
  max-width: 860px;
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
  line-height: 0.98;
}

.page-hero__lede {
  max-width: 760px;
  margin: 20px 0 28px;
  font-size: 1.06rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.page-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-hero__chips .chip {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-pill {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  font: inherit;
  cursor: pointer;
}

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

.site-footer {
  color: var(--white);
  background: #101417;
  padding: 56px 0 72px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-family: "Source Serif 4", serif;
  font-size: 2rem;
}

.site-footer p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.8;
}

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

.footer-links a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 3px;
}

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

.prose-card {
  padding: 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.prose-card h2 {
  margin: 0 0 12px;
  font-family: "Source Serif 4", serif;
  font-size: 1.7rem;
  line-height: 1.05;
}

.prose-card p {
  margin: 0;
  color: rgba(17, 20, 23, 0.74);
  line-height: 1.8;
}

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

.has-reveal .reveal {
  opacity: 1;
  transform: translateY(14px);
  transition: opacity 480ms ease, transform 480ms ease;
}

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

@media (max-width: 1000px) {
  .facts,
  .planner-results,
  .score-strip,
  .country-links,
  .grid--cities,
  .grid--matches,
  .grid--guides,
  .grid--areas,
  .grid--fan,
  .section-head,
  .split-callout,
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-head p:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header__row,
  .topnav,
  .facts,
  .planner,
  .planner-results,
  .score-strip,
  .country-links,
  .grid--cities,
  .grid--matches,
  .grid--guides,
  .grid--areas,
  .grid--fan,
  .section-head,
  .split-callout,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .planner {
    align-items: stretch;
  }

  .planner-results {
    max-height: none;
    padding-right: 0;
  }

  .planner__meta {
    justify-content: center;
  }

  .site-header__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    min-height: auto;
  }

  .brand__name {
    font-size: 0.95rem;
  }

  .topnav {
    justify-content: flex-start;
    gap: 12px 16px;
  }

  .topnav a {
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.2rem);
  }

  .hero {
    min-height: auto;
  }

  .hero__content,
  .page-hero__content {
    padding-top: 88px;
  }

  .panel-copy,
  .cta,
  .card,
  .prose-card {
    padding: 20px;
  }

  .related-list,
  .prose-grid {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 14px;
  }
}
