:root {
  color-scheme: light;
  --paper: #fcfcfa;
  --ink: #182027;
  --muted: #59636b;
  --rule: #d8dde0;
  --link: #174e74;
  --accent: #ad4314;
  --focus: #9b3f13;
  --measure: 43rem;
  --page: 68rem;
}

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

a { color: var(--link); text-decoration-thickness: .075em; text-underline-offset: .17em; }
a:hover { text-decoration-thickness: .13em; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 1px; }

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 10;
  padding: .65rem .9rem;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { top: 1rem; }

.site-footer,
main {
  width: min(calc(100% - 3rem), var(--page));
  margin-inline: auto;
}

main { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.intro {
  padding-bottom: clamp(5rem, 10vw, 9rem);
}
.intro-copy { max-width: var(--measure); }
.kicker,
.section-label {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .095em;
  text-transform: uppercase;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.025em;
}
h1 { margin: 0 0 1.75rem; font-size: clamp(3.2rem, 7vw, 5.6rem); line-height: .98; }
h2 { margin: 0 0 1rem; font-size: clamp(1.7rem, 3.5vw, 2.25rem); line-height: 1.15; }
p { max-width: var(--measure); margin: 0 0 1.15rem; }
.accent { color: var(--accent); font-weight: 650; }
.lede { font-size: clamp(1.18rem, 2.2vw, 1.42rem); line-height: 1.52; }
.summary { color: var(--muted); font-size: 1.08rem; }
.text-links { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; margin-top: 1.8rem; }

.content-section {
  display: grid;
  grid-template-columns: minmax(9rem, .55fr) minmax(0, 1.65fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(3.25rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--rule);
}
.section-body { max-width: var(--measure); }
.section-body > :last-child { margin-bottom: 0; }
.work-item h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 140ms ease, text-shadow 140ms ease;
}
.work-item h2 a:hover,
.work-item h2 a:focus-visible {
  color: var(--accent);
  text-shadow: 0 0 .7rem rgb(173 67 20 / 22%);
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.6rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .86rem;
}
.site-footer div { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }

@media (max-width: 46rem) {
  .site-footer,
  main { width: min(calc(100% - 2rem), var(--page)); }
  .content-section { grid-template-columns: 1fr; gap: .55rem; }
  .section-label { margin-bottom: .15rem; }
}

@media (max-width: 25rem) {
  h1 { font-size: 2.9rem; }
}

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

@media print {
  :root { --paper: #fff; --ink: #000; --muted: #333; --rule: #bbb; --accent: #000; }
  .site-footer,
  .skip-link { display: none; }
  main { width: 100%; padding: 0; }
  a { color: inherit; text-decoration: none; }
}
