/* ═══════════════════════════════════════════════════════════════════
   THE 3270 BYTE — Global Design System
   Font: IBM Plex Mono (terminal UI) + IBM Plex Sans (body copy)
   Theme A: Phosphor Green  |  Theme B: Amber
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400&family=IBM+Plex+Sans:wght@400;500&display=swap');

/* ── TOKENS ──────────────────────────────────────────────────────── */
:root {
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;

  /* Phosphor Green (default) */
  --bg:   #060a07;
  --bg2:  #0c1610;
  --bg3:  #121e16;
  --b1:   #1e3024;
  --b2:   #2a4230;
  --t1:   #a8c4ae;
  --t2:   #5a7a60;
  --t3:   #2e4a34;
  --ac:   #3dffa0;
  --ac2:  #1a8050;
  --bl:   #4da6ff;
  --am:   #e8b050;
  --re:   #ff6060;
}

/* ── BASE ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14pt; scroll-behavior: smooth; }

.site-main-inner {
  width: min(100%, 1500px);
  margin: 0 auto;
}

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--t1);
  line-height: 1.7;
  min-height: 100vh;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.035) 3px, rgba(0,0,0,0.035) 4px
  );
}

a { color: var(--ac); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; }

/* ── SITE HEADER ─────────────────────────────────────────────────── */
.site-header {
  background: var(--ac);
  color: var(--bg);
  font-size: 14pt;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .06em;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: .35rem 2rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo { letter-spacing: .08em; color: var(--bg); }
.site-logo:hover { text-decoration: none; opacity: .85; }
.site-header-meta { display: flex; gap: 1.5rem; font-size: 14pt; }

/* ── NAVIGATION ──────────────────────────────────────────────────── */
.site-nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--b1);
  height: 40px;
  position: sticky;
  top: 44px;
  z-index: 99;
}
.site-nav-inner {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  overflow-x: auto;
}
.nav-link {
  color: #6f9576;
  font-size: 14pt;
  letter-spacing: .06em;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--b1);
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-link:first-child { border-left: 1px solid var(--b1); }
.nav-link:hover, .nav-link.active {
  color: var(--ac);
  background: var(--bg3);
  text-decoration: none;
}
.nav-spacer { flex: 1; min-width: 1rem; }
.nav-yt {
  font-size: 14pt;
  color: #4a6f51;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: color .15s;
}
.nav-yt:hover { color: var(--t2); text-decoration: none; }

@media (max-width: 700px) {
  .site-header-inner {
    height: auto;
    min-height: 52px;
    padding: .45rem 1rem;
    flex-wrap: wrap;
    gap: .25rem .75rem;
    align-content: center;
  }

  .site-logo {
    letter-spacing: .04em;
  }

  .site-header-meta {
    flex-wrap: wrap;
    gap: .75rem;
    font-size: 12pt;
  }

  .site-nav {
    position: static;
  }

  .site-nav-inner {
    padding: 0 1rem;
  }
}

/* ── SECTION HEADER (ISPF panel title style) ─────────────────────── */
.section-head {
  font-size: 14pt;
  letter-spacing: .1em;
  color: #6f9576;
  border-bottom: 1px solid var(--b1);
  border-top: 1px solid var(--b1);
  padding: 8px 2rem;
  background: var(--bg2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-head-info { color: #4a6f51; font-size: 14pt; }

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  padding: 3rem 2rem 2.5rem;
  border-bottom: 1px solid var(--b1);
}
.hero-status {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 14pt;
  color: #6f9576;
  margin-bottom: 1.5rem;
}
.hero-dot {
  width: 7px; height: 7px;
  background: var(--ac);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .3; transform: scale(.8); }
}
.hero-name {
  font-size: 28pt;
  font-weight: 500;
  color: var(--ac);
  letter-spacing: .02em;
  line-height: 1.1;
  margin-bottom: .4rem;
}
.cursor {
  display: inline-block;
  width: .42em; height: .82em;
  background: var(--ac);
  vertical-align: middle;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-title {
  font-size: 14pt;
  color: var(--t1);
  letter-spacing: .07em;
  margin-bottom: 1.5rem;
}
.hero-divider {
  border: none;
  border-top: 1px solid var(--b1);
  margin: 1.25rem 0;
}
.hero-tagline {
  font-size: 14pt;
  color: var(--t2);
  max-width: 900px; /* was 560px */
  line-height: 1.9;
  margin-bottom: 2rem;
}
.hero-tagline strong { color: var(--ac); font-weight: 400; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  font-family: var(--mono);
  font-size: 14pt;
  letter-spacing: .07em;
  padding: 8px 18px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid;
  transition: all .15s;
  line-height: 1;
}
.btn-primary {
  background: var(--ac);
  color: var(--bg);
  border-color: var(--ac);
  font-weight: 500;
}
.btn-primary:hover { opacity: .82; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--ac);
  border-color: var(--ac2);
}
.btn-outline:hover {
  border-color: var(--ac);
  background: var(--bg3);
  text-decoration: none;
}

/* ── TWO-COLUMN GRID ──────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--b1);
}
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-col {
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--b1);
}
.grid-col:last-child { border-right: none; }
.col-head {
  font-size: 14pt;
  letter-spacing: .1em;
  color: var(--t2);
  border-bottom: 1px solid var(--b1);
  padding-bottom: 8px;
  margin-bottom: 1rem;
}

/* ── SKILLS ──────────────────────────────────────────────────────── */
.skill-cluster { margin-bottom: 1rem; }
.skill-cluster-name { font-size: 14pt; color: var(--ac2); letter-spacing: .08em; margin-bottom: 5px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.stag {
  font-size: 14pt;
  padding: 3px 9px;
  border: 1px solid var(--b2);
  border-radius: 2px;
  color: var(--t1);
  background: var(--bg3);
}
.stag.hi { border-color: var(--ac2); color: var(--ac); }

/* ── JOB LOG ─────────────────────────────────────────────────────── */
.job-table { width: 100%; border-collapse: collapse; font-size: 14pt; }
.job-table th {
  color: var(--t3);
  font-size: 14pt;
  font-weight: 400;
  letter-spacing: .06em;
  padding: 4px 8px 8px 0;
  text-align: left;
  border-bottom: 1px solid var(--b1);
}
.job-table td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--t3); }
.job-table tr:last-child td { border-bottom: none; }
.job-id { color: var(--t2); }
.job-name { color: var(--t1); }
.status-active  { color: var(--ac); }
.status-done    { color: var(--t2); }
.status-pending { color: var(--am); }

