:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5e6978;
  --paper: #fbfcff;
  --line: #d8dfeb;
  --blue: #2459a6;
  --green: #1d8b62;
  --red: #d94b42;
  --gold: #e8b641;
  --soft-blue: #edf4ff;
  --soft-green: #edf8f2;
  --shadow: 6px 6px 0 rgba(17, 24, 39, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(17, 24, 39, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.045) 1px, transparent 1px),
    #f3f8ef;
  background-size: 42px 42px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

p {
  margin: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.project-card {
  display: grid;
  min-height: 220px;
  align-content: start;
  gap: 12px;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.project-title {
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1;
}

.project-description {
  color: var(--muted);
  line-height: 1.45;
}

.project-action {
  display: inline-grid;
  width: fit-content;
  min-height: 42px;
  margin-top: auto;
  padding: 0 16px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-weight: 900;
}

.project-card:hover {
  background: var(--soft-blue);
}

.project-card:hover .project-action {
  background: var(--red);
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100vw - 18px, 620px);
    padding: 9px 0;
  }
}
