:root {
  --background: #f8f7f3;
  --surface: #ffffff;
  --ink: #282624;
  --muted: #706d68;
  --brand: #ff6243;
  --border: rgba(40, 38, 36, 0.14);
  --shadow: 0 18px 55px rgba(73, 54, 45, 0.08);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

html {
  background: var(--background);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 88%, rgba(255, 98, 67, 0.055), transparent 28rem),
    var(--background);
}

a {
  color: inherit;
}

.page-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 58px) clamp(20px, 6vw, 88px) 28px;
  overflow: hidden;
}

.brand {
  position: relative;
  z-index: 2;
}

.brand a {
  display: inline-flex;
  border-radius: 8px;
}

.brand img {
  display: block;
  width: clamp(174px, 23vw, 250px);
  height: auto;
}

.country-hub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  align-items: center;
  gap: clamp(56px, 7vw, 112px);
  padding: clamp(70px, 9vh, 112px) 0 clamp(56px, 8vh, 96px);
}

.country-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(3rem, 5.8vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.intro {
  max-width: 31rem;
  margin: 28px 0 42px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.65;
  letter-spacing: 0.02em;
  font-weight: 400;
}

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

.country-link {
  display: grid;
  grid-template-columns: 46px minmax(110px, 1fr) auto 30px;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 14px 20px 14px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.country-code {
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.country-name {
  font-size: 1.125rem;
  font-weight: 700;
}

.country-domain {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.arrow {
  color: var(--brand);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.country-link:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 98, 67, 0.34);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.country-link:hover .arrow {
  transform: translate(3px, -3px);
}

.brand a:focus-visible,
.country-link:focus-visible {
  outline: 3px solid rgba(255, 98, 67, 0.42);
  outline-offset: 4px;
}

.brand-mark {
  position: relative;
  justify-self: end;
  width: min(39vw, 500px);
  min-width: 340px;
  filter: drop-shadow(0 28px 50px rgba(175, 72, 50, 0.17));
}

.brand-mark::before {
  position: absolute;
  z-index: -1;
  inset: -7%;
  border: 1px solid rgba(255, 98, 67, 0.18);
  border-radius: 50%;
  content: "";
}

.brand-mark img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

footer {
  display: flex;
  position: relative;
  z-index: 2;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.035em;
}

@media (max-width: 920px) {
  .page-shell {
    padding-inline: clamp(20px, 7vw, 64px);
  }

  .country-hub {
    position: relative;
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .country-content {
    max-width: 700px;
  }

  h1 {
    max-width: none;
  }

  .brand-mark {
    position: absolute;
    top: -96px;
    right: -130px;
    width: 330px;
    min-width: 0;
    opacity: 0.09;
    filter: none;
    pointer-events: none;
  }

  .brand-mark::before {
    display: none;
  }
}

@media (max-width: 620px) {
  .page-shell {
    overflow: clip;
    padding: 26px 18px 22px;
  }

  .brand img {
    width: 176px;
  }

  .country-hub {
    padding: clamp(72px, 12vh, 110px) 0 64px;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 0.76rem;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  .intro {
    margin: 22px 0 34px;
    line-height: 1.55;
  }

  .country-link {
    grid-template-columns: 44px 1fr 26px;
    gap: 14px;
    min-height: 74px;
    padding: 14px 16px 14px 12px;
    border-radius: 14px;
  }

  .country-code {
    width: 44px;
  }

  .country-domain {
    display: none;
  }

  footer {
    display: grid;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
