/* ============================================================
   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 {
  min-height: 100%;
  background-color: var(--desktop);
  -webkit-text-size-adjust: 100%;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0 0 52px 0; /* room for the fixed taskbar */
  background: var(--desktop);
  font-family: "W95FA", Tahoma, "MS Sans Serif", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark);
}

html.has-background-image {
  background: var(--desktop) url("images/bg.jpg") center center / cover no-repeat fixed;
}

body.has-background-image {
  background: transparent;
}

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

.about-email,
.about-email:visited {
  color: inherit;
  text-decoration: none;
}

/* -------------------- 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: static;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.desktop-icon {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  z-index: 15;
  top: 12px;
  left: 16px;
  width: 76px;
  padding: 4px 2px;
  background: transparent;
  border: 1px solid transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  transition: left 0ms, top 0ms;
}

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

.desktop-icon.is-selected {
  background: transparent;
  border-color: transparent;
}

.desktop-icon.is-selected img {
  background: var(--select-bg);
}

.desktop-icon.is-selected span {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--select-bg), var(--select-bg)) padding-box,
    repeating-conic-gradient(#000 0 25%, #fff 0 50%) 0 0 / 4px 4px border-box;
}

.desktop-icon-drag-preview {
  opacity: .55;
  pointer-events: none;
}

.desktop-icon.is-desktop-dragging {
  z-index: 16;
  opacity: .8;
  cursor: grabbing;
}

.desktop-icon.is-drop-target {
  background: var(--select-bg);
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .7);
}

.desktop-image-file img {
  width: 42px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, .55);
  image-rendering: auto;
  object-fit: cover;
}

.desktop-image-file span {
  display: block;
  overflow: hidden;
  padding: 0 2px;
  background: rgba(0, 0, 0, .25);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recycle-bin-icon.is-flashing img {
  animation: recycle-bin-flash .36s steps(2, end) 3;
}

.recycle-bin-icon.is-exploding img,
.recycle-bin-icon.is-exploding span {
  animation: recycle-bin-vanish .45s ease-in forwards;
}

.recycle-bin-icon.is-exploding::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  background: radial-gradient(circle, #fff 0 8%, #ffe34a 9% 38%, #f44724 39% 68%, transparent 69%);
  clip-path: polygon(50% 0, 61% 29%, 84% 8%, 77% 39%, 100% 50%, 76% 61%, 92% 87%, 62% 76%, 50% 100%, 39% 74%, 11% 91%, 24% 62%, 0 50%, 27% 39%, 10% 14%, 40% 27%);
  content: "";
  pointer-events: none;
  animation: recycle-bin-burst .55s ease-out forwards;
}

@keyframes recycle-bin-flash {
  0%, 49% { filter: none; transform: scale(1); }
  50%, 100% { filter: sepia(1) saturate(8) hue-rotate(315deg); transform: scale(1.18); }
}

@keyframes recycle-bin-vanish {
  to { opacity: 0; transform: scale(.12) rotate(24deg); }
}

@keyframes recycle-bin-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.08); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.8) rotate(24deg); }
}

.recycle-bin-icon {
  z-index: 17;
}

.recycle-bin-icon,
.stuff-icon { left: 108px; }

.minesweeper-icon,
.stuff-icon { top: 104px; }

body.recycled::before {
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: #000;
  content: "";
}

.desktop-system-window {
  position: fixed;
  z-index: 16;
  top: 96px;
  left: 50%;
  width: min(360px, calc(100vw - 24px));
  transform: translateX(-50%);
}

.desktop-system-window .window-body {
  min-height: 110px;
  padding: 20px;
  background: #fff;
}

.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;
  border-radius: 4px;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, .24);
}

.window-title {
  background: var(--titlebar-a);
  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 {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 16px;
  flex: none;
  background: #c6c6c6;
  color: #000;
  border-radius: 0;
  font-family: "W95FA", Tahoma, sans-serif;
  font-size: 12px;
  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: 112px;
  height: 112px;
  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: grid;
  grid-template-columns: 32px minmax(0, 1fr) 30px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  margin: 0;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease;
}

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

.show-header:active {
  background: var(--select-bg);
  color: var(--select-text);
}

.show-header:hover .show-meta,
.show-header:focus-visible .show-meta,
.show-header:active .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: 13px;
  color: var(--shadow);
  margin: 0;
}

.show-caret {
  display: grid;
  grid-column: 3;
  grid-row: 1;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  margin-top: 1px;
  border-top: 1px solid var(--hi);
  border-left: 1px solid var(--hi);
  border-right: 1px solid var(--dark);
  border-bottom: 1px solid var(--dark);
  background: var(--face);
  box-shadow: inset 1px 1px 0 var(--face-light), inset -1px -1px 0 var(--shadow);
  color: var(--select-bg);
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.1s ease-out;
}

.show-header:active .show-caret {
  border-top-color: var(--dark);
  border-left-color: var(--dark);
  border-right-color: var(--hi);
  border-bottom-color: var(--hi);
  box-shadow: inset 1px 1px 0 var(--shadow);
}

.show-preview {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.show-preview img {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: cover;
  border: 1px solid var(--shadow);
  padding: 2px;
  background: #fff;
}

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

.show-photos {
  display: none;
}

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

.photo-thumb {
  display: block;
  width: 128px;
  height: 96px;
  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;
}

.document-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.paint-image-button {
  display: block;
  width: 100%;
  height: 150px;
  padding: 3px;
  background: #eee;
  border: 1px solid #999;
  cursor: pointer;
}

.paint-image-button:hover,
.paint-image-button:focus-visible { outline: 2px solid var(--select-bg); }

.paint-image-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paint-window {
  position: fixed;
  z-index: 21;
  top: 6vh;
  left: 50%;
  display: flex;
  flex-direction: column;
  width: min(900px, calc(100vw - 24px));
  height: min(740px, calc(100vh - 84px));
  transform: translateX(-50%);
  padding: 2px;
  overflow: hidden;
  background: var(--face);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .35);
}

.paint-window[hidden] { display: none; }
.paint-window .window-title {
  flex: none;
  cursor: move;
  user-select: none;
  touch-action: none;
}

.paint-menu {
  height: 26px;
  flex: none;
  padding: 3px 8px;
  background: var(--face);
  border-bottom: 1px solid var(--shadow);
  color: #111;
  font-size: 12px;
  white-space: nowrap;
}

.paint-workspace {
  display: flex;
  flex: 1;
  min-height: 0;
  gap: 4px;
  padding: 4px;
  background: var(--face);
}

.paint-toolbox {
  display: flex;
  flex-direction: column;
  flex: none;
  width: 78px;
  padding: 2px;
  border-top: 1px solid var(--hi);
  border-left: 1px solid var(--hi);
  border-right: 1px solid var(--shadow);
  border-bottom: 1px solid var(--shadow);
  background: var(--face);
}

.paint-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.paint-tool {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid;
  border-color: var(--hi) var(--dark) var(--dark) var(--hi);
  background: var(--face);
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.paint-tool.is-active {
  border-color: var(--shadow) var(--hi) var(--hi) var(--shadow);
  box-shadow: inset 1px 1px 0 var(--shadow);
  background: #b8b8b8;
}

.paint-brush-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
  padding: 5px 2px 2px;
  border-top: 1px solid var(--shadow);
  color: #111;
  font-size: 11px;
}

.paint-zoom-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 8px;
  padding: 5px 2px 2px;
  border-top: 1px solid var(--shadow);
  color: #111;
  font-size: 11px;
}

.paint-zoom,
.paint-size { width: 100%; }
.paint-zoom-value,
.paint-size-value { text-align: center; }

.paint-canvas-scroll {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #808080;
  border-top: 1px solid var(--shadow);
  border-left: 1px solid var(--shadow);
  border-right: 1px solid var(--hi);
  border-bottom: 1px solid var(--hi);
  overscroll-behavior: contain;
}

.paint-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: 0;
  background: #fff;
  image-rendering: auto;
  touch-action: none;
  cursor: crosshair;
}

.paint-error {
  position: sticky;
  bottom: 0;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 12px;
  border: 1px solid #900;
  background: #fff;
  color: #900;
  text-align: center;
}

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

.paint-palette-bar {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 64px;
  gap: 8px;
  padding: 5px 7px;
  border-top: 1px solid var(--hi);
  background: var(--face);
}

.paint-color-indicator {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--shadow);
  border-left: 2px solid var(--shadow);
  border-right: 2px solid var(--hi);
  border-bottom: 2px solid var(--hi);
  background: #fff;
}

.paint-color-swatch {
  position: absolute;
  inset: 5px;
  border: 1px solid #111;
}

.paint-palette {
  display: grid;
  grid-template-columns: repeat(14, 18px);
  grid-template-rows: repeat(2, 18px);
  gap: 2px;
}

.paint-palette-color {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid;
  border-color: var(--hi) var(--dark) var(--dark) var(--hi);
  cursor: pointer;
}

.paint-palette-color:active {
  border-color: var(--dark) var(--hi) var(--hi) var(--dark);
}

.paint-palette-color.is-active {
  position: relative;
  z-index: 1;
  outline: 2px solid #111;
  outline-offset: 1px;
}

.paint-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
}

.paint-reset,
.paint-save {
  min-width: 58px;
  padding: 2px 7px;
  border: 1px solid;
  border-color: var(--hi) var(--dark) var(--dark) var(--hi);
  background: var(--face);
  color: #000;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.paint-reset:active,
.paint-save:active {
  border-color: var(--dark) var(--hi) var(--hi) var(--dark);
}

.paint-status {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 26px;
  gap: 5px;
  padding: 2px 4px;
  background: var(--face);
  color: #111;
  font-size: 11px;
}

.paint-status-message,
.paint-image-size {
  min-height: 21px;
  padding: 1px 5px;
  border-top: 1px solid var(--shadow);
  border-left: 1px solid var(--shadow);
  border-right: 1px solid var(--hi);
  border-bottom: 1px solid var(--hi);
}

.paint-status-message { flex: 1; }
.paint-image-size { flex: none; }

.document-gallery button.paint-image-button {
  appearance: none;
  border-radius: 0;
  font: inherit;
}

.paint-reset:focus-visible,
.paint-save:focus-visible,
.paint-tool:focus-visible,
.paint-palette-color:focus-visible {
  outline: 1px dotted #000;
  outline-offset: 1px;
}

.paint-reset:hover,
.paint-save:hover,
.paint-tool:hover {
  background: #d8d8d8;
}

.paint-canvas-scroll {
  -webkit-overflow-scrolling: touch;
}

/* ---------------------- production document ---------------------- */

