:root {
  color-scheme: light;
  --ink: #172029;
  --muted: #5c6670;
  --page: #f4f1ea;
  --panel: #fffdf8;
  --line: #d8d1c4;
  --accent: #1d6f73;
  --accent-2: #9f473e;
  --shadow: 0 18px 45px rgba(33, 31, 28, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--page);
  color: var(--ink);
}

.page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 64px;
}

.intro {
  max-width: 720px;
  margin-bottom: 32px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project-card a {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  min-height: 190px;
  color: inherit;
  text-decoration: none;
}

.project-card a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  border-right: 1px solid var(--line);
  background: #dde4df;
}

.project-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 24px;
}

.project-title {
  font-size: 26px;
  font-weight: 850;
  line-height: 1.1;
}

.project-desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.project-url {
  margin-top: 22px;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 800;
}

.project-card:hover {
  transform: translateY(-2px);
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 24px 55px rgba(33, 31, 28, 0.16);
}

.site-footer {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.coffee-link {
  display: inline-flex;
  border-radius: 6px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.coffee-link img {
  display: block;
  width: auto;
  height: 25px;
}

.coffee-link:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.coffee-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .page {
    width: min(620px, calc(100% - 28px));
    padding-top: 34px;
  }

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

@media (max-width: 520px) {
  .project-card a {
    grid-template-columns: 1fr;
  }

  .project-card img {
    height: 150px;
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-text {
    padding: 20px;
  }
}