/* ── SKILLS PAGE ─────────────────────────────────────────────────── */
.skills-page { padding: 1.5rem 2rem; }
.skill-group { margin-bottom: 2rem; }
.skill-group-head {
  font-size: 14pt;
  letter-spacing: .1em;
  color: var(--ac2);
  border-bottom: 1px solid var(--b1);
  padding-bottom: 8px;
  margin-bottom: 1rem;
}
.skill-row {
  display: grid;
  grid-template-columns: 200px 80px 1fr;
  gap: 1rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--t3);
  font-size: 14pt;
  align-items: center;
}
.skill-row:last-child { border-bottom: none; }
.skill-row-name { color: var(--t1); }
.skill-bar { display: flex; gap: 3px; }
.skill-pip { font-size: 14pt; }
.skill-pip.on  { color: var(--ac); }
.skill-pip.off { color: var(--t3); }
.skill-row-level { font-size: 14pt; color: var(--t2); letter-spacing: .06em; }

/* ── TIMELINE (experience) ───────────────────────────────────────── */
.timeline { padding: 0; }
.timeline-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--b1);
}
.timeline-entry:last-child { border-bottom: none; }
@media (max-width: 600px) {
  .timeline-entry { grid-template-columns: 1fr; gap: .75rem; }
}
.timeline-left { display: flex; flex-direction: column; gap: 6px; }
.timeline-jobno { font-size: 14pt; color: var(--t3); letter-spacing: .06em; }
.timeline-date { font-size: 14pt; color: var(--t2); }
.timeline-role { font-weight: 500; color: var(--ac); font-size: 14pt; margin-bottom: 4px; }
.timeline-org { font-size: 14pt; color: var(--t1); letter-spacing: .04em; margin-bottom: .75rem; }
.timeline-org span { color: var(--t3); }
.timeline-desc { font-size: 14pt; color: var(--t2); line-height: 1.75; }
.timeline-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: .75rem; }

/* ── PROJECTS ────────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--b1);
}
.project-card {
  background: var(--bg);
  padding: 1.5rem 2rem;
  transition: background .15s;
}
.project-card:hover { background: var(--bg2); }
.project-dsn { font-size: 14pt; color: var(--t3); letter-spacing: .06em; margin-bottom: 6px; }
.project-name { font-weight: 500; color: var(--ac); font-size: 14pt; margin-bottom: 8px; }
.project-desc { font-size: 14pt; color: var(--t2); line-height: 1.75; margin-bottom: 1rem; }
.project-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.project-status { font-size: 14pt; }

/* ── YOUTUBE SECTION ─────────────────────────────────────────────── */
.yt-section {
  background: var(--bg2);
  border-bottom: 1px solid var(--b1);
  border-top: 1px solid var(--b1);
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
@media (max-width: 580px) { .yt-section { grid-template-columns: 1fr; } }
.yt-icon {
  width: 72px; height: 72px;
  flex-shrink: 0;
  border: 1px solid var(--b2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
}
.yt-channel-name { font-size: 14pt; font-weight: 500; color: var(--ac); margin-bottom: 6px; }
.yt-desc { font-size: 14pt; color: var(--t2); margin-bottom: 10px; }
.yt-badge {
  display: inline-block;
  font-size: 14pt;
  border: 1px solid var(--b1);
  padding: 2px 8px;
  border-radius: 2px;
  color: var(--t2);
  margin-right: 4px;
}

/* ── CONTACT ─────────────────────────────────────────────────────── */
.contact-section { padding: 2rem; }
.contact-intro { font-size: 14pt; color: var(--t2); line-height: 1.8; margin-bottom: 2rem; max-width: 540px; }
.contact-form { max-width: 560px; }
.form-field { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 14pt; letter-spacing: .1em; color: var(--t2); margin-bottom: 6px; }
.form-input, .form-textarea {
  font-family: var(--mono);
  font-size: 14pt;
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--b2);
  color: var(--t1);
  padding: 10px 12px;
  border-radius: 3px;
  outline: none;
  transition: border-color .15s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--ac2); }
.form-textarea { min-height: 120px; resize: vertical; }
::placeholder { color: var(--t3); }
.contact-links { margin-top: 2.5rem; }
.contact-link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--b1); margin-top: .75rem; }
.contact-link-item {
  background: var(--bg);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background .15s;
  text-decoration: none;
}
.contact-link-item:hover { background: var(--bg2); text-decoration: none; }
.cl-label { font-size: 14pt; color: #4a6f51; letter-spacing: .08em; }
.cl-val { font-size: 14pt; color: var(--ac); }

/* ── FOOTER ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--b1);
  font-size: 14pt;
  color: #4a6f51;
  letter-spacing: .04em;
}
.site-footer-inner {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: .75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: #7aa884; transition: color .15s; }
.footer-links a:hover { color: var(--ac); text-decoration: none; }
