/* ============================================================
   IAN'S HOMEPAGE - EST. 2004 (rebuilt 2026)
   Aesthetic: Windows 95 / AOL / Yahoo! / Amazon 1999
   ============================================================ */

/* --- palette from that era --------------------------------- */
:root {
  --win-gray:      #c0c0c0;
  --win-gray-dk:   #808080;
  --win-gray-lt:   #dfdfdf;
  --win-white:     #ffffff;
  --win-black:     #000000;
  --win-navy:      #000080;
  --win-teal:      #008080;
  --win-red:       #cc0000;
  --link:          #0000ee;
  --link-visited:  #551a8b;
  --paper:         #ffffff;
  --banner-yellow: #ffffcc;
  --banner-blue:   #003399;
  --hot-pink:      #ff00ff;
}

* { box-sizing: border-box; }

/* Classic teal Windows 95 desktop, with a tiny checker for texture */
html {
  background:
    linear-gradient(45deg, rgba(255,255,255,0.04) 25%, transparent 25%) 0 0/8px 8px,
    linear-gradient(-45deg, rgba(0,0,0,0.05) 25%, transparent 25%) 0 0/8px 8px,
    var(--win-teal);
}

body {
  margin: 0;
  padding: 0;
  color: var(--win-black);
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.4;
}

/* ---- The "window" that wraps every page ------------------- */
.window {
  max-width: 960px;
  margin: 16px auto;
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.35);
}

/* fake window chrome - blue title bar with buttons */
.title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, var(--win-navy) 0%, #1084d0 100%);
  color: var(--win-white);
  padding: 3px 4px 3px 6px;
  font-family: "MS Sans Serif", "Tahoma", Geneva, sans-serif;
  font-size: 13px;
  font-weight: bold;
  border-bottom: 2px solid var(--win-black);
}
.title-bar .title-text { letter-spacing: 0.02em; }
.title-bar .title-buttons { display: flex; gap: 2px; }
.title-bar .tb-btn {
  width: 18px; height: 16px;
  background: var(--win-gray);
  color: var(--win-black);
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 10px;
  line-height: 12px;
  text-align: center;
}

/* fake menu bar */
.menu-bar {
  display: flex;
  gap: 14px;
  padding: 2px 8px;
  background: var(--win-gray);
  border-bottom: 1px solid var(--win-gray-dk);
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 12px;
}
.menu-bar span { padding: 1px 4px; }
.menu-bar span u { text-decoration: underline; }

/* ---- Top banner (Amazon/Yahoo style) ---------------------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  border-top: 2px solid var(--banner-blue);
  border-bottom: 2px solid var(--banner-blue);
  padding: 10px 14px;
}
.masthead .brand {
  font-family: "Trebuchet MS", "Verdana", sans-serif;
  font-size: 34px;
  font-weight: bold;
  color: var(--banner-blue);
  letter-spacing: -0.02em;
}
.masthead .brand .dot { color: var(--win-red); }
.masthead .brand .under {
  display: block;
  height: 4px;
  width: 120px;
  margin-top: -4px;
  background: #ff9900;
  border-radius: 0 0 40% 40%;
}
.masthead .tagline {
  font-family: "Times New Roman", serif;
  font-style: italic;
  color: var(--win-navy);
  font-size: 14px;
}
.masthead .today {
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 12px;
  color: #333;
  text-align: right;
}

/* ---- Main 3-column layout --------------------------------- */
.layout {
  display: grid;
  grid-template-columns: 190px 1fr 200px;
  gap: 10px;
  padding: 10px;
  background: var(--paper);
}
.layout.two-col {
  grid-template-columns: 190px 1fr;
}

