:root {
  /* Pico token customizations (keep styles maintainable). */
  --spacing-company: 0.75rem;

  /* Global layout: keep site content in a centered column (responsive). */
  --site-max-width: 56rem; /* try 56rem / 64rem / 70rem / 76rem */

  /* Global type scale: slightly smaller overall, responsive (mobile-safe). */
  --pico-font-size: clamp(93%, 0.5vw + 91%, 100%);

  /* Match screenshot vibe: slightly softer corners + purple primary. */
  --pico-border-radius: 0.75rem;
  --pico-primary: #5b5df6;
  --pico-primary-background: #5b5df6;
  --pico-primary-border: #5b5df6;
  --pico-primary-hover: #4a4df2;
  --pico-primary-hover-background: #4a4df2;
  --pico-primary-hover-border: #4a4df2;
  --pico-primary-focus: rgba(91, 93, 246, 0.3);
}

/* Constrain Pico containers on larger screens; keep mobile fluid. */
.container {
  max-width: clamp(20rem, 92vw, var(--site-max-width));
}

/* Design relies on scale + whitespace. */

.hero {
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero .eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.25;
  color: var(--pico-muted-color);
}

.hero h1 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: clamp(2.75rem, 6.5vw, 4.75rem);
  letter-spacing: -0.02em;
}

.hero .lead {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.03rem, 0.25vw + 1rem, 1.15rem);
  color: var(--pico-muted-color);
}

.hero .actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .hero .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero .actions > a[role="button"] {
    width: 100%;
  }
}

.page-intro {
  padding-top: 1.5rem;
}

.page-intro p {
  color: var(--pico-muted-color);
  max-width: 48rem;
}

.page-center {
  text-align: center;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* About page: keep heading centered, but left-align the reading measure. */
body.about .page-center .measure {
  text-align: left;
}

body.about .page-center > h1 {
  text-align: left;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.measure {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

/* Slightly larger long-form body copy (responsive). */
.measure p {
  font-size: clamp(1.02rem, 0.2vw + 1rem, 1.125rem);
}

.muted {
  color: var(--pico-muted-color);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.screenshot-placeholder {
  color: var(--pico-muted-color);
}

.project-card h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.05rem, 0.15vw + 1.02rem, 1.15rem);
}

/* Slightly larger primary navigation links (responsive). */
header nav > ul:last-of-type a {
  font-size: clamp(1.02rem, 0.15vw + 1rem, 1.1rem);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.project-card {
  height: 100%;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.project-card-link {
  display: block;
  height: 100%;
}

.project-card-link,
.project-card-link:link,
.project-card-link:visited,
.project-card-link:hover,
.project-card-link:active {
  color: inherit;
  text-decoration: none;
}

.project-card-link:focus-visible {
  outline: none;
}

.project-card-link:focus-visible .project-card {
  border-color: var(--pico-primary-border);
  box-shadow: 0 0 0 0.18rem var(--pico-primary-focus);
}

@media (hover: hover) and (pointer: fine) {
  .project-card-link:hover .project-card {
    border-color: var(--pico-primary-border);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
  }
}

.project-card .thumb {
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--pico-border-radius) * 1.25);
  border: 1px solid var(--pico-muted-border-color);
  background-color: var(--pico-card-sectioning-background-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.875rem;
  color: var(--pico-muted-color);
  margin-top: 0.25rem;
}

.project-card .title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-card .title-row h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  flex: 1 1 auto;
}

.project-card .external {
  text-decoration: none;
  color: var(--pico-muted-color);
  flex: 0 0 auto;
}

