/* DelSpec Precision: Blueprint Steel (scheme B, chosen 2026-11-16).
   Tokens: Drawing Ink #1F2A36, Paper #F4F6F8, Grid Steel #9AA8B8, Spec Blue #1F4E79, Tint #E6EEF6.
   All text/background pairs checked 2026-11-16: lowest is 6.0:1 (WCAG AA needs 4.5:1). */
:root {
  --ink: #1F2A36;
  --ink-2: #4A5767;
  --paper: #F4F6F8;
  --white: #FFFFFF;
  --grid: #9AA8B8;
  --blue: #1F4E79;
  --blue-dark: #173A5A;
  --tint: #E6EEF6;
  --rule: #D5DCE4;
  --on-ink: #D8DFE7;
  --on-ink-2: #C9D2DC;
  --radius: 4px;
  --max: 1120px;
  --display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--grid); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100%); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 10px; }
.brand img { width: 250px; height: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .92rem; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

/* Hero: drawing-sheet grid */
.hero {
  background-color: var(--ink);
  background-image: linear-gradient(rgba(154, 168, 184, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(154, 168, 184, .12) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--on-ink);
  padding-block: 72px 80px;
}
.hero h1 { color: var(--white); max-width: 20ch; }
.hero.page { padding-block: 56px 60px; }
.eyebrow { font-family: var(--display); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grid); margin-bottom: 14px; }
.lede { font-size: 1.12rem; max-width: 62ch; color: var(--on-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero.page .actions { margin-bottom: 0; }
.btn { display: inline-block; padding: 12px 22px; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: var(--grid); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--tint); }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .92rem; color: var(--on-ink-2); }
.facts li { padding-left: 14px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--grid); }

/* Credentials strip */
.creds { background: var(--paper); border-bottom: 1px solid var(--rule); }
.creds ul { list-style: none; margin: 0; padding-block: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 24px; }
.creds li { min-width: 0; }
.creds b { display: block; font-family: var(--display); color: var(--ink); font-size: .98rem; }
.creds span { font-size: .85rem; color: var(--ink-2); }

/* Sections */
.section { padding-block: 72px; }
.section.alt { background: var(--paper); }
.intro { color: var(--ink-2); max-width: 64ch; font-size: 1.02rem; }
.note { font-size: .9rem; color: var(--ink-2); }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.split > * { min-width: 0; }
.grid { display: grid; gap: 20px; margin-top: 28px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid > * { min-width: 0; }
.card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 24px; }
.card h3 { color: var(--blue); }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 600; text-decoration: none; }
.card .more:hover { text-decoration: underline; }

/* Photos */
.photo { margin: 0; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper); }
.photo.contain img { object-fit: contain; }
.photo figcaption { padding: 10px 14px; font-size: .88rem; color: var(--ink-2); border-top: 1px solid var(--rule); }
.photo.wide img { aspect-ratio: 16 / 9; }
.photo.square img { aspect-ratio: 1 / 1; }

.list-tags { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.list-tags li { background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--blue); padding: 12px 14px; border-radius: var(--radius); font-weight: 500; }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--rule); position: relative; }
.list-check li::before { content: ""; position: absolute; left: 4px; top: 1.1em; width: 10px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.stack { display: grid; gap: 20px; }

/* Spec table (marking requirements, hours) */
.spec { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--rule); }
.spec th, .spec td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { font-weight: 600; color: var(--ink); }
.spec td { color: var(--ink-2); }
.table-scroll { overflow-x: auto; }

.callout { background: var(--tint); border: 1px solid var(--rule); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 18px 20px; }
.callout p:last-child { margin-bottom: 0; }

.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.docs a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.docs a:hover { border-color: var(--blue); }
.docs small { color: var(--ink-2); font-weight: 400; white-space: nowrap; }

/* Contact */
.contact { background: var(--white); border-top: 1px solid var(--rule); }
address { font-style: normal; }
.map-placeholder { min-height: 260px; border: 2px dashed var(--grid); border-radius: var(--radius); display: grid; place-items: center; padding: 24px; text-align: center; color: var(--ink-2); background: var(--tint); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-2); padding-block: 28px; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--on-ink); }
.draft-flag { color: #E7C56B; font-weight: 600; }

/* Small screens */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: 1fr 1fr; }
  .creds ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-header { position: static; }
  .grid.three, .grid.two, .list-tags, .creds ul { grid-template-columns: 1fr; }
  .section { padding-block: 52px; }
  .hero { padding-block: 48px 52px; }
  .brand img { width: 200px; }
  .nav { font-size: .9rem; gap: 2px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