.acrobat-window {
  position: fixed;
  z-index: 23;
  top: 5vh;
  left: 50%;
  display: flex;
  flex-direction: column;
  width: min(960px, calc(100vw - 24px));
  height: min(760px, calc(100vh - 72px));
  transform: translateX(-50%);
  padding: 2px;
  overflow: hidden;
  background: var(--face);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .35);
}

.acrobat-window[hidden] { display: none; }
.acrobat-titlebar { flex: none; cursor: move; touch-action: none; user-select: none; }
.acrobat-titlebar .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.acrobat-menu {
  flex: none;
  padding: 4px 9px;
  border-bottom: 1px solid var(--shadow);
  background: var(--face);
  color: #111;
  font-size: 12px;
  white-space: nowrap;
}

.acrobat-toolbar {
  display: flex;
  align-items: center;
  flex: none;
  gap: 5px;
  min-height: 36px;
  padding: 4px 6px;
  border-bottom: 1px solid var(--shadow);
  background: var(--face);
}

.acrobat-toolbar button {
  min-width: 28px;
  min-height: 25px;
  padding: 2px 7px;
  border: 1px solid;
  border-color: var(--hi) var(--dark) var(--dark) var(--hi);
  background: var(--face);
  color: #111;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.acrobat-toolbar button:active {
  border-color: var(--dark) var(--hi) var(--hi) var(--dark);
}

