:root {
  color-scheme: light;
  --paper: #f6f7f2;
  --surface: #ffffff;
  --ink: #193c34;
  --text: #43584e;
  --green: #174f43;
  --line: #ccd5ca;
  --focus: #894600;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1.6; }
::selection { background: #c7dbc2; color: #123a30; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; border-radius: 2px; }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 10; padding: .8rem 1rem; background: var(--surface); }
.skip-link:focus { top: 1rem; }
main { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.intro-link { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.5rem; padding-block: .5rem; font-size: .94rem; font-weight: 600; }
.intro-link:hover { color: var(--green); text-decoration-thickness: 2px; }
.intro { padding-block: 68px 64px; }
.intro-copy { max-width: 690px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 700; }
.title-dot { color: #9b5b10; }
.lead { margin-top: 1.15rem; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.4; font-weight: 500; }
.intro-description { margin-top: 1rem; max-width: 57ch; color: var(--text); font-size: 1.06rem; }
.projects { padding-bottom: 72px; }
h2 { font-size: 1.55rem; line-height: 1.3; letter-spacing: -.015em; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.project-item { min-width: 0; }
.project-card { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 314px; padding: 27px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: background-color 180ms ease-out, border-color 180ms ease-out; }
.project-icon { width: 40px; height: 40px; padding: 5px; margin-bottom: 23px; color: var(--green); }
.project-card h2 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.015em; margin-bottom: 12px; }
.project-card h2 a { text-decoration: none; }
.project-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.project-card h2 a:focus-visible { outline: none; }
.project-card:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
.project-card p { font-size: .95rem; color: var(--text); line-height: 1.65; margin-bottom: 28px; }
.card-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; color: var(--green); font-size: .87rem; font-weight: 600; line-height: 1.5; }
.card-action svg { width: 20px; height: 20px; flex-shrink: 0; }
.project-card:has(a):hover { background: #edf3e9; border-color: #7b9b80; }
.project-card:has(a):hover .card-action { text-decoration: underline; text-underline-offset: .2em; }
.project-card.memorial { opacity: .82; cursor: not-allowed; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1050px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card { min-height: 285px; }
}
@media (max-width: 640px) {
  main { width: calc(100% - 40px); }
  .intro { padding-block: 42px; }
  .intro-description { font-size: 1rem; }
  .project-grid { grid-template-columns: 1fr; gap: 14px; }
  .project-card { min-height: 0; padding: 24px; }
  .project-icon { margin-bottom: 18px; }
  .project-card p { margin-bottom: 22px; }
  .projects { padding-bottom: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media (forced-colors: active) {
  .project-card.memorial { opacity: 1; }
  .project-card:has(a:focus-visible) { outline-color: Highlight; }
  .project-icon { color: CanvasText; }
}

