/* ============================================================
   Leon Solomon — Portfolio · shared stylesheet
   Engineering-sheet design system · Rev 2026.08
   ============================================================ */

:root{
  --paper:      #EAF0F6;
  --paper-line: #C4D2E0;
  --ink:        #142438;
  --ink-muted:  #5C7188;
  --teal:       #0E6E76;
  --teal-hover: #0A5A61;
  --copper:     #B8742A;
  --panel-bg:   rgba(255,255,255,.35);
}

/* Blueprint sheet — screen only, print always uses the paper palette */
@media screen{
  html[data-theme="blueprint"]{
    --paper:      #0C2C4E;
    --paper-line: #1E4470;
    --ink:        #D9E8F5;
    --ink-muted:  #8FADC9;
    --teal:       #45CEDC;
    --teal-hover: #6ADCE7;
    --copper:     #E39B5B;
    --panel-bg:   rgba(217,232,245,.05);
    color-scheme: dark;
  }
}

*{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; }

body{
  background:
    radial-gradient(var(--paper-line) 1px, transparent 1px) 0 0/24px 24px,
    var(--paper);
  color:var(--ink);
  font-family:'IBM Plex Sans', sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

/* ---------- SHEET FRAME ---------- */
.sheet-frame{
  position:fixed; inset:10px;
  border:1px solid var(--paper-line);
  pointer-events:none;
  z-index:0;
}
.sheet-frame::before, .sheet-frame::after{
  content:''; position:absolute; width:14px; height:14px;
}
.sheet-frame::before{ top:-1px; left:-1px; border-top:2px solid var(--copper); border-left:2px solid var(--copper); }
.sheet-frame::after{ bottom:-1px; right:-1px; border-bottom:2px solid var(--copper); border-right:2px solid var(--copper); }

/* registration crosshairs at the frame's mid-edges */
.reg{
  display:block; position:absolute;
  width:15px; height:15px;
  background:
    linear-gradient(var(--paper-line), var(--paper-line)) center/1px 100% no-repeat,
    linear-gradient(var(--paper-line), var(--paper-line)) center/100% 1px no-repeat;
}
.reg-t{ top:-8px; left:50%; margin-left:-8px; }
.reg-b{ bottom:-8px; left:50%; margin-left:-8px; }
.reg-l{ left:-8px; top:50%; margin-top:-8px; }
.reg-r{ right:-8px; top:50%; margin-top:-8px; }

/* ---------- TYPE UTILITIES ---------- */
.mono{ font-family:'IBM Plex Mono', monospace; }

.eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--copper);
  font-weight:600;
}

a{ color:inherit; text-decoration:none; }
a:focus-visible, button:focus-visible{
  outline:2px solid var(--teal);
  outline-offset:3px;
}

.wrap{ max-width:1120px; margin:0 auto; padding:0 32px; position:relative; z-index:1; }

h1{
  font-family:'IBM Plex Mono', monospace;
  font-weight:700;
  font-size:clamp(2.1rem, 4vw, 3rem);
  letter-spacing:-.01em;
  line-height:1.08;
  margin:14px 0 6px;
}

.role-line{
  font-family:'IBM Plex Mono', monospace;
  font-size:.98rem;
  color:var(--teal);
  font-weight:600;
  margin-bottom:20px;
}

.lede{
  color:var(--ink-muted);
  font-size:1.02rem;
  max-width:60ch;
  margin-bottom:30px;
}

/* ---------- NAV ---------- */
header{ padding-top:34px; }
nav{
  display:flex; align-items:center; justify-content:space-between;
  padding-bottom:22px; border-bottom:1px solid var(--paper-line);
  flex-wrap:wrap; gap:14px;
}
.wordmark{
  font-family:'IBM Plex Mono', monospace;
  font-weight:600; font-size:.92rem;
  letter-spacing:.08em;
}
.navlinks{ display:flex; gap:28px; flex-wrap:wrap; }
.navlinks a{
  font-family:'IBM Plex Mono', monospace;
  font-size:.74rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink-muted);
  padding:4px 2px;
  border-bottom:1px solid transparent;
  transition:color .15s ease, border-color .15s ease;
}
.navlinks a:hover{ color:var(--ink); border-color:var(--copper); }
.navlinks a.active{ color:var(--ink); border-color:var(--copper); }

