/* Yuston — brand tokens and site styles */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* brand */
  --signal: #FF5A1F;      /* branch, primary buttons, rules; never small text on white */
  --rust: #C2410C;        /* small orange text and links on light backgrounds */
  --graphite: #16181B;
  --mist: #F3F4F5;
  --white: #FFFFFF;
  --text-2: #41454C;
  --text-3: #5E636B;
  /* supporting tones from the approved mockup */
  --line: #E4E6E9;
  --line-strong: #DCDFE3;
  --on-dark-2: #C9CDD3;
  --on-dark-3: #C3C7CD;
  --tint: #FFE8DE;

  --font-text: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1200px;
  --gutter: 24px;
  --section-y: 96px;
  --focus: var(--rust);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--graphite); font-family: var(--font-text); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--graphite); }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
section[id], main[id] { scroll-margin-top: 8px; }

.skip-link {
  position: absolute; left: var(--gutter); top: 8px; z-index: 10;
  transform: translateY(-200%);
  background: var(--graphite); color: var(--white); padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { transform: none; color: var(--white); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: var(--section-y) var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 48px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.logo img { width: 150px; height: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; }
.site-nav a { display: block; padding: 12px 0; text-decoration: none; }

/* buttons */
.button { display: inline-block; padding: 16px 26px; font-size: 16px; font-weight: 600; text-decoration: none; color: var(--graphite); overflow-wrap: anywhere; }
.button:hover { color: var(--graphite); text-decoration: underline; text-underline-offset: 4px; }
.button-primary { background: var(--signal); }
.button-secondary { box-shadow: inset 0 0 0 2px var(--graphite); }
.button-compact { padding: 12px 20px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* type */
.display { font-stretch: 125%; font-weight: 800; text-wrap: balance; }
h1.display { font-size: clamp(2.5rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.03em; }
h2.display { font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.08; letter-spacing: -0.02em; }
.eyebrow { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rust); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 40rem; }

/* hero */
.hero { background: var(--mist); }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero .eyebrow { color: var(--graphite); }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--text-2); max-width: 34rem; text-wrap: pretty; }
.hero-mark { flex: 1 1 240px; display: flex; justify-content: center; }
.hero-mark svg { width: 300px; height: auto; aspect-ratio: 300 / 340; }

/* services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.card { background: var(--mist); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.card-number { font-family: var(--font-mono); font-size: 14px; color: var(--rust); }
.card h3 { font-size: 1.5rem; font-weight: 600; }
.card p, .step p { font-size: 1.0625rem; line-height: 1.6; color: var(--text-2); }

/* approach */
.on-dark { background: var(--graphite); color: var(--white); --focus: var(--signal); }
.on-dark .eyebrow { color: var(--signal); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; }
.step { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--signal); padding-top: 20px; }
.step h3 { font-size: 1.375rem; font-weight: 600; }
.step p { color: var(--on-dark-2); }

/* about */
.about-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 32px 56px; align-items: start; }
.about-body { display: flex; flex-direction: column; gap: 20px; }
.about-body p { font-size: 1.125rem; line-height: 1.65; color: var(--text-2); text-wrap: pretty; }
.certs { display: flex; flex-wrap: wrap; gap: 10px; }
.certs li { font-family: var(--font-mono); font-size: 13px; padding: 8px 12px; background: var(--tint); }

/* contact */
.contact { background: var(--mist); }
.contact-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.contact h2.display { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 46rem; }
.contact p { font-size: 1.125rem; line-height: 1.6; color: var(--text-2); }

/* footer */
.site-footer { color: var(--on-dark-3); }
.footer-inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }
.footer-inner img { width: 120px; height: auto; }
.legal { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; }

/* 404 */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; }
.page-404 main { flex: 1; background: var(--mist); display: flex; align-items: center; }
.page-404 main > .wrap { width: 100%; }

@media (max-width: 640px) {
  :root { --section-y: 64px; }
  /* logo and call to action on the first row, section links below */
  .site-nav { order: 3; flex-basis: 100%; }
  .site-nav ul { justify-content: space-between; }
  h1.display { font-size: clamp(2rem, 8.6vw, 2.5rem); }
  .hero-mark svg { width: 180px; }
}

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