@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/InstrumentSans-Variable.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
}

:root {
  color-scheme: light;
  --outside: #ffffff;
  --canvas: #f8f5ef;
  --ink: #252525;
  --muted: #66645f;
  --line: #dedbd4;
  --link-surface: #f3f1ec;
  --toggle-surface: #fbfaf7;
  --teal: #25c9c7;
  --focus: #087f7b;
  --panel-border: #ece9e2;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --outside: #ffffff;
  --canvas: #202426;
  --ink: #f7f6f2;
  --muted: #c4c4c0;
  --line: #414648;
  --link-surface: #303537;
  --toggle-surface: #3d4143;
  --teal: #39d6d2;
  --focus: #83eeea;
  --panel-border: #303537;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--outside);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--outside);
  color: var(--ink);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-150%);
  padding: 0.75rem 1rem;
  border-radius: 0.4rem;
  background: var(--ink);
  color: var(--canvas);
  font-weight: 650;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  display: flex;
  width: min(calc(100% - 4rem), 72rem);
  min-height: calc(100vh - 4rem);
  flex-direction: column;
  margin: 2rem auto;
  padding: 2rem clamp(2rem, 8vw, 5.75rem) 4rem;
  border: 1px solid var(--panel-border);
  border-radius: 1.35rem;
  background: var(--canvas);
  box-shadow: 0 1.25rem 4rem rgba(38, 35, 30, 0.05);
}

.masthead {
  display: flex;
  min-height: 4.25rem;
  align-items: flex-start;
  justify-content: flex-end;
}

.wordmark {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.wordmark span {
  color: var(--teal);
}

.theme-toggle {
  display: inline-grid;
  width: 4.25rem;
  height: 4.25rem;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--toggle-surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 0.2rem 0.65rem rgba(30, 30, 30, 0.04);
}

.theme-icon {
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.theme-icon--moon,
:root[data-theme="dark"] .theme-icon--sun {
  display: none;
}

:root[data-theme="dark"] .theme-icon--moon {
  display: block;
}

.introduction {
  width: min(100%, 44rem);
  margin: clamp(4rem, 13vh, 8rem) 0 0;
}

h1,
.introduction p {
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.introduction p {
  max-width: 34rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.25vw, 1.45rem);
  font-weight: 450;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.signature-dot {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
  margin: clamp(2rem, 4vh, 3rem) 0 clamp(2.25rem, 5vh, 3.75rem);
  border-radius: 50%;
  background: var(--teal);
}

.destinations {
  display: grid;
  width: min(100%, 44rem);
  gap: 0.55rem;
}

.destination {
  display: grid;
  min-height: 7.5rem;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1.4rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.destination--slip {
  background: var(--link-surface);
}

.destination:hover,
.destination:focus-visible {
  border-color: var(--line);
}

.destination__icon {
  display: block;
  width: 5rem;
  height: 5rem;
  border-radius: 0.85rem;
  object-fit: cover;
}

.destination__copy {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
}

.destination__title {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
}

.destination__title strong {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.destination__description {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.35;
}

.destination__arrow {
  color: var(--teal);
  font-size: 1.45em;
  font-weight: 500;
  line-height: 0.8;
  transition: transform 160ms ease;
}

.destination:hover .destination__arrow {
  transform: translate(0.15rem, -0.15rem);
}

.home-link {
  display: inline-flex;
  min-height: 2.75rem;
  gap: 0.4rem;
  align-items: center;
  margin-top: 2rem;
  color: var(--teal);
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
}

.home-link:hover span {
  transform: translate(0.15rem, -0.15rem);
}

.home-link span {
  transition: transform 160ms ease;
}

.not-found .introduction {
  margin-top: clamp(5rem, 14vh, 9rem);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 42rem) {
  .page-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 1.25rem 1.25rem 3rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .masthead {
    min-height: 3.25rem;
  }

  .theme-toggle {
    width: 3.25rem;
    height: 3.25rem;
  }

  .theme-icon {
    width: 1.35rem;
    height: 1.35rem;
  }

  .introduction {
    margin-top: clamp(4.5rem, 14vh, 7rem);
  }

  .signature-dot {
    margin-top: 1.75rem;
    margin-bottom: 2rem;
  }

  .destination {
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 1rem;
    min-height: 6.25rem;
    padding: 0.8rem;
  }

  .destination__icon {
    width: 4rem;
    height: 4rem;
  }
}

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