/* zach blackwood :: geocities-style homepage
   hand-coded. view source, it's all here. */

:root {
  --blue: #0000ee;
  --navy: #000080;
  --cream: #fffbea;
  --grey: #c0c0c0;
  --pink: #ff1493;
  --cyan: #00e5e5;
  --lime: #39ff14;
  --ink: #111;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 14px 10px 40px;
  background: var(--blue) url("images/stars.png");
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- the window ---------- */
.window {
  max-width: 920px;
  margin: 0 auto;
  background: var(--grey);
  border: 3px outset #fff;
  box-shadow: 6px 6px 0 #000;
}

.titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 3px 6px;
  background: linear-gradient(90deg, var(--navy), #1084d0);
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.tb-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tb-btns { display: flex; gap: 3px; flex: none; }
.tb-btns i {
  display: inline-block;
  width: 18px;
  height: 16px;
  line-height: 13px;
  text-align: center;
  font-style: normal;
  font-size: 12px;
  color: #000;
  background: var(--grey);
  border: 2px outset #fff;
}

.ticker {
  display: block;
  background: #000;
  color: var(--lime);
  font-weight: bold;
  font-size: 14px;
  padding: 3px 0;
  border-bottom: 2px solid #000;
}

/* ---------- masthead ---------- */
.masthead {
  background: #000;
  text-align: center;
  padding: 14px 8px 10px;
  border-top: 2px solid #444;
  border-bottom: 4px double var(--pink);
}

.ascii-name { margin: 0; line-height: 1; }
.ascii-name a { text-decoration: none; }
.ascii-name pre {
  display: inline-block;
  margin: 0;
  text-align: left;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: clamp(6px, 2.55vw, 16px);
  line-height: 1.05;
  color: var(--pink);
  text-shadow: 2px 2px 0 var(--navy);
}

.tagline {
  margin: 8px 0 0;
  color: var(--cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
}

/* ---------- columns ---------- */
.cols {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 0;
}

.side {
  background: var(--navy);
  color: #fff;
  padding: 14px 10px 18px;
  border-right: 3px ridge #8888ff;
  text-align: center;
}

.main {
  background: var(--cream);
  padding: 8px 20px 24px;
  min-width: 0;
  border: 3px inset #fff;
  border-left: 0;
}

/* ---------- ascii bits ---------- */
pre { font-family: "Courier New", Courier, monospace; }

.navbox {
  display: inline-block;
  margin: 0 0 14px;
  text-align: left;
  font-size: 13px;
  line-height: 1.35;
  color: #fff;
}
.navbox a { color: #7fffd4; text-decoration: none; }
.navbox a:visited { color: #7fffd4; }
.navbox a:hover, .navbox a:focus-visible { background: var(--pink); color: #fff; }
.navbox a.here { background: var(--pink); color: #fff; }
.dim { color: #8f8fff; }
.main .dim, .foot .dim { color: #555; }

.art {
  display: inline-block;
  margin: 8px 0;
  text-align: left;
  font-size: 12px;
  line-height: 1.15;
}
.sun   { color: #ffe600; }
.hound { color: #ff8fd0; }
.barcode { color: #8a6fd1; letter-spacing: 0.05em; margin: 2px 0 8px; }
.envelope { color: var(--pink); font-size: 14px; display: block; text-align: center; }

.clock-label { margin: 10px 0 0; font-size: 11px; color: #bbb; text-transform: uppercase; letter-spacing: 0.12em; }
.clock { margin: 0 0 6px; font-size: 20px; font-weight: bold; color: var(--lime); font-variant-numeric: tabular-nums; }

.counter { margin-top: 12px; }
.counter-label { display: block; font-size: 11px; color: #bbb; margin-bottom: 4px; }
.digits { display: inline-flex; gap: 2px; }
.digits i {
  font-style: normal;
  font-weight: bold;
  background: #000;
  color: var(--lime);
  border: 2px inset #888;
  padding: 0 5px;
  font-size: 16px;
}

/* ---------- main content ---------- */
.main p { margin: 0 0 1.1rem; }

a { color: #0000ee; }
a:visited { color: #551a8b; }
a:hover, a:focus-visible { background: #ffee00; color: #000; }

h2.welcome {
  margin: 14px 0 12px;
  text-align: center;
  color: var(--pink);
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  text-shadow: 2px 2px 0 var(--cyan);
}

h2.sect {
  margin: 1.6rem 0 0.6rem;
  font-size: 1rem;
  color: #007a7a;
  letter-spacing: 0.06em;
  border-bottom: 2px dashed #bbb;
  padding-bottom: 2px;
}

.portrait { margin: 0 0 1.2rem; text-align: center; }
.portrait img {
  max-width: 100%;
  height: auto;
  border: 5px ridge var(--pink);
  display: block;
  margin: 0 auto;
}
.portrait figcaption { margin-top: 6px; font-size: 12px; color: #555; }

.goto { text-align: center; font-weight: bold; }

/* books */
.book {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: start;
  margin: 0 0 1.6rem;
  padding: 12px;
  background: #fff;
  border: 3px double #999;
}
.book.nocover { grid-template-columns: 1fr; }
.book .cover { width: 100%; height: auto; display: block; border: 3px ridge #aaa; }
.book h3 { margin: 0; font-size: 1.15rem; color: var(--navy); }
.book .press { margin: 2px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #555; }
.book p { margin: 0 0 0.7rem; }
.cta { font-weight: bold; }
.hot { color: var(--pink); }

.poem-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.poem-list li { margin: 0 0 0.8rem; padding-left: 3.2ch; text-indent: -3.2ch; }
.poem-list li::before { content: "*~> "; color: var(--pink); font-weight: bold; }
.venue { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: #555; }

.bigmail { text-align: center; font-size: 1.3rem; margin: 1.5rem 0; }
.main .dim { text-align: center; font-size: 13px; }

/* ---------- footer ---------- */
.foot {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 10px 10px 16px;
  border-top: 4px double var(--pink);
}
.foot p { margin: 6px 0; }
.foot a { color: #7fffd4; }
.foot a:visited { color: #7fffd4; }
.foot a:hover, .foot a:focus-visible { background: var(--pink); color: #fff; }
.wave { color: var(--cyan); overflow: hidden; white-space: nowrap; }
.links { line-height: 2; }
.friends { font-size: 13px; color: #bbb; }

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 31px;
  font-size: 9px;
  line-height: 1.1;
  font-weight: bold;
  text-transform: uppercase;
  border: 2px outset #fff;
}
.b1 { background: #ffe600; color: #000; }
.b2 { background: #00e5e5; color: #000; }
.b3 { background: var(--pink); color: #fff; }
.b4 { background: #39ff14; color: #000; }

.construction { color: #ffe600; font-weight: bold; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; }
.ascii-spin { display: inline-block; width: 1.2ch; text-align: center; color: var(--lime); }
.updated { font-size: 11px; color: #888; }

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

.sparkle {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  font: bold 14px "Courier New", monospace;
  animation: sparkle 0.8s ease-out forwards;
}
@keyframes sparkle {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(16px) scale(0.5); }
}

@media (prefers-reduced-motion: reduce) {
  .blink { animation: none; }
  .sparkle { display: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  body { padding: 6px 4px 30px; font-size: 14px; }
  .window { box-shadow: 3px 3px 0 #000; }
  .cols { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 3px ridge #8888ff; padding: 10px; }
  .side .art, .side .counter { display: none; }
  .navbox { margin-bottom: 4px; }
  .main { border-left: 3px inset #fff; padding: 4px 14px 20px; }
  .book { grid-template-columns: 1fr; }
  .book .cover { max-width: 220px; }
  .tb-title { font-size: 11px; }
}