/* Sidebar boxes (Amazon 1999 style) */
.side-box {
  border: 1px solid var(--banner-blue);
  margin-bottom: 12px;
  background: #f7f7f7;
}
.side-box .side-head {
  background: var(--banner-blue);
  color: var(--win-white);
  padding: 3px 8px;
  font-family: "Verdana", Geneva, sans-serif;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 0.03em;
}
.side-box.yellow .side-head { background: #f2b90c; color: var(--win-navy); }
.side-box.red    .side-head { background: var(--win-red); }
.side-box .side-body {
  padding: 6px 8px 8px 8px;
  font-family: "Times New Roman", serif;
  font-size: 14px;
}
.side-box ul {
  margin: 0;
  padding-left: 16px;
  list-style: disc;
}
.side-box ul li { margin: 2px 0; }
.side-box ul.tight li { margin: 0; }

/* Search box in the sidebar */
.search-box input[type="text"] {
  width: 100%;
  border: 2px inset var(--win-gray);
  padding: 2px;
  font-family: inherit;
  font-size: 13px;
}
.search-box button, .btn-95 {
  margin-top: 4px;
  padding: 2px 10px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 12px;
  background: var(--win-gray);
  color: var(--win-black);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  cursor: pointer;
}
.btn-95:active {
  border-top: 2px solid var(--win-black);
  border-left: 2px solid var(--win-black);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
}

/* ---- Main content column ---------------------------------- */
.main {
  background: var(--paper);
  min-height: 400px;
}

.welcome-strip {
  background: var(--banner-yellow);
  border: 1px solid #d4c95d;
  padding: 6px 10px;
  margin-bottom: 10px;
  font-size: 14px;
}
.welcome-strip b { color: var(--win-red); }

h1.section-title,
h2.section-title {
  font-family: "Times New Roman", serif;
  color: var(--win-red);
  font-size: 22px;
  margin: 14px 0 6px 0;
  border-bottom: 1px dotted var(--win-gray-dk);
  padding-bottom: 2px;
}
h3.sub {
  color: var(--banner-blue);
  font-family: "Verdana", Geneva, sans-serif;
  font-size: 14px;
  margin: 12px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

p { margin: 6px 0 10px; }

/* Links in classic web colors */
a { color: var(--link); text-decoration: underline; }
a:visited { color: var(--link-visited); }
a:hover { color: var(--win-red); background: var(--banner-yellow); }

/* ---- Gallery of 6 project thumbnails ---------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 6px;
}
.gallery .card {
  background: var(--win-gray-lt);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-gray-dk);
  border-bottom: 2px solid var(--win-gray-dk);
  padding: 8px;
  text-align: center;
  font-family: "Verdana", Geneva, sans-serif;
  font-size: 12px;
}
.gallery .card .thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 6px;
  border: 2px inset var(--win-gray);
  background: var(--win-white);
  position: relative;
  overflow: hidden;
}
/* Placeholder thumbnail patterns (each gets its own) */
.gallery .card.c1 .thumb { background: repeating-linear-gradient(45deg,  #ffcc00 0 12px, #ff6600 12px 24px); }
.gallery .card.c2 .thumb { background: repeating-linear-gradient(-45deg, #00ccff 0 12px, #003366 12px 24px); }
.gallery .card.c3 .thumb { background: repeating-linear-gradient(90deg,  #66cc66 0 12px, #003300 12px 24px); }
.gallery .card.c4 .thumb { background: repeating-linear-gradient(0deg,   #ff66cc 0 12px, #660066 12px 24px); }
.gallery .card.c5 .thumb { background: repeating-linear-gradient(135deg, #cccccc 0 12px, #333333 12px 24px); }
.gallery .card.c6 .thumb { background: repeating-linear-gradient(60deg,  #ffcc99 0 12px, #cc3300 12px 24px); }
.gallery .card .thumb .stamp {
  position: absolute;
  inset: auto 4px 4px auto;
  background: rgba(0,0,0,0.65);
  color: var(--win-white);
  font: bold 10px "MS Sans Serif", Tahoma, sans-serif;
  padding: 1px 4px;
}
.gallery .card .name {
  font-weight: bold;
  color: var(--banner-blue);
  display: block;
  margin-bottom: 2px;
}
.gallery .card .blurb {
  color: #333;
  font-family: "Times New Roman", serif;
  font-size: 13px;
  min-height: 3.4em;
}
.gallery .card a.more {
  display: inline-block;
  margin-top: 4px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
}

/* Marquee band */
.marquee-band {
  background: var(--win-black);
  color: #33ff33;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  padding: 4px 0;
  border-top: 1px solid var(--win-gray-dk);
  border-bottom: 1px solid var(--win-gray-dk);
  margin-top: 8px;
}
.marquee-band marquee { padding: 0 6px; }

/* Blink */
.blink { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ---- Project detail pages -------------------------------- */
.project-hero {
  border: 2px inset var(--win-gray);
  background: var(--win-white);
  padding: 20px;
  text-align: center;
  font-family: "Verdana", sans-serif;
  font-weight: bold;
  color: var(--win-navy);
  margin-bottom: 12px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.project-hero.c1 { background: repeating-linear-gradient(45deg,  #ffcc00 0 24px, #ff6600 24px 48px); color: #fff; text-shadow: 2px 2px 0 #000; }
.project-hero.c2 { background: repeating-linear-gradient(-45deg, #00ccff 0 24px, #003366 24px 48px); color: #fff; text-shadow: 2px 2px 0 #000; }
.project-hero.c3 { background: repeating-linear-gradient(90deg,  #66cc66 0 24px, #003300 24px 48px); color: #fff; text-shadow: 2px 2px 0 #000; }
.project-hero.c4 { background: repeating-linear-gradient(0deg,   #ff66cc 0 24px, #660066 24px 48px); color: #fff; text-shadow: 2px 2px 0 #000; }
.project-hero.c5 { background: repeating-linear-gradient(135deg, #cccccc 0 24px, #333333 24px 48px); color: #fff; text-shadow: 2px 2px 0 #000; }
.project-hero.c6 { background: repeating-linear-gradient(60deg,  #ffcc99 0 24px, #cc3300 24px 48px); color: #fff; text-shadow: 2px 2px 0 #000; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 14px;
  background: #fafafa;
  border: 1px solid var(--banner-blue);
  font-size: 14px;
}
.spec-table th, .spec-table td {
  border: 1px solid #c9c9c9;
  padding: 4px 8px;
  text-align: left;
  vertical-align: top;
}
.spec-table th {
  background: var(--banner-yellow);
  font-family: "Verdana", sans-serif;
  font-size: 12px;
  width: 130px;
}

/* ---- Contact form (guestbook style) ---------------------- */
.guestbook {
  border: 2px ridge var(--win-gray);
  background: #f9f9f2;
  padding: 12px;
  margin-top: 10px;
}
.guestbook label {
  display: block;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 12px;
  font-weight: bold;
  margin: 8px 0 2px;
  color: var(--win-navy);
}
.guestbook input[type="text"],
.guestbook input[type="email"],
.guestbook textarea {
  width: 100%;
  border: 2px inset var(--win-gray);
  padding: 3px 4px;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  background: var(--win-white);
}
.guestbook textarea { min-height: 100px; resize: vertical; }
.guestbook .form-actions { margin-top: 10px; }
.form-status {
  margin-top: 8px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 12px;
  color: var(--win-red);
}

/* ---- Footer bar with visitor counter --------------------- */
.footer-bar {
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  padding: 8px 12px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  color: #222;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
}
.visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  background: var(--win-black);
  color: #33ff33;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: bold;
  border: 2px inset var(--win-gray);
  letter-spacing: 0.1em;
}
.visitor-counter .label {
  color: var(--win-white);
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 10px;
  letter-spacing: 0;
  font-weight: normal;
}
.webring {
  font-family: "Times New Roman", serif;
  font-style: italic;
  color: var(--win-navy);
  font-size: 12px;
}
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  padding: 2px 6px;
  border: 1px solid var(--win-black);
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 10px;
  background: linear-gradient(180deg, #ffffff, #d0d0d0);
}
.badge.hot   { background: linear-gradient(180deg, #ffee00, #ff6600); }
.badge.new   { background: linear-gradient(180deg, #33ff33, #007700); color: #fff; }
.badge.best  { background: linear-gradient(180deg, #ff66cc, #660066); color: #fff; }

/* small util */
.center { text-align: center; }
hr.rainbow {
  border: none;
  height: 4px;
  background: linear-gradient(90deg,
    #ff0000, #ff9900, #ffff00, #00cc00, #0066ff, #6600cc, #ff00ff);
  margin: 14px 0;
}

/* under-construction gag */
.under-construction {
  display: inline-block;
  padding: 2px 8px;
  background: repeating-linear-gradient(45deg, #ffcc00 0 10px, #000 10px 20px);
  color: #fff;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-weight: bold;
  font-size: 11px;
  text-shadow: 1px 1px 0 #000;
  letter-spacing: 0.05em;
}

/* Responsive: collapse the right rail, then the left */
@media (max-width: 820px) {
  .layout, .layout.two-col { grid-template-columns: 160px 1fr; }
  .layout .right-rail { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .layout, .layout.two-col { grid-template-columns: 1fr; }
  .layout .left-rail { order: 2; }
  .gallery { grid-template-columns: 1fr; }
  .masthead { flex-direction: column; gap: 6px; text-align: center; }
}
