/* G & J Excavating — base: tokens, reset, typography, layout primitives */
:root {
  --color-bg: #ffffff;
  --color-dark: #171a1d;
  --color-dark-2: #23272a;
  --color-dark-border: #33373b;
  --color-text: #23272a;
  --color-muted: #6f7478;
  --color-light: #f4f2ee;
  --color-border: #dedbd5;
  --color-accent: #a76635;
  --color-accent-dark: #7e4926;
  --color-accent-light: #d9a27a;
  --color-on-dark: #ffffff;
  --color-on-dark-muted: #c9c6bf;
  --color-on-dark-faint: #a9a6a0;
  --color-error: #a8321f;
  --color-success: #2f6b3a;

  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --container: 1280px;
  --gutter: 20px;
  --section-y: clamp(56px, 8vw, 96px);

  --shadow-sm: 0 1px 2px rgba(23, 26, 29, 0.06);
  --shadow: 0 8px 24px rgba(23, 26, 29, 0.08);
  --focus: 0 0 0 3px rgba(167, 102, 53, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius-sm);
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
h1, h2, h3, h4, h5, .h3, .h4, .h5 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-dark);
  margin: 0 0 0.5em;
  font-weight: 800;
}
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3, .h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; }
h4, .h4 { font-size: 20px; font-weight: 700; }
h5, .h5 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
small { font-size: 0.875em; }
strong { font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 900px) { .container { --gutter: 40px; } }
@media (min-width: 1200px) { .container { --gutter: 80px; max-width: calc(var(--container) + 160px); } }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 1000; padding: 12px 18px; background: var(--color-dark); color: #fff; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

.section { padding: var(--section-y) 0; }
.section-tight { padding: clamp(32px, 4vw, 48px) 0; }
.section-alt { background: var(--color-light); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section-dark { background: var(--color-dark); color: var(--color-on-dark-muted); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.section-head.row > div { max-width: 760px; }
.section-lead { font-size: 18px; color: var(--color-muted); margin-top: 0.6em; }

.eyebrow { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); font-weight: 600; margin: 0 0 12px; }
.eyebrow-sm { font-size: 12px; letter-spacing: 0.1em; margin-bottom: 8px; }
.eyebrow-light { color: var(--color-accent-light); }
.eyebrow-line { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow-line::before { content: ""; width: 28px; height: 2px; background: var(--color-accent); }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--color-muted); }

.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.two-col { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; } .two-col-reverse { grid-template-columns: minmax(0, 1fr) 340px; } }
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sticky { position: sticky; top: 100px; }

.icon { flex-shrink: 0; }
.icon.accent { color: var(--color-accent); }
.icon.accent-light { color: var(--color-accent-light); }
.icon.muted { color: var(--color-muted); }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: clamp(19px, 1.9vw, 22px); margin-top: 1.4em; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 3px solid var(--color-accent); background: var(--color-light); color: var(--color-dark-2); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border); }
.prose th { font-family: var(--font-display); font-weight: 700; }
.prose .placeholder, .placeholder { background: #fff7ed; border: 1px dashed var(--color-accent); border-radius: var(--radius-sm); padding: 2px 6px; color: var(--color-accent-dark); }

.flash-wrap { max-width: var(--container); margin: 16px auto 0; padding: 0 var(--gutter); }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.flash-error { background: #fdecea; color: var(--color-error); border: 1px solid #f2c4bd; }
.flash-success { background: #e9f4ea; color: var(--color-success); border: 1px solid #bfdcc3; }
