/* thetonnageclub.com: single hand-written stylesheet. No preprocessor, no framework.
   Design rules live in DESIGN_SPEC.md. Max corner radius anywhere: 4px. */

/* ---------- fonts (self-hosted, latin subset) ---------- */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plex-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
}

/* Metric-matched fallbacks (computed from font tables) so swap causes no layout shift */
@font-face {
  font-family: "Plex Sans Fallback";
  src: local("Arial");
  size-adjust: 101.61%;
  ascent-override: 100.88%;
  descent-override: 27.06%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Plex Mono Fallback";
  src: local("Courier New");
  size-adjust: 99.98%;
  ascent-override: 102.52%;
  descent-override: 27.5%;
  line-gap-override: 0%;
}

/* ---------- tokens ---------- */

:root {
  --ink: #16181c;
  --slate: #4a5058;
  --rule: #d6d9dd;
  --paper: #ffffff;
  --fog: #f2f3f5;
  --accent: #b8420f;
  --flag: #c9a227;
  --sans: "IBM Plex Sans", "Plex Sans Fallback", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Plex Mono Fallback", "Courier New", monospace;
}

/* ---------- base ---------- */

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

body,
h1, h2, h3,
p, ul, ol, dl, dd,
figure, table {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font: 400 16px/1.55 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

/* Every numeral on the page sits inside one of these */
.d,
figcaption,
.eyebrow,
td.d,
.step-no {
  font-family: var(--mono);
}

.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
}

.site-head .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.wordmark {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  margin-left: auto;
  margin-right: 20px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

@media (max-width: 600px) {
  .site-nav { display: none; }
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--paper);
  font: 600 14px/1 var(--sans);
  padding: 10px 16px;
  border: 0;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 140ms ease;
}

.btn:hover {
  opacity: 0.88;
}

/* ---------- shared section chrome ---------- */

section {
  border-top: 1px solid var(--rule);
}

.hero {
  border-top: 0;
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 14px;
}

.split {
  display: grid;
  gap: 40px;
}

figure {
  min-width: 0;
}

figure img {
  border: 1px solid var(--rule);
}

figcaption {
  font-size: 12px;
  line-height: 1.5;
  color: var(--slate);
  margin-top: 8px;
}

/* ---------- hero ---------- */

.hero .container {
  padding-block: 44px 60px;
}

.hero h1 {
  font-size: clamp(29px, 4vw, 42px);
  letter-spacing: -0.015em;
  max-width: 15ch;
}

.hero .lead {
  margin-top: 18px;
  font-size: 17px;
  color: var(--slate);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* ---------- mechanic ---------- */

.mechanic .container {
  padding-block: 48px 56px;
}

.mechanic h2,
.targeting h2,
.proof h2,
.notfor h2,
.contact h2 {
  font-size: clamp(22px, 2.6vw, 28px);
}

.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 0;
  padding-block: 16px;
  border-top: 1px solid var(--rule);
}

.step-no {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  padding-top: 3px;
}

.steps h3 {
  font-size: 16px;
}

.steps p {
  color: var(--slate);
  font-size: 15px;
  max-width: 62ch;
}

/* ---------- targeting ---------- */

.targeting {
  background: var(--fog);
}

.targeting .container {
  padding-block: 68px 76px;
}

.targeting .body {
  margin-top: 16px;
  color: var(--slate);
  max-width: 58ch;
}

.targeting .body + .body {
  margin-top: 12px;
}

.map-fig {
  max-width: 411px; /* image's native width, do not upscale */
}

/* ---------- proof ---------- */

.proof .container {
  padding-block: 52px 60px;
}

.proof .body {
  margin-top: 16px;
  color: var(--slate);
  max-width: 62ch;
}

.proof figure {
  margin-top: 30px;
}

.deliverable {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.deliverable h3 {
  font-size: 16px;
}

.deliverable ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 8px 40px;
}

.deliverable li {
  color: var(--slate);
  font-size: 15px;
  padding-left: 18px;
  position: relative;
}

.deliverable li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* ---------- who this is not for ---------- */

.notfor .container {
  padding-block: 40px 46px;
}

.notfor ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.notfor li {
  padding-block: 13px;
  border-top: 1px solid var(--rule);
  color: var(--slate);
  font-size: 15px;
  max-width: 72ch;
}

.notfor strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- contact ---------- */

.contact .container {
  padding-block: 68px 84px;
}

.contact .body {
  margin-top: 16px;
  color: var(--slate);
  max-width: 44ch;
}

.contact form {
  display: grid;
  gap: 16px;
}

.contact .field {
  display: grid;
  gap: 5px;
}

.contact label {
  font-size: 13px;
  font-weight: 600;
}

.contact input,
.contact textarea {
  font: 400 15px/1.4 var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 10px 12px;
  width: 100%;
}

.contact input[type="tel"] {
  font-family: var(--mono);
}

.contact input:focus-visible,
.contact textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.contact form .btn {
  justify-self: start;
  margin-top: 4px;
}

.sms-alt {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--slate);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
}

.site-foot .container {
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--slate);
}

.site-foot a {
  color: var(--slate);
}

/* ---------- layout at width ---------- */

@media (min-width: 880px) {
  .hero .split {
    grid-template-columns: 5fr 7fr;
    gap: 56px;
    align-items: start;
  }
  .targeting .split {
    grid-template-columns: 7fr 5fr;
    gap: 64px;
    align-items: start;
  }
  .contact .split {
    grid-template-columns: 5fr 7fr;
    gap: 72px;
    align-items: start;
  }
  .steps li {
    grid-template-columns: 56px 200px 1fr;
    gap: 0 24px;
    padding-block: 18px;
  }
  .deliverable ul {
    grid-template-columns: 1fr 1fr;
  }
  .map-fig {
    justify-self: end;
  }
}

/* ---------- motion ---------- */

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