:root {
  color-scheme: light;
  background: #f3f5ee;
  color: #111111;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 22px 12px 40px;
  background: #f3f5ee;
}

a {
  color: #0000cc;
}

a:visited {
  color: #551a8b;
}

a:focus-visible {
  outline: 2px dotted #000000;
  outline-offset: 2px;
}

.terminal-window {
  width: min(960px, 100%);
  margin: 0 auto;
  border: 3px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  background: #c0c0c0;
  box-shadow: 2px 2px 0 #000000;
}

.title-bar {
  display: flex;
  min-height: 29px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 3px 3px 0;
  padding: 4px 7px;
  background: #003b5c;
  color: #ffffff;
  font-family: Verdana, Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
}

.title-bar-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.title-bar-name img {
  width: 16px;
  height: 16px;
}

.title-bar-close {
  display: none;
  width: 23px;
  height: 21px;
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  place-items: center;
  background: #c0c0c0;
  color: #000000;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
}

.site-js .title-bar-close {
  display: grid;
}

.title-bar-close:active {
  border-color: #404040 #ffffff #ffffff #404040;
}

.menu-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 13px;
  margin: 0 3px;
  padding: 5px 8px 6px;
  border-bottom: 1px solid #808080;
  font-family: Verdana, Arial, sans-serif;
  font-size: 12px;
}

.menu-bar span {
  font-weight: bold;
}

.document-well {
  margin: 6px;
  padding: 24px;
  border: 3px solid;
  border-color: #404040 #ffffff #ffffff #404040;
  background: #f3f5ee;
}

.profile {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.workstation-figure {
  margin: 0;
}

.image-well {
  padding: 8px;
  border: 3px solid;
  border-color: #404040 #ffffff #ffffff #404040;
  background: #10191a;
}

.image-well img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.profile-copy {
  min-width: 0;
}

h1 {
  margin: 0;
  font-size: 30px;
  font-weight: normal;
  line-height: 1;
}

.role {
  margin: 5px 0 15px;
  font-size: 18px;
}

.coordinates {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 3px 10px;
  margin: 0 0 10px;
}

.coordinates dt {
  font-family: Verdana, Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.coordinates dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
}

.workstation-action {
  margin: 12px 0 0;
  text-align: center;
}

.windows-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 3px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  background: #c0c0c0;
  box-shadow: 1px 1px 0 #000000;
  color: #000000;
  font-family: Verdana, Arial, sans-serif;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

.windows-button:visited {
  color: #000000;
}

.windows-button:hover {
  background: #d3d3d3;
}

.windows-button:active {
  border-color: #404040 #ffffff #ffffff #404040;
  box-shadow: none;
  transform: translate(1px, 1px);
}

.technical-record {
  margin-top: 24px;
}

.about-section p {
  margin: 2px 0 0;
  line-height: 1.35;
}

.spec-grid {
  display: grid;
  grid-template-columns: minmax(0, 700px);
  gap: 12px;
  align-items: start;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 10px 14px 12px;
  border: 2px groove #ffffff;
  background: transparent;
  font-size: 17px;
}

legend {
  padding: 0 5px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0;
}

fieldset ul {
  margin: 2px 0 0;
  padding-left: 20px;
}

fieldset li {
  margin: 1px 0;
  line-height: 1.22;
}

.span-two {
  grid-column: auto;
}

.window-status {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 0 6px 6px;
  font-family: "Courier New", monospace;
  font-size: 10px;
}

.window-status span,
.footer-top {
  flex: 1;
  padding: 3px 5px;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
}

.footer-top {
  flex: 0 0 auto;
  min-width: 62px;
  color: #000000;
  text-align: center;
  text-decoration: none;
}

.footer-top:visited {
  color: #000000;
}

.footer-top:hover {
  background: #d3d3d3;
}

.footer-top:active {
  border-color: #ffffff #808080 #808080 #ffffff;
}

body.desktop-open {
  overflow: hidden;
  padding: 0;
}

.desktop {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: #008080;
}

.desktop-icon {
  display: grid;
  width: 96px;
  min-height: 102px;
  align-content: start;
  justify-items: center;
  gap: 7px;
  padding: 7px 4px;
  border: 1px solid transparent;
  background: transparent;
  color: #ffffff;
  font-family: Verdana, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.25;
  text-shadow: 1px 1px 0 #000000;
  cursor: default;
}

.desktop-icon-image {
  display: grid;
  width: 64px;
  height: 56px;
  place-items: center;
}

.desktop-icon img {
  display: block;
  width: 64px;
  height: auto;
  image-rendering: pixelated;
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
  border-color: #ffffff;
  outline: 1px dotted #000000;
  outline-offset: -3px;
  background: #000080;
}

@media (max-width: 680px) {
  body {
    padding: 8px 6px 24px;
  }

  .menu-bar {
    gap: 7px 12px;
  }

  .menu-bar span {
    flex-basis: 100%;
  }

  .document-well {
    margin: 4px;
    padding: 17px 13px;
  }

  .profile {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
  }

  .image-well {
    padding: 5px;
  }

  h1 {
    font-size: 25px;
  }

  .role {
    font-size: 16px;
  }

  .coordinates {
    display: block;
  }

  .coordinates dt {
    margin-top: 6px;
  }

  .spec-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .span-two {
    grid-column: auto;
  }
}

@media (max-width: 410px) {
  .profile {
    grid-template-columns: 1fr;
  }

  .workstation-figure {
    width: 150px;
  }

  .contact-links {
    gap: 8px 16px;
  }

  .windows-button {
    min-height: 44px;
  }

}

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