/* Reading text stays smooth; the window chrome uses the original 98.css font. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, .window {
  font-family: "Source Sans 3", Tahoma, Verdana, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: auto;
}
body { margin: 0; padding: 24px 24px 76px; background: #008080; }
a { overflow-wrap: anywhere; }
p { margin: 0 0 12px; }
h1, h2, h3, h4 { margin: 0; }
h3 { color: #000080; font-size: 20px; line-height: 1.35; }
h4 { font-size: 16px; margin: 16px 0 4px; }
:where(a, summary):focus-visible { outline: 2px dotted #000080; outline-offset: 3px; }
section { scroll-margin-top: 12px; }
section:focus { outline: none; }
.desktop { width: min(1120px, 100%); margin-inline: auto; }
.title-bar { min-height: 28px; }
.title-bar-text, .button-link, .section-menu > summary, .taskbar-status, .tag, ul.tree-view, .status-bar-field {
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.5;
  -webkit-font-smoothing: none;
}
.title-bar-text { margin: 0; padding: 2px 4px; }
.app-window > .window-body { margin: 12px; }
.layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start; }
.sidebar { position: sticky; top: 12px; }
.sidebar .tree-view { margin: 0; }
.tree-view a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 4px; }
.tree-view summary { padding-block: 10px; }
.sidebar .tree-view a { min-height: 26px; padding-block: 3px; }
.sidebar .tree-view summary { padding-block: 4px; }
.mobile-navigation { display: none; }
.content { min-width: 0; }
.content > * + * { margin-top: 20px; }
.section-window > .window-body { margin: 8px; padding: 12px; }
.hero { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px 20px; background: #fff; align-items: center; }
.profile-photo { width: 112px; height: 112px; object-fit: cover; }
.hero h1 { font-size: 32px; line-height: 1.2; margin-bottom: 8px; }
.role { margin: 0; font-weight: bold; color: #000080; }
.hero-introduction { grid-column: 1 / -1; }
.hero-copy { max-width: none; }
.availability { color: #333; }
.link-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.button-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 96px; min-height: 44px; padding: 10px 14px;
  color: #222; text-decoration: none; background: #c0c0c0;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff,
    inset -2px -2px #808080, inset 2px 2px #dfdfdf;
}
.button-link:active { box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #fff; }
.primary-action { outline: 1px solid #000; outline-offset: 1px; font-weight: bold; }
.primary-action:focus-visible { outline: 2px dotted #000080; outline-offset: 3px; }
.project-grid, .timeline, .education-list { display: grid; gap: 14px; }
.project-card { padding: 18px; overflow: visible; min-width: 0; }
.project-card.featured { background: #ffffe1; border-left: 4px solid #000080; }
.project-card h3 { margin: 12px 0; }
.project-card p { max-width: 68ch; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 7px; color: #fff; background: #000080; }
.tag-evaluation { background: #007070; }
.tag-systems { background: #5b246e; }
.tag-group { background: #555; }
.project-details { margin-top: 4px; border-top: 1px solid #aaa; }
.project-details > summary {
  min-height: 44px; padding: 10px 4px; cursor: pointer; color: #000080; font-weight: bold;
}
.project-details[open] > summary { border-bottom: 1px solid #aaa; }
.detail-body { padding-top: 12px; }
.detail-body > :first-child { margin-top: 0; }
.detail-body > :last-child { margin-bottom: 0; }
.pipeline-viewer { margin-top: 20px; }
.pipeline-viewer > h4 { margin-bottom: 8px; }
.pipeline-viewer menu[role="tablist"] { margin-bottom: -2px; }
.pipeline-viewer menu[role="tablist"] > li > a {
  min-height: 36px;
  margin: 4px 8px;
  display: inline-flex;
  align-items: center;
}
.pipeline-panel > .window-body { margin: 12px; }
.pipeline-summary { max-width: none !important; }
.pipeline-image-link { display: block; margin-top: 12px; padding: 8px; background: #fff; box-shadow: var(--border-field); }
.pipeline-image-link img { display: block; width: 100%; height: auto; }
.pipeline-full-link { display: none; min-height: 44px; align-items: center; margin-top: 8px; }
.pipeline-mobile-flow { display: none; }
.focus-grid, .skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
fieldset { min-width: 0; margin: 0; background: #fff; }
fieldset p { margin: 0; }
legend { font-family: inherit; font-size: 16px; font-weight: bold; color: #000080; -webkit-font-smoothing: auto; }
.skill-list { margin: 0; padding-left: 20px; }
.skill-note { margin: 0 20px 16px; }
.timeline-item { padding: 18px; background: #fff; }
.timeline-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.timeline-heading p { margin: 0; }
.timeline-item ul { margin: 10px 0 0; padding-left: 20px; max-width: 68ch; }
.timeline-item li + li { margin-top: 6px; }
.muted { color: #444; }
.case-study { margin-top: 14px; padding: 12px; background: #ffffe1; border-left: 3px solid #007070; }
.case-study p { margin: 4px 0 0; }
.education-entry { padding: 16px; overflow: visible; }
.education-entry > p { margin-top: 8px; }
.education-entry > :last-child { margin-bottom: 0; }
.thesis-title { color: #444; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; }
.contact-grid { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; align-items: center; }
.contact-grid p { margin: 0; }
.contact-grid a { display: inline-flex; align-items: center; min-height: 44px; }
.status-bar-field { padding: 6px; }
.taskbar { position: fixed; inset: auto 0 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px; background: #c0c0c0; box-shadow: inset 0 1px #fff; }
.start-button { min-width: auto; }
.taskbar-status { padding: 6px 9px; text-align: right; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .mobile-navigation { display: block; margin: 8px 12px 0; }
  .section-menu > summary { min-height: 44px; padding: 12px; cursor: pointer; }
  .section-menu .tree-view { margin: 0; }
  .section-menu .tree-view a { width: 100%; }
}
@media (max-width: 600px) {
  body { padding: 8px 8px 72px; }
  .app-window > .window-body { margin: 6px; }
  .mobile-navigation { margin: 4px 6px; }
  .section-window > .window-body { margin: 4px; padding: 10px; }
  .hero { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .profile-photo { width: 64px; height: 64px; }
  .hero h1 { font-size: 28px; }
  .role { font-size: 15px; }
  .focus-grid, .skill-grid { grid-template-columns: minmax(0, 1fr); }
  .project-card, .timeline-item, .education-entry { padding: 12px; }
  .project-grid { gap: 12px; }
  .link-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .button-link { min-width: 0; }
  .timeline-heading { display: block; }
  .timeline-heading .muted { margin-top: 4px; }
  .skill-note { margin-inline: 14px; }
  .taskbar-status { max-width: 55%; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact-grid p + strong { margin-top: 8px; }
  .pipeline-viewer menu[role="tablist"] { padding-left: 0; }
  .pipeline-viewer menu[role="tablist"] > li { flex: 1; text-align: center; }
  .pipeline-viewer menu[role="tablist"] > li > a { justify-content: center; margin-inline: 4px; }
  .pipeline-panel > .window-body { margin: 8px; }
  .pipeline-image-link { display: none; }
  .pipeline-full-link { display: inline-flex; }
  .pipeline-mobile-flow {
    display: grid;
    justify-items: center;
    gap: 4px;
    margin: 12px 0 4px;
    padding: 10px;
    text-align: center;
    background: #fff;
    box-shadow: var(--border-field);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
