/* Homepage layout and artwork. Shared buttons and card surfaces live in theme.css. */
.home-page .home-main {
  width: 100%;
  margin: 0;
  padding: 0;
}

.home-page .home-portal {
  margin: 0;
}

/* The hero and directory share the same width as the tool workspaces. */
.home-page .home-banner {
  position: relative;
  display: flex;
  align-items: center;
  width: var(--tool-workspace-width);
  aspect-ratio: 2025 / 776;
  margin: var(--space-300) auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: var(--panel);
}
.home-page .home-banner-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.home-page .home-hero-copy {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: min(480px, 42%);
  margin-left: max(var(--space-400), calc((100% - 1120px) / 2));
  padding: var(--space-600) 0;
}
.home-page .home-eyebrow,
.home-page .home-proof {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
.home-page .home-eyebrow {
  margin: 0 0 var(--space-100);
}
.home-page .home-title {
  margin: 0 0 var(--space-200);
  color: var(--text);
  font-size: 60px;
  font-weight: 600;
  line-height: 60px;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.home-page .home-lead {
  max-width: 36rem;
  margin: 0 0 var(--space-200);
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
  text-wrap: pretty;
}
.home-page .home-proof {
  margin: 0;
}

.home-page .home-shell {
  width: var(--tool-workspace-width);
  margin: 0 auto;
  padding: var(--space-400) 0 var(--space-600);
}
.home-page .home-directory {
  display: grid;
  gap: var(--space-400);
}
/* The shared html scroll-padding already accounts for the sticky header. */
.home-page .home-directory,
.home-page .home-block {
  scroll-margin-top: var(--space-75);
}
.home-page .home-block {
  min-width: 0;
  margin: 0;
}
.home-page .home-block-head {
  display: grid;
  gap: var(--space-50);
  margin-bottom: var(--space-200);
}
.home-page .home-block-head h2 {
  flex: none;
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  text-wrap: balance;
}
.home-page .home-block-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  text-wrap: pretty;
}
.home-page .home-block-head p {
  max-width: 65ch;
}

.home-page .home-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-200);
}
.home-page .home-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 16px;
  gap: var(--space-100);
  align-items: center;
  min-height: 136px;
  padding: var(--space-300);
  color: var(--text);
  text-decoration: none;
  box-shadow: none;
  transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.home-page .home-card:hover {
  border-color: var(--text);
  background: var(--panel2);
}
.home-page .home-card:active {
  transform: translateY(1px);
}
.home-page .home-card:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.home-page .home-card-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.home-page .home-card-copy {
  display: grid;
  gap: var(--space-50);
  min-width: 0;
}
.home-page .home-link-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  text-wrap: pretty;
}
.home-page .home-link-desc {
  max-width: 42ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  text-wrap: pretty;
}
.home-page .home-link-arrow {
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}
.home-page .home-quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-75);
  margin-top: var(--space-200);
}

.home-page .home-link-list--guides .home-card {
  grid-template-columns: 80px minmax(0, 1fr) 16px;
  min-height: 160px;
  gap: var(--space-200);
}
.home-page .home-link-list--guides .home-card-icon {
  width: 80px;
  height: 80px;
}
.home-page .home-reveal {
  opacity: 1;
  transform: none;
}
html.js-motion .home-page .home-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
html.js-motion .home-page .home-reveal.is-in,
html.js-motion .home-page .home-reveal:target {
  opacity: 1;
  transform: none;
}

@media (min-width: 1024px) {
  .home-page .home-directory {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: start;
  }
  .home-page .home-link-list--guides {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-page .home-hero-copy :is(.home-eyebrow, .home-lead, .home-proof) {
    color: var(--text);
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .home-page .home-hero-copy {
    margin-left: var(--space-400);
    padding-block: var(--space-400);
  }
  .home-page .home-title {
    font-size: 48px;
    line-height: 48px;
  }
  .home-page .home-directory {
    gap: var(--space-300);
  }
  .home-page .home-card {
    padding: var(--space-200);
  }
  .home-page .home-link-title {
    font-size: 16px;
    line-height: 24px;
  }
  .home-page .home-quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1279px) {
  .home-page .home-link-list--guides .home-card {
    grid-template-columns: 64px minmax(0, 1fr) 16px;
    gap: var(--space-100);
  }
  .home-page .home-link-list--guides .home-card-icon {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 1023px) {
  .home-page .home-banner {
    display: block;
    aspect-ratio: auto;
  }
  .home-page .home-banner-art {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
  }
  .home-page .home-hero-copy {
    width: auto;
    margin: 0;
    padding: var(--space-300);
  }
  .home-page .home-title {
    font-size: 36px;
    line-height: 40px;
  }
}

@media (max-width: 760px) {
  .home-page .home-title {
    font-size: 30px;
    line-height: 36px;
  }
  .home-page .home-block-head {
    display: grid;
    gap: var(--space-50);
    margin-bottom: var(--space-200);
  }
  .home-page .home-card {
    grid-template-columns: 48px minmax(0, 1fr) 16px;
    min-height: 104px;
    padding: var(--space-200);
  }
  .home-page .home-card-icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 600px) {
  .home-page .home-banner {
    margin-top: var(--space-200);
  }
  .home-page .home-link-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-page .home-link-list--guides .home-card {
    min-height: 120px;
  }
}

@media (max-width: 480px) {
  .home-page .home-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-reveal,
  html.js-motion .home-page .home-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .home-page .home-card {
    transition: none;
  }
  .home-page .home-card:active {
    transform: none;
  }
}

@media print {
  .home-page .home-reveal,
  html.js-motion .home-page .home-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
