:root {
  --paper: #f8f9fa;
  --plate: #e9ecef;
  --card: #ffffff;
  --steel: #263240;
  --slate: #4a5866;
  --brass: #a9802a;
  --rule: #cdd3d9;
  --focus: #2f6fb3;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 72rem;
  --gutter: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1a222b;
    --plate: #212b36;
    --card: #26313d;
    --steel: #e6eaee;
    --slate: #a8b3be;
    --brass: #d2a646;
    --rule: #3a4654;
    --focus: #7fb2ea;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--steel);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--steel); color: var(--paper); padding: 0.5rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 48rem) { :root { --gutter: 2rem; } }

h1, h2, .wordmark, .button, nav a, dt {
  font-family: var(--display);
}

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.wordmark {
  font-weight: 800;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
nav a {
  font-size: 0.95rem; font-weight: 500;
  text-decoration: none; color: var(--slate);
}
nav a:hover { color: var(--steel); text-decoration: underline; }

/* Hero */
.hero { padding: 3.5rem 0 4.5rem; }
.hero-grid {
  display: grid; gap: 3rem;
  align-items: start;
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 4rem; }
  .hero { padding: 5.5rem 0 6.5rem; }
}
h1 {
  font-weight: 750;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  font-size: clamp(2.4rem, 1.6rem + 3.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
  max-width: 14ch;
}
.lede {
  font-size: 1.25rem; line-height: 1.6;
  color: var(--slate);
  max-width: 36em;
  margin: 0 0 2rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button {
  display: inline-block;
  font-weight: 600; font-size: 1rem;
  padding: 0.8rem 1.25rem;
  border: 2px solid var(--steel);
  border-radius: 6px;
  text-decoration: none;
}
.button.primary { background: var(--steel); color: var(--paper); }
.button:hover { text-decoration: underline; }

/* Evidence tag: the one loud element */
.tag {
  --cut: 26px;
  background: var(--brass);
  padding: 2px;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%, 0 var(--cut));
  transform: rotate(-1.5deg);
  transform-origin: 50% 0;
  max-width: 30rem;
}
@media (prefers-reduced-motion: reduce) { .tag { transform: none; } }
.tag-inner {
  background: var(--card);
  clip-path: polygon(calc(var(--cut) - 1px) 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% 100%, 0 100%, 0 calc(var(--cut) - 1px));
  padding: 3.25rem 1.75rem 1.75rem;
  position: relative;
}
.tag-hole {
  position: absolute; top: 1rem; left: 50%;
  width: 18px; height: 18px; margin-left: -9px;
  border-radius: 50%;
  border: 3px solid var(--brass);
  background: var(--paper);
}
.tag h2 {
  font-size: 1.35rem; font-weight: 700;
  font-stretch: 112%; font-variation-settings: "wdth" 112;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--rule);
}
.tag ol { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.tag li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  font-size: 1rem; line-height: 1.5;
  margin-bottom: 1rem;
}
.tag li:last-child { margin-bottom: 0; }
.tag li::before {
  content: counter(step);
  position: absolute; left: 0; top: -0.1rem;
  font-family: var(--display); font-weight: 800;
  font-size: 1.35rem; color: var(--brass);
}
.tag strong { font-family: var(--display); font-weight: 650; }

/* Sections */
section { padding: 4rem 0; }
@media (min-width: 60rem) { section { padding: 5.5rem 0; } }
.band { background: var(--plate); }

.section-title {
  font-weight: 700;
  font-stretch: 108%; font-variation-settings: "wdth" 108;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 2rem;
  max-width: 18ch;
}

.two-col { display: grid; gap: 0.5rem; }
@media (min-width: 60rem) {
  .two-col { grid-template-columns: 1fr 2fr; gap: 4rem; }
  .two-col .section-title { margin-bottom: 0; }
}
.prose { max-width: 38em; }
.prose p { margin: 0 0 1.1rem; }

.services {
  display: grid; gap: 2.5rem;
  margin: 0;
}
@media (min-width: 52rem) { .services { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.services div { border-top: 3px solid var(--steel); padding-top: 1.1rem; }
.services dt { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.6rem; }
.services dd { margin: 0; color: var(--slate); font-size: 1.05rem; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  border-top: 1px solid var(--rule);
}
.checks li:last-child { border-bottom: 1px solid var(--rule); }
.checks li::before {
  content: "";
  position: absolute; left: 0.15rem; top: 1.25rem;
  width: 0.7rem; height: 0.7rem;
  border: 2px solid var(--brass);
  transform: rotate(45deg);
}

.contact-lines {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.7rem);
  line-height: 1.5;
}
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
  color: var(--slate);
  font-size: 0.95rem;
}
.site-footer p { margin: 0; }
