@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@500;600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --paper: #f4f7f8;
  --ink: #111827;
  --blue: #2f6bff;
  --white: #ffffff;
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --muted: color-mix(in srgb, var(--ink) 62%, var(--paper));
  font-family: 'Manrope', sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
.ecosystem-inner {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  overflow: visible;
}

.brand-mark rect {
  fill: var(--blue);
}

.brand-mark circle,
.brand-mark path {
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-dot {
  color: var(--blue);
}

.copy-button {
  min-height: 2.5rem;
  padding-inline: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.copy-button:hover,
.copy-button:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent);
  outline-offset: 3px;
}

main {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  padding-block: 4rem 5rem;
}

.intro {
  display: flex;
  max-width: 880px;
  flex-direction: column;
  gap: 1.5rem;
}

.eyebrow,
.project-domain,
.directory-meta,
.section-heading > span,
.ecosystem-footer {
  font-family: 'Geist Mono', monospace;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(3rem, 10vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.88;
  text-wrap: balance;
}

.intro-copy {
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.directory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.directory-meta strong {
  color: var(--ink);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 12%, transparent);
}

.directory {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ink);
}

.section-heading h2 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.section-heading > span {
  color: var(--muted);
  font-size: 0.7rem;
}

.project-list {
  display: flex;
  flex-direction: column;
}

.project {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
  gap: 0.75rem;
  align-items: start;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 180ms ease, padding 180ms ease;
}

.project-index,
.project-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.65rem;
}

.project-index {
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}

.project-arrow {
  justify-self: end;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 1rem;
  transition: transform 180ms ease, background 180ms ease;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-domain {
  color: var(--blue);
  font-size: 0.7rem;
}

.project h3 {
  font-size: clamp(1.5rem, 5vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.project-content > p:last-child {
  max-width: 670px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.project:hover,
.project:focus-visible {
  padding-inline: 0.75rem;
  color: var(--blue);
}

.project:hover .project-arrow,
.project:focus-visible .project-arrow {
  background: var(--blue);
  transform: translate(0.15rem, -0.15rem);
}

.ecosystem-footer {
  background: #111111;
  color: #f5f5f5;
}

.ecosystem-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-block: 3rem 2rem;
}

.ecosystem-heading {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ecosystem-heading > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ecosystem-kicker {
  color: #929292;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ecosystem-heading h2 {
  color: #f5f5f5;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.75rem, 5vw, 3rem);
  letter-spacing: -0.05em;
}

.ecosystem-heading > p {
  max-width: 28rem;
  color: #929292;
  font-size: 0.75rem;
  line-height: 1.6;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.ecosystem-card {
  --ecosystem-accent: #f5f5f5;
  display: flex;
  min-height: 16rem;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem;
  border: 1px solid #303030;
  border-radius: 1rem;
  background: #181818;
  color: #f5f5f5;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.ecosystem-build {
  --ecosystem-accent: #e86543;
}

.ecosystem-enable {
  --ecosystem-accent: #966de8;
}

.ecosystem-protect {
  --ecosystem-accent: #56ad71;
}

.ecosystem-card:hover,
.ecosystem-card:focus-visible {
  border-color: var(--ecosystem-accent);
  transform: translateY(-0.2rem);
}

.ecosystem-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ecosystem-accent);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ecosystem-name {
  margin-top: auto;
  font-family: 'Manrope', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.ecosystem-name span {
  color: var(--ecosystem-accent);
}

.ecosystem-subtitle {
  color: var(--ecosystem-accent);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.ecosystem-description {
  color: #929292;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  line-height: 1.6;
}

.ecosystem-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #303030;
  color: #929292;
  font-size: 0.65rem;
  line-height: 1.5;
}

.ecosystem-brand {
  color: #f5f5f5;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .site-header,
  main,
  .ecosystem-inner {
    width: min(100% - 4rem, 1120px);
  }

  .site-header {
    padding-block: 1.75rem;
  }

  main {
    gap: 7rem;
    padding-block: 6rem 7rem;
  }

  .project {
    grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem;
    gap: 1.5rem;
    padding-block: 2rem;
  }

  .project-index,
  .project-arrow {
    width: 2.5rem;
    height: 2.5rem;
  }

  .ecosystem-inner {
    gap: 2.5rem;
    padding-block: 4rem 2rem;
  }

  .ecosystem-heading {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

  .ecosystem-heading > p {
    text-align: right;
  }

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

  .ecosystem-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
