/* Old internet / Windows 98–XP vibe (Dark by default) */
:root {
  /* Dark mode defaults */
  --bg: #0e0f12;
  --text: #e6e6e6;
  --muted: #b0b0b8;
  --win-gray: #2a2d33;   /* outer frame */
  --win-light: #3a3f46;  /* inner highlight */
  --win-dark: #17191d;   /* inner shadow */
  --win-black: #000000;  /* hard outline */
  --titlebar-start: #072a66; /* deeper blue */
  --titlebar-end: #0f49a5;   /* deep royal blue */
  --link-blue: #7ab0ff;
  --link-purple: #c49bff;
  --gold: #d4af37;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: "MS Sans Serif", Tahoma, "Segoe UI", Verdana, Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  /* subtle tiled background */
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 8px 8px, 8px 8px;
}

.page {
  max-width: 860px;
  margin: 24px auto;
  padding: 0 12px 32px;
}

.site-header { text-align: center; margin-bottom: 12px; }

.title {
  margin: 0 0 6px;
  font-size: 38px;
  line-height: 1.1;
  color: #ffd76a; /* brighter gold */
  font-family: "Segoe UI", Tahoma, Verdana, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.2px;
  /* Outline + inner bevel + glow */
  text-shadow:
    /* hard outline */
    -1px 0 0 #000, 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000,
    /* thicker outline corners */
    -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000,
    /* inner bevel warm */
    0 1px 0 rgba(255, 240, 190, 0.6),
    /* soft outer glow */
    0 0 14px rgba(255, 215, 106, 0.35);
}

.content { padding-top: 0; }

/* Classic window container */
.window {
  border: 2px solid var(--win-gray);
  box-shadow:
    inset 1px 1px 0 var(--win-light),
    inset -1px -1px 0 var(--win-dark),
    0 0 0 1px var(--win-black);
  background: var(--win-gray);
}

.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px;
  color: #fff;
  background: linear-gradient(90deg, var(--titlebar-start), var(--titlebar-end));
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
  user-select: none;
}

.titlebar .controls {
  display: flex;
  gap: 4px;
}

.win-btn {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0,0,0,0.6);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.25), inset -1px -1px 0 rgba(0,0,0,0.45);
  border-radius: 2px;
}

/* Minimize: gold with dash */
.titlebar .controls .win-btn:nth-child(1) {
  background: linear-gradient(#c8a007, #9c7c05);
}
.titlebar .controls .win-btn:nth-child(1)::before {
  content: "\2212"; /* minus */
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
  color: #1a1300;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

/* Maximize: green with square */
.titlebar .controls .win-btn:nth-child(2) {
  background: linear-gradient(#1fa34a, #117a34);
}
.titlebar .controls .win-btn:nth-child(2)::before {
  content: "\25A1"; /* white square */
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
  color: #061b0d;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

/* Close: red with X */
.titlebar .controls .win-btn:nth-child(3) {
  background: linear-gradient(#d83b36, #9e1e1a);
}
.titlebar .controls .win-btn:nth-child(3)::before {
  content: "\00D7"; /* multiplication sign */
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
  color: #1a0403;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

.window-body {
  background: #1a1d22;
  padding: 12px;
  border-top: 1px solid var(--win-light);
}

.hero { display: flex; justify-content: center; padding: 12px 0; }

.hero-image {
  width: min(520px, 95%);
  height: auto;
  background: #0f1115;
  border: 2px solid var(--win-gray);
  box-shadow: inset 1px 1px 0 var(--win-light), inset -1px -1px 0 var(--win-dark), 0 0 0 1px var(--win-black);
}

.section-title {
  margin: 6px 0 8px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.posts {
  background: #20242a;
  border: 2px solid var(--win-gray);
  box-shadow: inset 1px 1px 0 var(--win-light), inset -1px -1px 0 var(--win-dark);
  padding: 8px;
}

.post-list { list-style: square; padding: 0 0 0 18px; margin: 0; }
.post-list li { padding: 6px 2px; }

a { color: var(--link-blue); }
a:visited { color: var(--link-purple); }
a:hover { text-decoration: underline; }

.site-footer { margin-top: 16px; text-align: center; color: var(--muted); }

/* Article page specifics */
.article {
  background: #0f1115;
  border: 2px solid var(--win-gray);
  box-shadow: inset 1px 1px 0 var(--win-light), inset -1px -1px 0 var(--win-dark);
  padding: 12px;
  line-height: 1.65;
}

.article h1 { margin-top: 0; color: var(--gold); font-size: 22px; }

.back-link { display: inline-block; margin: 8px 0 12px; }

/* Responsive media inside articles */
.article img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 8px auto;
}

.article figure {
  margin: 12px 0;
  text-align: center;
}

.article figcaption {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 12px 0;
  background: #000;
  border: 2px solid var(--win-gray);
  box-shadow: inset 1px 1px 0 var(--win-light), inset -1px -1px 0 var(--win-dark);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Slightly larger type on wider screens */
@media (min-width: 768px) {
  body { font-size: 17px; }
  .article h1 { font-size: 24px; }
}
