:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  background: #f5f5ed;
  color: #202820;
  --paper: #f5f5ed;
  --card: #fbfbf7;
  --ink: #202820;
  --muted: #4d594e;
  --border: #d7ddd0;
  --forest: #274934;
  --forest-deep: #1d3728;
  --lime: #caeea0;
  --gutter: clamp(18px, 5vw, 68px);
}

*, *::before, *::after { box-sizing: border-box; }
body { min-width: 280px; margin: 0; }
a { color: inherit; }
h1, h2, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #32784c; outline-offset: 4px; }

.skip-link {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  padding: 9px 13px;
  border-radius: 6px;
  color: #fff;
  background: var(--forest);
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus { opacity: 1; pointer-events: auto; }
.container { width: min(100%, 1320px); padding-inline: var(--gutter); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 64px;
  padding-block: 10px;
}

.wordmark {
  color: var(--forest-deep);
  font: 750 14px/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: -.04em;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-header nav a, .site-footer a { font-size: 14px; font-weight: 650; text-decoration: none; }
.site-header nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero { max-width: 1050px; padding-block: clamp(40px, 6.9vw, 91px) clamp(29px, 5vw, 66px); }

.hero h1 {
  max-width: 13.8em;
  color: var(--forest-deep);
  font-size: clamp(38px, 6.4vw, 87px);
  font-weight: 750;
  letter-spacing: -.052em;
  line-height: 1.025;
  text-wrap: balance;
}

.hero p {
  max-width: 49ch;
  margin-top: 17px;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.55;
}

.projects, .about { scroll-margin-top: 18px; }

.featured-project {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.45fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid #c2d2bc;
  border-radius: 20px;
  background: linear-gradient(120deg, #e4efdf, #d7e5d0);
}

.featured-copy h2 {
  max-width: 13ch;
  margin-top: 7px;
  color: var(--forest-deep);
  font-size: clamp(29px, 3.7vw, 49px);
  font-weight: 750;
  letter-spacing: -.043em;
  line-height: 1.05;
}

.project-type {
  color: var(--forest);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.featured-copy p:not(.project-type) { margin-top: 14px; line-height: 1.55; }
.featured-copy .scope-note { color: var(--muted); font-size: 13px; }
.featured-copy .button { margin-top: 19px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .16s, border-color .16s;
}

.button-primary { color: #fff; background: var(--forest); }
.button-primary:hover { background: var(--forest-deep); }
.button-primary span { color: var(--lime); }
.button-secondary { border-color: #b8c9b7; color: var(--forest-deep); background: #e6efe2; }
.button-secondary:hover { background: #dceadc; }
.button-text { color: var(--forest-deep); }
.button-text:hover { background: #edf2e9; }

.project-visual {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #556852;
  border-radius: 11px;
  background: #171d17;
  box-shadow: 0 12px 32px rgb(33 50 31 / 18%);
}

.project-visual img { width: 100%; height: auto; }

.secondary-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px 22px;
  margin-top: 16px;
  padding: 25px clamp(18px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--card);
}

.secondary-project h2, .about h2 { color: var(--forest-deep); font-size: 25px; font-weight: 740; letter-spacing: -.045em; }
.secondary-project p, .about p { max-width: 60ch; margin-top: 7px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.project-links { display: flex; flex: none; flex-wrap: wrap; gap: 5px; }

.about {
  display: grid;
  grid-template-columns: minmax(150px, .52fr) minmax(0, 1.48fr);
  align-items: start;
  gap: 12px 24px;
  padding-block: clamp(40px, 5vw, 65px);
}

.about p { margin: 0; }
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; min-height: 65px; padding-block: 14px; color: var(--forest-deep); }

@media (max-width: 790px) {
  .featured-project { grid-template-columns: minmax(0, 1fr); }
  .featured-copy h2 { max-width: 21ch; }
  .featured-copy p { max-width: 65ch; }
  .secondary-project { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 500px) {
  .header-inner { align-items: flex-start; justify-content: center; flex-direction: column; gap: 9px; padding-block: 13px; }
  .site-header nav { gap: 9px 17px; }
  .site-header nav a { font-size: 13px; }
  .hero h1 { font-size: clamp(35px, 9vw, 45px); text-wrap: initial; }
  .hero p { margin-top: 12px; }
  .featured-project { gap: 16px; border-radius: 15px; }
  .featured-copy p:not(.project-type) { margin-top: 10px; }
  .featured-copy .button { margin-top: 14px; }
  .about { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
