:root {
  --background: #f5f1e8;
  --ink: #302d29;
  --muted: #756d64;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--background); color-scheme: light; }
body { margin: 0; color: var(--ink); font-family: var(--sans); font-weight: 400; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 7px; border-radius: 1px; }
button { cursor: pointer; }

.homepage { display: grid; grid-template-rows: minmax(max-content, calc(47.3svh - 24px)) max-content minmax(max-content, 1fr); min-height: max(100svh, 680px); padding: 11.4svh 24px 7.2svh; }

/* Desktop composition: identity above, destinations at the center, contacts below. */
.identity { align-self: start; padding-bottom: 40px; text-align: center; }
.logo-link { display: inline-flex; align-items: center; justify-content: center; }
.logo { display: block; width: auto; height: 86px; }
h1 { margin: 17px 0 4px; font-family: var(--serif); font-size: clamp(36px, 2.88vw, 50px); font-weight: 500; line-height: 1.2; letter-spacing: -0.035em; }
.credentials { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; column-gap: 8px; row-gap: 3px; margin: 0; color: var(--muted); font-size: clamp(15px, 1.19vw, 20px); line-height: 1.5; }
.credentials > span { max-width: 100%; }

.destinations { padding-bottom: 36px; text-align: center; }
.destinations ul { display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap; gap: 32px clamp(32px, 7vw, 120px); padding: 0; margin: 0; list-style: none; }
.destinations li { max-width: 100%; }
.destination-link { position: relative; display: inline-flex; align-items: flex-start; gap: 11px; max-width: 100%; padding: 6px 0; background: none; border: none; font-size: clamp(18px, 1.31vw, 22px); font-weight: 400; line-height: 1.35; }
.destination-link .link-label { min-width: 0; }
.destination-link:disabled { cursor: default; opacity: 1; -webkit-text-fill-color: currentColor; }
.link-label { display: inline-block; padding-bottom: 10px; border-bottom: 1px solid var(--ink); transition: box-shadow 160ms ease; }
.availability { position: absolute; top: calc(100% - 2px); left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 11px; line-height: 1.4; letter-spacing: .02em; white-space: nowrap; }
.external-arrow { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 5px; }
.destination-link:not(:disabled):hover .link-label { box-shadow: 0 1px 0 var(--ink); }

.site-footer { position: absolute; bottom: 7.2svh; left: 24px; right: 24px; text-align: center; }
.homepage .site-footer { position: static; align-self: end; }
.social-links { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 0 0 20px; padding: 0; list-style: none; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; transition: opacity 160ms ease; }
.social-links a:hover { opacity: .6; }
.social-links svg { display: block; width: 23px; height: 23px; }
.social-links .behance-icon { width: 27px; }
.copyright { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

@media (min-width: 641px) and (max-width: 1000px) {
  .destinations ul { gap: 32px 40px; }
  .destination-link { font-size: 18px; }
  .credentials { font-size: 16px; column-gap: 6px; }
}

/* Let the mobile page flow naturally, including on short or zoomed screens. */
@media (max-width: 640px), (max-height: 560px) {
  .homepage { display: flex; flex-direction: column; align-items: center; min-height: 100svh; padding: 24px; overflow: visible; }
  .identity { width: 100%; margin-top: clamp(16px, 6svh, 48px); padding-bottom: 0; }
  .logo { height: 70px; }
  h1 { font-size: clamp(30px, 8.4vw, 39px); margin-top: 20px; margin-bottom: 8px; }
  .credentials { flex-direction: column; align-items: center; font-size: 15px; row-gap: 3px; }
  .credential-divider { display: none; }
  .destinations { width: 100%; padding-bottom: 0; margin-top: 40px; margin-bottom: 68px; }
  .destinations ul { flex-direction: column; align-items: center; gap: 16px; }
  .destinations li { font-size: 11px; }
  .destinations li:has(.availability) { margin-bottom: max(0px, calc(1.4em - 16px)); }
  .destination-link { font-size: 18px; }
  /* Reserve equal space beside the Atlas label so its text stays centered. */
  .atlas-link { display: inline-grid; grid-template-columns: 19px minmax(0, auto) 19px; column-gap: 11px; max-width: 100%; }
  .atlas-link .link-label { grid-column: 2; grid-row: 1; white-space: normal; }
  .atlas-link .external-arrow { grid-column: 3; grid-row: 1; }
  .link-label { padding-bottom: 7px; }
  .site-footer { position: static; width: 100%; margin-top: auto; padding-top: 18px; padding-bottom: 12px; }
  .social-links { gap: 12px; margin-bottom: 16px; }
  .copyright { max-width: 350px; margin-inline: auto; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
