/* Proctor Drafting & Design LLC — plain CSS, no external requests */

:root {
  --bg: #f7f6f2;
  --surface: #fbfaf7;
  --text: #1b1d20;
  --muted: #50565e;
  --accent: #2d4a6b;
  --accent-hover: #1e3550;
  --rule: #dcdad3;
  --grid-minor: rgba(45, 74, 107, 0.05);
  --grid-major: rgba(45, 74, 107, 0.09);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 3rem);
  --section-space: clamp(4.5rem, 10vw, 8rem);
  --max: 72rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: 0.5rem 0.875rem;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

/* ---------- Masthead with faint drafting grid ---------- */

.masthead {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--rule);
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-major) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-major) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-minor) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 75% 20%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 90% at 75% 20%, #000 15%, transparent 75%);
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { color: var(--text); }

.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  color: var(--accent);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  font-size: 0.9375rem;
}

.nav-list a {
  display: inline-block;
  padding-block: 0.25rem;
  color: var(--muted);
  text-decoration: none;
}
.nav-list a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 40rem) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-list { gap: 0.25rem 1.25rem; }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(4rem, 12vw, 9rem) clamp(4rem, 10vw, 7.5rem);
}

.eyebrow,
.section-num {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow { margin-bottom: 1.5rem; }

h1 {
  max-width: 18ch;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lede {
  max-width: 36rem;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  color: var(--muted);
}

.button {
  display: inline-block;
  padding: 0.8125rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
}
.button:hover { background: var(--accent-hover); color: #fff; }

/* ---------- Sections ---------- */

.section {
  display: grid;
  gap: 1.75rem;
  padding-block: var(--section-space);
}

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

@media (min-width: 52rem) {
  .section {
    grid-template-columns: minmax(12rem, 1fr) 3fr;
    gap: 3rem;
  }
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
}

@media (min-width: 52rem) {
  .section-label { flex-direction: column; gap: 0.5rem; }
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-body > * + * { margin-top: 1.25rem; }

.prose p { max-width: 40rem; font-size: 1.125rem; }

.muted { color: var(--muted); }

/* Services */

.services {
  display: grid;
  gap: 0;
}

@media (min-width: 40rem) {
  .services {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }
}

.services li {
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.services p { color: var(--muted); max-width: 32rem; }

.services-note { margin-top: 1.75rem; color: var(--muted); max-width: 40rem; }

/* Contact */

.contact-intro { color: var(--muted); max-width: 40rem; }

.contact-email {
  font-size: clamp(1.375rem, 4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}