.acrobat-zoom-value { min-width: 44px; text-align: center; font-size: 12px; }
.acrobat-divider { width: 1px; height: 22px; margin: 0 3px; background: var(--shadow); }

.acrobat-pdf-viewport {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #707070;
}

.acrobat-pdf {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.acrobat-status {
  display: flex;
  justify-content: space-between;
  flex: none;
  min-height: 22px;
  padding: 2px 7px;
  border-top: 1px solid var(--hi);
  color: #333;
  font-size: 11px;
}

.production-window {
  position: fixed;
  z-index: 18;
  top: 7vh;
  left: 50%;
  width: min(880px, calc(100vw - 24px));
  height: min(780px, calc(100vh - 72px));
  transform: translateX(-50%);
  background: var(--face);
  padding: 2px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .35);
}

.production-titlebar {
  cursor: move;
  user-select: none;
  touch-action: none;
}

.production-menu,
.production-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--face);
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
}

.production-menu {
  padding: 5px 10px 4px;
  font-size: 12px;
  border-bottom: 1px solid var(--shadow);
}

.production-toolbar {
  gap: 8px;
  padding: 4px 10px;
  border-bottom: 1px solid var(--shadow);
  font-size: 11px;
}

.production-toolbar span,
.production-toolbar b,
.production-toolbar em,
.production-toolbar u {
  min-width: 24px;
  text-align: center;
  font-style: normal;
  font-weight: normal;
  text-decoration: none;
}

