@import url('https://fonts.cdnfonts.com/css/perfect-dos-vga-437');

:root {
  --bg: #0c0b09;
  --fg: #f2ece2;
  --accent: #ff9d3c;
  --dim: #a08a72;
  --line: #2a2420;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Perfect DOS VGA 437', 'Courier New', monospace;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.crt {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 60px;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 1px,
    rgba(0, 0, 0, 0.18) 2px,
    rgba(0, 0, 0, 0.18) 3px
  );
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 60%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
  z-index: 9998;
}

#hero {
  padding: 48px 0 24px;
}
#hero h1 {
  margin: 0;
  font-size: 2.2rem;
  color: var(--accent);
  letter-spacing: 1px;
}
#hero .role {
  margin: 6px 0 2px;
  color: var(--fg);
}
#hero .loc {
  margin: 0 0 16px;
  color: var(--dim);
  font-size: 0.9rem;
}
.links a {
  color: var(--accent);
  text-decoration: none;
  margin-right: 16px;
  border-bottom: 1px dashed transparent;
}
.links a:hover {
  border-bottom-color: var(--accent);
}

section {
  margin-top: 36px;
}

h2 {
  color: var(--accent);
  font-size: 1rem;
  text-transform: lowercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

#summary p {
  color: var(--fg);
  max-width: 66ch;
}

.skill-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 18px;
}
.skill-grid li::before {
  content: "> ";
  color: var(--dim);
}

.job {
  margin-bottom: 30px;
  padding-bottom: 6px;
}
.job-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.job-head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--fg);
}
.job-date {
  color: var(--dim);
  font-size: 0.85rem;
  white-space: nowrap;
}
.job-loc {
  color: var(--dim);
  font-size: 0.85rem;
  margin: 2px 0 8px;
}
.job ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}
.job li {
  margin-bottom: 6px;
}
.job li::marker {
  color: var(--dim);
}

.cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cert-list li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.cert-list li:last-child {
  border-bottom: none;
}
.cert-list strong {
  color: var(--fg);
  font-weight: 500;
}
.cert-date {
  color: var(--dim);
  font-size: 0.85rem;
  white-space: nowrap;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  margin-bottom: 6px;
}
.contact-list a {
  color: var(--accent);
  text-decoration: none;
}
.contact-list a:hover {
  text-decoration: underline;
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .skill-grid {
    grid-template-columns: 1fr;
  }
  #hero h1 {
    font-size: 1.6rem;
  }
}
