@font-face {
  font-family: "TopazNG";
  src: url("TopazNG_Code-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "TopazNG", "Courier New", Courier, monospace;
  --window-bg: #aaaaaa;
  --window-edge-light: #ffffff;
  --window-edge-dark: #666666;
  --window-edge-black: #000000;
  --titlebar-bg: #406098;
  --titlebar-text: #ffffff;
  --desktop-bg: #6b7a8f;
  --text: #000000;
  --mui-selection: #ffff00;
}

* { 
  box-sizing: border-box; 
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
}

body {
  background: var(--desktop-bg);
  min-height: 100vh;
}

.desktop {
  min-height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
  background-image: repeating-conic-gradient(#5f6d80 0% 25%, #72819a 0% 50%);
  background-size: 4px 4px; 
}

.mui-window {
  background: var(--window-bg);
  border: 2px solid;
  border-top-color: var(--window-edge-light);
  border-left-color: var(--window-edge-light);
  border-right-color: var(--window-edge-black);
  border-bottom-color: var(--window-edge-black);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.mui-titlebar {
  background: var(--titlebar-bg);
  color: var(--titlebar-text);
  font-weight: bold;
  text-align: center;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  cursor: move;
  border-bottom: 2px solid var(--window-edge-black);
}

.mui-title {
  flex: 1;
  text-align: center;
  padding: 0 6px;
}

.mui-gadgets {
  display: flex;
  gap: 4px;
}

.gadget {
  font-family: var(--font);
  font-size: 12px;
  font-weight: bold;
  width: 16px;
  height: 16px;
  line-height: 1;
  padding: 0;
  border: 2px solid;
  border-top-color: var(--window-edge-light);
  border-left-color: var(--window-edge-light);
  border-right-color: var(--window-edge-black);
  border-bottom-color: var(--window-edge-black);
  background: var(--window-bg);
  color: var(--text);
  cursor: pointer;
}

.gadget:active {
  border-top-color: var(--window-edge-dark);
  border-left-color: var(--window-edge-dark);
  border-right-color: var(--window-edge-light);
  border-bottom-color: var(--window-edge-light);
}

.mui-content {
  padding: 12px;
}

.mui-tabs {
  display: flex;
  gap: 4px;
  border-bottom: none;
  margin-bottom: 8px;
}

.tab {
  font-family: var(--font);
  font-size: 13px;
  padding: 4px 12px;
  border: 2px solid;
  border-top-color: var(--window-edge-light);
  border-left-color: var(--window-edge-light);
  border-right-color: var(--window-edge-black);
  border-bottom-color: var(--window-edge-black);
  background: var(--window-bg);
  color: var(--text);
  cursor: pointer;
}

.tab:hover:not(.active) { background: #b5b5b5; }

.tab.active {
  background: var(--window-bg);
  border-top-color: var(--window-edge-dark);
  border-left-color: var(--window-edge-dark);
  border-right-color: var(--window-edge-light);
  border-bottom-color: var(--window-edge-light);
  z-index: 1;
}

.about-body {
  display: flex;
  gap: 16px;
}

.photo {
  width: 120px;
  height: 150px;
  object-fit: cover;
  border: 2px solid;
  border-top-color: var(--window-edge-dark);
  border-left-color: var(--window-edge-dark);
  border-right-color: var(--window-edge-light);
  border-bottom-color: var(--window-edge-light);
  flex-shrink: 0;
  background: #ffffff;
}

.pane, .article-list-wrapper {
  flex: 1;
  background: var(--window-bg);
  border: 2px solid;
  border-top-color: var(--window-edge-dark);
  border-left-color: var(--window-edge-dark);
  border-right-color: var(--window-edge-light);
  border-bottom-color: var(--window-edge-light);
  padding: 10px;
}

.pane p {
  margin: 0 0 10px 0;
  text-align: justify;
  line-height: 1.45;
}

.article-list {
  margin: 0;
  padding: 0 0 0 24px;
}

.article-list li {
  margin-bottom: 2px;
}

.article-list a {
  color: var(--titlebar-bg);
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
  padding: 2px 4px;
}

.article-list a:visited { color: #551a8b; }

.article-list a:hover { 
  background-color: var(--mui-selection);
  color: #000000; 
  text-decoration: none;
}

.article-list a:focus-visible {
  outline: 2px dotted var(--titlebar-bg);
  outline-offset: 2px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.overlay[hidden] { display: none; }

.modal-window {
  width: min(800px, 90vw);
  height: min(600px, 80vh);
  display: flex;
  flex-direction: column;
  margin: 0;
}

.modal-content {
  flex: 1;
  display: flex;
  padding: 6px;
  min-height: 0;
}

.modal-content iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 2px solid;
  border-top-color: var(--window-edge-dark);
  border-left-color: var(--window-edge-dark);
  border-right-color: var(--window-edge-light);
  border-bottom-color: var(--window-edge-light);
  background: #ffffff;
}

@media (max-width: 600px) {
  .desktop { padding: 12px; gap: 16px; }
  .about-body { flex-direction: column; }
  .photo { margin: 0 auto; }
  .mui-title { font-size: 13px; }
}