:root {
  --bg: #000010;
  --panel: #0a0a24;
  --text: #e4e4f0;
  --muted: #8a8ab0;
  --pink: #ff66cc;
  --lime: #99ff66;
  --cyan: #66ccff;
  --yellow: #ffff66;
  --visited: #cc99ff;
  --bevel-hi: #6a6aa8;
  --bevel-lo: #1a1a3a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 90px 120px, #ccf, transparent),
    radial-gradient(1px 1px at 150px 60px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 60px 170px, #ffc, transparent),
    radial-gradient(1px 1px at 180px 190px, #cff, transparent),
    radial-gradient(1px 1px at 120px 10px, #fcf, transparent);
  background-size: 200px 200px;
  font: 13px/1.5 Verdana, Tahoma, "DejaVu Sans", sans-serif;
  -webkit-font-smoothing: none;
}

a { color: var(--cyan); }
a:visited { color: var(--visited); }
a:hover { color: var(--yellow); background: #330033; }
a:focus-visible, button:focus-visible { outline: 1px dotted var(--yellow); outline-offset: 2px; }

.pink { color: var(--pink); }
.cyan { color: var(--cyan); }
.muted { color: var(--muted); }
.tiny { font-size: 11px; }

.ticker {
  overflow: hidden;
  white-space: nowrap;
  background: #000;
  border-bottom: 2px ridge var(--bevel-hi);
  color: var(--lime);
  font: bold 12px/22px "Courier New", monospace;
}
.ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 28s linear infinite;
}
@keyframes ticker { to { transform: translateX(-100%); } }

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px;
}

.cols {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.main, .sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }

.masthead { text-align: center; margin-bottom: 14px; }

.wordart {
  margin: 8px 0 0;
  font: italic bold clamp(30px, 8vw, 54px)/1.1 "Times New Roman", Times, serif;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #fff 0%, var(--pink) 45%, #9900cc 55%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(3px 3px 0 #330066);
}
.tagline { margin: 2px 0 10px; color: var(--lime); font-family: "Courier New", monospace; }

.construction {
  display: inline-block;
  padding: 3px 12px;
  color: #000;
  font: bold 12px/1.4 Verdana, sans-serif;
  background: repeating-linear-gradient(-45deg, #ffcc00 0 10px, #000 10px 20px);
  border: 2px outset #ffcc00;
}
.construction span { background: #ffcc00; padding: 0 4px; }

.box {
  background: var(--panel);
  border: 3px ridge var(--bevel-hi);
}
.bar {
  margin: 0;
  padding: 2px 6px;
  font: bold 12px/1.5 Verdana, sans-serif;
  color: #fff;
  background: linear-gradient(90deg, #000080, #1084d0);
  text-transform: lowercase;
}
.bar::before { content: "» "; color: var(--yellow); }
.pad { padding: 8px 12px; }
.pad > p:first-of-type { margin-top: 0; }
.pad > p:last-child { margin-bottom: 0; }

.figlet {
  float: right;
  margin: 0 0 6px 10px;
  color: var(--pink);
  font: 11px/1.1 "Courier New", monospace;
}

.im-body { padding: 8px 10px; background: #fffff0; color: #000; font-size: 12px; }
.im-body a { color: #0000ee; }
.im-who { margin: 0 0 6px; }
.im-body .muted { color: #666; }
.dot {
  display: inline-block;
  width: 9px; height: 9px;
  margin-right: 4px;
  border-radius: 50%;
  background: #999;
  border: 1px solid #444;
  vertical-align: 0;
}
.dot.online { background: #33dd33; }
.dot.idle { background: #ffbb00; }
.dot.dnd { background: #ee3333; }
.away { margin: 0; font-style: italic; color: #333; }
.seen { margin: 4px 0 0; }
.act { display: flex; gap: 8px; align-items: center; }
.act img { width: 40px; height: 40px; border: 1px solid #000; image-rendering: auto; flex: none; }
.act p { margin: 0; line-height: 1.3; overflow-wrap: anywhere; }
.act + .act { margin-top: 6px; }

.clock-box { padding-bottom: 6px; }
.tz {
  margin: 6px 8px 0;
  padding: 4px 8px;
  background: #001a00;
  border: 2px inset #888;
}
.tz-row { display: flex; align-items: baseline; justify-content: space-between; margin: 0; }
.tz-who { font: bold 12px/1.6 "Courier New", monospace; }
.tz-time {
  color: var(--lime);
  font: bold 18px/1.3 "Courier New", monospace;
  letter-spacing: 1px;
  text-shadow: 0 0 4px var(--lime);
}
.tz-diff { margin: 5px 8px 0; text-align: center; font-size: 11px; color: var(--muted); }
.tz-diff b { color: var(--yellow); font-weight: normal; }

.player {
  --amp-body-1: #3c3d58;
  --amp-body-2: #1e1f30;
  --amp-hi: #6c6e94;
  --amp-lo: #0a0a14;
  --amp-title-1: #2a2b44;
  --amp-title-2: #13131f;
  --amp-groove: #c9a24a;
  --amp-title-text: #e8d9a8;
  --amp-btn-1: #4a4c6c;
  --amp-btn-2: #2a2b40;
  --amp-btn-text: #d6d8ee;
  --amp-screen: #000;
  --amp-lcd: #00e000;
  --amp-lcd-dim: #0b3a0b;
  --amp-lcd-text: #00d800;
  --amp-pl-bg: #000;
  --amp-pl-text: #00e000;
  --amp-pl-num: #00a000;
  --amp-pl-cur-bg: #0000c6;
  --amp-pl-cur-text: #fff;
  --amp-bar-lo: #18b818;
  --amp-bar-mid: #e8e000;
  --amp-bar-hi: #ff3010;
  --amp-peak: #c8c8c8;
  border: 0;
  padding: 3px;
  background: linear-gradient(180deg, var(--amp-body-1), var(--amp-body-2));
  box-shadow: inset 1px 1px 0 var(--amp-hi), inset -1px -1px 0 var(--amp-lo), 0 0 0 1px #000;
  color: var(--amp-btn-text);
  font: 10px/1.2 Verdana, Tahoma, sans-serif;
}

.amp-titlebar {
  position: relative;
  margin: 0 0 3px;
  height: 14px;
  background:
    repeating-linear-gradient(180deg, var(--amp-groove) 0 1px, transparent 1px 3px) center / 100% 7px no-repeat,
    linear-gradient(180deg, var(--amp-title-1), var(--amp-title-2));
  box-shadow: inset 1px 1px 0 var(--amp-hi), inset -1px -1px 0 var(--amp-lo);
  text-align: center;
}
.amp-titlebar span {
  position: relative;
  top: 1px;
  padding: 0 6px;
  background: linear-gradient(180deg, var(--amp-title-1), var(--amp-title-2));
  color: var(--amp-title-text);
  font: bold 9px/12px Verdana, sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.amp-main { display: grid; gap: 4px; }

.amp-display {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "time spec" "marquee marquee" "info info";
  gap: 2px 6px;
  padding: 4px 5px 3px;
  background: var(--amp-screen);
  box-shadow: inset 1px 1px 0 var(--amp-lo), inset -1px -1px 0 var(--amp-hi);
  color: var(--amp-lcd-text);
  font: 10px/1.2 "Courier New", monospace;
}
.amp-timebox { grid-area: time; display: flex; align-items: center; gap: 3px; }
.amp-state { width: 9px; color: var(--amp-lcd); font-size: 9px; }
.amp-time { display: block; padding: 0; border: 0; background: none; line-height: 0; cursor: pointer; }
.amp-time:focus-visible { outline: 1px dotted var(--amp-lcd); outline-offset: 2px; }
.amp-time canvas { display: block; width: 53px; height: 13px; image-rendering: pixelated; }
.player.paused .amp-time canvas { animation: amp-blink 1s steps(1) infinite; }
@keyframes amp-blink { 50% { visibility: hidden; } }
.amp-spectrum { grid-area: spec; justify-self: end; align-self: center; width: 100%; max-width: 88px; height: 26px; }
.amp-marquee {
  grid-area: marquee;
  overflow: hidden;
  white-space: nowrap;
  color: var(--amp-lcd);
}
.amp-marquee span { display: inline-block; }
.player.playing .amp-marquee span { padding-left: 100%; animation: ticker 11s linear infinite; }
.amp-info { grid-area: info; display: flex; justify-content: space-between; color: var(--amp-lcd-text); opacity: .75; font-size: 9px; }

.amp-seek, .amp-vol {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 10px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.amp-seek:disabled { cursor: default; opacity: .6; }
.amp-seek::-webkit-slider-runnable-track, .amp-vol::-webkit-slider-runnable-track {
  height: 6px;
  background: var(--amp-lo);
  box-shadow: inset 1px 1px 0 #000, 0 1px 0 var(--amp-hi);
}
.amp-seek::-moz-range-track, .amp-vol::-moz-range-track {
  height: 6px;
  background: var(--amp-lo);
  box-shadow: inset 1px 1px 0 #000, 0 1px 0 var(--amp-hi);
}
.amp-vol::-webkit-slider-runnable-track { background: linear-gradient(90deg, #0a5a0a, #d8c000 70%, #c02000); }
.amp-vol::-moz-range-track { background: linear-gradient(90deg, #0a5a0a, #d8c000 70%, #c02000); }
.amp-seek::-webkit-slider-thumb, .amp-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 10px;
  margin-top: -2px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, var(--amp-btn-1), var(--amp-btn-2));
  box-shadow: inset 1px 1px 0 var(--amp-hi), inset -1px -1px 0 var(--amp-lo), 0 0 0 1px #000;
}
.amp-seek::-moz-range-thumb, .amp-vol::-moz-range-thumb {
  width: 14px; height: 10px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, var(--amp-btn-1), var(--amp-btn-2));
  box-shadow: inset 1px 1px 0 var(--amp-hi), inset -1px -1px 0 var(--amp-lo), 0 0 0 1px #000;
}

.amp-row { display: flex; align-items: center; gap: 5px; }
.amp-ctrls { display: flex; gap: 1px; flex: none; }
.amp-btn {
  width: 22px; height: 17px;
  padding: 0;
  border: 0;
  background: linear-gradient(180deg, var(--amp-btn-1), var(--amp-btn-2));
  box-shadow: inset 1px 1px 0 var(--amp-hi), inset -1px -1px 0 var(--amp-lo), 0 0 0 1px #000;
  color: var(--amp-btn-text);
  font: 9px/17px Verdana, "DejaVu Sans", sans-serif;
  cursor: pointer;
}
.amp-btn:active:not(:disabled), .amp-btn[aria-pressed="true"] {
  background: linear-gradient(0deg, var(--amp-btn-1), var(--amp-btn-2));
  box-shadow: inset 1px 1px 0 var(--amp-lo), inset -1px -1px 0 var(--amp-hi), 0 0 0 1px #000;
  color: var(--amp-lcd);
}
.amp-btn:disabled { opacity: .45; cursor: default; }
.amp-vol { flex: 1; margin-right: 2px; }

.amp-pl {
  margin-top: 4px;
  padding: 2px;
  background: linear-gradient(180deg, var(--amp-body-1), var(--amp-body-2));
  box-shadow: inset 1px 1px 0 var(--amp-hi), inset -1px -1px 0 var(--amp-lo), 0 0 0 1px #000;
}
.amp-pl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1px 3px 3px;
  color: var(--amp-title-text);
  font: bold 9px/1.2 Verdana, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.amp-list {
  margin: 0;
  padding: 2px 0;
  list-style: none;
  counter-reset: track;
  max-height: 110px;
  overflow-y: auto;
  background: var(--amp-pl-bg);
  box-shadow: inset 1px 1px 0 var(--amp-lo), inset -1px -1px 0 var(--amp-hi);
  font: 10px/1.3 Verdana, Tahoma, sans-serif;
  scrollbar-width: thin;
  scrollbar-color: var(--amp-btn-1) var(--amp-pl-bg);
}
.amp-list li { counter-increment: track; }
.amp-list button {
  display: flex;
  gap: 4px;
  width: 100%;
  padding: 1px 4px;
  border: 0;
  background: none;
  color: var(--amp-pl-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.amp-list button::before { content: counter(track) "."; color: var(--amp-pl-num); flex: none; }
.amp-list .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amp-list .d { flex: none; color: var(--amp-pl-num); }
.amp-list button:hover .t { text-decoration: underline; }
.amp-list button[aria-current="true"], .amp-list button[aria-current="true"]::before, .amp-list button[aria-current="true"] .d {
  background: var(--amp-pl-cur-bg);
  color: var(--amp-pl-cur-text);
}
.player button:focus-visible, .player input:focus-visible { outline: 1px dotted var(--amp-lcd); outline-offset: 1px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sites { margin: 0; padding-left: 20px; }
.sites li { margin: 3px 0; }
.sites li::marker { content: "→ "; color: var(--lime); }

.gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery button {
  padding: 0;
  border: 3px outset #888;
  background: #000;
  cursor: pointer;
}
.gallery button:active { border-style: inset; }
.gallery img { display: block; width: 110px; height: 82px; object-fit: cover; }

.contact { border-collapse: collapse; }
.contact th {
  padding: 2px 12px 2px 0;
  text-align: left;
  color: var(--pink);
  font-weight: normal;
  vertical-align: top;
}
.contact th::after { content: ":"; }
.contact td { padding: 2px 0; overflow-wrap: anywhere; }

button.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
button.link:hover { color: var(--yellow); }

.code {
  display: block;
  width: 100%;
  resize: none;
  padding: 4px;
  background: #000;
  color: var(--lime);
  border: 2px inset #888;
  font: 11px/1.4 "Courier New", monospace;
}

.footer { margin-top: 18px; text-align: center; }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 10px; }
.buttons img { display: block; }

.lightbox {
  max-width: min(92vw, 900px);
  padding: 6px;
  background: var(--panel);
  color: var(--text);
  border: 3px ridge var(--bevel-hi);
}
.lightbox::backdrop { background: rgb(0 0 16 / .85); }
.lightbox img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; }
.lightbox p { margin: 4px 0 0; text-align: center; }
.lightbox .x {
  display: block;
  margin: 0 0 6px auto;
  background: #c0c0c0;
  color: #000;
  border: 2px outset #fff;
  font: 11px Verdana, sans-serif;
  cursor: pointer;
}

.spark {
  position: fixed;
  pointer-events: none;
  z-index: 99;
  font-size: 12px;
  line-height: 1;
  animation: spark .8s ease-out forwards;
}
@keyframes spark {
  to { transform: translate(var(--dx), 24px) scale(.3); opacity: 0; }
}

.boot { display: none; }
html.booting { overflow: hidden; }
html.booting .boot {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  padding: calc(14px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: #000;
  color: #aaa;
  font: 15px/1.35 "DejaVu Sans Mono", "Liberation Mono", Consolas, "Courier New", monospace;
  -webkit-font-smoothing: auto;
  cursor: pointer;
  transition: opacity .35s;
}
html.booting .boot.boot-out { opacity: 0; }
.boot-line { display: flex; max-width: 92ch; margin: 0; white-space: pre-wrap; }
.boot-text { min-width: 0; overflow-wrap: anywhere; }
.boot-status { margin-left: auto; padding-left: 2ch; white-space: pre; }
.boot-good { color: #55ff55; font-weight: bold; }
.boot-br { color: #5555ff; font-weight: bold; }
.boot-blue { color: #5555ff; font-weight: bold; }
.boot-star { white-space: pre; flex: none; }
.boot-cursor { display: inline-block; width: 1ch; height: 1.1em; vertical-align: text-bottom; background: #aaa; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.boot-hint {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(10px + env(safe-area-inset-bottom));
  margin: 0;
  color: #555;
  font-size: 12px;
}

@media (max-width: 640px) {
  html.booting .boot { font-size: 12px; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .page { padding: 12px 10px calc(12px + env(safe-area-inset-bottom)); }
  .masthead { margin-bottom: 12px; }
  .figlet { display: none; }

  .cols { grid-template-columns: minmax(0, 1fr); }
  .sidebar, .main { display: contents; }
  #about { order: 1; }
  .im { order: 2; }
  #sites { order: 3; }
  .player { order: 4; }
  .clock-box { order: 5; }
  #photos { order: 6; }
  #contact { order: 7; }

  .bar { padding: 4px 8px; font-size: 13px; }
  .pad { padding: 10px 12px; }
  .im-body { font-size: 13px; }
  .sites li { margin: 8px 0; }
  .contact th, .contact td { padding: 5px 0; }
  .contact th { padding-right: 14px; }
  .gallery img { width: 150px; height: 112px; }

  .player { padding: 4px; }
  .amp-display { padding: 6px 8px 5px; font-size: 12px; }
  .amp-time canvas { width: 106px; height: 26px; }
  .amp-info { font-size: 11px; }
  .amp-spectrum { max-width: 120px; height: 30px; }
  .amp-seek, .amp-vol { height: 24px; }
  .amp-seek::-webkit-slider-thumb, .amp-vol::-webkit-slider-thumb { width: 22px; height: 16px; margin-top: -5px; }
  .amp-seek::-moz-range-thumb, .amp-vol::-moz-range-thumb { width: 22px; height: 16px; }
  .amp-row { flex-wrap: wrap; gap: 6px; }
  .amp-ctrls { flex: 1 1 100%; gap: 3px; }
  .amp-btn { flex: 1; width: auto; height: 34px; font-size: 13px; line-height: 34px; }
  .amp-vol { flex: 1 1 100%; margin: 0; }
  .amp-pl-head { font-size: 11px; padding: 3px 4px 4px; }
  .amp-list { max-height: 260px; font-size: 13px; }
  .amp-list button { gap: 6px; padding: 7px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker span { animation: none; padding-left: 8px; }
  .player.playing .amp-marquee span { animation: none; padding-left: 0; }
  .player.paused .amp-time canvas { animation: none; }
}
