/* Windows XP–style CV: Bliss desktop + IE6 window + MSN-ish homepage */

:root {
  --xp-face: #ece9d8;
  --xp-window: #ffffff;
  --xp-border-light: #ffffff;
  --xp-border-mid: #aca899;
  --xp-border-dark: #716f64;
  --xp-blue: #0a246a;
  --xp-link: #0000cc;
  --xp-link-visited: #551a8b;
  --xp-title-start: #0b77ee;
  --xp-title-end: #082e8a;
  --xp-taskbar: #245edc;
  --xp-start-green: #3c9a37;
  --font-ui: Tahoma, "MS Sans Serif", Geneva, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.45;
  color: #000;
  background: #000;
  padding-bottom: 36px;
}

/* Bliss-inspired wallpaper */
.desktop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 95% 55% at 50% 100%, rgba(0, 0, 0, 0.18) 0%, transparent 58%),
    radial-gradient(ellipse 120% 70% at 50% 92%, #6d9b3c 0%, #4a7a28 45%, transparent 55%),
    linear-gradient(180deg, #2b7fff 0%, #5eb3ff 38%, #7ec850 38%, #5a9a32 72%, #3d6b20 100%);
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 16px 8px;
}

@media (min-width: 768px) {
  .shell {
    padding: 32px 24px 8px;
  }
}

/* IE window outer chrome */
.xp-window {
  background: var(--xp-face);
  border: 1px solid var(--xp-border-dark);
  box-shadow:
    1px 1px 0 var(--xp-border-light) inset,
    -1px -1px 0 var(--xp-border-mid) inset,
    4px 4px 12px rgba(0, 0, 0, 0.35);
}

.title-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 2px 4px 2px 6px;
  background: linear-gradient(180deg, var(--xp-title-start) 0%, #0950c4 45%, var(--xp-title-end) 100%);
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  letter-spacing: 0.02em;
  user-select: none;
}

.title-bar__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #ffcc66 0%, #e68a00 100%);
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 1px;
}

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

.title-bar__controls {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.title-btn {
  width: 21px;
  height: 21px;
  padding: 0;
  font-size: 12px;
  line-height: 1;
  font-family: Arial, sans-serif;
  color: #000;
  background: linear-gradient(180deg, #3a8ff7 0%, #1e6fd4 40%, #0c4da2 100%);
  border: 1px solid #0a246a;
  border-radius: 2px;
  cursor: default;
  opacity: 0.85;
}

.title-btn:disabled {
  cursor: default;
}

.title-btn--close {
  font-weight: bold;
  font-size: 14px;
  line-height: 18px;
}

.menu-bar {
  display: flex;
  gap: 14px;
  padding: 2px 6px 3px;
  background: var(--xp-face);
  border-bottom: 1px solid var(--xp-border-mid);
  font-size: 11px;
  user-select: none;
}

.menu-bar__item {
  cursor: default;
}

.menu-bar__item:first-child {
  text-decoration: underline;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: var(--xp-face);
  border-bottom: 1px solid var(--xp-border-mid);
}

.tb-btn {
  min-height: 22px;
  padding: 2px 8px;
  font-family: var(--font-ui);
  font-size: 11px;
  background: var(--xp-face);
  border: 1px solid;
  border-color: var(--xp-border-light) var(--xp-border-dark) var(--xp-border-dark) var(--xp-border-light);
  border-radius: 2px;
  cursor: default;
}

.tb-btn:disabled {
  color: #808080;
}

.tb-btn:not(:disabled):hover {
  background: #f2f2f2;
}

.tb-btn:not(:disabled):active {
  border-color: var(--xp-border-dark) var(--xp-border-light) var(--xp-border-light) var(--xp-border-dark);
}

.address-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: var(--xp-face);
  border-bottom: 1px solid var(--xp-border-mid);
  font-size: 11px;
}

.address-bar__label {
  flex-shrink: 0;
  font-weight: bold;
}

.address-bar__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: 22px;
  padding: 2px 6px;
  background: #fff;
  border: 1px inset #aca899;
  font-size: 11px;
  color: #000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-bar__ie {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #ffcc66, #e68a00);
  border: 1px solid #999;
}

.address-bar__go {
  min-width: 24px;
  height: 22px;
  font-size: 11px;
  background: var(--xp-face);
  border: 1px solid;
  border-color: var(--xp-border-light) var(--xp-border-dark) var(--xp-border-dark) var(--xp-border-light);
}

