/* ============================================================
   Windows 95 portfolio — hand-built chrome (no framework deps)
   Font: MS Sans Serif (from themesberg/windows-95-ui-kit, MIT)
   ============================================================ */

@font-face {
  font-family: "W95FA";
  src: url("fonts/ms_sans_serif.woff2") format("woff2"),
       url("fonts/ms_sans_serif.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "W95FA";
  src: url("fonts/ms_sans_serif_bold.woff2") format("woff2"),
       url("fonts/ms_sans_serif_bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --face: #c0c0c0;
  --face-light: #dfdfdf;
  --hi: #ffffff;
  --shadow: #808080;
  --dark: #000000;
  --desktop: #008080;
  --titlebar-a: #000080;
  --titlebar-b: #1084d0;
  --titlebar-text: #ffffff;
  --link: #0000ee;
  --select-bg: #000080;
  --select-text: #ffffff;
  --mono: "Courier New", monospace;
}

* { box-sizing: border-box; }
img {
  max-width: 100%;
  height: auto;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 0 52px 0; /* room for the fixed taskbar */
  background: var(--desktop) url("images/bg.jpg") center center / cover no-repeat fixed;
  font-family: "W95FA", Tahoma, "MS Sans Serif", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dark);
}

a { color: var(--link); }
a:visited { color: #551a8b; }

/* -------------------- 3D bevel utilities -------------------- */

.bevel-out {
  border-top: 1px solid var(--hi);
  border-left: 1px solid var(--hi);
  border-right: 1px solid var(--dark);
  border-bottom: 1px solid var(--dark);
  box-shadow: inset 1px 1px 0 var(--face-light), inset -1px -1px 0 var(--shadow);
}

.bevel-in {
  border-top: 1px solid var(--shadow);
  border-left: 1px solid var(--shadow);
  border-right: 1px solid var(--hi);
  border-bottom: 1px solid var(--hi);
  box-shadow: inset 1px 1px 0 var(--dark), inset -1px -1px 0 var(--face-light);
}

/* -------------------------- layout --------------------------- */

.desktop {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.desktop-icon {
  position: fixed;
  top: 12px;
  left: 16px;
  width: 76px;
  padding: 4px 2px;
  background: transparent;
  border: 1px solid transparent;
  color: #fff;
  font: inherit;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
  cursor: pointer;
}

.desktop-icon img {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 3px;
  image-rendering: pixelated;
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
  background: var(--select-bg);
  border-color: #fff;
  outline: none;
}

.desktop-icon--game {
  top: 104px;
}

.hero-title {
  color: #fff;
  text-align: center;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  margin: 0 0 -6px;
}

.hero-title .name {
  display: block;
  font-size: 30px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.hero-title .role {
  display: block;
  font-size: 15px;
  margin-top: 6px;
  opacity: 0.92;
}

/* --------------------------- window --------------------------- */

.window {
  background: var(--face);
  padding: 2px;
}

.window-title {
  background: #060084;
  color: #fefefe;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  padding: 3px 3px 3px 6px;
  font-weight: bold;
  font-size: 13px;
}

.window-title .icon {
  width: 16px;
  height: 16px;
  flex: none;
  image-rendering: pixelated;
}

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

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

.window-controls button {
  width: 18px;
  height: 16px;
  flex: none;
  background: #c6c6c6;
  font-family: "W95FA", Tahoma, sans-serif;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  border-top: 1px solid #fefefe;
  border-left: 1px solid #fefefe;
  border-right: 1px solid #0a0a0a;
  border-bottom: 1px solid #0a0a0a;
}

.window-controls button:active {
  border-top: 1px solid #0a0a0a;
  border-left: 1px solid #0a0a0a;
  border-right: 1px solid #fefefe;
  border-bottom: 1px solid #fefefe;
}

.window-body {
  background: var(--face);
  border-top: 1px solid var(--shadow);
  border-left: 1px solid var(--shadow);
  border-right: 1px solid var(--hi);
  border-bottom: 1px solid var(--hi);
  padding: 16px 18px;
}

.window-body.is-collapsed { display: none; }

.window-body p { margin: 0 0 12px; }
.window-body p:last-child { margin-bottom: 0; }

.inset-panel {
  background: #fff;
  padding: 10px 12px;
}

/* --------------------------- about --------------------------- */

.about-grid {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about-photo {
  width: 96px;
  height: 96px;
  flex: none;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shadow);
  font-size: 11px;
  text-align: center;
  padding: 4px;
  object-fit: cover;
}

.about-text h2 {
  margin: 0 0 8px;
  font-size: 15px;
}

/* ------------------------- portfolio --------------------------- */

.show-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.show-item + .show-item {
  border-top: 1px solid var(--face-light);
}

.show-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  padding: 10px;
  margin: 0;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.show-header:hover,
.show-header:focus-visible {
  background: var(--select-bg);
  color: var(--select-text);
  outline: none;
}

.show-header:hover .show-meta,
.show-header:focus-visible .show-meta {
  color: #d8d8ff;
}

.show-icon {
  width: 32px;
  height: 32px;
  flex: none;
  image-rendering: pixelated;
}

.show-summary {
  flex: 1;
  min-width: 0;
}

.show-title {
  font-weight: bold;
  margin: 0 0 2px;
}

.show-meta {
  font-size: 12px;
  color: var(--shadow);
  margin: 0 0 4px;
}

.show-desc {
  margin: 0;
  font-size: 13px;
}

.show-caret {
  flex: none;
  font-size: 11px;
  margin-top: 3px;
  transition: transform 0.1s ease-out;
}

.show-header[aria-expanded="true"] .show-caret {
  transform: rotate(90deg);
}

/* -------------------------- production shots -------------------------- */

.show-photos {
  padding: 4px 10px 16px 54px;
}

.show-photos[hidden] {
  display: none;
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photo-thumb {
  display: block;
  width: 84px;
  height: 84px;
  background: #fff;
  border-top: 1px solid var(--shadow);
  border-left: 1px solid var(--shadow);
  border-right: 1px solid var(--hi);
  border-bottom: 1px solid var(--hi);
  padding: 2px;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-thumb.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shadow);
  font-size: 10px;
  text-align: center;
  cursor: default;
}

/* -------------------------- contact ----------------------------- */

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 10px;
}

.field-row dt {
  width: 84px;
  font-weight: bold;
}

.field-row dd {
  margin: 0;
  flex: 1;
}

/* --------------------------- buttons ----------------------------- */

.btn95 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--face);
  border-top: 1px solid var(--hi);
  border-left: 1px solid var(--hi);
  border-right: 1px solid var(--dark);
  border-bottom: 1px solid var(--dark);
  box-shadow: inset 1px 1px 0 var(--face-light), inset -1px -1px 0 var(--shadow);
  padding: 6px 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--dark);
  text-decoration: none;
  cursor: pointer;
}

