/* Windows 95 desktop theme */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #008080;
}

body {
  font-family: Tahoma, Verdana, "Segoe UI", sans-serif;
  color: #000;
}

a { color: #000080; }
a:hover { color: #0000ee; }

.page {
  max-width: 740px;
  margin: 0 auto;
  padding: 30px 16px 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Window chrome */

.window {
  background: #c0c0c0;
  padding: 3px;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #ffffff,
    inset -2px -2px #808080,
    inset 2px 2px #dfdfdf;
}

.window-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #000080, #1084d0);
  padding: 3px 3px 3px 6px;
}

.window-icon {
  width: 12px;
  height: 11px;
  background: #ffffff;
  border: 1px solid #0a0a0a;
  display: inline-block;
  flex-shrink: 0;
}

.window-icon-bar {
  display: block;
  height: 3px;
  background: #000080;
  border-bottom: 1px solid #0a0a0a;
}

.window-title {
  flex: 1;
  color: #ffffff;
  font-weight: bold;
  font-size: 13px;
}

.window-controls {
  display: flex;
  gap: 2px;
}

.ctrl-btn {
  cursor: pointer;
  width: 16px;
  height: 14px;
  padding: 0;
  background: #c0c0c0;
  border: none;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #ffffff,
    inset -2px -2px #808080,
    inset 2px 2px #dfdfdf;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  font-family: inherit;
  line-height: 1;
}

.ctrl-btn:active {
  box-shadow:
    inset 1px 1px #0a0a0a,
    inset -1px -1px #ffffff,
    inset 2px 2px #808080,
    inset -2px -2px #dfdfdf;
}

.content-pad { padding: 12px; }

/* Buttons */

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: #c0c0c0;
  color: #000000;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #ffffff,
    inset -2px -2px #808080,
    inset 2px 2px #dfdfdf;
}

.btn:active {
  box-shadow:
    inset 1px 1px #0a0a0a,
    inset -1px -1px #ffffff,
    inset 2px 2px #808080,
    inset -2px -2px #dfdfdf;
}

.badge {
  width: 16px;
  height: 16px;
  font-size: 9px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-linkedin { background: #0a66c2; color: #ffffff; }

.badge-mail {
  position: relative;
  width: 16px;
  height: 12px;
  background: #ffffff;
  border: 1px solid #0a0a0a;
  overflow: hidden;
}

.mail-flap {
  position: absolute;
  top: 0;
  left: 1px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #000080;
  display: block;
}

/* Hero */

.hero-body {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 16px;
}

.photo-frame {
  padding: 3px;
  background: #c0c0c0;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #ffffff,
    inset -2px -2px #808080,
    inset 2px 2px #dfdfdf;
  display: inline-block;
  flex-shrink: 0;
}

.photo-frame img {
  width: 88px;
  height: 88px;
  display: block;
  border: 1px solid #808080;
  object-fit: cover;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-text h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.tagline {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #222222;
  max-width: 46ch;
  text-wrap: pretty;
}

/* Sunken panel */

.sunken {
  background: #ffffff;
  box-shadow:
    inset 1px 1px #0a0a0a,
    inset -1px -1px #ffffff,
    inset 2px 2px #808080,
    inset -2px -2px #dfdfdf;
}

/* Experience */

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.company-card { padding: 14px; }

.company-header {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.company-name { font-size: 15px; font-weight: bold; }

.tag {
  background: #ffffe1;
  border: 1px solid #0a0a0a;
  font-size: 11px;
  padding: 2px 6px;
  white-space: nowrap;
}

.spacer { flex: 1; }

.meta {
  font-size: 12px;
  color: #555555;
  white-space: nowrap;
}

.role-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.role-list-compact { gap: 8px; }

.role { display: flex; gap: 8px; }

.role-inline { align-items: baseline; }

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

.role-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.role-line {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.role-title { flex: 1; font-size: 14px; font-weight: bold; }

.role-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #333333;
  text-wrap: pretty;
}

.role-inline .role-title { flex: 1; }

.stat-bar { display: flex; gap: 4px; }

.stat-item {
  box-shadow: inset 1px 1px #808080, inset -1px -1px #ffffff;
  padding: 3px 8px;
  font-size: 11px;
}

.stat-item-grow { flex: 1; }

/* What I do */

.intro { margin: 0 0 10px; font-size: 14px; font-weight: bold; }

.todo-list { display: flex; flex-direction: column; }

.todo-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  border-bottom: 1px solid #e6e6e6;
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}

.todo-item-last { border-bottom: none; }

.icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: inline-block;
}

.icon-briefcase::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 8px;
  width: 8px;
  height: 6px;
  border: 2px solid #6b4423;
  display: block;
}

.icon-briefcase::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 1px;
  width: 22px;
  height: 14px;
  background: #8b5a2b;
  display: block;
  box-shadow: inset 0 -10px 0 -6px #d4a017;
}

.icon-lens::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 13px;
  height: 13px;
  border: 3px solid #000080;
  border-radius: 50%;
  background: #cce4ff;
  display: block;
}

