:root {
  --ink: #1b2427;
  --ink-soft: #465156;
  --paper: #f2efe8;
  --paper-dark: #e7e2d8;
  --white: #fffefb;
  --line: #cbc5b9;
  --petrol: #214f59;
  --rust: #a24230;
  --max: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.shell {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 99;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

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

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-inner nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-inner nav a,
.site-footer nav a {
  color: var(--ink-soft);
  font-size: 14px;
  text-underline-offset: 5px;
}

.intro { padding: 92px 0 80px; }

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  align-items: start;
  gap: 80px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--rust);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

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

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.035em;
}

h1 {
  margin-bottom: 27px;
  font-size: clamp(54px, 7vw, 84px);
  line-height: .98;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(35px, 4.5vw, 53px);
  line-height: 1.08;
}

.lead {
  max-width: 690px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 21px;
  line-height: 1.55;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.intro-actions span { color: var(--ink-soft); font-size: 14px; }

.primary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 17px;
  color: var(--white);
  background: var(--petrol);
  border: 1px solid var(--petrol);
  font-weight: 700;
  text-decoration: none;
}

.primary-link:hover { background: #173d45; }

.result-note {
  padding: 26px 28px 25px;
  background: var(--white);
  border-top: 4px solid var(--rust);
  box-shadow: 0 8px 22px rgba(36, 42, 40, .08);
}

.note-label {
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.result-note dl { margin: 0; }

.result-note dl div {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.result-note dt {
  float: left;
  width: 74px;
  color: var(--petrol);
  font-weight: 800;
}

.result-note dd {
  margin-left: 74px;
  color: var(--ink-soft);
  font-size: 14px;
}

.note-small {
  margin: 19px 0 0;
  padding-top: 16px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.plain-notice {
  padding: 16px 0;
  color: #e6e1d8;
  background: var(--ink);
  font-size: 13px;
}

.section { padding: 92px 0; }

.two-column {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 92px;
}

.section-title p:not(.kicker) { color: var(--ink-soft); }
.section-title.narrow { max-width: 760px; margin-bottom: 45px; }
.section-title.narrow > p:last-child { color: var(--ink-soft); font-size: 16px; }

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.process-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 17px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.process-list > li > span {
  color: var(--rust);
  font: 700 13px/1.4 "Courier New", monospace;
}

.process-list h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

.process-list p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.examples-section { background: var(--white); }

.case-study {
  margin-top: 25px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.case-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  padding: 25px 0 23px;
}

.case-meta {
  margin-bottom: 7px;
  color: var(--rust);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-head h3 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.15;
}

.case-status { text-align: right; }
.case-status span { display: block; color: var(--ink-soft); font-size: 11px; text-transform: uppercase; }
.case-status strong { color: var(--rust); font-size: 23px; letter-spacing: .04em; }

.case-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 58px;
  padding: 30px 0 38px;
  border-top: 1px solid var(--line);
}

.case-grid h4 {
  margin-bottom: 15px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 0; vertical-align: top; border-top: 1px solid #ded9cf; }
th { width: 118px; padding-right: 16px; text-align: left; font-size: 13px; }
td { color: var(--ink-soft); font-size: 14px; }

.case-reading p { color: var(--ink-soft); font-size: 14px; }
.case-reading a { color: var(--petrol); font-size: 14px; font-weight: 700; text-underline-offset: 4px; }

.boundaries { background: var(--paper-dark); }
.boundary-copy { padding-top: 37px; }
.boundary-copy p { max-width: 680px; color: var(--ink-soft); font-size: 18px; }

.contact-section {
  padding: 75px 0;
  color: var(--white);
  background: var(--petrol);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 50px;
}

.contact-section .kicker { color: #dfc0b5; }
.contact-section h2 { max-width: 700px; margin-bottom: 12px; }
.contact-section p { max-width: 720px; margin-bottom: 0; color: #d7e0e1; }

.contact-address { min-width: 260px; padding: 20px 0 4px; }
.contact-address p { color: var(--white); font-weight: 700; }
.contact-address a { color: var(--white); text-underline-offset: 5px; }

.site-footer {
  padding: 34px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p { margin: 0; color: var(--ink-soft); font-size: 13px; }

.legal-page { min-height: calc(100vh - 78px); padding: 72px 0; }

.legal-card {
  max-width: 790px;
  padding: 0 0 50px;
}

.legal-card h1 {
  margin: 10px 0 35px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 55px;
  font-weight: 500;
  letter-spacing: -.035em;
}

.legal-card h2 {
  margin: 34px 0 9px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.legal-card p, .legal-card li { color: var(--ink-soft); }
.legal-card a { text-underline-offset: 4px; }
.source-link { display: inline-block; margin-top: 20px; color: var(--petrol); font-weight: 700; }

@media (max-width: 860px) {
  .intro-grid, .two-column, .case-grid, .contact-inner { grid-template-columns: 1fr; }
  .intro-grid, .two-column { gap: 45px; }
  .case-grid { gap: 30px; }
  .result-note { max-width: 620px; }
  .boundary-copy { padding-top: 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 30px), var(--max)); }
  .header-inner { min-height: 68px; }
  .header-inner nav a:not(:last-child) { display: none; }
  .intro { padding: 58px 0 52px; }
  h1 { font-size: 52px; }
  .lead { font-size: 18px; }
  .section { padding: 65px 0; }
  .case-head { grid-template-columns: 1fr; gap: 10px; }
  .case-status { text-align: left; }
  .case-status span, .case-status strong { display: inline; margin-right: 7px; }
  th { width: 92px; }
  .contact-section { padding: 58px 0; }
  .footer-inner { flex-direction: column; }
  .legal-card h1 { font-size: 44px; }
}

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