@font-face {
  font-family: "Win95";
  src: url("/fonts/win95.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --shell-bg: #008080;
  --shell-panel: #c0c0c0;
  --shell-border-light: #ffffff;
  --shell-border-dark: #3a3a3a;
  --shell-title: #000080;
  --shell-title-muted: #6b6b6b;
  --shell-text: #111111;
  --shell-link: #000080;
  --shell-link-hover: #9b1c45;
  --shell-focus: #111111;
  --shell-grid: rgba(255, 255, 255, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Win95", "MS Sans Serif", "Trebuchet MS", sans-serif;
  color: var(--shell-text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(90deg, var(--shell-grid) 1px, transparent 1px),
    linear-gradient(var(--shell-grid) 1px, transparent 1px),
    var(--shell-bg);
  background-size: auto, 28px 28px, 28px 28px, auto;
}

a {
  color: var(--shell-link);
}

a:hover {
  color: var(--shell-link-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--shell-focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: #ffffcc;
  color: #111;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.desktop-shell {
  min-height: 100vh;
}

#desktop-root {
  position: relative;
  min-height: 100vh;
}

.loading-screen {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #ffffff;
}

.loader-spinner {
  width: 56px;
  height: 56px;
  border: 6px solid rgba(255, 255, 255, 0.55);
  border-top-color: #000080;
  border-radius: 50%;
  animation: shell-spin 0.9s linear infinite;
}

.portfolio-shell {
  padding: 1.5rem;
}

.shell-window {
  max-width: 1100px;
  margin: 0 auto 3rem;
  background: var(--shell-panel);
  border-top: 2px solid var(--shell-border-light);
  border-left: 2px solid var(--shell-border-light);
  border-right: 2px solid var(--shell-border-dark);
  border-bottom: 2px solid var(--shell-border-dark);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.15);
}

.shell-titlebar {
  display: flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.6rem;
  color: #fff;
  background: linear-gradient(90deg, var(--shell-title), #0d5ca6);
}

.shell-titlebar--muted {
  background: linear-gradient(90deg, var(--shell-title-muted), #a6a6a6);
}

.shell-menubar,
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #8f8f8f;
}

.shell-menubar {
  font-size: 0.85rem;
}

.section-nav a {
  padding: 0.35rem 0.55rem;
  background: #efefef;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #4f4f4f;
  border-bottom: 2px solid #4f4f4f;
}

.shell-content {
  padding: 1rem;
}

.content-section + .content-section {
  margin-top: 1.75rem;
}

.content-section h1,
.content-section h2 {
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.content-section p + p {
  margin-top: 0.75rem;
}

.content-list {
  padding-left: 1.25rem;
}

.content-list li + li {
  margin-top: 0.5rem;
}

.content-list li::marker {
  color: var(--shell-title);
}

.content-list li {
  list-style: square;
}

.page-shell {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem 2rem;
}

.page-window {
  background: var(--shell-panel);
  border-top: 2px solid var(--shell-border-light);
  border-left: 2px solid var(--shell-border-light);
  border-right: 2px solid var(--shell-border-dark);
  border-bottom: 2px solid var(--shell-border-dark);
}

.page-content {
  padding: 1rem;
}

.page-footer {
  margin-top: 1rem;
}

.noscript-banner {
  padding: 1rem;
  text-align: center;
  background: #ffffcc;
  border-top: 1px solid #555;
}

@keyframes shell-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .portfolio-shell {
    padding: 0.75rem;
  }

  .shell-window {
    box-shadow: none;
  }

  .shell-content {
    padding: 0.85rem;
  }

  .section-nav {
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link {
    transition: none;
  }

  .loader-spinner {
    animation: none;
  }
}
