/* Sterling Pratt LLC — sterlingprattllc.com
   Built against tokens.css v1.0. Square corners, hairlines, tabular figures.
   The only chamfer in the system is the logo cartouche, drawn in the SVG. */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: var(--lh-body);
  font-variant-numeric: var(--figures);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0;              /* no letter-spacing on serif display */
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--step-display-xl); line-height: var(--lh-display-xl); }
h2 { font-size: var(--step-display-l);  line-height: var(--lh-display-l); }
h3 { font-size: var(--step-display-m);  line-height: var(--lh-display-m); }

p { margin: 0 0 var(--s-4); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--step-lead);
  line-height: var(--lh-lead);
  color: var(--ink-2);
}

.label {
  font-family: var(--font-body);
  font-size: var(--step-label);
  line-height: var(--lh-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

.micro {
  font-size: var(--step-micro);
  line-height: var(--lh-micro);
  letter-spacing: var(--tracking-micro);
  color: var(--ink-3);
}

.caption {
  font-size: var(--step-micro);
  line-height: var(--lh-micro);
  color: var(--ink-3);
  margin: var(--s-3) 0 0;
  max-width: var(--measure);
}

.body-s { font-size: var(--step-body-s); line-height: var(--lh-body-s); }

em { font-style: italic; }

a { color: var(--petrol-2); text-decoration: none; border-bottom: 1px solid var(--rule); }
a:hover { color: var(--petrol); border-bottom-color: var(--petrol-2); }
a:focus-visible { outline: 2px solid var(--petrol-2); outline-offset: 2px; border-radius: 0; }

/* ---------- Accent stub: the only decorative element. One per section. ---------- */

.stub {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brass);
  border: 0;
  margin: 0 0 var(--s-4);
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}

section { padding: var(--s-9) 0; border-top: var(--hairline); }
section:first-of-type { border-top: 0; }

.section-head { margin-bottom: var(--s-7); }
.section-head h2 { margin-top: var(--s-3); }

/* ---------- Skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--petrol);
  color: var(--paper);
  padding: var(--s-3) var(--s-4);
  z-index: 10;
  border: 0;
}
.skip:focus { left: var(--s-4); top: var(--s-4); }

/* ---------- Header ---------- */

.site-head {
  border-bottom: var(--hairline);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 84px;
}

.site-head .mark { display: block; border: 0; line-height: 0; }
.site-head .mark:hover { border: 0; }
.site-head .mark img { display: block; height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: var(--s-6); }

.nav a {
  font-size: var(--step-body-s);
  color: var(--ink-2);
  border-bottom: 0;
}
.nav a:hover { color: var(--petrol); border-bottom: 0; }

/* .nav a would otherwise out-specify .btn and kill the reversed label */
.nav a.btn { color: var(--paper); }
.nav a.btn:hover { color: var(--paper); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--step-body-s);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--radius);
  border: 1px solid var(--petrol);
  background: var(--petrol);
  color: var(--paper);
  cursor: pointer;
  transition: background-color 120ms linear, color 120ms linear;
}
.btn:hover { background: var(--petrol-2); border-color: var(--petrol-2); color: var(--paper); }

.btn-ghost {
  background: transparent;
  color: var(--petrol);
  border: 1px solid var(--rule);
}
.btn-ghost:hover { background: var(--sand); color: var(--petrol); border-color: var(--petrol); }

.btn-reversed {
  background: var(--paper);
  color: var(--petrol);
  border-color: var(--paper);
}
.btn-reversed:hover { background: var(--sand); color: var(--petrol); border-color: var(--sand); }

.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* ---------- Hero ---------- */

.hero { padding: var(--s-10) 0 var(--s-9); }
.hero h1 { max-width: 20ch; }
.hero .lead { margin-top: var(--s-5); max-width: 58ch; }
.hero .actions { margin-top: var(--s-7); }
.hero .meta { margin-top: var(--s-6); padding-top: var(--s-4); border-top: var(--hairline); }

/* ---------- Two tracks ---------- */

.tracks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}

.track {
  background: var(--sand);
  padding: var(--s-7);
  border: 0;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.track h3 { margin-top: var(--s-3); }
.track p { color: var(--ink-2); }
.track .body { margin-top: var(--s-5); }

.track-list {
  list-style: none;
  margin: var(--s-5) 0 0;
  padding: 0;
  border-top: var(--hairline-interior);
}
.track-list li {
  padding: var(--s-3) 0;
  border-bottom: var(--hairline-interior);
  font-size: var(--step-body-s);
  line-height: var(--lh-body-s);
  color: var(--ink-2);
}

.track-for {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: var(--hairline);
}
.track-for .label { margin-bottom: var(--s-2); }
.track-for p { font-size: var(--step-body-s); line-height: var(--lh-body-s); }

/* ---------- Petrol figure block ---------- */

.figures {
  background: var(--petrol);
  color: var(--paper);
  padding: var(--s-9) 0;
  border-top: 0;
}
.figures .label { color: var(--brass-tint); }
.figures h2 { color: var(--paper); }
.figures .stub { background: var(--brass); }

.figure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: var(--s-7);
  border-top: 2px solid var(--brass);   /* brass as a rule on petrol: sanctioned */
}

