/* ═══════════════════════════════════════
   JOSS SCHOLTEN — SHARED STYLESHEET
   1996 Forever
═══════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: #c0c0c0;
  color: #000;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
}

/* ── MARCHING ANTS ── */
@keyframes march {
  to { background-position: 100% 0, 0 100%, 0 0, 100% 100%; }
}
.ants {
  background:
    repeating-linear-gradient(90deg,  #000 0, #000 6px, transparent 6px, transparent 12px) top    / 100% 2px no-repeat,
    repeating-linear-gradient(90deg,  #000 0, #000 6px, transparent 6px, transparent 12px) bottom / 100% 2px no-repeat,
    repeating-linear-gradient(180deg, #000 0, #000 6px, transparent 6px, transparent 12px) left   / 2px 100% no-repeat,
    repeating-linear-gradient(180deg, #000 0, #000 6px, transparent 6px, transparent 12px) right  / 2px 100% no-repeat;
  animation: march 1s linear infinite;
  height: 14px;
  background-color: #c0c0c0;
}

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden;
  background: #000080;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #808080;
  padding: 5px 0;
  white-space: nowrap;
}
.marquee-wrap.green { background: #004400; }

@keyframes marquee  { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }
@keyframes marquee2 { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

.marquee-text {
  display: inline-block;
  font-family: "Courier New", monospace;
  font-size: 13px;
  color: #ffff00;
  animation: marquee 22s linear infinite;
  letter-spacing: 2px;
}
.marquee-text b { color: #00ffff; }

.marquee-text2 {
  display: inline-block;
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: #00ff00;
  animation: marquee2 30s linear infinite;
  letter-spacing: 1px;
}

/* ── SHELL ── */
.shell {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border-left: 3px ridge #808080;
  border-right: 3px ridge #808080;
}

/* ── HEADER ── */
.site-header {
  background: #000080;
  color: #fff;
  padding: 18px 24px 14px;
  border-bottom: 4px ridge #c0c0c0;
  text-align: center;
}
.site-header h1 {
  font-family: "Times New Roman", serif;
  font-size: 36px;
  font-weight: bold;
  color: #ffff00;
  text-shadow: 3px 3px #000;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.site-header .under {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #00ffff;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.site-header .tagline {
  font-family: "Times New Roman", serif;
  font-size: 14px;
  color: #c0c0ff;
  margin-top: 6px;
  font-style: italic;
}

/* ── BLINK ── */
@keyframes blink { 0%,49% { opacity:1; } 50%,100% { opacity:0; } }
.blink { animation: blink 1s step-end infinite; color: #ff0000; font-weight: bold; }

/* ── NAVBAR ── */
.navbar {
  background: #c0c0c0;
  border-bottom: 3px ridge #808080;
  padding: 6px 8px;
  display: flex;
  flex-wrap: nowrap;
}
.navbar a {
  flex: 1;
  text-align: center;
  display: block;
  background: #c0c0c0;
  color: #000;
  text-decoration: none;
  font-family: "Times New Roman", serif;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 4px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
}
.navbar a:hover, .navbar a:active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
.navbar a.current {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  background: #b0b0b0;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: #e8e8e8;
  border-bottom: 1px solid #c0c0c0;
  padding: 5px 14px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #808080;
}
.breadcrumb a { color: #000080; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── BODY ── */
.body { padding: 20px 24px; }

/* ── RULES ── */
hr {
  border: none;
  border-top: 3px groove #808080;
  margin: 16px 0;
}
hr.rainbow {
  border: none;
  height: 5px;
  background: linear-gradient(90deg,
    red, orange, yellow, green, cyan, blue, violet,
    red, orange, yellow, green, cyan, blue, violet,
    red, orange, yellow, green
  );
  margin: 14px 0;
}
hr.thin {
  border-top: 1px solid #c0c0c0;
  margin: 12px 0;
}

/* ── HEADINGS ── */
h2 {
  font-family: "Times New Roman", serif;
  font-size: 22px;
  font-weight: bold;
  color: #000080;
  margin: 24px 0 8px;
  border-bottom: 2px solid #000080;
  padding-bottom: 4px;
}
h3 {
  font-family: "Times New Roman", serif;
  font-size: 17px;
  font-weight: bold;
  color: #000;
  margin: 16px 0 6px;
}
p { margin: 0 0 10px; font-size: 15px; line-height: 1.65; }

a { color: #0000cc; }
a:visited { color: #551a8b; }
a:hover { color: #cc0000; }

/* ── PHOTO PLACEHOLDERS ── */
.photo-box {
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: #808080;
  text-align: center;
  line-height: 1.5;
  padding: 8px;
}
.photo-box.hero   { width: 100%; height: 280px; margin: 16px 0; }
.photo-box.wide   { width: 100%; height: 200px; margin: 14px 0; }
.photo-box.thumb  { width: 140px; height: 100px; flex-shrink: 0; }
.photo-box.portrait { width: 140px; height: 170px; flex-shrink: 0; }
.photo-box.square { width: 100%; height: 240px; margin: 14px 0; }

/* ── STAT BOXES ── */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  border: 2px inset #808080;
  margin: 16px 0;
  background: #e8e8e8;
  font-family: "Courier New", monospace;
  font-size: 12px;
}
.stat-box {
  flex: 1;
  min-width: 90px;
  padding: 12px 10px;
  border-right: 1px solid #c0c0c0;
  text-align: center;
}
.stat-box:last-child { border-right: none; }
.stat-n { display: block; font-size: 22px; font-weight: bold; color: #000080; }
.stat-l { display: block; font-size: 9px; color: #808080; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* ── WIN95 BUTTONS ── */
.btn {
  display: inline-block;
  background: #c0c0c0;
  color: #000;
  text-decoration: none;
  font-family: "Times New Roman", serif;
  font-size: 13px;
  font-weight: bold;
  padding: 5px 16px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  cursor: pointer;
}
.btn:hover { color: #000080; }

/* ── INSET BOX ── */
.inset {
  border: 2px inset #808080;
  background: #f8f8f8;
  padding: 14px;
  margin: 12px 0;
}

/* ── PROJECT CARD (index page) ── */
.proj-card {
  border: 2px inset #808080;
  background: #f8f8f8;
  margin-bottom: 20px;
}
.proj-card-title {
  background: #000080;
  color: #fff;
  font-family: "Times New Roman", serif;
  font-size: 14px;
  font-weight: bold;
  padding: 5px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.proj-card-title a { color: #ffff00; text-decoration: none; font-family: "Courier New", monospace; font-size: 11px; }
.proj-card-title a:hover { text-decoration: underline; }
.proj-card-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
}
.proj-card-text p { font-size: 14px; margin-bottom: 6px; }

/* ── PROJ STATS STRIP ── */
.proj-stats {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid #808080;
  margin-top: 8px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  background: #e8e8e8;
}
.ps { padding: 4px 10px; border-right: 1px solid #808080; }
.ps:last-child { border-right: none; }
.ps b { color: #000080; }

/* ── HISTORY TABLE ── */
table.hist {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.hist td {
  padding: 6px 8px;
  border: 1px solid #c0c0c0;
  vertical-align: top;
}
table.hist tr:nth-child(odd) td  { background: #f0f0f0; }
table.hist tr:nth-child(even) td { background: #ffffff; }
table.hist td.yr  { font-family: "Courier New", monospace; font-size: 11px; color: #808080; width: 100px; white-space: nowrap; }
table.hist td.co  { font-weight: bold; color: #000080; }
table.hist td.desc { color: #333; }

/* ── BADGES ── */
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.badge {
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  padding: 6px 12px;
  font-family: "Courier New", monospace;
  font-size: 10px;
  text-align: center;
  color: #000;
  line-height: 1.6;
}
.badge b { display: block; font-size: 18px; color: #000080; }

/* ── CONSTRUCTION ── */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.construction {
  background: #ffff00;
  border: 2px solid #000;
  padding: 6px 14px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.spin-star { display: inline-block; animation: spin 3s linear infinite; font-size: 18px; }

/* ── COUNTER ── */
.counter-box {
  background: #000;
  border: 3px inset #808080;
  padding: 6px 12px;
  text-align: center;
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #00ff00;
  display: inline-block;
  margin: 8px 0;
}
.counter-num { font-size: 22px; font-weight: bold; color: #00ff00; letter-spacing: 4px; display: block; }

/* ── FOOTER ── */
.site-footer {
  background: #000080;
  color: #c0c0c0;
  font-family: "Courier New", monospace;
  font-size: 11px;
  padding: 10px 16px;
  text-align: center;
  border-top: 3px ridge #c0c0c0;
}
.site-footer a { color: #ffff00; }

/* ── DETAIL PAGE SPECIFICS ── */
.detail-intro {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.detail-sidebar {
  width: 200px;
  flex-shrink: 0;
}
.sidebar-box {
  border: 2px inset #808080;
  background: #f0f0f0;
  margin-bottom: 12px;
}
.sidebar-box .sb-title {
  background: #000080;
  color: #ffff00;
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 8px;
}
.sidebar-box .sb-body {
  padding: 8px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  line-height: 1.8;
  color: #333;
}
.sidebar-box .sb-body b { color: #000080; }

.tag-list { margin: 12px 0; }
.tag-list span {
  display: inline-block;
  background: #c0c0c0;
  border: 1px solid #808080;
  font-family: "Courier New", monospace;
  font-size: 10px;
  padding: 2px 7px;
  margin: 2px 3px 2px 0;
  color: #000;
}

/* ── QUOTE ── */
blockquote {
  border-left: 4px solid #000080;
  background: #f0f0ff;
  padding: 8px 16px;
  margin: 12px 0;
  font-style: italic;
  font-size: 15px;
}

@media (max-width: 580px) {
  .detail-intro { flex-direction: column; }
  .detail-sidebar { width: 100%; }
  .proj-card-inner { flex-direction: column; }
  .photo-box.thumb, .photo-box.portrait { width: 100%; height: 160px; }
  .site-header h1 { font-size: 26px; }
}
