:root {
  --ink: #171816;
  --muted: #5f625b;
  --paper: #f6f4ef;
  --panel: #ece8df;
  --line: #d5d0c5;
  --accent: #7a3426;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }
.site-header {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 700;
}
nav { display: flex; gap: 26px; }
nav a { text-decoration: none; font-size: .9rem; color: var(--muted); }
nav a:hover, nav a:focus { color: var(--ink); }

.hero {
  width: min(calc(100% - 40px), var(--max));
  margin: 38px auto 0;
  min-height: 690px;
  display: grid;
  grid-template-columns: 44% 56%;
  background: var(--panel);
}
.hero-photo { min-height: 690px; overflow: hidden; }
.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 42%;
}
.hero-copy {
  padding: clamp(52px, 7vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow, .section-label, .work-meta, .card-number {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; }
h1 { font-size: clamp(3.3rem, 6.7vw, 6.2rem); margin: 14px 0 24px; font-weight: 500; }
.dek { font-size: clamp(1.16rem, 2vw, 1.45rem); line-height: 1.5; max-width: 680px; color: #343631; }
.roles { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 30px 0; color: var(--muted); font-size: .92rem; }
.roles span::before { content: "•"; margin-right: 9px; color: var(--accent); }
.primary-link { width: fit-content; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 4px; font-weight: 650; }

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 110px 0;
  border-bottom: 1px solid var(--line);
}
.prose-section { display: grid; grid-template-columns: 24% 76%; }
.prose { max-width: 820px; }
.prose p { margin: 0 0 1.45em; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.22rem, 2vw, 1.52rem); line-height: 1.65; }
.section-heading { display: grid; grid-template-columns: 24% 76%; align-items: start; margin-bottom: 46px; }
.section-heading h2 { margin: 0; font-size: clamp(2.3rem, 4vw, 4.2rem); font-weight: 500; max-width: 850px; }
.cards { margin-left: 24%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--paper); padding: 38px; min-height: 250px; }
.card h3 { margin: 34px 0 14px; font-size: 1.75rem; }
.card p:last-child { color: var(--muted); margin-bottom: 0; }

.work-list { margin-left: 24%; border-top: 1px solid var(--line); }
.work-list article { padding: 34px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 22% 39% 39%; gap: 20px; align-items: start; }
.work-list h3 { margin: 0; font-size: 1.55rem; }
.work-list p { margin: 0; }
.work-list article > p:last-child { color: var(--muted); }
.note { margin: 28px 0 0 24%; color: var(--muted); font-size: .9rem; }

footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 70px 0 90px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
}
.footer-name { margin: 0 0 8px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.footer-links a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

@media (max-width: 800px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-photo { min-height: 620px; }
  .hero-copy { padding: 44px 28px 54px; }
  .prose-section, .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .cards { margin-left: 0; grid-template-columns: 1fr; }
  .work-list { margin-left: 0; }
  .work-list article { grid-template-columns: 1fr; gap: 8px; }
  .note { margin-left: 0; }
  footer { flex-direction: column; }
  .footer-links { align-items: flex-start; }
}

@media (max-width: 520px) {
  .site-header, .hero, .section, footer { width: min(calc(100% - 24px), var(--max)); }
  .hero { margin-top: 12px; }
  .hero-photo { min-height: 520px; }
  h1 { font-size: 3.05rem; }
  .section { padding: 78px 0; }
}

.contribution-grid {
  margin-left: 24%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.contribution {
  padding: 36px 34px 38px;
  min-height: 310px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.contribution h3 {
  margin: 18px 0 15px;
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 500;
}
.contribution > p:not(.work-meta) {
  margin: 0 0 24px;
  color: var(--muted);
}
.paper-link {
  margin-top: auto;
  width: fit-content;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.paper-link:hover, .paper-link:focus { color: var(--accent); }

@media (max-width: 800px) {
  .contribution-grid { margin-left: 0; grid-template-columns: 1fr; }
  .contribution { min-height: 0; }
}