.figure {
  padding: var(--s-6) var(--s-5) var(--s-6) 0;
  border-bottom: 1px solid rgba(252, 251, 248, 0.18);
}
.figure:nth-child(3n) { padding-right: 0; }

.figure .n {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-display-m);
  line-height: var(--lh-display-m);
  color: var(--paper);
  font-variant-numeric: var(--figures);
}
.figure .d {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--step-body-s);
  line-height: var(--lh-body-s);
  color: #D6DDE2;
  max-width: 26ch;
}
.figures .caption { color: #A9B7C0; }

/* ---------- Engagement steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
}

.step { padding-top: var(--s-4); border-top: var(--rule-heavy); }
.step .num {
  font-family: var(--font-body);
  font-size: var(--step-micro);
  letter-spacing: var(--tracking-micro);
  font-weight: 600;
  color: var(--brass-deep);
  font-variant-numeric: var(--figures);
}
.step h3 {
  font-size: var(--step-lead);
  line-height: 1.25;
  margin-top: var(--s-2);
}
.step p { margin-top: var(--s-3); font-size: var(--step-body-s); line-height: var(--lh-body-s); }

.step-meta { margin-top: var(--s-4); padding-top: var(--s-3); border-top: var(--hairline-interior); }
.step-meta dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-4); }
.step-meta dt {
  font-size: var(--step-micro);
  letter-spacing: var(--tracking-micro);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-3);
}
.step-meta dd {
  margin: 0;
  font-size: var(--step-micro);
  line-height: var(--lh-micro);
  color: var(--ink-2);
  font-variant-numeric: var(--figures);
}

/* ---------- Track record table ---------- */

.record { width: 100%; border-collapse: collapse; margin-top: var(--s-7); }
.record caption { text-align: left; }
.record th {
  text-align: left;
  font-size: var(--step-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
  padding: 0 var(--s-4) var(--s-3) 0;
  border-bottom: var(--rule-heavy);
}
.record th:last-child, .record td:last-child { padding-right: 0; text-align: right; }
.record td {
  padding: var(--s-4) var(--s-4) var(--s-4) 0;
  border-bottom: var(--hairline-interior);
  font-size: var(--step-body-s);
  line-height: var(--lh-body-s);
  color: var(--ink-2);
  font-variant-numeric: var(--figures);
}
.record td.firm { color: var(--ink); font-weight: 600; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--s-8);
  align-items: start;
}

/* Hard-edged rectangle, never masked into a shape (guide 07). No radius, no shadow. */
.portrait { margin: 0; }
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--sand);
}
.portrait figcaption { margin-top: var(--s-3); }

/* ---------- Recommendation panel: sand + brass edge. Maximum one per document. ---------- */

.recommend {
  background: var(--sand);
  border-left: var(--rule-accent);
  padding: var(--s-6) var(--s-7);
  margin-top: var(--s-7);
}
.recommend p { max-width: 62ch; }
.recommend .label { margin-bottom: var(--s-3); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: start;
  margin-top: var(--s-7);
}

.contact-lines { list-style: none; margin: 0; padding: 0; border-top: var(--hairline); }
.contact-lines li {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: var(--hairline-interior);
  font-size: var(--step-body-s);
}
.contact-lines .k {
  font-size: var(--step-micro);
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
  padding-top: 2px;
}

/* ---------- Footer ---------- */

.site-foot {
  background: var(--petrol);
  color: #D6DDE2;
  padding: var(--s-8) 0 var(--s-7);
}
.site-foot .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-6); flex-wrap: wrap; }
.site-foot img { display: block; height: 40px; width: auto; }
.site-foot .micro { color: #A9B7C0; }
.site-foot a { color: var(--paper); border-bottom-color: rgba(252,251,248,0.35); }
.site-foot a:hover { color: var(--brass-tint); border-bottom-color: var(--brass-tint); }
.foot-right { text-align: right; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  :root {
    --step-display-xl: 44px;
    --step-display-l: 32px;
    --step-display-m: 26px;
    --step-lead: 18px;
  }
  .tracks, .steps, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .figure-grid { grid-template-columns: repeat(2, 1fr); }
  .figure:nth-child(3n) { padding-right: var(--s-5); }
  .figure:nth-child(2n) { padding-right: 0; }
  .about-grid { gap: var(--s-7); }
  .portrait { max-width: 420px; }
  section { padding: var(--s-8) 0; }
  .hero { padding: var(--s-8) 0; }
}

@media (max-width: 620px) {
  :root { --step-display-xl: 36px; }
  .nav { display: none; }
  .site-head .wrap { min-height: 68px; }
  .site-head .mark img { height: 36px; }
  .figure-grid { grid-template-columns: 1fr; }
  .figure, .figure:nth-child(3n), .figure:nth-child(2n) { padding-right: 0; }
  .track { padding: var(--s-6) var(--s-5); }
  .recommend { padding: var(--s-5); }
  .site-foot .wrap { flex-direction: column; align-items: flex-start; }
  .foot-right { text-align: left; }
  .record th:nth-child(2), .record td:nth-child(2) { display: none; }
}

/* ---------- Print ---------- */

@media print {
  .site-head, .actions, .skip { display: none; }
  body { background: #fff; }
  .figures, .site-foot { background: #fff; color: var(--ink-2); }
  .figures h2, .figure .n { color: var(--ink); }
  .figure .d, .site-foot .micro { color: var(--ink-2); }
}
