:root {
  --ink: #102018;
  --ink-soft: #2a3d32;
  --mist: #e7f0ea;
  --paper: rgba(244, 248, 245, 0.78);
  --line: rgba(16, 32, 24, 0.12);
  --accent: #1f7a4d;
  --accent-deep: #0f4d30;
  --sun: #d8a84a;
  --shadow: 0 18px 50px rgba(16, 32, 24, 0.12);
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --radius: 18px;
  --max: 920px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: #dfe9e3;
  overflow-x: hidden;
}

/* —— Atmosphere —— */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.atmosphere__photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(16, 32, 24, 0.28), rgba(16, 32, 24, 0.05)),
    url("./assets/hero.avif") center / cover no-repeat;
  transform: scale(1.04);
  animation: drift 28s ease-in-out infinite alternate;
  filter: saturate(0.85) contrast(1.05);
}

.atmosphere__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(216, 168, 74, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 55% at 90% 10%, rgba(31, 122, 77, 0.2), transparent 50%),
    linear-gradient(180deg, rgba(231, 240, 234, 0.55) 0%, rgba(231, 240, 234, 0.82) 48%, #e7f0ea 100%);
}

.atmosphere__topo {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cpath fill='none' stroke='%23102018' stroke-opacity='0.18' stroke-width='1' d='M0 40c20 0 20 20 40 20s20-20 40-20 20 20 40 20 20-20 40-20M0 80c20 0 20 20 40 20s20-20 40-20 20 20 40 20 20-20 40-20M0 120c20 0 20 20 40 20s20-20 40-20 20 20 40 20 20-20 40-20'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  animation: topo-shift 40s linear infinite;
}

.atmosphere__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
}

.atmosphere__orb--a {
  width: 280px;
  height: 280px;
  top: -60px;
  right: -40px;
  background: rgba(216, 168, 74, 0.35);
  animation: float-a 12s ease-in-out infinite;
}

.atmosphere__orb--b {
  width: 220px;
  height: 220px;
  bottom: 10%;
  left: -50px;
  background: rgba(31, 122, 77, 0.28);
  animation: float-b 16s ease-in-out infinite;
}

/* —— Layout —— */
.shell {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) 0 2.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.hero {
  position: relative;
  padding-top: clamp(0.5rem, 2vw, 1.25rem);
}

.hero__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 24px rgba(16, 32, 24, 0.1);
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.4rem, 16vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-wrap: balance;
}

.hero__lede {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 500;
}

/* —— Destinations —— */
.destinations__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
}

.destinations__head p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.link-rail {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.link-item {
  --shift: 0px;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateX(var(--shift));
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    background 220ms ease;
}

.link-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--sun), var(--accent));
  transform: scaleY(0.35);
  transform-origin: top;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.link-item:hover,
.link-item:focus-visible {
  --shift: 6px;
  border-color: rgba(31, 122, 77, 0.35);
  background: rgba(255, 255, 255, 0.88);
  outline: none;
}

.link-item:hover::before,
.link-item:focus-visible::before {
  transform: scaleY(1);
}

.link-item__badge {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(31, 122, 77, 0.14), rgba(216, 168, 74, 0.18));
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.link-item__copy {
  min-width: 0;
}

.link-item__copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.link-item__copy span {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-item__go {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-deep);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.link-item:hover .link-item__go,
.link-item:focus-visible .link-item__go {
  transform: translateX(4px);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.status__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #8aa396;
}

.status[data-state="up"] {
  color: var(--accent-deep);
}

.status[data-state="up"] .status__dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.18);
}

.status[data-state="down"] {
  color: #8a3b2a;
}

.status[data-state="down"] .status__dot {
  background: #c45c3a;
}

.foot {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

/* —— Motion —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, 1%, 0);
  }
}

@keyframes topo-shift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 160px 80px;
  }
}

@keyframes float-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-18px, 22px, 0);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(20px, -16px, 0);
  }
}

@media (max-width: 640px) {
  .link-item {
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
  }

  .link-item__go {
    display: none;
  }

  .link-item__copy span {
    white-space: normal;
  }

  .hero__brand {
    font-size: clamp(3.8rem, 22vw, 5.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .atmosphere__photo,
  .atmosphere__topo,
  .atmosphere__orb,
  .link-item,
  .link-item__go,
  .link-item::before {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
