/* Sawhorse Sites. Palette: galvanized steel sheet, slate ink, chalk-line blue (used once, on the step line),
   fresh-cut pine and its grain for the sawhorse drawing. */
:root {
  --steel: #e8ecee;
  --steel-deep: #d5dce0;
  --ink: #18232b;
  --ink-soft: #3b4a55;
  --chalk: #1f4fa0;
  --pine: #dcb97f;
  --pine-dark: #8a6634;
  --pine-end: #c79a58;
  --s-1: 16px;
  --s-2: 18px;
  --s-3: 23px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: clamp(44px, 6.4vw, 84px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--steel);
  color: var(--ink);
  font: 400 var(--s-2)/1.55 "Instrument Sans", "Segoe UI", system-ui, sans-serif;
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; }

h1, h2 {
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

/* header */
.top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.name {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  font-size: var(--s-3);
  text-decoration: none;
  white-space: nowrap;
}
.top-link { font-size: var(--s-2); font-weight: 600; }

/* hero */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 40px 40px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: center;
}
h1 { font-size: var(--s-6); line-height: 1.02; max-width: 12ch; }
.lede { font-size: var(--s-3); line-height: 1.45; color: var(--ink-soft); max-width: 34ch; margin: 28px 0 32px; }
.action {
  display: inline-block;
  background: var(--ink);
  color: var(--steel);
  font-weight: 600;
  font-size: var(--s-2);
  padding: 15px 26px;
  border-radius: 3px;
  text-decoration: none;
}
.action:hover { background: var(--ink-soft); }

.horse { margin: 0; }
.horse svg { width: 100%; height: auto; display: block; overflow: visible; }
.leg { stroke: var(--pine-dark); stroke-width: 22; stroke-linecap: square; fill: none; }
.leg.back { stroke: var(--pine-end); }
.brace { stroke: var(--pine-dark); stroke-width: 12; }
.brace.thin { stroke: var(--pine-end); stroke-width: 6; }
.beam { fill: var(--pine-dark); }
.plank rect { fill: var(--pine); }
.plank .grain { fill: none; stroke: var(--pine-dark); stroke-width: 1.6; opacity: .55; }
.plank .end { stroke: var(--pine-end); stroke-width: 8; }
.mark { fill: var(--ink); font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; }
.mark.big { font-size: 46px; }
.mark.small { font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 600; font-size: 28px; }
.tick { stroke: var(--ink); stroke-width: 2.5; }

/* prices */
.prices, .steps, .contact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px;
}
.prices {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: 40px;
  border-top: 2px solid var(--ink);
}
h2 { font-size: var(--s-4); line-height: 1.15; }
.prices dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.price dt { font-weight: 600; font-size: var(--s-2); }
.price dd { margin: 4px 0 0; font-size: var(--s-3); }
.price strong { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: var(--s-5); line-height: 1.1; margin-right: 6px; }
.pay { grid-column: 2; margin: 28px 0 0; font-size: var(--s-2); max-width: 60ch; }

/* steps: a snapped chalk line with the four stops on it */
.steps { background: var(--steel-deep); max-width: none; }
.steps h2, .steps ol { max-width: 1120px; margin-left: auto; margin-right: auto; }
.steps ol {
  list-style: none;
  padding: 0;
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  position: relative;
}
.steps ol::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 19px;
  border-top: 3px solid var(--chalk);
}
.steps li { position: relative; }
.n {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--steel-deep);
  border: 3px solid var(--chalk);
  border-radius: 50%;
  font-weight: 600;
  color: var(--chalk);
  position: relative;
}
.steps p { margin: 18px 0 0; max-width: 30ch; }

/* contact */
.contact { padding-bottom: 64px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 40px; }
.contact p:first-child { margin-top: 0; }
.contact p { font-size: var(--s-3); margin: 16px 0 0; max-width: 46ch; }
.contact-line a { font-weight: 600; }

.foot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 40px 40px;
  border-top: 1px solid var(--ink-soft);
}
.foot p { margin: 0; font-size: var(--s-1); color: var(--ink-soft); }

@media (max-width: 860px) {
  .top { padding: 20px 16px 0; }
  .hero { grid-template-columns: 1fr; padding: 32px 16px 24px; gap: 28px; }
  .lede { font-size: var(--s-2); margin: 20px 0 24px; }
  .prices, .steps, .contact { padding: 36px 16px; }
  .prices { grid-template-columns: 1fr; }
  .prices dl { grid-template-columns: 1fr; margin-top: 20px; }
  .pay { grid-column: 1; }
  .steps ol { grid-template-columns: 1fr; gap: 24px; padding-left: 0; }
  .steps ol::before { left: 19px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 3px solid var(--chalk); }
  .steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
  .steps p { margin: 6px 0 0; }
  .contact { grid-template-columns: 1fr; }
  .contact p { font-size: var(--s-2); }
  .contact p:first-child { margin-top: 16px; }
  .foot { padding: 20px 16px 32px; }
  body { font-size: var(--s-1); }
  .steps p, .price dt, .action { font-size: var(--s-1); }
}
