/* ============================================================
   Jermal Smith — whois.jermsmit.com
   Design system: "Reticle / Corporate" — bold type, LinkedIn-blue
   ============================================================ */

:root {
  /* Color tokens */
  --bg: #f4f7fb;
  --bg-alt: #eaf1fb;
  --panel: #ffffff;
  --line: #d8e3f0;
  --ink: #0b1f3a;
  --dim: #55657a;
  --dim-2: #7c8aa0;
  --accent: #0a66c2;
  --accent-dark: #084d94;
  --accent-soft: #e1edfb;
  --signal: #1f9d55;
  --signal-soft: #e5f6ea;

  /* Type */
  --font-display: 'Archivo', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Layout */
  --wrap: 1180px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--dim); }

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
  font-family: var(--font-mono);
  font-weight: 600;
}
.skip-link:focus { left: 24px; top: 24px; }

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 247, 251, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  background: var(--accent);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
}

.brand-title {
  font-size: 13px;
  color: var(--dim-2);
  font-weight: 500;
  padding-left: 12px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
}

.btn-ribbon {
  padding: 10px 20px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .brand-title { display: none; }
  .btn-ribbon { padding: 9px 14px; font-size: 12px; }
}

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

.hero {
  padding-top: 72px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 85% -10%, rgba(10,102,194,0.10), transparent 55%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
  padding: 72px 24px 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 600;
}
.eyebrow-dash { width: 24px; height: 2px; background: var(--accent); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  max-width: 48ch;
  color: var(--dim);
}

.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-portrait { justify-self: center; }

.portrait-frame {
  position: relative;
  width: min(320px, 78vw);
  height: min(320px, 78vw);
  padding: 14px;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(11,31,58,0.16);
}
.corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 3px solid var(--accent);
}
.corner-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.corner-tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.corner-bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.corner-br { bottom: 0; right: 0; border-left: none; border-top: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding-top: 48px; }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .eyebrow { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-portrait { order: -1; }
}

.status-bar { border-top: 1px solid var(--line); background: var(--panel); }
.status-bar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 22px 20px; border-right: 1px solid var(--line); text-align: center; }
.stat:last-child { border-right: none; }
.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
}
.stat-signal { color: var(--signal); }
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--dim-2);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

@media (max-width: 700px) {
  .status-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
}

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

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-heading {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 24px;
  max-width: 20ch;
  font-weight: 800;
}
.section-lede { max-width: 60ch; font-size: 17px; margin-bottom: 40px; }

/* ---------- About ---------- */

.about-grid { max-width: 900px; }
.about-body p { font-size: 16px; }

.competency-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.competency-list li {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}
@media (max-width: 640px) { .competency-list { grid-template-columns: 1fr; } }

/* ---------- Log strip ---------- */

.log { border-top: 1px solid var(--line); }
.log-entry {
  display: grid;
  grid-template-columns: 140px 200px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 22px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.log-time { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 600; padding-top: 2px; }
.log-org { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 15px; }
.log-role { display: block; font-size: 13px; color: var(--dim-2); margin-top: 2px; }
.log-detail { font-size: 14px; color: var(--dim); margin: 0; }
.log-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 4px;
  height: fit-content;
  white-space: nowrap;
  font-weight: 600;
}
.log-tag-active { color: var(--signal); background: var(--signal-soft); border: 1px solid rgba(31,157,85,0.3); }
.log-tag-complete { color: var(--dim); background: var(--panel); border: 1px solid var(--line); }

@media (max-width: 900px) {
  .log-entry { grid-template-columns: 1fr; gap: 6px; }
  .log-tag { justify-self: start; margin-top: 4px; }
}

/* ---------- Projects ---------- */

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.project-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.project-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.project-card h3 { font-size: 18px; margin: 0; }
.project-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--signal);
  background: var(--signal-soft);
  border: 1px solid rgba(31,157,85,0.3);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.project-card p { font-size: 14px; margin: 0; }

@media (max-width: 700px) { .project-grid { grid-template-columns: 1fr; } }

/* ---------- Community ---------- */

.community-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; }
.community-copy p { font-size: 16px; max-width: 55ch; }

.community-badge {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.badge-role { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 600; }
.badge-org { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 17px; }
.badge-focus { font-size: 13px; color: var(--dim-2); }

@media (max-width: 800px) { .community-grid { grid-template-columns: 1fr; } }

/* ---------- Connect ---------- */

.connect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.connect-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.connect-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.connect-primary { background: var(--accent-soft); border-color: var(--accent); }
.connect-label { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 16px; }
.connect-desc { font-size: 13px; color: var(--dim); }

@media (max-width: 900px) { .connect-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .connect-grid { grid-template-columns: 1fr; } }

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

.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--dim-2); }
.footer-inner p { margin: 0; color: var(--dim-2); }
