:root {
  --paper: #f5f1e8;
  --ink: #1e252d;
  --muted: #59626c;
  --navy: #17375e;
  --blue: #275d94;
  --warm: #b9714a;
  --line: rgba(30, 37, 45, .18);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--warm); outline-offset: 4px; }

.site-header, main { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 88px; border-bottom: 1px solid var(--line); }
.wordmark { display: grid; place-items: center; width: 42px; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; color: var(--navy); font-weight: 750; text-decoration: none; }
nav { display: flex; gap: 26px; font-size: .92rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }

.hero { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); align-items: center; gap: clamp(40px, 8vw, 110px); padding: 80px 0 90px; }
.eyebrow, .case-number { margin: 0 0 20px; color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1 { max-width: 940px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6.6vw, 6.4rem); font-weight: 500; letter-spacing: -.048em; line-height: .98; text-wrap: balance; }
.lede { max-width: 670px; margin: 34px 0 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; }
.availability { margin: 18px 0 0; font-size: .94rem; }
.actions { display: flex; align-items: center; gap: 26px; margin-top: 36px; }
.button { display: inline-block; padding: 13px 18px; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--navy); }
.button:hover { background: transparent; color: var(--navy); }
.text-link { font-weight: 700; }
.portrait { width: fit-content; margin: 0; padding: 12px; justify-self: end; background: var(--warm); border-radius: 10px; }
.portrait img { width: auto; height: 260px; border-radius: 4px; filter: saturate(.86) contrast(1.03); }

.proof { display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1px solid var(--line); }
.proof div { min-height: 145px; padding: 28px 18px; border-right: 1px solid var(--line); }
.proof div:first-child { padding-left: 0; }
.proof div:last-child { border-right: 0; }
.proof strong, .proof span { display: block; }
.proof strong { color: var(--navy); font-family: Georgia, serif; font-size: clamp(1.4rem, 2vw, 2.1rem); font-weight: 500; }
.proof span { margin-top: 9px; color: var(--muted); font-size: .86rem; line-height: 1.4; }

.work { padding: 120px 0; }
.section-heading { max-width: 740px; margin-bottom: 62px; }
h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.04; }
.section-heading > p:last-child { color: var(--muted); line-height: 1.6; }
.case { display: grid; grid-template-columns: 170px minmax(240px, .8fr) minmax(320px, 1.2fr); gap: 34px; padding: 42px 0; border-top: 1px solid var(--line); }
.case h3 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: 2rem; font-weight: 500; line-height: 1.12; }
.case-summary { margin: 0; color: var(--muted); line-height: 1.65; }
.case details { grid-column: 2 / -1; }
summary { width: fit-content; color: var(--blue); cursor: pointer; font-weight: 750; }
dl { margin: 28px 0 0; }
dl div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
dt { font-size: .73rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
dd { margin: 0; color: var(--muted); line-height: 1.55; }

.more-work { padding: 30px 0 120px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.more-grid article { padding: 30px; border-right: 1px solid var(--line); }
.more-grid article:first-child { padding-left: 0; }
.more-grid article:last-child { border-right: 0; }
.more-grid span { color: var(--warm); font-size: .73rem; font-weight: 800; letter-spacing: .12em; }
.more-grid h3 { min-height: 2.5em; margin: 24px 0 14px; color: var(--navy); font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; line-height: 1.2; }
.more-grid p { margin: 0; color: var(--muted); line-height: 1.65; }

.closing { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(260px, .65fr); gap: 26px 70px; align-items: end; padding: 100px 0; border-top: 1px solid var(--line); }
.closing .eyebrow { grid-column: 1 / -1; }
.closing h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); }
.closing > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.closing .button { grid-column: 2; width: fit-content; margin-top: 10px; }
footer { width: min(1180px, calc(100% - 40px)); min-height: 110px; display: flex; justify-content: space-between; align-items: center; margin-inline: auto; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 60px; }
  .portrait { justify-self: start; }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof div { border-bottom: 1px solid var(--line); }
  .case { grid-template-columns: 1fr; }
  .case details { grid-column: auto; }
  .more-grid { grid-template-columns: 1fr; }
  .more-grid article, .more-grid article:first-child { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .more-grid article:last-child { border-bottom: 0; }
  .more-grid h3 { min-height: auto; }
  .closing { grid-template-columns: 1fr; }
  .closing .button { grid-column: auto; }
}

@media (max-width: 520px) {
  .site-header, main { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 72px; }
  nav a:first-child { display: none; }
  .hero { padding: 44px 0 64px; gap: 44px; }
  h1 { font-size: clamp(2.55rem, 12vw, 4rem); }
  .actions { align-items: flex-start; flex-direction: column; }
  .proof { grid-template-columns: 1fr; }
  .proof div, .proof div:first-child { min-height: 0; padding: 22px 0; border-right: 0; }
  .work { padding: 82px 0; }
  .more-work { padding-bottom: 82px; }
  .closing { padding: 76px 0; }
  footer { width: min(100% - 28px, 1180px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; }
  dl div { grid-template-columns: 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.not-found { min-height: 100vh; display: grid; place-content: center; justify-items: start; }
.not-found h1 { max-width: 760px; }
