.skip-link {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--panel-strong-background);
  transform: translateY(calc(-100% - 20px));
}

.skip-link:focus {
  transform: none;
}

.home-brand, .home-brand:hover {
  color: var(--page-foreground-color);
  text-decoration: none;
  font-size: 1.2rem;
}

.home-hero .nav {
  margin-bottom: 27px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.hero-copy {
  padding-bottom: 20px;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.4rem);
  line-height: 1;
  text-wrap: balance;
}

.hero-copy .lede {
  max-width: 49ch;
}

.hero-visual {
  margin: 0;
  min-width: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--separator-color);
  background-color: #0b1736;
  box-shadow: 0 16px 34px rgba(17, 43, 89, 0.18);
}

.hero-visual figcaption {
  color: var(--page-secondary-foreground-color);
  font-size: 0.8125rem;
  text-align: right;
  margin-top: 9px;
}

#projects {
  scroll-margin-top: 22px;
}

.home-section-head {
  align-items: center;
  flex-wrap: wrap;
}

.home-section-head h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  letter-spacing: -0.025em;
}

.home-section-head a,
.project-links a {
  font-weight: 650;
  text-underline-offset: 0.2em;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 25px;
  background:
    radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--primary-color) 10%, transparent), transparent 58%),
    var(--panel-background);
}

.project-card p.project-type {
  margin-bottom: 5px;
  color: var(--site-link);
  font-size: 0.875rem;
  font-weight: 700;
}

.project-card h3 {
  font-size: 1.55rem;
  letter-spacing: -0.025em;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: auto;
  padding-top: 16px;
}

.project-card:hover,
.docs-callout:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.docs-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 24px;
  padding: 25px;
}

.docs-callout h2 {
  margin: 0 0 5px;
  font-size: 1.28rem;
}

.docs-callout .actions {
  margin-top: 0;
}

.home-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 2px 0;
  border-top: 1px solid var(--separator-color);
}

@media (max-width: 1000px) {
  .hero-break { display: none; }
}

@media (max-width: 760px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-copy h1 { max-width: 16ch; text-wrap: wrap; }
}

@media (max-width: 620px) {
  .project-grid { grid-template-columns: 1fr; }
  .home-hero .nav { margin-bottom: 22px; }
  .hero-visual img { border-radius: 14px; }
  .project-card, .docs-callout { padding: 20px; }
}
