:root {
  --bg: #f4efe6;
  --bg-deep: #ebe2d4;
  --surface: rgba(255, 252, 247, 0.92);
  --text: #22313d;
  --muted: #66717c;
  --line: rgba(62, 74, 87, 0.14);
  --shadow: 0 20px 50px rgba(35, 49, 61, 0.12);
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(180, 137, 87, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(49, 93, 116, 0.12), transparent 26%),
    linear-gradient(180deg, #f8f4ed 0%, var(--bg) 52%, var(--bg-deep) 100%);
}

a {
  color: inherit;
  font: inherit;
}

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

.page {
  width: min(1560px, calc(100% - 28px));
  margin: 0 auto;
  padding: 26px 0 48px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin: 2px 2px 20px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(35, 49, 61, 0.18);
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
  border-bottom-color: rgba(35, 49, 61, 0.42);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 20px;
  align-items: start;
  position: relative;
  overflow: hidden;
  padding: 26px 34px 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(242, 235, 222, 0.94));
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.97), rgba(255, 253, 249, 0.52)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}

.hero-art {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 172px;
  height: 172px;
  align-self: start;
  border-radius: 24px;
  object-fit: contain;
  object-position: center;
  opacity: 0.68;
  filter: grayscale(48%) contrast(1.12) saturate(0.98);
  mix-blend-mode: multiply;
  pointer-events: none;
}

h1,
h2 {
  margin: 0;
  font-family: "EB Garamond", Georgia, serif;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: none;
  font-size: clamp(2.9rem, 4.6vw, 5.15rem);
  text-wrap: balance;
}

.hero p {
  position: relative;
  z-index: 1;
  max-width: 76ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1rem + 0.22vw, 1.2rem);
  font-weight: 500;
  line-height: 1.65;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.region-card {
  position: relative;
  overflow: hidden;
  min-height: 236px;
  padding: 28px;
  border: 1px solid rgba(164, 139, 99, 0.18);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 20px 40px rgba(48, 43, 34, 0.1);
  color: inherit;
  text-decoration: none;
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

a.region-card:hover,
a.region-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(49, 93, 116, 0.26);
  box-shadow: 0 24px 44px rgba(48, 43, 34, 0.12);
  outline: none;
}

.region-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 252, 247, 0.98) 0%, rgba(255, 252, 247, 0.88) 34%, rgba(255, 252, 247, 0.54) 58%, rgba(255, 252, 247, 0.18) 100%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.1) 0%, rgba(255, 252, 247, 0.42) 100%);
}

.region-card > img {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -2;
  width: 42%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  opacity: 0.76;
  filter: grayscale(62%) contrast(1.1) brightness(1.02) saturate(0.92);
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.98) 54%, rgba(0, 0, 0, 0.68) 76%, rgba(0, 0, 0, 0.2) 100%);
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.98) 54%, rgba(0, 0, 0, 0.68) 76%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.region-card-content {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 66%;
}

.region-card h2 {
  font-size: clamp(2rem, 2.5vw, 2.9rem);
}

.region-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.region-card--pending {
  cursor: default;
}

.region-card--pending > img {
  opacity: 0.48;
}

@media (max-width: 1180px) {
  .region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .region-card-content {
    max-width: 68%;
  }
}

@media (max-width: 860px) {
  .region-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .page {
    width: min(100% - 18px, 680px);
    padding-top: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .hero-art {
    grid-column: 1;
    grid-row: auto;
    width: min(172px, 52%);
    height: auto;
    aspect-ratio: 1;
    margin-top: 12px;
    opacity: 0.42;
  }

  .region-card {
    min-height: 190px;
  }

  .region-card-content {
    max-width: 78%;
  }

  .region-card > img {
    width: 48%;
    opacity: 0.48;
  }
}