.nav-right{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }

.sheet-toggle{
  font-family:'IBM Plex Mono', monospace;
  font-size:.64rem; letter-spacing:.08em;
  background:none;
  border:1px solid var(--paper-line);
  border-radius:2px;
  color:var(--ink-muted);
  padding:6px 10px;
  display:inline-flex; align-items:center; gap:6px;
  cursor:pointer;
  transition:border-color .15s ease;
}
.sheet-toggle:hover{ border-color:var(--copper); }
.sheet-toggle .st-sep{ color:var(--paper-line); }
.sheet-toggle .st-opt{ color:var(--ink-muted); transition:color .15s ease; }
html:not([data-theme="blueprint"]) .st-opt[data-opt="paper"],
html[data-theme="blueprint"] .st-opt[data-opt="blueprint"]{
  color:var(--copper); font-weight:600;
}

.status-pill{
  display:flex; align-items:center; gap:8px;
  font-family:'IBM Plex Mono', monospace;
  font-size:.72rem; letter-spacing:.06em; text-transform:uppercase;
  color:var(--ink-muted);
}
.dot{
  width:8px; height:8px; border-radius:50%;
  background:var(--teal);
  position:relative;
  flex:0 0 auto;
}
.dot::after{
  content:''; position:absolute; inset:-5px;
  border-radius:50%; border:1px solid var(--teal);
  animation:pulse 2.2s ease-out infinite;
}
@keyframes pulse{
  0%{ transform:scale(.4); opacity:.9; }
  100%{ transform:scale(1.9); opacity:0; }
}

/* ---------- BUTTONS ---------- */
.btn{
  font-family:'IBM Plex Mono', monospace;
  font-size:.82rem; letter-spacing:.03em;
  padding:13px 22px;
  border-radius:3px;
  display:inline-flex; align-items:center; gap:8px;
  cursor:pointer;
  transition:transform .12s ease, background .15s ease, color .15s ease;
}
.btn-primary{ background:var(--teal); color:var(--paper); border:1px solid var(--teal); }
.btn-primary:hover{ transform:translateY(-1px); background:var(--teal-hover); }
.btn-secondary{ background:transparent; color:var(--ink); border:1px solid var(--ink); }
.btn-secondary:hover{ transform:translateY(-1px); background:var(--ink); color:var(--paper); }
.cta-row{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:32px; }

/* ---------- HERO (home) ---------- */
.hero{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:56px;
  align-items:center;
  padding:64px 0 56px;
}
.hero .lede{ max-width:46ch; }

.meta-tags{ display:flex; flex-wrap:wrap; gap:10px 0; }
.meta-tags span{
  font-family:'IBM Plex Mono', monospace;
  font-size:.7rem; letter-spacing:.03em;
  color:var(--ink-muted);
  padding-right:14px; margin-right:14px;
  border-right:1px solid var(--paper-line);
}
.meta-tags span:last-child{ border-right:none; }
.meta-tags b{ color:var(--ink); font-weight:600; }

/* ---------- PAGE HEAD (interior pages) ---------- */
.page-head{ padding:56px 0 44px; }
.page-head .lede{ margin-bottom:0; }
.page-head .cta-row{ margin:28px 0 0; }

/* ---------- SECTIONS ---------- */
.section{ padding:44px 0 52px; border-top:1px solid var(--paper-line); }
.section-head{
  display:flex; align-items:center; gap:14px;
  margin-bottom:30px;
}
/* circled drawing-callout section numbers */
.section-head .sec-no{
  font-family:'IBM Plex Mono', monospace;
  font-size:.62rem; font-weight:600; color:var(--copper);
  letter-spacing:.04em;
  width:27px; height:27px; flex:0 0 auto;
  border:1px solid var(--copper); border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
}
.section-head h2{
  font-family:'IBM Plex Mono', monospace;
  font-size:1.02rem; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase;
}
.section-head .rule{ flex:1; height:1px; background:var(--paper-line); align-self:center; }