.icon-lens::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 3px;
  width: 11px;
  height: 4px;
  background: #000080;
  transform: rotate(45deg);
  display: block;
}

.icon-cross::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 2px;
  width: 20px;
  height: 6px;
  background: #c00000;
  display: block;
}

.icon-cross::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 9px;
  width: 6px;
  height: 20px;
  background: #c00000;
  display: block;
}

.icon-hourglass::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 3px;
  width: 18px;
  height: 3px;
  background: #000080;
  display: block;
  box-shadow: 0 19px 0 #000080;
}

.icon-hourglass::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 3px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 8px solid #cc9900;
  display: block;
}

.icon-hourglass span {
  position: absolute;
  bottom: 5px;
  left: 3px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 8px solid #cc9900;
  display: block;
}

.icon-shield::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  background: #000080;
  display: block;
}

.icon-shield::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 7px;
  width: 10px;
  height: 8px;
  background: #c0c0c0;
  display: block;
  box-shadow: inset -3px 0 0 -1px #000080;
}

.icon-shield span {
  position: absolute;
  bottom: 2px;
  left: 5px;
  width: 14px;
  height: 8px;
  background: #ffffff;
  display: block;
}

.icon-growth::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 3px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 10px solid #008000;
  display: block;
}

.icon-growth::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 8px;
  width: 8px;
  height: 11px;
  background: #008000;
  display: block;
}

/* Contact */

.contact-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-links { margin: 0; font-size: 12px; color: #444444; }

.copyright {
  margin: 0;
  text-align: center;
  color: #cfe8e8;
  font-size: 11px;
}

/* Error dialog */

.error-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
}

.error-overlay[hidden] { display: none; }

.error-dialog {
  width: 300px;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #ffffff,
    inset -2px -2px #808080,
    inset 2px 2px #dfdfdf,
    3px 3px 8px rgba(0, 0, 0, 0.35);
}

.error-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
}

.error-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #c00000;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#error-msg { font-size: 13px; line-height: 1.4; }

.error-actions {
  display: flex;
  justify-content: center;
  padding: 0 14px 14px;
}

.btn-ok { padding: 4px 28px; }

/* Taskbar */

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #c0c0c0;
  border-top: 1px solid #ffffff;
  box-shadow: 0 -1px 0 #808080;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  z-index: 10;
}

.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #c0c0c0;
  font-size: 13px;
  font-weight: bold;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #ffffff,
    inset -2px -2px #808080,
    inset 2px 2px #dfdfdf;
}

.start-flag {
  width: 12px;
  height: 12px;
  background: #008080;
  border: 1px solid #0a0a0a;
  display: inline-block;
}

.taskbar-divider {
  width: 2px;
  align-self: stretch;
  box-shadow: inset 1px 0 #808080, inset -1px 0 #ffffff;
}

.task-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: bold;
  box-shadow:
    inset 1px 1px #0a0a0a,
    inset -1px -1px #ffffff,
    inset 2px 2px #808080,
    inset -2px -2px #dfdfdf;
  background: #dfdfdf;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-icon {
  width: 11px;
  height: 10px;
  background: #ffffff;
  border: 1px solid #0a0a0a;
  display: inline-block;
  flex-shrink: 0;
}

.task-icon-bar {
  display: block;
  height: 3px;
  background: #000080;
}

.clock {
  padding: 4px 12px;
  font-size: 12px;
  box-shadow: inset 1px 1px #808080, inset -1px -1px #ffffff;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .task-item { max-width: 40vw; }
}
