/* ============================================================
   MUSEUM OF UNIX — unixweenie.com
   The Greybeards' Wing of the Weenie Museums campus.
   Retro-terminal theme. Accent: phosphor green #33ff66.
   ============================================================ */

:root {
  --bg: #0b0f0c;
  --fg: #b8c9b0;          /* dim phosphor text */
  --bright: #d9f2dd;      /* near-white green */
  --accent: #33ff66;      /* phosphor green */
  --accent-dim: #1e7a3d;
  --accent-faint: #0f2e18;
  --warn: #ffb000;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- CRT scanline overlay (subtle, never blocks clicks) ---- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.22) 3px,
    rgba(0, 0, 0, 0.22) 4px
  );
  opacity: 0.55;
}

/* ---- soft green vignette ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 20, 8, 0.55) 100%);
}

::selection { background: var(--accent); color: #04140a; }

a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent-dim); }
a:hover { color: var(--bright); border-bottom-style: solid; text-shadow: 0 0 8px var(--accent); }

h1, h2, h3 {
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(51, 255, 102, 0.35);
  line-height: 1.3;
}
h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); letter-spacing: 0.04em; }
h2 { font-size: 1.5rem; margin-top: 2.5em; }
h3 { font-size: 1.15rem; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 1.25rem; width: 100%; }
main.wrap { flex: 1; padding-bottom: 3rem; }

/* ---- campus nav bar ---- */
.campus-nav {
  border-bottom: 1px solid var(--accent-dim);
  background: rgba(4, 14, 8, 0.9);
  padding: 0.7rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  align-items: baseline;
  font-size: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.campus-nav .brand {
  color: var(--bright);
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-right: 0.5rem;
}
.campus-nav .brand::before { content: "▚ "; color: var(--accent); }
.campus-nav nav a { border-bottom: none; white-space: nowrap; }
.campus-nav .here { color: var(--bright); border-bottom: 1px solid var(--accent); }

/* ---- hero ---- */
.hero { padding: 3.5rem 0 1rem; text-align: center; }
.hero .ascii {
  color: var(--accent);
  font-size: clamp(0.55rem, 1.6vw, 0.85rem);
  line-height: 1.25;
  white-space: pre;
  text-align: center;
  text-shadow: 0 0 10px rgba(51, 255, 102, 0.4);
  margin: 0 0 1.5rem;
  overflow-x: auto;
}
.hero .kicker {
  color: var(--accent-dim);
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.hero p.lede { color: var(--bright); font-size: 1.1rem; max-width: 60ch; margin: 1rem auto; }

/* ---- blinking block cursor ---- */
.cursor::after {
  content: "█";
  color: var(--accent);
  animation: blink 1.06s steps(1) infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- ASCII dividers ---- */
.divider {
  color: var(--accent-dim);
  text-align: center;
  margin: 3rem 0;
  letter-spacing: 0.3em;
  user-select: none;
}

/* ---- panels / cards ---- */
.panel {
  border: 1px solid var(--accent-dim);
  background: rgba(15, 46, 24, 0.22);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 0 18px rgba(51, 255, 102, 0.06), inset 0 0 24px rgba(51, 255, 102, 0.03);
}
.panel h3 { margin-top: 0; }
.panel .tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--bg);
  background: var(--accent);
  padding: 0.1rem 0.5rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

pre.term {
  background: #050805;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  text-shadow: 0 0 6px rgba(51, 255, 102, 0.5);
}
pre.term .dim { color: var(--accent-dim); }
pre.term .bright { color: var(--bright); }

/* ---- timeline ---- */
.timeline { list-style: none; margin: 2rem 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 2.25rem 3.2rem;
  border-left: 2px solid var(--accent-dim);
  margin-left: 0.8rem;
}
.timeline li::before {
  content: "●";
  position: absolute;
  left: -0.62rem;
  top: -0.15rem;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent);
}
.timeline .year {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.35rem;
  text-shadow: 0 0 10px rgba(51, 255, 102, 0.4);
}
.timeline p { margin: 0.4rem 0 0; }
.timeline .jab { color: var(--warn); }

/* ---- philosophy ---- */
.philosophy ol { padding-left: 1.4rem; }
.philosophy li { margin-bottom: 1.1rem; }
.philosophy .rule { color: var(--bright); font-weight: 700; }
.philosophy .who { color: var(--accent-dim); font-size: 0.85rem; }

/* ---- artifact gallery ---- */
.artifact {
  border: 1px solid var(--accent-dim);
  margin: 2.5rem 0;
  background: rgba(15, 46, 24, 0.14);
}
.artifact .art-head {
  border-bottom: 1px solid var(--accent-dim);
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  background: rgba(15, 46, 24, 0.35);
}
.artifact .art-head h3 { margin: 0; }
.artifact .art-head .acc {
  font-size: 0.78rem;
  color: var(--accent-dim);
  letter-spacing: 0.1em;
}
.artifact .art-body { padding: 1.25rem 1.5rem; }
.artifact figure { margin: 0 0 1rem; }
.artifact figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--accent-dim);
  display: block;
  filter: sepia(0.25) hue-rotate(70deg) saturate(1.4);
}
.artifact figcaption {
  font-size: 0.78rem;
  color: var(--accent-dim);
  margin-top: 0.5rem;
  line-height: 1.6;
}
.artifact figcaption a { color: var(--accent-dim); border-bottom-color: var(--accent-dim); }

