html {
  background: #5a8dd6 url('./images/windowsxp.png') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
}

body {
  background-color: #ece9d8 !important;
  color: #000000;
  font-family: "Tahoma", "Arial", sans-serif !important;
  font-size: 13px;
  margin: 0 auto;
  padding: 24px;
  max-width: 800px;
  border-left: 1px solid #716f64;
  border-right: 1px solid #716f64;
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.35);
  min-height: 100vh;
}

a:link    { color: #0000ee; }
a:visited { color: #551a8b; }
a:active  { color: #ff0000; }
a:hover   { background-color: #ffff00; }

h1, h2, h3 {
  font-family: "Tahoma", "Arial", sans-serif;
  color: #000080;
  margin-bottom: 4px;
}

h1 {
  text-align: center;
  font-size: 24px;
  text-decoration: underline;
}

h2 {
  font-size: 16px;
  border-bottom: 1px dashed #000080;
}

h3 {
  font-size: 14px;
}

hr {
  border: 0;
  border-top: 1px dashed #000000;
  margin: 16px 0;
}

.ascii {
  font-family: "Courier New", Courier, monospace;
  white-space: pre;
  font-size: 12px;
  color: #006400;
  text-align: center;
  line-height: 1.1;
}

/* The real XP Luna Blue title bar gradient — reusable */
.xp-titlebar {
  background: linear-gradient(180deg,
    #0997ff,
    #0053ee 8%,
    #0050ee 40%,
    #0066ff 88%,
    #0066ff 93%,
    #005bff 95%,
    #003dd7 96%,
    #003dd7);
  color: #ffffff;
  font-family: "Trebuchet MS", "Tahoma", "Arial", sans-serif;
  font-weight: bold;
  font-size: 13px;
  padding: 3px 8px;
  border-top: 1px solid #0831d9;
  border-left: 1px solid #0831d9;
  border-right: 1px solid #001ea0;
  border-top-left-radius: 8px;
  border-top-right-radius: 7px;
  text-shadow: 1px 1px #0f1089;
  line-height: 1.3;
}

.marquee-bar {
  background: linear-gradient(180deg,
    #0997ff,
    #0053ee 8%,
    #0050ee 40%,
    #0066ff 88%,
    #0066ff 93%,
    #005bff 95%,
    #003dd7 96%,
    #003dd7);
  color: #ffff00;
  font-family: "Trebuchet MS", "Tahoma", "Arial", sans-serif;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 8px;
  border-top: 1px solid #0831d9;
  border-left: 1px solid #0831d9;
  border-right: 1px solid #001ea0;
  border-top-left-radius: 8px;
  border-top-right-radius: 7px;
  text-shadow: 1px 1px #0f1089;
}

.toc {
  background-color: #ece9d8;
  border: 1px solid #aca899;
  padding: 8px 16px;
  margin: 16px 0;
}

.toc ul {
  margin: 4px 0;
  padding-left: 24px;
}

table.layout {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

table.layout td {
  vertical-align: top;
  padding: 8px;
}

table.data {
  border: 1px solid #aca899;
  border-collapse: collapse;
  width: 100%;
  margin: 8px 0;
  background-color: #ece9d8;
}

table.data th, table.data td {
  border: 1px solid #aca899;
  padding: 6px;
  text-align: left;
}

table.data th {
  background: linear-gradient(180deg,
    #0997ff,
    #0053ee 8%,
    #0050ee 40%,
    #0066ff 88%,
    #0066ff 93%,
    #005bff 95%,
    #003dd7 96%,
    #003dd7);
  color: #ffffff;
  font-family: "Trebuchet MS", "Tahoma", "Arial", sans-serif;
  font-weight: bold;
  text-shadow: 1px 1px #0f1089;
  border-color: #001ea0;
}

blockquote {
  background-color: #ece9d8;
  border-left: 3px solid #aca899;
  padding: 8px 12px;
  margin: 12px 0;
  font-style: italic;
}

.signature {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  color: #444444;
}

.footer {
  text-align: center;
  font-size: 12px;
  color: #444444;
  margin-top: 24px;
  border-top: 1px solid #aca899;
  padding-top: 12px;
}

.badge {
  display: inline-block;
  border: 1px solid #aca899;
  background: #ece9d8;
  padding: 2px 6px;
  font-family: "Tahoma", "Arial", sans-serif;
  font-size: 10px;
  margin: 2px;
}

.construction {
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  color: #b8860b;
  font-weight: bold;
  letter-spacing: 2px;
}

.portrait {
  border: 1px solid #aca899;
  outline: 4px solid #ece9d8;
  outline-offset: -1px;
  box-shadow: 0 0 0 5px #aca899;
  width: 180px;
  height: 180px;
  display: block;
  margin: 8px auto;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  background: #ece9d8;
}

.counter {
  display: inline-block;
  background: #000;
  color: #00ff00;
  font-family: "Courier New", Courier, monospace;
  padding: 2px 8px;
  border: 2px inset #808080;
  letter-spacing: 4px;
}

/* ── Experience (Where I've Worked) ───────────────────────── */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}

.job-box {
  background: #ece9d8;
  border: 1px solid #0831d9;
  border-top: none;
  border-radius: 0 0 3px 3px;
  overflow: hidden;
}

.job-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  background: linear-gradient(180deg,
    #0997ff,
    #0053ee 8%,
    #0050ee 40%,
    #0066ff 88%,
    #0066ff 93%,
    #005bff 95%,
    #003dd7 96%,
    #003dd7);
  color: #ffffff;
  font-family: "Trebuchet MS", "Tahoma", "Arial", sans-serif;
  font-weight: bold;
  font-size: 13px;
  padding: 3px 10px;
  border-top: 1px solid #0831d9;
  border-left: 1px solid #0831d9;
  border-right: 1px solid #001ea0;
  border-top-left-radius: 8px;
  border-top-right-radius: 7px;
  text-shadow: 1px 1px #0f1089;
  line-height: 1.3;
}

.job-role {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-dates {
  flex-shrink: 0;
  font-family: "Tahoma", "Arial", sans-serif;
  font-weight: normal;
  font-size: 11px;
  text-shadow: 1px 1px #0f1089;
  opacity: 0.95;
}

.job-body {
  padding: 8px 14px 10px;
  font-size: 12px;
  line-height: 1.4;
}

.job-body ul {
  margin: 0;
  padding-left: 20px;
}

.job-body li {
  margin: 3px 0;
}

.job-body li::marker {
  color: #0831d9;
}

/* ── Skills ───────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

.skill-box {
  background: #ece9d8;
  border: 1px solid #0831d9;
  border-top: none;
  border-radius: 0 0 3px 3px;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.skill-box-title {
  display: block;
  background: linear-gradient(180deg,
    #0997ff,
    #0053ee 8%,
    #0050ee 40%,
    #0066ff 88%,
    #0066ff 93%,
    #005bff 95%,
    #003dd7 96%,
    #003dd7);
  color: #ffffff;
  font-family: "Trebuchet MS", "Tahoma", "Arial", sans-serif;
  font-weight: bold;
  font-size: 13px;
  padding: 3px 8px;
  border-top: 1px solid #0831d9;
  border-left: 1px solid #0831d9;
  border-right: 1px solid #001ea0;
  border-top-left-radius: 8px;
  border-top-right-radius: 7px;
  text-shadow: 1px 1px #0f1089;
  line-height: 1.3;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px;
}

.skill-chips .badge {
  display: inline-block;
  margin: 0;
  padding: 3px 12px;
  min-width: 65px;
  font-family: "Tahoma", "Arial", sans-serif;
  font-size: 11px;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
  text-align: center;
  color: #000;
  cursor: pointer;
  user-select: none;
  background:
    linear-gradient(180deg,
      #fdfdfd 0%,
      #f0f0e8 45%,
      #e0e0d4 50%,
      #e9e8d8 90%,
      #f5f4ea 100%);
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;
  box-shadow:
    inset -1px -1px 0 #aaa,
    inset  1px  1px 0 #f9f9f5;
  border-radius: 3px;
}

.skill-chips .badge:hover {
  background:
    linear-gradient(180deg,
      #f4f9ff 0%,
      #dde9fb 45%,
      #b9d2f6 50%,
      #cee0fa 90%,
      #e5eefb 100%);
  border-top-color: #b6d4ff;
  border-left-color: #b6d4ff;
  border-right-color: #2a5fae;
  border-bottom-color: #2a5fae;
}

.skill-chips .badge:active {
  background:
    linear-gradient(180deg,
      #cad9ee 0%,
      #aac0e0 50%,
      #b8c9e6 100%);
  border-top-color: #2a5fae;
  border-left-color: #2a5fae;
  border-right-color: #b6d4ff;
  border-bottom-color: #b6d4ff;
  box-shadow:
    inset  1px  1px 0 #6a85b3,
    inset -1px -1px 0 #e8efff;
}


/* ── Fake pop-up ad ───────────────────────────────────────── */
#popup-ad {
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
}

@keyframes bg-strobe {
  0%   { background-color: #ff4444; color: #ffff00; }
  25%  { background-color: #ffdd00; color: #000080; }
  50%  { background-color: #00aaff; color: #ffff00; }
  75%  { background-color: #cc00cc; color: #ffff00; }
  100% { background-color: #ff4444; color: #ffff00; }
}

@keyframes text-flash {
  0%, 59%  { opacity: 1; }
  60%, 100% { opacity: 0; }
}

.ad-body {
  padding: 0 !important;
}

.ad-flash {
  animation: bg-strobe 1.2s steps(1, end) infinite;
  padding: 14px 12px;
  text-align: center;
  font-family: "Arial Black", "Arial", sans-serif;
}

.ad-stars {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 6px;
}

.ad-main-text {
  font-size: 22px;
  font-weight: 900;
  text-shadow: 1px 1px 0 #000;
  line-height: 1.2;
  margin: 6px 0;
}

.ad-sub {
  font-size: 12px;
  font-weight: bold;
  margin: 8px 0;
}

.ad-blink {
  font-size: 15px;
  font-weight: 900;
  animation: text-flash 0.8s steps(1, end) infinite;
  margin: 8px 0;
}

.ad-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 8px;
}

.ad-btn {
  display: block;
  padding: 7px 10px;
  font-family: "Arial Black", "Arial", sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none !important;
  background: #ffff00;
  color: #000080 !important;
  border: 3px outset #ffffff;
  text-shadow: none;
}

.ad-btn:hover {
  border-style: inset;
  background: #ffffff;
}

.ad-fine {
  font-size: 9px;
  color: inherit;
  opacity: 0.75;
  margin-top: 6px;
  font-family: "Arial", sans-serif;
  font-weight: normal;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 600px) {

  body {
    padding: 12px !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
  }

  /* Stack photo above bio text */
  table.layout,
  table.layout tbody,
  table.layout tr,
  table.layout td {
    display: block !important;
    width: 100% !important;
  }

  table.layout td:first-child {
    text-align: center;
    margin-bottom: 12px;
  }

  /* Experience: stack date above role */
  table.jobs td.when {
    display: block;
    width: 100%;
    white-space: normal;
    padding-bottom: 2px;
    font-size: 11px;
  }

  table.jobs td.role {
    display: block;
    width: 100%;
    padding-top: 0;
  }

  table.jobs tr {
    display: block;
    margin-bottom: 4px;
  }

  /* Education table: scrollable rather than wrapping */
  table.data {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  /* Popup: don't overflow the screen */
  #popup-ad {
    width: calc(100vw - 24px) !important;
    max-width: 340px;
  }

  /* Marquee text smaller */
  .marquee-bar {
    font-size: 10px;
  }

  /* Heading sizes a touch smaller */
  h1 { font-size: 20px; }
  h2 { font-size: 15px; }
  h3 { font-size: 13px; }

  /* Skills: stack to single column */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* Jobs: let role text wrap, dates drop to a new line */
  .job-titlebar {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .job-role { white-space: normal; }
}