.btn95:active {
  border-top: 1px solid var(--dark);
  border-left: 1px solid var(--dark);
  border-right: 1px solid var(--hi);
  border-bottom: 1px solid var(--hi);
  box-shadow: inset 1px 1px 0 var(--shadow);
  padding: 7px 13px 5px 15px;
}

.btn95:focus-visible {
  outline: 1px dotted var(--dark);
  outline-offset: -4px;
}

.btn95 img { width: 16px; height: 16px; }

/* --------------------------- taskbar ------------------------------ */

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  background: var(--face);
  border-top: 1px solid var(--hi);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  z-index: 10;
}

.start-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  background: var(--face);
  border-top: 1px solid var(--hi);
  border-left: 1px solid var(--hi);
  border-right: 1px solid var(--dark);
  border-bottom: 1px solid var(--dark);
  box-shadow: inset 1px 1px 0 var(--face-light), inset -1px -1px 0 var(--shadow);
  font-weight: bold;
  font-size: 13px;
  color: var(--dark);
  text-decoration: none;
  cursor: pointer;
}

.start-btn img { width: 18px; height: 18px; }

.taskbar-divider {
  width: 2px;
  height: 30px;
  border-left: 1px solid var(--shadow);
  border-right: 1px solid var(--hi);
  flex: none;
}

.taskbar-programs {
  display: flex;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
}

.task-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  background: var(--face);
  border-top: 1px solid var(--shadow);
  border-left: 1px solid var(--shadow);
  border-right: 1px solid var(--hi);
  border-bottom: 1px solid var(--hi);
  box-shadow: inset 1px 1px 0 var(--dark), inset -1px -1px 0 var(--face-light);
  font-size: 13px;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}

.task-btn img { width: 16px; height: 16px; }

