:root {
  color-scheme: light dark;
  --bg: #f7f6f0;
  --ink: #1d211f;
  --muted: #6c746f;
  --line: rgba(29, 33, 31, 0.14);
  --panel: rgba(255, 255, 255, 0.86);
  --icon-strategy: #eef5ed;
  --icon-overlay: #eef2fb;
  --icon-figma: #f3eefb;
  --green: #315f49;
  --blue: #356bca;
  --purple: #7c3aed;
  --glow-green: rgba(49, 95, 73, 0.14);
  --glow-blue: rgba(53, 107, 202, 0.12);
  --glow-purple: rgba(124, 58, 237, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151515;
    --ink: #e8ebe9;
    --muted: #9aa39d;
    --line: rgba(232, 235, 233, 0.12);
    --panel: rgba(28, 28, 28, 0.92);
    --icon-strategy: rgba(49, 95, 73, 0.22);
    --icon-overlay: rgba(53, 107, 202, 0.22);
    --icon-figma: rgba(124, 58, 237, 0.22);
    --green: #6db892;
    --blue: #7aa8f0;
    --purple: #a78bfa;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  margin: 0;
  padding: clamp(22px, 10vw, 256px);
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  line-height: 1.5;
}

@media (prefers-color-scheme: light) {
  body {
    background:
      radial-gradient(circle at 12% 8%, var(--glow-green), transparent 28rem),
      radial-gradient(circle at 88% 18%, var(--glow-blue), transparent 26rem),
      radial-gradient(circle at 50% 92%, var(--glow-purple), transparent 24rem),
      var(--bg);
  }
}

a {
  color: inherit;
}

.shell {
  width: 100%;
}

.destinations {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  gap: 14px;
  width: 100%;
}

.destination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "icon arrow"
    "copy copy";
  align-items: start;
  gap: 12px 10px;
  flex: 1 1 0;
  min-width: 0;
  padding: 18px;
  width: clamp(300px, 600px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.destination:hover,
.destination:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

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

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

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

.destination-icon {
  grid-area: icon;
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: var(--icon-strategy);
  color: var(--green);
}

.destination--overlay .destination-icon {
  background: var(--icon-overlay);
  color: var(--blue);
}

.destination--figma .destination-icon {
  background: var(--icon-figma);
  color: var(--purple);
}

.destination-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.destination--figma .destination-icon svg {
  width: 18px;
  height: 24px;
  stroke-width: 1;
}

.destination--figma .destination-icon svg path {
  stroke: currentColor;
  fill: none;
  stroke-width: 18;
}

.destination-copy {
  grid-area: copy;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.destination-copy strong {
  font-size: clamp(17px, 1.6vw, 23px);
  font-weight: 600;
  line-height: 1.15;
}

.destination-copy span {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.arrow {
  grid-area: arrow;
  justify-self: end;
  align-self: start;
  color: var(--muted);
  font-size: 22px;
  transition:
    transform 160ms ease,
    color 160ms ease;
}

.destination:hover .arrow,
.destination:focus-visible .arrow {
  transform: translate(4px, -4px);
}

.destination--strategy:hover .arrow,
.destination--strategy:focus-visible .arrow {
  color: var(--green);
}

.destination--overlay:hover .arrow,
.destination--overlay:focus-visible .arrow {
  color: var(--blue);
}

.destination--figma:hover .arrow,
.destination--figma:focus-visible .arrow {
  color: var(--purple);
}

@media (max-width: 760px) {
  body {
    padding: 16px;
  }

  .destinations {
    gap: 10px;
  }

  .destination {
    gap: 10px 8px;
    padding: 14px;
  }

  .destination-icon {
    width: 42px;
    height: 42px;
  }

  .destination-copy strong {
    font-size: 16px;
  }

  .destination-copy span {
    font-size: 12px;
  }
}
