:root {
  color-scheme: light;
  --ink: #111522;
  --paper: #f4f2ec;
  --muted: #686b72;
  --line: rgba(17, 21, 34, .14);
  --blue: #2458d6;
  --green: #16775d;
  --amber: #a85d13;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
a { color: inherit; }
.masthead { min-height: 74px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.masthead p { margin: 0; color: var(--muted); font: 600 10px/1.2 ui-monospace, SFMono-Regular, monospace; letter-spacing: .11em; text-transform: uppercase; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 13px/1 ui-monospace, SFMono-Regular, monospace; letter-spacing: .13em; }
.brand-mark { width: 27px; height: 27px; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 7px; font-size: 13px; }
main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero { padding: 112px 0 100px; border-bottom: 1px solid var(--line); }
.eyebrow, .tag { margin: 0; color: var(--muted); font: 700 10px/1.2 ui-monospace, SFMono-Regular, monospace; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 1000px; margin: 24px 0 30px; font-size: clamp(50px, 7vw, 94px); line-height: .98; letter-spacing: -.07em; }
h1 em { color: var(--blue); font-style: normal; }
.lede { max-width: 690px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.projects { padding: 88px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; }
h2 { margin: 14px 0 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.045em; }
.project { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.project:last-child { border-bottom: 1px solid var(--line); }
.project-number { color: var(--muted); font: 600 11px/1 ui-monospace, SFMono-Regular, monospace; }
.project h3 { margin: 10px 0 12px; font-size: clamp(25px, 3vw, 38px); letter-spacing: -.04em; }
.project p:not(.tag) { max-width: 690px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.project > a { min-width: 176px; padding: 14px 18px; border: 1px solid currentColor; border-radius: 999px; text-align: center; text-decoration: none; font-size: 13px; transition: background .18s ease, color .18s ease; }
.project > a:hover, .project > a:focus-visible { color: white; background: var(--ink); outline: none; }
.project-evidence .tag { color: var(--blue); }
.project-cards .tag { color: var(--green); }
.project-miles .tag { color: var(--amber); }
.boundary { margin-bottom: 96px; padding: 54px; color: white; background: var(--ink); border-radius: 24px; }
.boundary .eyebrow, .boundary p span { color: #a6adbc; }
.boundary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 44px; }
.boundary-grid p { margin: 0; display: grid; gap: 11px; }
.boundary-grid strong { font-size: 18px; }
.boundary-grid span { font-size: 13px; line-height: 1.7; }
footer { padding: 40px max(24px, calc((100vw - 1180px) / 2)) 48px; color: #c1c6d1; background: #0b0e16; display: grid; grid-template-columns: 1fr auto; gap: 26px 48px; align-items: start; }
footer strong { color: white; font: 800 12px/1 ui-monospace, SFMono-Regular, monospace; letter-spacing: .13em; }
footer p { margin: 9px 0 0; font-size: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer nav a, .icp { color: #c1c6d1; font-size: 12px; text-underline-offset: 4px; }
.icp { grid-column: 1 / -1; justify-self: end; }

@media (max-width: 760px) {
  .masthead { min-height: 64px; }
  .masthead p { display: none; }
  main { width: min(100% - 32px, 680px); }
  .hero { padding: 72px 0 64px; }
  h1 { margin-top: 18px; font-size: clamp(32px, 8.4vw, 38px); }
  .lede { font-size: 16px; }
  .projects { padding: 64px 0; }
  .project { grid-template-columns: 34px 1fr; gap: 18px 12px; padding: 30px 0; }
  .project > a { grid-column: 2; width: 100%; }
  .boundary { margin-bottom: 64px; padding: 32px 24px; border-radius: 18px; }
  .boundary-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 34px; }
  footer { grid-template-columns: 1fr; }
  footer nav { display: grid; gap: 14px; }
  .icp { grid-column: 1; justify-self: start; }
}

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