.clock {
  flex: none;
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-top: 1px solid var(--shadow);
  border-left: 1px solid var(--shadow);
  border-right: 1px solid var(--hi);
  border-bottom: 1px solid var(--hi);
  font-size: 13px;
}

/* --------------------------- footer note ------------------------- */

.site-footer {
  text-align: center;
  color: #d8d8d8;
  font-size: 11px;
  padding: 0 16px 8px;
}

/* -------------------------- My Computer -------------------------- */

.explorer-window {
  position: fixed;
  z-index: 15;
  top: 96px;
  left: 50%;
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 160px);
  transform: translateX(-50%);
  background: var(--face);
  padding: 2px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.explorer-window .window-body {
  overflow: auto;
  max-height: calc(100vh - 210px);
  padding: 12px;
}

.explorer-window .window-title,
.game-window .window-title {
  cursor: move;
  user-select: none;
  touch-action: none;
}

.explorer-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0 10px;
}

.explorer-toolbar button {
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  background: var(--face);
  font: inherit;
  cursor: pointer;
}

.explorer-toolbar button:disabled {
  color: var(--shadow);
  cursor: default;
}

.explorer-path {
  flex: 1;
  min-width: 0;
  padding: 3px 6px;
  background: #fff;
  border-top: 1px solid var(--shadow);
  border-left: 1px solid var(--shadow);
  border-right: 1px solid var(--hi);
  border-bottom: 1px solid var(--hi);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explorer-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 8px;
}

.explorer-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 6px;
  background: transparent;
  border: 1px solid transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.explorer-item:hover,
.explorer-item:focus-visible {
  background: var(--select-bg);
  border-color: var(--hi);
  color: var(--select-text);
  outline: none;
}

.explorer-item img {
  width: 32px;
  height: 32px;
  flex: none;
  object-fit: cover;
  image-rendering: pixelated;
}

.explorer-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .desktop-icon { top: 8px; left: 8px; }
  .desktop-icon--game { top: 100px; }
  .explorer-window { top: 72px; }
}

/* -------------------------- Minesweeper -------------------------- */

.game-window {
  position: fixed;
  z-index: 16;
  top: 96px;
  left: 50%;
  width: min(350px, calc(100vw - 24px));
  transform: translateX(-50%);
  background: var(--face);
  padding: 2px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.game-window .window-body {
  padding: 10px;
}

.minefield-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  margin-bottom: 10px;
  border-top: 1px solid var(--shadow);
  border-left: 1px solid var(--shadow);
  border-right: 1px solid var(--hi);
  border-bottom: 1px solid var(--hi);
}

.mine-counter,
.mine-timer {
  min-width: 48px;
  padding: 2px 4px;
  background: #000;
  color: #f00;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1.1;
  text-align: center;
}

.mine-reset {
  width: 28px;
  height: 26px;
  padding: 0;
  background: var(--face);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.mine-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  aspect-ratio: 1;
  border-top: 2px solid var(--shadow);
  border-left: 2px solid var(--shadow);
  border-right: 2px solid var(--hi);
  border-bottom: 2px solid var(--hi);
}

.mine-cell {
  min-width: 0;
  padding: 0;
  background: var(--face);
  border-top: 2px solid var(--hi);
  border-left: 2px solid var(--hi);
  border-right: 2px solid var(--shadow);
  border-bottom: 2px solid var(--shadow);
  color: #000080;
  font: bold 15px/1 var(--mono);
  cursor: pointer;
}

.mine-cell.is-revealed {
  border: 1px solid var(--shadow);
  background: #bdbdbd;
  cursor: default;
}

.mine-cell.is-flagged { color: #f00; }
.mine-cell[data-number="1"] { color: #0000ff; }
.mine-cell[data-number="2"] { color: #008000; }
.mine-cell[data-number="3"] { color: #f00; }
.mine-cell[data-number="4"] { color: #000080; }
.mine-cell[data-number="5"],
.mine-cell[data-number="6"],
.mine-cell[data-number="7"],
.mine-cell[data-number="8"] { color: #800000; }

.mine-message {
  min-height: 1.5em;
  margin: 8px 0 0;
  text-align: center;
}

/* ----------------------------- misc ------------------------------- */

::selection {
  background: var(--select-bg);
  color: var(--select-text);
}

@media (max-width: 480px) {
  .about-grid { flex-direction: column; align-items: center; text-align: center; }
  .hero-title .name { font-size: 24px; }
  .task-btn { padding: 0 8px; font-size: 12px; }
}
