@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  color: #1f2623;
  background: #eef2f1;
  font-family: 'DM Sans', sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  --ink: #1f2623;
  --muted: #626b66;
  --line: #cbcfc8;
  --paper: #eef2f1;
  --white: #fcfdfb;
  --green: #316c59;
  --blue: #315b8a;
  --coral: #d96f4c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link { position: fixed; left: 16px; top: 12px; z-index: 10; padding: 9px 12px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { min-height: 72px; padding: 0 clamp(20px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: var(--white); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; text-decoration: none; }
.wordmark-mark { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--ink); font: 500 11px 'IBM Plex Mono', monospace; }
.header-note { color: var(--muted); font-size: 13px; }

main { min-height: calc(100vh - 144px); }
.intro { min-height: 410px; padding: clamp(64px, 9vw, 112px) clamp(20px, 8vw, 124px) 70px; border-bottom: 1px solid var(--line); display: grid; align-content: center; grid-template-columns: minmax(0, 790px); position: relative; overflow: hidden; background: #f8f9f6; }
.intro::after { content: ''; position: absolute; right: clamp(22px, 8vw, 128px); bottom: 54px; width: 84px; height: 84px; border: 1px solid #aeb6af; box-shadow: 14px 14px 0 var(--coral); transform: rotate(8deg); }
.eyebrow { margin: 0 0 16px; color: var(--green); font: 500 11px 'IBM Plex Mono', monospace; text-transform: uppercase; }
h1, h2, h3 { letter-spacing: 0; }
h1 { max-width: 720px; margin: 0; font-size: clamp(42px, 6vw, 74px); line-height: 1.02; font-weight: 600; }
.intro-copy { max-width: 590px; margin: 26px 0 0; color: var(--muted); font-size: 18px; line-height: 1.62; }
.jump-link { width: max-content; margin-top: 28px; padding-bottom: 3px; border-bottom: 1px solid var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.jump-link span { margin-left: 6px; color: var(--coral); }

.projects-section { padding: 72px clamp(20px, 5vw, 76px) 96px; }
.section-heading { max-width: 1320px; margin: 0 auto 32px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
h2 { margin: 0; font-size: 36px; font-weight: 600; }
.project-count { margin: 0 0 4px; color: var(--muted); font: 12px 'IBM Plex Mono', monospace; }
.project-list { max-width: 1320px; margin: 0 auto; border-top: 1px solid var(--line); }
.project { display: grid; grid-template-columns: minmax(340px, 1.2fr) minmax(300px, .8fr); min-height: 370px; border-bottom: 1px solid var(--line); }
.project-preview { min-width: 0; padding: 28px 0 28px 28px; display: flex; align-items: stretch; }
.project-preview img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; border: 1px solid #adb5ae; background: #dfe3dc; }
.project-content { padding: 52px clamp(28px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.project-kicker { margin: 0 0 14px; color: var(--green); font: 500 11px 'IBM Plex Mono', monospace; text-transform: uppercase; }
.project--blue .project-kicker { color: var(--blue); }
h3 { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.08; font-weight: 600; }
.project-description { max-width: 500px; margin: 18px 0 26px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.project-link { display: inline-flex; width: max-content; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.project-link span { color: var(--coral); transition: transform 160ms ease; }
.project-link:hover span { transform: translateX(4px); }
.project-link:focus-visible, .jump-link:focus-visible, .wordmark:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.project-link--pending { color: #7b817d; border-bottom-style: dashed; cursor: default; }
.noscript { padding: 28px 0; color: #993d2c; }

.site-footer { min-height: 72px; padding: 0 clamp(20px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #cfd8d2; background: var(--ink); border-top: 1px solid var(--ink); font: 11px 'IBM Plex Mono', monospace; }

@media (max-width: 820px) {
  .intro { min-height: 380px; padding-right: 110px; }
  .intro::after { right: 32px; width: 52px; height: 52px; box-shadow: 9px 9px 0 var(--coral); }
  .project { grid-template-columns: 1fr; }
  .project-preview { padding: 24px 0 0; }
  .project-content { padding: 32px 4px 48px; }
}

@media (max-width: 560px) {
  .site-header { min-height: 64px; }
  .header-note { display: none; }
  .intro { min-height: 430px; padding: 62px 20px 92px; align-content: start; }
  .intro::after { left: 24px; right: auto; bottom: 26px; }
  h1 { font-size: 45px; }
  .intro-copy { font-size: 16px; }
  .projects-section { padding: 54px 20px 72px; }
  .project-preview { padding-top: 20px; }
  .project-preview img { aspect-ratio: 4 / 3; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 18px; padding-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-link span { transition: none; }
}