/* ---------- DIMENSION LINES ---------- */
.dim-line{
  display:flex; align-items:center; gap:10px;
  max-width:560px;
  margin:26px 0 30px;
}
.dim-cap{ width:1px; height:16px; background:var(--copper); flex:0 0 auto; }
.dim-rule{ flex:1; height:1px; background:var(--copper); position:relative; min-width:24px; }
.dim-rule.arrow-left::before{
  content:''; position:absolute; left:0; top:-3px;
  border-top:3.5px solid transparent; border-bottom:3.5px solid transparent;
  border-right:7px solid var(--copper);
}
.dim-rule.arrow-right::before{
  content:''; position:absolute; right:0; top:-3px;
  border-top:3.5px solid transparent; border-bottom:3.5px solid transparent;
  border-left:7px solid var(--copper);
}
.dim-label{
  font-family:'IBM Plex Mono', monospace;
  font-size:.64rem; font-weight:600;
  letter-spacing:.12em; text-transform:uppercase;
  color:var(--copper);
  white-space:nowrap;
}
@media (max-width:540px){
  .dim-label{ white-space:normal; text-align:center; }
}

/* ---------- FIGURE CAPTIONS ---------- */
.fig-caption{
  display:flex; align-items:baseline; gap:14px; flex-wrap:wrap;
  font-family:'IBM Plex Mono', monospace;
  font-size:.62rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink-muted);
  border-top:1px solid var(--paper-line);
  margin-top:14px; padding-top:9px;
}
.fig-caption b{ color:var(--copper); font-weight:600; }
.fig-caption .fig-scale{ margin-left:auto; }

/* ---------- DIAGRAMS ---------- */
.diagram-wrap{ position:relative; }
.diagram-wrap svg{ width:100%; height:auto; display:block; }
.node-rect{ fill:var(--paper); stroke:var(--paper-line); stroke-width:1.4; }
.node-rect.center{ stroke:var(--ink); stroke-width:1.6; }
.enclosure{ fill:var(--panel-bg); stroke:var(--ink); stroke-width:1.2; }
.node-label{
  font-family:'IBM Plex Mono', monospace;
  fill:var(--ink);
  font-size:11px; font-weight:600;
  letter-spacing:.02em;
  text-anchor:middle;
}
.node-label.center{ font-size:12px; }
.node-label.start{ text-anchor:start; }
.node-sub{
  font-family:'IBM Plex Mono', monospace;
  fill:var(--ink-muted);
  font-size:9px;
  letter-spacing:.02em;
  text-anchor:middle;
}
.conn{ stroke:var(--paper-line); stroke-width:1.4; stroke-dasharray:4 3; fill:none; }
.conn.solid{ stroke-dasharray:none; }
.pin{ fill:var(--copper); }
.pin.center{ fill:var(--teal); }
.pulse-dot{ fill:var(--teal); opacity:.85; }

.node-link{ cursor:pointer; }
.node-link .node-rect{ transition:stroke .15s ease, stroke-width .15s ease; }
.node-link .node-label{ transition:fill .15s ease; }
.node-link:hover .node-rect, .node-link:focus-visible .node-rect{ stroke:var(--teal); stroke-width:1.8; }
.node-link:hover .node-label, .node-link:focus-visible .node-label{ fill:var(--teal); }
.node-link:focus-visible{ outline:none; }
.ext-mark{ font-size:9px; fill:var(--copper); }

@media (prefers-reduced-motion: reduce){
  .dot::after{ animation:none; }
  .pulse-dot{ display:none; }
}

/* ---------- PANELS ---------- */
.panels{
  display:grid; grid-template-columns:1fr 1fr; gap:24px;
  padding:48px 0 60px;
  border-top:1px solid var(--paper-line);
}
.panels.in-section{ border-top:none; padding:0; }
.panel{
  position:relative;
  border:1px solid var(--paper-line);
  padding:26px 26px 24px;
  background:var(--panel-bg);
}
.panel::before, .panel::after{
  content:''; position:absolute; width:12px; height:12px;
}
.panel::before{ top:-1px; left:-1px; border-top:2px solid var(--copper); border-left:2px solid var(--copper); }
.panel::after{ bottom:-1px; right:-1px; border-bottom:2px solid var(--copper); border-right:2px solid var(--copper); }
.panel-node{
  font-family:'IBM Plex Mono', monospace;
  font-size:.68rem; letter-spacing:.1em; text-transform:uppercase;
  color:var(--ink-muted); margin-bottom:14px;
}
.panel h3{ font-size:1.28rem; font-weight:600; margin-bottom:10px; }
.panel p{ color:var(--ink-muted); font-size:.94rem; margin-bottom:18px; }
.panel p:last-child{ margin-bottom:0; }
.status-tag{
  display:inline-block;
  font-family:'IBM Plex Mono', monospace;
  font-size:.66rem; letter-spacing:.06em; text-transform:uppercase;
  color:var(--teal);
  border:1px solid var(--teal);
  padding:3px 9px;
  border-radius:2px;
  margin-bottom:18px;
}
.panel-link{
  display:block;
  font-family:'IBM Plex Mono', monospace;
  font-size:.82rem; font-weight:600;
  color:var(--ink);
  border-bottom:1px solid var(--copper);
  padding-bottom:2px;
  width:fit-content;
  transition:color .15s ease;
}
.panel-link:hover{ color:var(--teal); }

