/* ==========================================================================
   winkyjames.com, Windows 98 desktop
   Palette and bevel geometry follow the real Win98 system metrics:
   raised surfaces light from the top-left, sunken ones from the bottom-right.
   ========================================================================== */

:root {
  --desktop: #008080;
  --surface: #c0c0c0;
  --surface-light: #dfdfdf;
  --white: #ffffff;
  --shadow: #808080;
  --black: #0a0a0a;
  --title-a1: #000080;
  --title-a2: #1084d0;
  --title-i1: #808080;
  --title-i2: #b5b5b5;
  --link: #0000ee;
  --visited: #551a8b;
  --font: "Pixelated MS Sans Serif", Tahoma, Verdana, "Segoe UI", sans-serif;
  --mono: "Lucida Console", "Courier New", monospace;

  /* Raised (buttons, windows) and sunken (fields, wells) bevels. */
  --raised: inset -1px -1px var(--black), inset 1px 1px var(--white),
            inset -2px -2px var(--shadow), inset 2px 2px var(--surface-light);
  --sunken: inset -1px -1px var(--white), inset 1px 1px var(--shadow),
            inset -2px -2px var(--surface-light), inset 2px 2px var(--black);
  --pressed: inset -1px -1px var(--white), inset 1px 1px var(--black),
             inset -2px -2px var(--surface-light), inset 2px 2px var(--shadow);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 24px 16px 60px;
  min-height: 100vh;
  background: var(--desktop);
  color: var(--black);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.55;
  -webkit-font-smoothing: none;
}

/* Window */

.window {
  max-width: 860px;
  margin: 0 auto 20px;
  background: var(--surface);
  box-shadow: var(--raised);
  padding: 3px;
}

.title-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 3px 3px 4px;
  background: linear-gradient(90deg, var(--title-a1), var(--title-a2));
  color: var(--white);
  font-weight: bold;
  letter-spacing: 0.2px;
  user-select: none;
}

.title-bar-text {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.title-bar-controls button {
  width: 17px;
  height: 15px;
  padding: 0;
  border: 0;
  background: var(--surface);
  box-shadow: var(--raised);
  font-family: var(--font);
  font-size: 10px;
  line-height: 1;
  color: var(--black);
  cursor: default;
}

.title-bar-controls button:active { box-shadow: var(--pressed); }

/* Menu bar: decorative chrome, so it is hidden from assistive tech. */
.menu-bar {
  display: flex;
  gap: 2px;
  padding: 2px 3px;
  font-size: 12px;
}

.menu-bar span { padding: 1px 6px; }
.menu-bar span:hover { background: var(--title-a1); color: var(--white); }
.menu-bar u { text-decoration: underline; }

.window-body { padding: 14px 16px 16px; }

/* Navigation */

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 16px;
  padding: 0 0 12px;
  list-style: none;
  border-bottom: 1px solid var(--shadow);
}

.nav a {
  display: block;
  min-width: 92px;
  padding: 5px 12px;
  background: var(--surface);
  box-shadow: var(--raised);
  color: var(--black);
  text-align: center;
  text-decoration: none;
}

.nav a:hover { text-decoration: underline; }
.nav a:active { box-shadow: var(--pressed); padding: 6px 11px 4px 13px; }
.nav a[aria-current="page"] { box-shadow: var(--pressed); font-weight: bold; }

/* Typography */

h1, h2, h3 { margin: 0 0 10px; line-height: 1.3; }
h1 { font-size: 20px; }
h2 { font-size: 15px; margin-top: 22px; }
h3 { font-size: 13px; margin-top: 16px; }
h2:first-child, h1:first-child { margin-top: 0; }

p { margin: 0 0 12px; }
a { color: var(--link); }
a:visited { color: var(--visited); }
a:focus-visible { outline: 1px dotted var(--black); outline-offset: 2px; }

hr {
  height: 2px;
  margin: 18px 0;
  border: 0;
  box-shadow: var(--sunken);
}

/* Header block */

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

.intro img {
  width: 96px;
  height: 96px;
  flex: none;
  padding: 2px;
  background: var(--surface);
  box-shadow: var(--sunken);
  image-rendering: pixelated;
}

.tagline { margin: -4px 0 10px; color: #404040; }

/* Field list (About / quick facts) */

.fields { margin: 0; }
.fields dt { float: left; clear: left; width: 96px; font-weight: bold; }
.fields dd { margin: 0 0 4px 104px; }
.fields::after { content: ""; display: block; clear: both; }

/* Project cards */

.projects { display: grid; gap: 12px; }

.project {
  padding: 10px 12px;
  background: var(--surface);
  box-shadow: var(--raised);
}

.project h3 { margin: 0 0 4px; }
.project p { margin: 0 0 8px; }

/* Callout inside a project card: highlighted, sunken well. */
.note {
  padding: 9px 11px;
  margin: 0 0 10px;
  background: #ffffe1;
  box-shadow: var(--sunken);
  font-size: 12px;
  line-height: 1.5;
}

.badges { display: flex; flex-wrap: wrap; gap: 6px; }

.badge {
  padding: 1px 6px;
  background: var(--surface);
  box-shadow: var(--sunken);
  font-size: 11px;
  font-family: var(--mono);
}

/* Sunken content well */

.well {
  padding: 10px 12px;
  margin: 0 0 12px;
  background: var(--white);
  box-shadow: var(--sunken);
}

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

/* Status bar */

.status-bar {
  display: flex;
  gap: 3px;
  padding: 3px;
  font-size: 11px;
}

.status-bar p {
  flex: 1;
  margin: 0;
  padding: 2px 6px;
  box-shadow: var(--sunken);
}

.status-bar p:last-child { flex: none; min-width: 130px; }

/* Taskbar */

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 2px 3px;
  background: var(--surface);
  box-shadow: inset 0 1px var(--white), inset 0 2px var(--surface-light);
}

.start {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 5px;
  background: var(--surface);
  box-shadow: var(--raised);
  color: var(--black);
  font-weight: bold;
  text-decoration: none;
}

.start:visited { color: var(--black); }
.start:active { box-shadow: var(--pressed); }
.start-logo {
  width: 16px;
  height: 16px;
  background: conic-gradient(#ff3b30 0 25%, #34c759 0 50%, #0a84ff 0 75%, #ffcc00 0);
  border-radius: 2px;
}

.tray {
  margin-left: auto;
  padding: 3px 10px;
  box-shadow: var(--sunken);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* Responsive */

@media (max-width: 620px) {
  body { padding: 12px 8px 56px; }
  .window-body { padding: 12px; }
  .menu-bar { display: none; }
  .intro { flex-direction: column; }
  .nav a { flex: 1; min-width: 0; }
  .fields dt { float: none; width: auto; }
  .fields dd { margin-left: 0; margin-bottom: 10px; }
  .status-bar p:first-child { flex: 1; }
  .status-bar p:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print: drop the desktop chrome, keep the content readable. */
@media print {
  body { background: #fff; padding: 0; }
  .taskbar, .nav, .title-bar-controls, .menu-bar { display: none; }
  .window { box-shadow: none; max-width: none; }
  .title-bar { background: none; color: #000; border-bottom: 2px solid #000; }
}