/* ---- gift shop ---- */
.shop-note {
  border: 1px dashed var(--warn);
  color: var(--warn);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2.5rem;
  font-size: 0.95rem;
}
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}
.product {
  border: 1px solid var(--accent-dim);
  background: rgba(15, 46, 24, 0.16);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.product h3 { margin: 0; font-size: 1.05rem; }
.product .price { color: var(--bright); font-weight: 700; }
.product .mock {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050805;
  border: 1px solid var(--accent-faint);
  padding: 1rem;
  overflow: hidden;
}
.product p.desc { font-size: 0.88rem; margin: 0; flex: 1; }
button.soon {
  font-family: var(--mono);
  background: transparent;
  color: var(--accent-dim);
  border: 1px dashed var(--accent-dim);
  padding: 0.55rem 0.8rem;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  cursor: not-allowed;
  width: 100%;
}

/* CSS mockup pieces */
.tee {
  width: 130px; height: 130px;
  background: #101410;
  border: 2px solid var(--accent-dim);
  clip-path: polygon(20% 0, 80% 0, 100% 22%, 86% 34%, 86% 100%, 14% 100%, 14% 34%, 0 22%);
  display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 0.72rem; font-weight: 700;
  padding: 0 14px; line-height: 1.4;
}
.tee.unix { color: var(--accent); border-color: var(--accent); text-shadow: 0 0 8px var(--accent); }
.tee.linux { color: #9fd8ff; border-color: #5aa9e6; text-shadow: 0 0 8px #5aa9e6; }
.sticker {
  background: var(--accent); color: #04140a;
  font-weight: 700; font-size: 1.6rem;
  padding: 0.6rem 1.2rem; transform: rotate(-6deg);
  border: 3px solid var(--bright);
  box-shadow: 0 0 14px rgba(51,255,102,0.5);
}
.mug {
  width: 110px; height: 120px;
  background: #101410; border: 2px solid var(--accent-dim);
  border-radius: 0 0 18px 18px; position: relative;
  display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 0.62rem; color: var(--accent);
  padding: 0 10px; line-height: 1.5;
}
.mug::after {
  content: ""; position: absolute; right: -26px; top: 22px;
  width: 26px; height: 52px;
  border: 8px solid var(--accent-dim); border-left: none;
  border-radius: 0 14px 14px 0;
}
.poster {
  width: 120px; height: 160px;
  background: #050805; border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 0.7rem; color: var(--accent);
  padding: 0.6rem; line-height: 1.6;
  box-shadow: 0 0 16px rgba(51,255,102,0.25);
}
.plush {
  width: 110px; height: 130px; position: relative;
}
.plush .body {
  width: 96px; height: 118px; background: #1a1f1a;
  border: 2px solid #9fd8ff; border-radius: 48% 48% 46% 46%;
  position: absolute; left: 7px; top: 6px;
}
.plush .belly {
  width: 56px; height: 74px; background: #dfe7df;
  border-radius: 48% 48% 46% 46%;
  position: absolute; left: 27px; top: 40px;
}
.plush .eye { width: 9px; height: 9px; background: #9fd8ff; border-radius: 50%; position: absolute; top: 26px; }
.plush .eye.l { left: 36px; } .plush .eye.r { right: 36px; }
.plush .beak {
  width: 0; height: 0; position: absolute; left: 49px; top: 40px;
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-top: 10px solid #ffb000;
}
.plush .tag { position: absolute; bottom: -4px; right: 0; font-size: 0.65rem; color: #9fd8ff; border: 1px solid #5aa9e6; padding: 1px 5px; background: #050805; }
.panel-poster { font-size: 0.55rem; line-height: 1.15; color: var(--accent); white-space: pre; }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--accent-dim);
  background: rgba(4, 14, 8, 0.9);
  padding: 1.75rem 1.25rem 2.5rem;
  font-size: 0.8rem;
  color: var(--accent-dim);
}
footer .wrap { max-width: 860px; }
footer .attr { margin-bottom: 1rem; line-height: 1.8; }
footer .parody { color: var(--accent); }
footer a { color: var(--accent-dim); }

@media (max-width: 560px) {
  .timeline li { padding-left: 2.2rem; }
  .products { grid-template-columns: 1fr 1fr; }
}
