﻿
/* ==========================================================================
   Journeyman IT — journeymanit.com
   Single shared stylesheet. System fonts only, no external requests.
   ========================================================================== */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---- Theme tokens ---- */
:root {
  --bg: #fbfaf8;
  --bg-elevated: #ffffff;
  --fg: #1a1917;
  --fg-muted: #5c584f;
  --fg-faint: #8a8577;
  --border: #e4ddd0;
  --border-strong: #d3c9b8;
  --accent: #b8480f;
  --accent-fg: #ffffff;
  --accent-soft: rgba(184, 72, 15, 0.08);
  --accent-soft-border: rgba(184, 72, 15, 0.28);
  --code-bg: #f1ece1;
  --shadow: 0 1px 2px rgba(30, 20, 10, 0.05), 0 1px 1px rgba(30, 20, 10, 0.03);
  --diagram-bg: #fffdf9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131211;
    --bg-elevated: #1a1917;
    --fg: #ece9e2;
    --fg-muted: #a49d8d;
    --fg-faint: #766f60;
    --border: #2c2a25;
    --border-strong: #3c3830;
    --accent: #e07a3e;
    --accent-fg: #1a1211;
    --accent-soft: rgba(224, 122, 62, 0.12);
    --accent-soft-border: rgba(224, 122, 62, 0.35);
    --code-bg: #1f1c17;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --diagram-bg: #17150f;
  }
}

/* ---- Base ---- */
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---- Containers ---- */
.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.wrap-wide {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-role {
  font-weight: 400;
  color: var(--fg-muted);
  margin-left: 0.5em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
}
.site-nav > a { color: var(--fg-muted); transition: color 0.15s ease; }
.site-nav > a:hover, .site-nav > a:focus-visible { color: var(--fg); }

.nav-dropdown { position: relative; }
.nav-dropdown > a {
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.nav-dropdown > a::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6;
}
.nav-dropdown:hover > a, .nav-dropdown:focus-within > a { color: var(--fg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -0.75rem;
  min-width: 15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.25rem);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 0.35rem;
  font-size: 0.88rem;
  color: var(--fg);
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus-visible { background: var(--accent-soft); color: var(--accent); }

/* ==========================================================================
   Hero (homepage)
   ========================================================================== */
.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 34ch;
}
.hero-lede {
  margin-top: 1.5rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 62ch;
}
.hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.65rem 1.15rem;
  border-radius: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.btn-primary:hover { opacity: 0.92; }
.btn-ghost:hover { border-color: var(--fg-muted); }

/* ---- Systems strip ---- */
.systems-strip {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.systems-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 0.9rem;
}
.systems-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.systems-list li {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-muted);
  background: var(--bg-elevated);
}

/* ==========================================================================
   Case study cards
   ========================================================================== */
.section {
  padding: 3.5rem 0;
}
.section-head {
  margin-bottom: 2rem;
  max-width: 46rem;
}
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section-head h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-head p {
  margin-top: 0.6rem;
  color: var(--fg-muted);
  font-size: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.1rem;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--bg-elevated);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: var(--accent-soft-border);
  transform: translateY(-1px);
}
.card-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fg-faint);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}
.card p {
  color: var(--fg-muted);
  font-size: 0.93rem;
  line-height: 1.55;
  flex-grow: 1;
}
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.stat-chip {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 0.3rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent);
  white-space: nowrap;
}
.card-link {
  margin-top: 0.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.card-link::after { content: "→"; transition: transform 0.15s ease; }
.card:hover .card-link::after { transform: translateX(2px); }

/* ==========================================================================
   Production discipline band
   ========================================================================== */
.discipline-band {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
}
.discipline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}
.discipline-item {
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}
.discipline-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.discipline-item p {
  font-size: 0.87rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.footer-identity strong { font-size: 1rem; }
.footer-identity div { margin-top: 0.3rem; font-size: 0.88rem; color: var(--fg-muted); }
.footer-identity a:hover { color: var(--accent); }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.88rem;
}
.footer-links a { color: var(--fg-muted); }
.footer-links a:hover { color: var(--accent); }
.footer-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--fg-faint);
}

/* ==========================================================================
   Case study article pages
   ========================================================================== */
.case-hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.case-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.case-hero h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.case-hero .hook {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 56ch;
}

.article {
  padding: 3rem 0 1rem;
}
.article .lede {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--fg);
  margin-bottom: 2.75rem;
}
.article h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 2.75rem 0 1rem;
  padding-top: 0.25rem;
}
.article h2:first-child { margin-top: 0; }
.article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2rem 0 0.85rem;
}
.article p {
  margin-bottom: 1.15rem;
  color: var(--fg);
  line-height: 1.75;
  font-size: 1rem;
}
.article p:last-child { margin-bottom: 0; }

/* ---- Diagram figures ---- */
.diagram-figure {
  margin: 1.75rem 0 2.25rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--diagram-bg);
  padding: 1.25rem 1.25rem 1rem;
}
.diagram-scroll {
  overflow-x: auto;
  overflow-y: hidden;
}
.diagram-figure svg {
  min-width: 30rem;
  width: 100%;
  height: auto;
  color: var(--fg-muted);
}
.diagram-figure figcaption {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ---- Stack chip row ---- */
.stack-row {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.stack-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 0.75rem;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  font-size: 0.82rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  padding: 0.35rem 0.65rem;
  border-radius: 0.35rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  color: var(--fg-muted);
}

/* ---- Prev / next ---- */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem 0 4rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}
.pager-link {
  flex: 1;
  max-width: 48%;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: border-color 0.15s ease;
}
.pager-link:hover { border-color: var(--accent-soft-border); }
.pager-link.next { text-align: right; align-items: flex-end; margin-left: auto; }
.pager-dir {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.pager-title { font-size: 0.95rem; font-weight: 600; color: var(--fg); }

/* ==========================================================================
   More-work page
   ========================================================================== */
.work-entry {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.work-entry:last-child { border-bottom: 0; }
.work-entry h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.work-entry p {
  color: var(--fg-muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 640px) {
  .header-inner { height: auto; padding-top: 0.9rem; padding-bottom: 0.9rem; flex-wrap: wrap; row-gap: 0.6rem; }
  .site-nav { gap: 1.1rem; font-size: 0.85rem; }
  .hero { padding: 3rem 0 2.25rem; }
  .discipline-item { border-left-width: 2px; }
  .pager { flex-direction: column; }
  .pager-link, .pager-link.next { max-width: 100%; }
  .pager-link.next { text-align: left; align-items: flex-start; margin-left: 0; }
}



/* ==========================================================================
   Journeyman IT — two doors
   ========================================================================== */
.doors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.1rem;
}
.door {
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--bg-elevated);
  padding: 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.door-tag {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}
.door h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.005em; }
.door p { color: var(--fg-muted); font-size: 0.95rem; line-height: 1.6; flex-grow: 1; }
.door-note {
  border-top: 1px dashed var(--border-strong);
  padding-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--fg-faint);
}