.address-bar__links {
  flex-shrink: 0;
  color: var(--xp-link);
  text-decoration: underline;
  cursor: default;
}

.ie-content {
  background: var(--xp-window);
  border: 1px solid var(--xp-border-mid);
  border-top: none;
  margin: 0 2px 2px;
}

/* MSN-style header */
.msn-header {
  background: linear-gradient(180deg, #0066cc 0%, #004e9a 100%);
  color: #fff;
  padding: 10px 12px 12px;
  border-bottom: 2px solid #003366;
}

.msn-header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.msn-header__butterfly {
  display: inline-block;
  width: 28px;
  height: 28px;
  background:
    radial-gradient(circle at 30% 35%, #ff6b6b 0%, transparent 45%),
    radial-gradient(circle at 70% 40%, #ffd43b 0%, transparent 40%),
    radial-gradient(circle at 50% 70%, #4dabf7 0%, transparent 50%),
    linear-gradient(135deg, #74c0fc, #9775fa);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.msn-header__title {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: -0.02em;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
}

.msn-header__tagline {
  margin: 0;
  font-size: 12px;
  opacity: 0.95;
}

/* Two-column homepage layout */
.msn-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 200px;
}

@media (min-width: 640px) {
  .msn-layout {
    grid-template-columns: 170px 1fr;
  }
}

.msn-nav {
  background: linear-gradient(180deg, #eef4ff 0%, #d6e4ff 100%);
  border-bottom: 1px solid #99b3d8;
  padding: 10px 10px 12px;
}

@media (min-width: 640px) {
  .msn-nav {
    border-bottom: none;
    border-right: 1px solid #99b3d8;
  }
}

.msn-nav__h {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: bold;
  color: var(--xp-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.msn-nav__list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.msn-nav__list li + li {
  margin-top: 2px;
}

.msn-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 4px 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--xp-link);
  text-decoration: underline;
  background: transparent;
  border: none;
  cursor: pointer;
}

.msn-link:hover {
  background: rgba(0, 102, 204, 0.12);
  color: var(--xp-link);
}

.msn-nav__search-label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 4px;
  color: #333;
}

.msn-nav__search-row {
  display: flex;
  gap: 4px;
}

.msn-nav__input {
  flex: 1;
  min-width: 0;
  height: 22px;
  padding: 2px 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  border: 1px inset #aca899;
}

.msn-main {
  padding: 12px 14px 16px;
  background: #fff;
}

/* Content panels */
.xp-panel {
  margin-bottom: 14px;
}

.hero {
  padding-bottom: 4px;
}

.hero__title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: bold;
  color: var(--xp-blue);
  letter-spacing: -0.02em;
}

.hero__role {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: bold;
  color: #333;
}

.hero__blurb {
  margin: 0 0 14px;
  max-width: 52ch;
  color: #222;
}

.hero__actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-block p {
  margin: 0 0 10px;
  color: #222;
}

.xp-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 4px 0 6px;
  font-size: 15px;
  font-weight: bold;
  color: var(--xp-blue);
  border-bottom: 1px solid #c5d9f7;
}

.xp-heading__icon {
  width: 16px;
  height: 16px;
  background: linear-gradient(180deg, #74c0fc 0%, #1864ab 100%);
  border: 1px solid #1864ab;
  border-radius: 1px;
}

.xp-job {
  margin-bottom: 16px;
  padding: 10px 10px 12px;
  background: var(--xp-face);
  border: 1px solid;
  border-color: var(--xp-border-light) var(--xp-border-dark) var(--xp-border-dark) var(--xp-border-light);
}

.xp-job:last-of-type {
  margin-bottom: 0;
}

.xp-job__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 10px;
}

.xp-job__table th {
  width: 72px;
  padding: 2px 8px 2px 0;
  text-align: left;
  font-weight: normal;
  color: #555;
  vertical-align: top;
}

.xp-job__table td {
  padding: 2px 0;
  font-weight: bold;
  color: #000;
}

.xp-job__summary {
  margin: 0 0 8px;
  font-size: 12px;
}

.xp-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 12px;
  color: #222;
}

.xp-list li + li {
  margin-top: 4px;
}

.skills-intro {
  font-size: 12px;
  color: #444;
  margin-bottom: 10px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-tags li {
  padding: 3px 10px;
  font-size: 11px;
  background: linear-gradient(180deg, #fff 0%, #e8e8e8 100%);
  border: 1px solid #7a9ebd;
  border-radius: 2px;
}

.contact-links {
  margin: 8px 0 0;
  font-size: 12px;
}

.contact-sep {
  margin: 0 6px;
  color: #999;
}

a {
  color: var(--xp-link);
}

a:visited {
  color: var(--xp-link-visited);
}

a:hover {
  color: #cc0000;
}

.msn-footer {
  margin-top: 8px;
  padding: 10px 0 0;
  border-top: 1px solid #e0e0e0;
  font-size: 11px;
  color: #555;
}

.msn-footer p {
  margin: 0;
}

/* Classic XP button */
.xp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  padding: 3px 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: #000;
  text-decoration: none;
  background: var(--xp-face);
  border: 1px solid;
  border-color: var(--xp-border-light) var(--xp-border-dark) var(--xp-border-dark) var(--xp-border-light);
  border-radius: 2px;
  cursor: pointer;
}

.xp-button:hover {
  background: #f5f5f5;
}

.xp-button:active {
  border-color: var(--xp-border-dark) var(--xp-border-light) var(--xp-border-light) var(--xp-border-dark);
}

.xp-button--sm {
  min-height: 22px;
  padding: 2px 10px;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 22px;
  padding: 2px 6px;
  margin: 0 2px 2px;
  background: var(--xp-face);
  border: 1px solid;
  border-color: var(--xp-border-light) var(--xp-border-dark) var(--xp-border-dark) var(--xp-border-light);
  font-size: 11px;
}

.status-bar__left {
  color: #000;
}

.status-bar__right {
  color: #555;
}

/* Taskbar */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 2px 6px 4px;
  background: linear-gradient(180deg, #3168d5 0%, #245edc 12%, #1941a5 100%);
  border-top: 2px solid #5a8eff;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.25);
}

.start-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 2px 10px 2px 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: bold;
  font-style: italic;
  color: #fff;
  text-transform: lowercase;
  background: linear-gradient(180deg, #3fb839 0%, var(--xp-start-green) 45%, #2d7a29 100%);
  border: 1px solid #1e5a1a;
  border-radius: 0 8px 8px 0;
  box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.35) inset;
  cursor: pointer;
}

.start-btn:hover {
  filter: brightness(1.05);
}

.start-btn__flag {
  width: 18px;
  height: 18px;
  background: conic-gradient(
    #f03 0deg 90deg,
    #fff 90deg 180deg,
    #2b4 180deg 270deg,
    #fff 270deg 360deg
  );
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.taskbar__tasks {
  flex: 1;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.task-btn {
  max-width: 140px;
  height: 24px;
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-ui);
  font-size: 11px;
  color: #fff;
  background: linear-gradient(180deg, #4a7ee8 0%, #2d5fc4 100%);
  border: 1px solid #0a246a;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.task-btn:hover {
  filter: brightness(1.08);
}

.task-btn--active {
  background: linear-gradient(180deg, #1e4a9e 0%, #153c85 100%);
  border-color: #001a4d;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) inset;
}

.tray {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  background: linear-gradient(180deg, #0e9de5 0%, #0990cf 100%);
  border: 1px solid #006fa8;
  border-radius: 2px;
}

.tray__clock {
  font-family: "Lucida Console", monospace;
  font-size: 11px;
  color: #fff;
}

/* Start menu */
.start-overlay {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: transparent;
}

.start-menu {
  position: fixed;
  bottom: 36px;
  left: 4px;
  z-index: 200;
  width: 220px;
  background: var(--xp-face);
  border: 1px solid var(--xp-border-dark);
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.4);
}

.start-menu__header {
  padding: 8px 10px 10px;
  background: linear-gradient(180deg, #245edc 0%, #0a246a 100%);
  color: #fff;
  font-weight: bold;
  font-size: 13px;
}

.start-menu__list {
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border-bottom: 1px solid var(--xp-border-mid);
}

.start-item {
  display: block;
  width: 100%;
  padding: 6px 12px 6px 28px;
  font-family: var(--font-ui);
  font-size: 11px;
  text-align: left;
  color: #000;
  background: transparent;
  border: none;
  cursor: pointer;
}

.start-item:hover {
  background: #2f71cd;
  color: #fff;
}

.start-item--muted {
  color: #444;
}

.start-item--muted:hover {
  background: #e0e0e0;
  color: #000;
}

.start-menu__footer {
  padding: 6px 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
