:root {
  --paper: #f4f2ed;
  --paper-deep: #ebe8e0;
  --ink: #18201f;
  --muted: #68716d;
  --line: #d5d4cb;
  --blue: #2e5963;
  --blue-dark: #21434b;
  --green: #8aa48c;
  --white: #fbfaf7;
  --max: 1160px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: .55rem .8rem;
  color: var(--white);
  background: var(--ink);
}

.skip-link:focus { top: 1rem; }

.container {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-inner { min-height: 76px; }

.wordmark {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -.08em;
  text-decoration: none;
}

.wordmark .dot { color: var(--blue); }

nav { display: flex; gap: 1.5rem; }

nav a,
.text-link {
  color: var(--muted);
  font-size: .84rem;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible { color: var(--ink); }

.hero {
  padding-top: clamp(6rem, 14vw, 11rem);
  padding-bottom: clamp(6.5rem, 13vw, 10rem);
}

.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--blue);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .15em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 { font-weight: 500; letter-spacing: -.045em; }

h1 {
  max-width: 780px;
  margin-bottom: 2rem;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: .95;
}

h1 em,
h2 em { color: var(--blue); font-family: var(--serif); font-weight: 400; }

.lede {
  max-width: 600px;
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: .78rem 1.05rem;
  font-size: .85rem;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.button:hover,
.button:focus-visible { transform: translateY(-2px); }

.button-primary {
  color: var(--white);
  background: var(--blue);
}

.button-primary:hover,
.button-primary:focus-visible { background: var(--blue-dark); }

.section-line { border-top: 1px solid var(--line); }

.work-section { padding: clamp(4.5rem, 9vw, 7.2rem) 0; }

.section-heading { margin-bottom: 2.6rem; }

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.03;
}

.project-card {
  display: block;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 14px 30px rgba(24, 32, 31, .07);
  transform: translateY(-3px);
}

.project-card-top,
.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-index {
  color: var(--blue);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.project-type,
.project-card-footer {
  color: var(--muted);
  font-size: .74rem;
  letter-spacing: .04em;
}

.project-card-body {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 7vw, 5rem);
}

.project-card h3 {
  margin-bottom: .7rem;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: .96;
}

.project-subtitle {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.35;
}

.card-arrow {
  color: var(--blue);
  font-size: 2.3rem;
  line-height: 1;
}

.section-note {
  max-width: 550px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.approach-section {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--paper-deep);
}

.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 10vw, 10rem);
}

.approach-copy { padding-top: .5rem; }

.approach-copy p {
  max-width: 510px;
  color: #4f5b57;
  font-size: 1.1rem;
  line-height: 1.7;
}

.approach-copy p + p { margin-top: 1.5rem; }

.site-footer {
  color: var(--muted);
  font-size: .75rem;
}

.footer-inner { min-height: 86px; }

@media (max-width: 680px) {
  .container { width: min(calc(100% - 2rem), var(--max)); }
  .header-inner { min-height: 64px; }
  nav { gap: .85rem; }
  .project-card-top,
  .project-card-footer { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .project-card-body { align-items: flex-start; flex-direction: column; gap: 1.8rem; padding-top: 4.5rem; }
  .approach-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}