.spec-list{
  list-style:none;
  font-family:'IBM Plex Mono', monospace;
  font-size:.74rem;
  color:var(--ink-muted);
}
.spec-list li{
  padding:6px 0 6px 16px;
  position:relative;
  border-top:1px dashed var(--paper-line);
}
.spec-list li:first-child{ border-top:none; }
.spec-list li::before{
  content:''; position:absolute; left:2px; top:13px;
  width:5px; height:5px; background:var(--copper);
}

/* ---------- STAT ROW ---------- */
.stat-row{
  display:grid; grid-template-columns:repeat(4, 1fr);
  border:1px solid var(--paper-line);
  background:var(--panel-bg);
  margin-bottom:44px;
}
.stat{
  padding:20px 22px;
  border-right:1px solid var(--paper-line);
}
.stat:last-child{ border-right:none; }
.stat-val{
  font-family:'IBM Plex Mono', monospace;
  font-size:1.55rem; font-weight:700;
  color:var(--ink);
  line-height:1.1;
  margin-bottom:6px;
}
.stat-val span{ color:var(--teal); }
.stat-label{
  font-family:'IBM Plex Mono', monospace;
  font-size:.62rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink-muted);
}

/* ---------- RESUME ---------- */
.r-contact{
  display:flex; flex-wrap:wrap; gap:8px 0;
  font-family:'IBM Plex Mono', monospace;
  font-size:.76rem; color:var(--ink-muted);
  margin-top:16px;
}
.r-contact span{
  padding-right:14px; margin-right:14px;
  border-right:1px solid var(--paper-line);
}
.r-contact span:last-child{ border-right:none; }
.r-contact a:hover{ color:var(--teal); }

.skill-grid{
  border:1px solid var(--paper-line);
  background:var(--panel-bg);
}
.skill-row{
  display:grid; grid-template-columns:220px 1fr;
  border-top:1px solid var(--paper-line);
}
.skill-row:first-child{ border-top:none; }
.skill-row dt{
  font-family:'IBM Plex Mono', monospace;
  font-size:.7rem; font-weight:600;
  letter-spacing:.06em; text-transform:uppercase;
  color:var(--copper);
  padding:14px 18px;
  border-right:1px solid var(--paper-line);
}
.skill-row dd{
  font-size:.92rem;
  color:var(--ink);
  padding:12px 18px;
}

.r-entry{ padding:26px 0; border-top:1px dashed var(--paper-line); }
.r-entry:first-of-type{ border-top:none; padding-top:0; }
.r-entry-head{
  display:flex; justify-content:space-between; align-items:baseline;
  gap:16px; flex-wrap:wrap;
  margin-bottom:4px;
}
.r-entry-head h3{ font-size:1.12rem; font-weight:600; }
.r-when{
  font-family:'IBM Plex Mono', monospace;
  font-size:.72rem; letter-spacing:.04em;
  color:var(--copper); font-weight:600;
  white-space:nowrap;
}
.r-org{
  font-family:'IBM Plex Mono', monospace;
  font-size:.78rem; color:var(--ink-muted);
  margin-bottom:14px;
}
.r-bullets{ list-style:none; }
.r-bullets li{
  position:relative;
  padding:5px 0 5px 22px;
  color:var(--ink-muted);
  font-size:.94rem;
}
.r-bullets li::before{
  content:''; position:absolute; left:4px; top:14px;
  width:6px; height:6px;
  background:var(--copper);
}

