/* Spangler Electronics LLC */

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

:root {
  --paper: #f7f5f0;
  --paper-alt: #efebe2;
  --card: #ffffff;
  --ink: #0f1b2d;
  --ink-soft: #3a4558;
  --muted: #5d6676;
  --line: #ddd7cb;
  --copper: #a8551f;
  --copper-strong: #8c4515;
  --copper-tint: #f4e3d6;
  --hero-bg: #0f1b2d;
  --hero-ink: #f3efe6;
  --hero-muted: #b9c2d0;
  --trace: rgba(214, 140, 84, 0.16);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px -12px rgba(15, 27, 45, .18);
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c131d;
    --paper-alt: #111a27;
    --card: #152031;
    --ink: #e9edf3;
    --ink-soft: #c3cbd8;
    --muted: #93a0b3;
    --line: #233149;
    --copper: #e39058;
    --copper-strong: #f0a674;
    --copper-tint: #2a2019;
    --hero-bg: #08101a;
    --trace: rgba(227, 144, 88, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--copper-strong); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font: 500 .78rem/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}
.eyebrow::before { content: "// "; opacity: .6; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: auto; height: 28px; flex: none; color: var(--ink); }

.brand-llc { font-weight: 400; color: var(--muted); }
.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--paper-alt); }
.nav a.nav-cta { color: var(--copper); }
@media (max-width: 720px) {
  .nav li:not(:last-child) { display: none; }
  .brand-llc { display: none; }
}

/* Hero */
.hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-ink);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* faint PCB traces */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' fill='none' stroke='%23d68c54' stroke-width='1.5'%3E%3Cpath d='M0 40h60l20 20h80l20-20h60M0 120h30l20 20h40M120 0v30l20 20v60l-20 20v110M200 240v-40l-20-20h-40M240 160h-50l-10-10'/%3E%3Ccircle cx='90' cy='140' r='4'/%3E%3Ccircle cx='140' cy='180' r='4'/%3E%3Ccircle cx='180' cy='150' r='4'/%3E%3C/svg%3E");
  opacity: .16;
  mask-image: linear-gradient(100deg, transparent 25%, #000 75%);
  -webkit-mask-image: linear-gradient(100deg, transparent 25%, #000 75%);
}
.hero-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 56px; padding-block: clamp(56px, 9vw, 112px); }
.hero .eyebrow { color: #e39b68; }
.hero h1 { max-width: 16ch; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--hero-muted); max-width: 56ch; }
.lede em { color: var(--hero-ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
  overflow-wrap: anywhere;
}
.btn-primary { background: #c96a2c; color: #fff; }
.btn-primary:hover { background: #b45c22; color: #fff; }
.btn-ghost { border-color: rgba(243, 239, 230, .28); color: var(--hero-ink); }
.btn-ghost:hover { border-color: rgba(243, 239, 230, .6); color: #fff; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--hero-muted); margin: 0; }
.hero-badge svg { width: 16px; height: 16px; fill: #e39b68; flex: none; }
.hero-portrait { margin: 0; position: relative; }
.hero-portrait img {
  width: 240px; aspect-ratio: 278 / 400; object-fit: cover; object-position: top;
  border-radius: 999px 999px 18px 18px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.hero-portrait::after {
  content: ""; position: absolute; inset: -10px; border: 1.5px solid rgba(227, 155, 104, .45);
  border-radius: 999px 999px 26px 26px; pointer-events: none;
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait { order: -1; }
  .hero-portrait img { width: 150px; }
}

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--paper-alt); border-block: 1px solid var(--line); }

.cards {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card-icon {
  width: 40px; height: 40px; padding: 8px; margin-bottom: 16px; border-radius: 10px;
  background: var(--copper-tint); stroke: var(--copper); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split-reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse > :first-child { order: 0; }
}
.prose { max-width: 62ch; }
.prose p { color: var(--ink-soft); }
.prose p.eyebrow { color: var(--copper); }
.pull {
  font-size: 1.2rem; font-weight: 600; color: var(--ink) !important;
  border-left: 3px solid var(--copper); padding-left: 16px; margin-top: 1.5em;
}

/* Quotes */
.quote {
  margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow); position: relative;
}
.quote::before {
  content: "“"; position: absolute; top: -6px; left: 24px;
  font: 700 5.5rem/1 Georgia, serif; color: var(--copper); opacity: .35;
}
.quote blockquote { margin: 0 0 24px; font-size: 1.08rem; line-height: 1.7; }
.quote blockquote p { margin: 0; padding-top: 18px; }
.quote figcaption { display: flex; align-items: center; gap: 14px; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.quote figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.quote figcaption strong { display: block; color: var(--ink); font-size: 1rem; }
.quote-wide { margin-top: clamp(40px, 6vw, 72px); max-width: 860px; margin-inline: auto; }

.photo { margin: 0; }
.photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.photo figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }

/* Contact */
.contact { background: var(--hero-bg); color: var(--hero-ink); }
.contact .eyebrow { color: #e39b68; }
.contact p { color: var(--hero-muted); max-width: 52ch; }
.contact-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .contact-inner { grid-template-columns: 1fr; gap: 24px; } }
.contact-list { margin: 0; display: grid; gap: 12px; }
.contact-list div {
  border: 1px solid rgba(243, 239, 230, .14); border-radius: 12px; padding: 16px 20px;
  background: rgba(255, 255, 255, .03);
}
.contact-list dt { font: 500 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hero-muted); margin-bottom: 6px; }
.contact-list dd { margin: 0; font-size: 1.08rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a { color: #f0a674; }
.contact-list a:hover { color: #ffc49b; }

/* Footer */
.site-footer { background: var(--hero-bg); color: var(--hero-muted); border-top: 1px solid rgba(243, 239, 230, .08); font-size: .88rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px; }
.footer-inner p { margin: 0; }
.site-footer a { color: var(--hero-muted); }
.site-footer a:hover { color: var(--hero-ink); }
