@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/InstrumentSerif-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/InstrumentSerif-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --canvas: #f9f9f7;
  --surface: rgb(249 249 247 / 88%);
  --surface-solid: #f9f9f7;
  --primary: #001050;
  --on-primary: #fff;
  --ink: #0a0a0b;
  --muted: #4e5561;
  --line: #d8dce4;
  --ocean: #247a80;
  --ocean-soft: #e2f0f0;
  --sun-soft: #f7ebcb;
  --sage-soft: #e6ece2;
  --warning: #8c371e;
  --warning-bg: #fff0e8;
  --shadow: 0 28px 80px rgb(0 16 80 / 10%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #090a0d;
    --surface: rgb(21 23 27 / 88%);
    --surface-solid: #15171b;
    --primary: #86aaff;
    --on-primary: #0a0a0b;
    --ink: #f7f6f2;
    --muted: #b3b8c2;
    --line: #30343b;
    --ocean: #5bb3b7;
    --ocean-soft: #17383b;
    --sun-soft: #3a2c11;
    --sage-soft: #293225;
    --warning: #ffb19b;
    --warning-bg: #411f18;
    --shadow: 0 30px 90px rgb(0 0 0 / 32%);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 300px;
  margin: 0;
  background:
    radial-gradient(circle at 10% 8%, color-mix(in srgb, var(--ocean-soft) 82%, transparent) 0 10rem, transparent 28rem),
    radial-gradient(circle at 88% 24%, color-mix(in srgb, var(--sun-soft) 72%, transparent) 0 7rem, transparent 23rem),
    var(--canvas);
  color: var(--ink);
  font: 17px/1.66 ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--primary); overflow-wrap: anywhere; text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .13em; }
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 58%, transparent);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.site-header, main, footer { width: min(920px, calc(100% - 48px)); margin-inline: auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 22px;
}
.brand {
  color: var(--primary);
  font: 400 36px/1 "Instrument Serif", ui-serif, Georgia, serif;
  letter-spacing: -.02em;
  text-decoration: none;
}
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
nav a:hover { background: color-mix(in srgb, var(--ocean-soft) 70%, transparent); color: var(--ink); }
nav a[aria-current="page"] {
  border-color: color-mix(in srgb, var(--ocean) 22%, var(--line));
  background: var(--ocean-soft);
  color: var(--ocean);
}

main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 50vh;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(30px, 7vw, 68px) clamp(24px, 8vw, 76px);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
main::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  top: -190px;
  right: -100px;
  border-radius: 50%;
  background: var(--ocean-soft);
  opacity: .8;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--ocean);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 { text-wrap: balance; }
h1 {
  max-width: 14ch;
  margin: 0 0 28px;
  color: var(--primary);
  font: 400 clamp(2.65rem, 8vw, 4.7rem)/.98 "Instrument Serif", ui-serif, Georgia, serif;
  letter-spacing: -.035em;
}
h2 {
  margin: 2.4em 0 .6em;
  color: var(--primary);
  font: 400 clamp(1.75rem, 4vw, 2.15rem)/1.08 "Instrument Serif", ui-serif, Georgia, serif;
  letter-spacing: -.015em;
}
h3 { margin: 1.8em 0 .45em; font-size: 1.07rem; line-height: 1.35; }
p { margin: 0 0 1.1em; }
p, li { max-width: 72ch; }
ul, ol { margin: .8em 0 1.35em; padding-left: 1.4em; }
li { padding-left: .25em; }
li + li { margin-top: .55rem; }
strong { color: var(--ink); }
code {
  border-radius: 6px;
  padding: .1em .35em;
  background: var(--ocean-soft);
  color: var(--ink);
  font-size: .88em;
}

.draft {
  margin: 0 0 28px;
  border: 1px solid var(--warning);
  border-radius: 18px;
  padding: 14px 17px;
  color: var(--warning);
  background: var(--warning-bg);
  font-weight: 700;
}
.owner-required {
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--warning);
  background: var(--warning-bg);
  font-weight: 700;
}

.landing-intro { max-width: 620px; color: var(--muted); font-size: 1.08rem; }
.destination-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.destination-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-solid) 76%, var(--ocean-soft));
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}
.destination-card:nth-child(2) { background: color-mix(in srgb, var(--surface-solid) 78%, var(--sun-soft)); }
.destination-card:nth-child(3) { background: color-mix(in srgb, var(--surface-solid) 78%, var(--sage-soft)); }
.destination-card:hover { transform: translateY(-2px); border-color: var(--ocean); }
.destination-card strong { font: 400 1.55rem/1.1 "Instrument Serif", ui-serif, Georgia, serif; }
.destination-card span { color: var(--muted); font-size: 14px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 4px 48px;
  color: var(--muted);
  font-size: 13px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; }
  nav { max-width: 360px; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 24px, 920px); }
  .site-header { display: block; padding-top: 22px; }
  nav { justify-content: flex-start; margin: 15px -6px 0; }
  nav a { padding-inline: 10px; }
  main { border-radius: 22px; padding: 32px 22px 40px; }
  .destination-grid { grid-template-columns: 1fr; }
  footer { display: block; }
  .footer-links { margin-top: 12px; }
}

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