/* ---------- PROCESS STEPS ---------- */
.steps{ counter-reset:step; }
.step{
  display:grid; grid-template-columns:72px 1fr;
  gap:20px;
  padding:24px 0;
  border-top:1px dashed var(--paper-line);
}
.step:first-child{ border-top:none; padding-top:0; }
.step-no{
  font-family:'IBM Plex Mono', monospace;
  font-size:1.3rem; font-weight:700;
  color:var(--copper);
  line-height:1.2;
}
.step h3{ font-size:1.08rem; font-weight:600; margin-bottom:6px; }
.step p{ color:var(--ink-muted); font-size:.94rem; max-width:64ch; }

/* ---------- SERVICE GRID ---------- */
.svc-grid{
  display:grid; grid-template-columns:repeat(3, 1fr);
  gap:14px;
}
.svc{
  position:relative;
  border:1px solid var(--paper-line);
  background:var(--panel-bg);
  padding:16px 18px 14px;
}
.svc::before{
  content:''; position:absolute; top:-1px; left:-1px;
  width:10px; height:10px;
  border-top:2px solid var(--copper); border-left:2px solid var(--copper);
}
.svc b{
  display:block;
  font-family:'IBM Plex Mono', monospace;
  font-size:.76rem; font-weight:600;
  letter-spacing:.03em;
  margin-bottom:5px;
}
.svc span{
  font-size:.84rem; color:var(--ink-muted);
}

/* ---------- CONTACT ---------- */
.contact-cards{
  display:grid; grid-template-columns:1fr 1fr; gap:24px;
}
.contact-cards .panel h3{ font-size:1.1rem; }
.contact-value{
  font-family:'IBM Plex Mono', monospace;
  font-size:1.02rem; font-weight:600;
  margin-bottom:18px;
  word-break:break-all;
}

/* ---------- TITLE BLOCK / FOOTER ---------- */
footer{ border-top:1px solid var(--paper-line); padding:34px 0 46px; margin-top:20px; }
.titleblock{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  border:1px solid var(--paper-line);
  margin-bottom:24px;
  background:var(--panel-bg);
}
.titleblock div{
  padding:14px 16px;
  border-right:1px solid var(--paper-line);
}
.titleblock div:last-child{ border-right:none; }
.titleblock .tb-label{
  font-family:'IBM Plex Mono', monospace;
  font-size:.6rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink-muted); margin-bottom:5px;
}
.titleblock .tb-value{
  font-family:'IBM Plex Mono', monospace;
  font-size:.78rem; font-weight:500; color:var(--ink);
}
.titleblock a.tb-value:hover{ color:var(--teal); }
.foot-bottom{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:10px;
  font-family:'IBM Plex Mono', monospace;
  font-size:.7rem; color:var(--ink-muted); letter-spacing:.02em;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:860px){
  .wrap{ padding:0 20px; }
  .hero{ grid-template-columns:1fr; gap:36px; padding:44px 0 40px; }
  .diagram-wrap{ max-width:520px; margin:0 auto; }
  .hero .diagram-wrap{ order:2; max-width:420px; }
  .hero-copy{ order:1; }
  .panels, .contact-cards{ grid-template-columns:1fr; }
  .titleblock{ grid-template-columns:1fr 1fr; }
  .titleblock div{ border-bottom:1px solid var(--paper-line); }
  .navlinks{ gap:16px 20px; }
  .stat-row{ grid-template-columns:1fr 1fr; }
  .stat{ border-bottom:1px solid var(--paper-line); }
  .stat:nth-child(even){ border-right:none; }
  .stat:nth-last-child(-n+2){ border-bottom:none; }
  .skill-row{ grid-template-columns:1fr; }
  .skill-row dt{ border-right:none; padding-bottom:2px; }
  .skill-row dd{ padding-top:0; }
  .svc-grid{ grid-template-columns:1fr 1fr; }
  .step{ grid-template-columns:52px 1fr; gap:14px; }
}
@media (max-width:540px){
  .svc-grid{ grid-template-columns:1fr; }
}

/* ---------- PRINT (generic) ---------- */
@media print{
  body{ background:#fff; }
  .sheet-frame, header, .no-print, footer .foot-bottom{ display:none !important; }
}
