:root {
  --ink: #17211d;
  --muted: #64716b;
  --paper: #f1f0e9;
  --line: rgba(23, 33, 29, 0.16);
  --lime: #d7ed62;
  --blue: #b7d4ff;
  --orange: #f47e45;
  --display: "Space Grotesk", sans-serif;
  --mono: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 6%, rgba(215, 237, 98, 0.34), transparent 22rem),
    var(--paper);
  font-family: var(--display);
}

a {
  color: inherit;
}

.page-shell {
  display: flex;
  flex-direction: column;
  width: min(100% - 3rem, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem 0 1.5rem;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  font-weight: 500;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
}

.topbar-note,
.footer {
  color: var(--muted);
}

main {
  flex: 1;
  padding: clamp(5rem, 12vw, 9.5rem) 0 5rem;
}

.hero {
  max-width: 45rem;
}

.eyebrow,
.card-kicker,
.route-hint,
.card-index {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin: 0 0 1.35rem;
  color: var(--muted);
}

.eyebrow-dot {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--orange);
  border-radius: 50%;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 600;
  letter-spacing: -0.085em;
  line-height: 0.86;
}

h1 em {
  color: var(--orange);
  font-style: normal;
}

.hero-copy {
  max-width: 27rem;
  margin: 2rem 0 0 0.4rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 5.5rem;
}

.profile-card {
  display: flex;
  flex-direction: column;
  min-height: 25rem;
  padding: 1.5rem;
  border: 1px solid var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.profile-card:hover {
  transform: translate(-0.3rem, -0.3rem);
  box-shadow: 0.55rem 0.55rem 0 var(--ink);
}

.profile-card:focus-visible,
.wordmark:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.profile-card--ai {
  background: var(--lime);
}

.profile-card--software {
  background: var(--blue);
}

.profile-card--master {
  background: var(--orange);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-index {
  color: rgba(23, 33, 29, 0.7);
}

.card-arrow {
  font-size: 1.8rem;
  line-height: 1;
}

.card-content {
  margin: auto 0;
}

.card-kicker {
  margin: 0 0 1.25rem;
}

h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.88;
}

.card-description {
  max-width: 21rem;
  margin: 1.75rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.card-cta {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(23, 33, 29, 0.45);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-cta span {
  font-size: 1rem;
  line-height: 0.7;
}

.route-hint {
  margin: 1.8rem 0 0;
  color: var(--muted);
}

.route-hint span {
  margin-right: 0.55rem;
  color: var(--ink);
}

code {
  padding: 0.18rem 0.3rem;
  color: var(--ink);
  background: rgba(23, 33, 29, 0.08);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.footer {
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 2rem, 1180px);
    padding-top: 1.25rem;
  }

  .topbar-note {
    display: none;
  }

  main {
    padding-top: 5.5rem;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    margin-top: 4rem;
  }

  .profile-card {
    min-height: 22rem;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
    line-height: 1.5;
  }

  .footer-line {
    width: 3rem;
    flex: none;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-card {
    transition: none;
  }
}
