/* Shared project destinations, references and closing navigation. */
.project-detail-page .press-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.project-links {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #30313b;
}

.project-links a {
  text-decoration: none;
  color: #f1f2f6;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.project-links a:focus-visible {
  outline: 2px solid #c7d2fe;
  outline-offset: 5px;
}

.project-links svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-link-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid #30313b;
  border-radius: 10px;
  background: #111118;
}

.project-link-copy { min-width: 0; }
.project-link-title { display: block; }
.project-link-primary .project-link-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.3vw, 1.625rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.project-link-domain {
  display: block;
  margin-top: 6px;
  font-size: .8125rem;
  color: #aeb1be;
  line-height: 1.5;
}

.project-link-primary .project-link-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e5e8f2;
  color: #101017;
  transition: background-color 180ms ease;
}

.project-link-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin-top: 12px;
}

.project-link-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  border-bottom: 1px solid #30313b;
  border-radius: 2px;
}

.project-link-kicker {
  display: block;
  margin-bottom: 7px;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #aeb1be;
}

.project-link-secondary .project-link-title {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
}

.project-link-secondary svg { width: 18px; height: 18px; color: #aeb1be; }

.project-links .project-link-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 24px;
  padding: 8px 4px;
  border-radius: 2px;
  color: #b6b8c4;
  font-size: .875rem;
}

.project-link-back svg { width: 18px; height: 18px; }

.project-links .project-links-heading {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 500;
  color: #aeb1be;
}

.project-links .project-link-copy { overflow-wrap: anywhere; }
.project-link-secondary-grid > :only-child { grid-column: 1 / -1; }

.project-exits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.project-links > .project-exits:not(:first-child) {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #30313b;
}

.project-links .project-link-exit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  padding: 20px 4px;
  border-bottom: 1px solid #30313b;
  border-radius: 2px;
}

.project-link-exit .project-link-title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.project-link-exit svg { width: 20px; height: 20px; color: #aeb1be; }

@media (hover: hover) {
  .project-links .project-link-primary:hover { background: #1a1a24; border-color: #6a6d80; }
  .project-link-primary:hover .project-link-arrow { background: #c7d2fe; }
  .project-links .project-link-secondary:hover { background: #111118; border-color: #a5b4fc; }
  .project-link-secondary:hover svg { color: #e5e8f2; }
  .project-links .project-link-back:hover { color: #fff; }
  .project-links .project-link-exit:hover { background: #111118; border-color: #a5b4fc; }
  .project-link-exit:hover svg { color: #e5e8f2; }
}

@media (max-width: 600px) {
  .project-links { margin-top: 36px; padding-top: 24px; }
  .project-link-primary { padding: 22px 20px; gap: 16px; }
  .project-link-primary .project-link-arrow { width: 40px; height: 40px; }
  .project-link-secondary-grid { grid-template-columns: 1fr; margin-top: 8px; }
  .project-link-secondary { padding: 20px 4px; }
  .project-link-back { margin-top: 20px; }
  .project-exits { grid-template-columns: 1fr; gap: 0; }
  .project-links .project-link-exit { min-height: 76px; padding: 20px 4px; }
  .project-links > .project-exits:not(:first-child) { margin-top: 28px; padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-links a, .project-link-arrow { transition: none; }
}

@media (max-width: 380px) {
  .project-detail-page .stats-grid { grid-template-columns: 1fr; }
}
