:root {
  color-scheme: light;
  --paper: #f2efe8;
  --surface: #fffdf8;
  --ink: #171714;
  --muted: #6c685f;
  --line: #d8d2c5;
  --accent: #1c5149;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lab-shell {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) 0;
}

.lab-header {
  max-width: 660px;
  margin-bottom: 52px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.intro {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.project-card {
  display: block;
  min-height: 280px;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 16px 44px rgb(31 42 38 / 9%);
  outline: none;
  transform: translateY(-3px);
}

.project-type {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card h2 {
  max-width: 12ch;
  margin: 46px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.project-card p {
  max-width: 50ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.project-link {
  display: block;
  margin-top: 28px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
}

@media (max-width: 600px) {
  .lab-shell { width: min(100% - 28px, 1040px); padding: 48px 0; }
  .lab-header { margin-bottom: 34px; }
  .project-card { min-height: 250px; padding: 24px; }
  .project-card h2 { margin-top: 34px; }
}
