:root {
  --paper: #f6f7f4;
  --surface: #ffffff;
  --ink: #171a17;
  --muted: #5a615a;
  --line: #dfe4dc;
  --green: #0f7656;
  --coral: #c94e59;
  --violet: #6a4ab0;
  --gold: #b66c13;
  --sky: #227494;
  --shadow: 0 18px 50px rgba(23, 26, 23, 0.1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 6px;
  background: var(--ink);
  color: var(--surface);
  padding: 10px 14px;
  transition: transform 160ms ease;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  color: var(--green);
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--muted);
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 48px;
  align-items: end;
  padding: 64px 0 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dl {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: 4rem;
  line-height: 1;
}

.lede {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.25rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0;
  margin-bottom: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-metrics div {
  min-width: 0;
  padding: 18px;
}

.hero-metrics div + div {
  border-left: 1px solid var(--line);
}

.hero-metrics dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-metrics dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.directory {
  padding-top: 44px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

h2 {
  margin-bottom: 0;
  font-size: 2.25rem;
  line-height: 1.1;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(23, 26, 23, 0.08);
}

.preview-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8ece5;
}

.preview-link img {
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 220ms ease;
}

.project-card:hover .preview-link img,
.preview-link:focus-visible img {
  transform: scale(1.035);
}

.preview-link:focus-visible,
.project-link:focus-visible {
  outline: 3px solid rgba(15, 118, 86, 0.34);
  outline-offset: 3px;
}

.card-body {
  display: flex;
  min-height: 280px;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.card-meta span:first-child {
  min-width: 0;
}

.status {
  flex: 0 0 auto;
  border: 1px solid rgba(15, 118, 86, 0.28);
  border-radius: 6px;
  color: var(--green);
  padding: 3px 8px;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.card-body p {
  margin-bottom: 18px;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.tag {
  border-radius: 6px;
  background: #f0f2ed;
  color: #3f473f;
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.tag:nth-child(2n) {
  color: var(--violet);
}

.tag:nth-child(3n) {
  color: var(--gold);
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 800;
}

.project-link:hover {
  background: var(--green);
}

.noscript-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 26px 28px 34px;
  color: var(--muted);
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

@media (max-width: 680px) {
  .site-header,
  main,
  .site-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1;
    text-align: center;
  }

  .hero {
    padding: 38px 0 34px;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .lede {
    font-size: 1.08rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .card-body {
    min-height: 0;
  }
}
