:root {
  color-scheme: dark;
  --background: #15111b;
  --surface: #1d1825;
  --line: #3b3048;
  --ink: #f1eaf5;
  --muted: #b5a6c0;
  --theory: #d0a9e2;
  --lab: #7ef5df;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--background);
  color: var(--ink);
}

a {
  color: inherit;
}

.masthead {
  min-height: 78px;
  padding: 14px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.7px;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  background: white;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.masthead p {
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(52px, 8vh, 100px) 0 clamp(60px, 9vh, 112px);
}

.introduction {
  max-width: 760px;
  margin-bottom: clamp(42px, 7vh, 76px);
}

h1 {
  max-width: 11ch;
  margin: 0 0 22px;
  font: 400 clamp(46px, 7vw, 88px) / 0.98 Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
}

.introduction p {
  max-width: 63ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
}

.destinations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.destination {
  min-height: 350px;
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  outline: none;
}

.destination + .destination {
  border-left: 1px solid var(--line);
}

.destination::before {
  content: "";
  width: 52px;
  height: 3px;
  margin-bottom: 42px;
  background: currentColor;
}

.destination.theory {
  color: var(--theory);
}

.destination.lab {
  color: var(--lab);
  background-image:
    linear-gradient(#7ef5df0a 1px, transparent 1px),
    linear-gradient(90deg, #7ef5df0a 1px, transparent 1px);
  background-size: 32px 32px;
}

.kind {
  margin-bottom: 20px;
  font-size: 14px;
}

.destination strong {
  max-width: 18ch;
  color: var(--ink);
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 520;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.destination.theory strong {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.description {
  max-width: 48ch;
  margin: 24px 0 36px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.action {
  margin-top: auto;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.destination:hover,
.destination:focus-visible {
  background-color: var(--surface);
}

.destination:focus-visible {
  box-shadow: inset 0 0 0 3px currentColor;
}

footer {
  min-height: 54px;
  padding: 12px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer a:focus-visible {
  outline: 2px solid var(--lab);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .masthead p {
    display: none;
  }

  main {
    width: min(100% - 28px, 560px);
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 64px);
  }

  .destinations {
    grid-template-columns: 1fr;
  }

  .destination {
    min-height: 310px;
  }

  .destination + .destination {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

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