.home-page {
  --home-accent: #0f766e;
  --home-project-accent: #9f1239;
  --home-border: #cbd5e1;
  --home-muted: #64748b;
  --home-text: #0f172a;
  color: var(--home-text);
}

.home-intro {
  max-width: 43rem;
}

.home-intro-copy {
  max-width: 43rem;
}

.home-kicker,
.home-work-heading p {
  margin: 0 0 0.75rem;
  color: var(--home-accent);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-intro h1 {
  margin: 0;
  color: var(--home-text);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

.home-summary {
  max-width: 40rem;
  margin-top: 1.5rem;
  color: #475569;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.home-summary p {
  margin: 0;
}

.home-summary p + p {
  margin-top: 0.75rem;
}

.home-summary a {
  color: var(--home-text);
  font-weight: 650;
  text-decoration-color: #99f6e4;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.home-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--home-border);
  border-radius: 0.375rem;
  background: #fff;
  color: var(--home-text);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.home-action:hover {
  border-color: var(--home-accent);
  color: var(--home-accent);
  transform: translateY(-1px);
}

.home-action--primary {
  border-color: var(--home-text);
  background: var(--home-text);
  color: #fff;
}

.home-action--primary:hover {
  background: var(--home-accent);
  color: #fff;
}

.home-portrait {
  width: 100%;
  max-width: 48rem;
  margin: 0 0 3rem;
}

.home-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 780 / 393;
  border-radius: 0.5rem;
  object-fit: cover;
}

.home-work {
  padding-top: 4rem;
}

.home-work-heading {
  margin-bottom: 2rem;
}

.home-work-heading h2 {
  margin: 0;
  color: var(--home-text);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.home-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

.home-column-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--home-border);
}

.home-column-heading h3 {
  margin: 0;
  color: var(--home-text);
  font-size: 0.875rem;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-column-heading a {
  color: var(--home-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.home-column-heading a:hover {
  color: var(--home-accent);
}

.home-work-list {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.75rem;
}

.home-work-item {
  display: block;
  min-height: 9.25rem;
  padding: 1.125rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--home-text);
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.home-work-item:hover {
  border-color: #94a3b8;
  box-shadow: 0 5px 16px rgb(15 23 42 / 8%);
  transform: translateY(-2px);
}

.home-work-item:focus-visible,
.home-action:focus-visible,
.home-column-heading a:focus-visible,
.home-summary a:focus-visible {
  outline: 3px solid #99f6e4;
  outline-offset: 3px;
}

.home-work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  color: var(--home-accent);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-work-meta time {
  color: var(--home-muted);
}

.home-work-item--project .home-work-meta {
  color: var(--home-project-accent);
}

.home-work-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.25rem;
  gap: 1rem;
  align-items: start;
  margin-top: 0.65rem;
}

.home-work-title h4 {
  margin: 0;
  color: inherit;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
}

.home-work-title > span {
  color: var(--home-accent);
  line-height: 1.4;
  transition: transform 150ms ease;
}

.home-work-item--project .home-work-title > span {
  color: var(--home-project-accent);
}

.home-work-item:hover .home-work-title > span {
  transform: translateX(2px);
}

.home-work-description {
  display: -webkit-box;
  margin: 0.55rem 0 0;
  overflow: hidden;
  color: #64748b;
  font-size: 0.8125rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html.dark .home-page {
  --home-accent: #5eead4;
  --home-project-accent: #fda4af;
  --home-border: #334155;
  --home-muted: #94a3b8;
  --home-text: #f8fafc;
}

html.dark .home-summary,
html.dark .home-work-description {
  color: #cbd5e1;
}

html.dark .home-summary a {
  color: var(--home-text);
  text-decoration-color: #0f766e;
}

html.dark .home-action,
html.dark .home-work-item {
  border-color: #334155;
  background: #1e293b;
}

html.dark .home-action--primary {
  border-color: #f8fafc;
  background: #f8fafc;
  color: #0f172a;
}

html.dark .home-action--primary:hover {
  border-color: var(--home-accent);
  background: var(--home-accent);
  color: #0f172a;
}

html.dark .home-work-item:hover {
  border-color: #64748b;
  box-shadow: 0 5px 16px rgb(0 0 0 / 20%);
}

@media (max-width: 900px) {
  .home-work-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 680px) {
  .home-intro h1 {
    font-size: 2.5rem;
  }

  .home-portrait {
    margin-bottom: 2rem;
  }

  .home-summary {
    font-size: 1rem;
  }

  .home-actions {
    margin-top: 1.5rem;
  }

  .home-work {
    padding-top: 3rem;
  }

  .home-work-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .home-work-item {
    min-height: 0;
  }
}