.production-toolbar i {
  width: 1px;
  height: 18px;
  background: var(--shadow);
  border-right: 1px solid var(--hi);
}

.production-scroll {
  height: calc(100% - 82px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 22px;
  background: #808080;
  border-top: 1px solid var(--hi);
}

.word-page {
  max-width: 740px;
  min-height: 100%;
  margin: 0 auto;
  padding: 56px 64px 72px;
  background: #fff;
  color: #111;
  font-family: "Times New Roman", Times, serif;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, .35);
}

.word-page h1 {
  max-width: none;
  margin: 0 0 10px;
  font-family: inherit;
  font-size: 30px;
  font-weight: bold;
  letter-spacing: 0;
  line-height: 1.15;
}

.word-page h2 {
  margin: 34px 0 12px;
  font-family: inherit;
  font-size: 19px;
  font-weight: bold;
  letter-spacing: 0;
  line-height: 1.2;
}

.word-meta {
  margin: 0;
  color: #555;
  font-family: inherit;
  font-size: 12px;
}

.word-page hr {
  margin: 28px 0 0;
  border: 0;
  border-top: 1px solid #bbb;
}

.show-extra {
  margin: 28px 0 0;
}

.show-extra img {
  display: block;
  max-width: 100%;
  height: auto;
}

.show-extra figcaption {
  margin-top: 6px;
  font-size: 14px;
  font-style: italic;
}

.recipe-content {
  font-size: 16px;
  line-height: 1.55;
}

.recipe-content h2,
.recipe-content h3,
.recipe-content h4 {
  margin: 28px 0 10px;
  font-family: inherit;
  letter-spacing: 0;
}

.recipe-content p { margin: 12px 0; }
.recipe-content ul,
.recipe-content ol { padding-left: 28px; }
.recipe-content li { margin: 5px 0; }

.recipe-content table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-family: inherit;
  font-size: 14px;
}

.recipe-content th,
.recipe-content td {
  padding: 6px 8px;
  border: 1px solid #999;
  text-align: left;
}

