/* Home-page-only layout: hero + compact project list.
   Everything shared (tokens, background glows, nav, buttons, tiles, footer)
   lives in style.css. Keep it out of here so pages can't override each other. */

/* ---------- Hero layout ---------- */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding-top: 48px;
}

.intro p {
  margin: 16px 0 28px;
  max-width: 30ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---------- Project list ---------- */
.work-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 12px 10px;
  font-size: 0.8rem;
}
.work-head h2 {
  font-size: inherit;
  font-weight: 500;
  color: var(--faint);
}
.work-head a {
  color: var(--accent);
}
.work-head a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.work ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border: 0.5px solid transparent;
  border-radius: var(--radius-md);
  transition:
    background var(--ease),
    border-color var(--ease);
}
.pr:hover {
  background: var(--hover);
  border-color: var(--line);
}

.pr svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pr .go {
  margin-left: auto;
  color: var(--faint);
  transition:
    transform var(--ease),
    color var(--ease);
}
.pr:hover .go {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.pr strong {
  display: block;
  font-size: 1rem;
  font-weight: 500;
}
.pr small {
  display: block;
  margin-top: 1px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }
  .intro p {
    max-width: 36ch;
  }
}