@import url("style.css");

:root {
  --font-family: "MS Sans Serif", "Tahoma", "Verdana", sans-serif;
  --page-bg: #008080;
  --panel-bg: #c0c0c0;
  --surface-alt: #d4d0c8;
  --surface-hover: #e2ded6;
  --panel-border-dark: #404040;
  --panel-border-light: #ffffff;
  --text: #000000;
  --muted: #2f2f2f;
  --link: #0000ee;
  --link-hover: #1c2fb0;
  --link-visited: #551a8b;
}

body {
  background-color: var(--page-bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 50%, transparent 50%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 50%, transparent 50%);
  background-size: 2px 2px;
}

.page-shell {
  width: min(820px, calc(100% - 1.2rem));
}

.topbar,
.section,
.post-page,
.site-footer,
.hero,
.sidebar {
  border: 2px solid #c0c0c0;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  background: var(--panel-bg);
}

.topbar {
  background: linear-gradient(90deg, #000080, #1084d0);
  min-height: 30px;
  padding: 0.35rem 0.5rem;
  justify-content: flex-start;
}

.brand {
  color: #ffffff;
  text-shadow: 1px 1px 0 #000000;
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
}

.brand:visited {
    color: white;
}

.button {
  border: 2px solid #808080;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  background: var(--surface-alt);
  text-transform: none;
}

.button:hover {
  background: var(--surface-hover);
}

.button:active {
  border-top-color: #404040;
  border-left-color: #404040;
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
}

.list-item,
.post-card {
  border: 2px solid #808080;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  background: #d9d5cd;
}

.win95-window {
  padding: 0;
  overflow: hidden;
}

.win95-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 30px;
  padding: 0 0.5rem;
  background: linear-gradient(90deg, #000080, #0b4aa6 65%, #1084d0);
  color: #ffffff;
  text-shadow: 1px 1px 0 #000000;
  border-bottom: 2px solid #404040;
}

.win95-titlebar h2 {
  margin: 0;
  font-size: 0.9rem !important;
  line-height: 1;
  text-transform: none !important;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.win95-controls {
  display: none;
}

.win95-btn {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1px solid #808080;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  background: #c0c0c0;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.6);
}

.win95-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
}

.win95-btn:nth-child(1)::after {
  width: 8px;
  height: 2px;
  background: #000000;
  bottom: 3px;
}

.win95-btn:nth-child(2)::after {
  width: 8px;
  height: 6px;
  border: 2px solid #000000;
  box-sizing: border-box;
}

.win95-btn:nth-child(3)::after {
  width: 9px;
  height: 9px;
  background:
    linear-gradient(45deg, transparent 45%, #000000 45%, #000000 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #000000 45%, #000000 55%, transparent 55%);
}

.win95-body {
  padding: 0.75rem;
}

.post-page .prose {
  text-align: justify;
  text-justify: inter-word;
}

.section h2,
.post-page h1 {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  text-transform: uppercase;
}

.theme-picker {
  margin: 0 0 0.45rem;
  color: #1f1f1f;
}