.recipe-content th { background: #e5e5e5; }

/* -------------------------- 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: 12px;
  padding: 0 16px 8px;
}

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

.stuff-window {
  position: fixed;
  z-index: 16;
  top: 7vh;
  left: max(16px, calc(50% - 360px));
  display: flex;
  flex-direction: column;
  width: min(720px, calc(100vw - 32px));
  height: min(480px, calc(100vh - 88px));
  min-height: 260px;
  background: var(--face);
  padding: 2px;
  border: 1px solid;
  border-color: var(--hi) var(--dark) var(--dark) var(--hi);
  box-shadow: inset 1px 1px 0 var(--face-light), 3px 3px 0 rgba(0, 0, 0, .3);
  font-size: 12px;
}

.stuff-window .window-title {
  cursor: move;
  user-select: none;
  touch-action: none;
}

.stuff-menu {
  display: flex;
  align-items: center;
  gap: 0;
  height: 22px;
  padding: 0 5px;
  color: #111;
  border-bottom: 1px solid var(--shadow);
}

.stuff-menu span {
  padding: 0 7px;
  line-height: 20px;
  cursor: default;
}

.stuff-menu span:hover {
  background: var(--select-bg);
  color: #fff;
}

.stuff-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 31px;
  padding: 2px 4px;
  background: #c0c0c0;
  border-top: 1px solid var(--hi);
  border-bottom: 1px solid var(--shadow);
}

.stuff-nav-button {
  width: 27px;
  height: 25px;
  padding: 0;
  background: #c0c0c0;
  color: var(--dark);
  font: bold 14px/1 Arial, sans-serif;
  border: 1px solid;
  border-color: var(--hi) var(--shadow) var(--shadow) var(--hi);
  cursor: pointer;
}

.stuff-nav-button:active,
.stuff-tool-button:active {
  border-color: var(--shadow) var(--hi) var(--hi) var(--shadow);
}

.stuff-toolbar-divider {
  width: 2px;
  height: 24px;
  margin: 0 3px;
  border-left: 1px solid var(--shadow);
  border-right: 1px solid var(--hi);
}

.stuff-tool-button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 25px;
  padding: 0;
  background: #c0c0c0;
  border: 1px solid;
  border-color: var(--hi) var(--shadow) var(--shadow) var(--hi);
  color: #111;
  font: 16px/1 Arial, sans-serif;
  cursor: default;
}

.stuff-address-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 31px;
  min-width: 0;
  padding: 3px 5px;
  background: #c0c0c0;
  border-bottom: 1px solid var(--shadow);
}

.stuff-address-wrap span {
  flex: none;
}

.stuff-address {
  flex: 1;
  min-width: 0;
  height: 22px;
  padding: 2px 5px;
  border: 1px solid;
  border-color: var(--shadow) var(--hi) var(--hi) var(--shadow);
  background: #fff;
  color: #111;
  font: inherit;
}

.stuff-address-menu {
  display: grid;
  flex: none;
  place-items: center;
  width: 23px;
  height: 22px;
  padding: 0;
  background: #c0c0c0;
  border: 1px solid;
  border-color: var(--hi) var(--shadow) var(--shadow) var(--hi);
  color: #111;
  font-size: 10px;
}

.stuff-body {
  display: flex;
  flex: 1;
  min-height: 0;
  background: #fff;
  border: 1px solid;
  border-color: var(--shadow) var(--hi) var(--hi) var(--shadow);
}

.stuff-sidebar {
  width: 190px;
  flex: none;
  overflow: auto;
  padding: 0 0 6px;
  background: #fff;
  border-right: 2px groove #ddd;
}

.stuff-pane-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 21px;
  padding: 2px 6px;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  color: #111;
  font-weight: bold;
  line-height: 17px;
}

.stuff-sidebar-tree {
  position: relative;
  padding: 6px 4px;
}

.stuff-sidebar-item {
  position: relative;
  display: flex;
  align-items: center;
  width: calc(100% - 4px);
  min-height: 22px;
  margin-left: 4px;
  padding: 1px 3px 1px 24px;
  overflow: hidden;
  background: transparent;
  border: 1px solid transparent;
  color: #111;
  font: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.stuff-sidebar-item::before {
  position: absolute;
  left: 5px;
  width: 15px;
  height: 15px;
  background: url("images/icons/folder.svg") center / contain no-repeat;
  content: "";
}

.stuff-sidebar-root::before {
  left: 18px;
  background-image: url("images/icons/w95_16.ico");
}

.stuff-sidebar-root { padding-left: 38px; }

.stuff-sidebar-root::after,
.stuff-sidebar-desktop::after,
.stuff-sidebar-nested::after,
.stuff-sidebar-pictures::after {
  position: absolute;
  left: 1px;
  width: 9px;
  height: 9px;
  background: #fff;
  border: 1px solid #777;
  color: #111;
  content: "-";
  font: 10px/7px Arial, sans-serif;
  text-align: center;
}

.stuff-sidebar-desktop::after,
.stuff-sidebar-nested::after,
.stuff-sidebar-pictures::after { left: -13px; }

.stuff-sidebar-desktop,
.stuff-sidebar-pictures {
  margin-left: 21px;
  width: calc(100% - 21px);
}

.stuff-sidebar-nested,
.stuff-sidebar-production {
  margin-left: 42px;
  width: calc(100% - 42px);
}

.stuff-sidebar-recipe-category {
  margin-left: 63px;
  width: calc(100% - 63px);
}

.stuff-sidebar-item.is-active {
  background: #000080;
  border-color: #000080;
  color: #fff;
}

.stuff-sidebar-item.is-drop-target {
  background: #dbe7ff;
  outline: 1px dashed #000080;
  outline-offset: -2px;
  color: #111;
}

.stuff-sidebar-item:hover:not(.is-active),
.stuff-sidebar-item:focus-visible:not(.is-active) {
  background: #e5e5e5;
  outline: 1px dotted #111;
}

.stuff-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  background: #fff;
}

.stuff-columns {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 60px 112px 126px;
  flex: none;
  min-width: 420px;
  height: 21px;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  color: #111;
  line-height: 19px;
}

.stuff-columns span {
  overflow: hidden;
  padding: 0 5px;
  border-right: 1px solid #808080;
  white-space: nowrap;
}

.stuff-columns span:not(:first-child) {
  border-left: 1px solid #fff;
}

.stuff-items {
  flex: 1;
  min-width: 420px;
  overflow: auto;
  padding: 2px 0;
}

.stuff-status {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-height: 21px;
  margin-top: 2px;
  padding: 1px 3px;
  background: #c0c0c0;
  border-top: 1px solid var(--hi);
  color: #333;
  font-size: 11px;
}

.stuff-status > span {
  min-width: 120px;
  padding: 0 5px;
  border: 1px solid;
  border-color: var(--shadow) var(--hi) var(--hi) var(--shadow);
}

.stuff-item {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 60px 112px 126px;
  align-items: center;
  width: 100%;
  min-width: 420px;
  min-height: 21px;
  padding: 0 0;
  background: #fff;
  color: #111;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border: 0;
}

button.stuff-item {
  appearance: none;
  border-radius: 0;
}

.stuff-item:nth-child(even) {
  background: #f8f8f8;
}

.stuff-item:hover {
  background: #e5e5e5;
}

.stuff-item.is-selected,
.stuff-item.is-selected:hover {
  background: #000080;
  color: #fff;
}

.stuff-item:focus-visible {
  outline: 1px dotted #111;
  outline-offset: -2px;
}

.stuff-folder.is-drop-target {
  background: #dbe7ff !important;
  outline: 1px dashed #000080;
  outline-offset: -2px;
  color: #111 !important;
}

.stuff-item.is-drag-source { opacity: .45; }

.stuff-drag-preview {
  position: fixed;
  z-index: 40;
  max-width: calc(100vw - 24px);
  padding: 6px 10px;
  border: 1px solid #000080;
  background: #fff;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .25);
  color: #111;
  font-size: 13px;
  pointer-events: none;
}

.stuff-name {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 1px 5px;
}

.stuff-drag-handle {
  flex: none;
  width: 10px;
  height: 16px;
  margin-right: 2px;
  background: radial-gradient(circle, #666 1px, transparent 1.5px) 0 0 / 5px 5px;
  cursor: grab;
  touch-action: none;
}

.stuff-drag-handle:active { cursor: grabbing; }

.stuff-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stuff-size,
.stuff-type,
.stuff-modified {
  overflow: hidden;
  padding: 1px 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stuff-symbol {
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
}

.stuff-recipe-icon {
  width: 16px;
  height: 16px;
  image-rendering: auto;
}

.jellyfin-logo { object-fit: contain; }
.tiger-symbol { font-size: 30px; }
.music-symbol { font-size: 38px; }

@media (max-width: 480px) {
  body {
    font-size: 15px;
    background: transparent;
  }
  html.has-background-image {
    background-attachment: scroll;
    background-position: center top;
    background-size: auto 100vh;
    background-size: auto 100dvh;
  }
  .desktop { padding-top: 106px; }
  .desktop-icon {
    top: 8px;
    width: 25%;
  }
  .desktop-image-file { width: 76px; }
  .my-computer-icon { left: 0; }
  .recycle-bin-icon { left: 25%; }
  .minesweeper-icon { left: 50%; }
  .stuff-icon { left: 75%; }
  .stuff-window {
    top: 88px;
    left: 6px;
    width: calc(100vw - 12px);
    height: calc(100dvh - 152px);
    min-height: 230px;
  }
  .stuff-sidebar { width: 118px; }
  .stuff-sidebar-item { padding-right: 1px; }
  .stuff-sidebar-production,
  .stuff-sidebar-nested { margin-left: 32px; width: calc(100% - 32px); }
  .stuff-sidebar-recipe-category { margin-left: 44px; width: calc(100% - 44px); }
  .stuff-sidebar-desktop,
  .stuff-sidebar-pictures { margin-left: 16px; width: calc(100% - 16px); }
  .stuff-columns,
  .stuff-item {
    grid-template-columns: minmax(105px, 1fr) 48px 96px;
  }
  .stuff-item { min-height: 30px; }
  .stuff-drag-handle { width: 20px; height: 26px; }
  .stuff-columns,
  .stuff-items,
  .stuff-item { min-width: 249px; }
  .stuff-columns span:last-child { display: none; }
  .stuff-modified { display: none; }
  .show-meta { font-size: 13px; }
  .show-header { gap: 8px; }
  .show-preview { gap: 6px; }
  .show-preview img { height: 76px; }
  .window-controls button { font-size: 12px; }
  .production-window {
    top: 8px;
    width: calc(100vw - 12px);
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
  }
  .acrobat-window {
    inset: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    width: 100vw;
    height: auto;
    transform: none;
    padding: 2px 0;
  }
  .acrobat-menu,
  .acrobat-status { display: none; }
  .paint-window {
    top: 8px;
    width: calc(100vw - 12px);
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
  }
  .production-menu { gap: 8px; font-size: 10px; }
  .acrobat-menu { overflow: hidden; font-size: 10px; }
  .acrobat-toolbar { gap: 3px; padding: 3px; }
  .acrobat-toolbar button { padding: 2px 4px; font-size: 10px; }
  .production-toolbar { gap: 4px; }
  .production-scroll { padding: 10px; }
  .paint-workspace { gap: 3px; padding: 3px; }
  .paint-toolbox { width: 70px; }
  .paint-palette-bar { gap: 5px; padding: 4px; }
  .paint-palette { grid-template-columns: repeat(7, 16px); grid-template-rows: repeat(4, 16px); gap: 1px; }
  .paint-palette-color { width: 16px; height: 16px; }
  .paint-color-indicator { width: 30px; height: 30px; }
  .paint-actions { gap: 2px; }
  .paint-reset, .paint-save { min-width: 46px; padding: 2px 4px; }
  .paint-canvas-scroll { overflow: auto; }
  .paint-status { font-size: 10px; }
  .paint-image-size { display: none; }
  .word-page { padding: 28px 18px 40px; }
  .word-page h1 { font-size: 24px; }
  .document-gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .document-gallery .paint-image-button { height: 120px; }
}

/* -------------------------- 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-mode-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 8px;
  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-mode {
  min-height: 30px;
  padding: 4px 8px;
  background: var(--face);
  color: #000;
  font: 12px var(--mono);
  cursor: pointer;
}

.mine-mode + .mine-mode { border-left: 1px solid var(--shadow); }
.mine-mode.is-active { background: #bdbdbd; box-shadow: inset 1px 1px var(--shadow); }

.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: 13px; }
}

@media (min-width: 900px) {
  body { font-size: 16px; }
}
