/* Starfield: three layers of tiny stars, tiled like an old background.gif */
body {
  margin: 0;
  background-color: #000;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 140px 70px, #ddd, transparent),
    radial-gradient(1.5px 1.5px at 90px 160px, #fff, transparent),
    radial-gradient(1px 1px at 200px 120px, #bbb, transparent),
    radial-gradient(1px 1px at 60px 210px, #eee, transparent),
    radial-gradient(1.5px 1.5px at 230px 230px, #cff, transparent),
    radial-gradient(1px 1px at 170px 20px, #fff, transparent),
    radial-gradient(1px 1px at 10px 120px, #aaa, transparent);
  background-size: 250px 250px;
  color: #33ffcc;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.35;
}
a:link { color: #cc99ff; }
a:visited { color: #66cccc; }
a:active, a:hover { color: #ff0066; }
.wrap { max-width: 860px; margin: 0 auto; padding: 16px; text-align: center; }
.alert { color: #ff0000; font-size: 13px; letter-spacing: 1px; animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { visibility: hidden; } }
.headline { font-size: 34px; margin: 12px 0 8px; }
.red { color: #ff0000; }
.cyan { color: #66ffff; }
.pink { color: #ff0099; }
.yellow { color: #ffff66; }
.green { color: #99ff33; }
/* screen blend turns the video's black background transparent over the stars */
.logo { width: 100%; height: auto; display: block; mix-blend-mode: screen; }
.caption { color: #ffcc33; font-style: italic; font-size: 15px; margin: 0 0 18px; }
.copy { text-align: left; width: 92%; margin: 0 auto; }
hr { width: 80%; border: 0; border-top: 1px solid #888; margin: 28px auto; }
h2 { font-size: 30px; font-weight: bold; margin: 0 0 14px; }
ul.keys { list-style: none; padding: 0; margin: 0 auto; display: inline-block; text-align: left; font-size: 20px; }
ul.keys li { margin: 6px 0; }
ul.keys li::before { content: "\2726  "; color: #ffff66; }
table.work { width: 100%; border-collapse: separate; border-spacing: 8px; }
table.work td { width: 33%; vertical-align: top; text-align: center; font-size: 15px; padding: 0; }
table.work img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; height: auto; border: 2px ridge #cc99ff; display: block; }
table.work td a { text-decoration: none; }
table.work td a span { text-decoration: underline; }
.contact { font-size: 22px; }
.map { width: 100%; height: 260px; border: 2px ridge #66ffff; filter: invert(0.9) hue-rotate(180deg); }
.counter { display: inline-block; background: #000; border: 2px inset #666; color: #33ff33; font-family: "Courier New", monospace; font-size: 20px; letter-spacing: 3px; padding: 2px 6px; }
.badge { display: inline-block; border: 2px outset #999; background: #c0c0c0; color: #000; font: bold 11px Arial, sans-serif; padding: 4px 8px; margin: 4px; }
.small { font-size: 13px; color: #aaaaaa; }
.top { font-size: 14px; }
@media (max-width: 600px) {
  body { font-size: 17px; }
  .headline { font-size: 26px; }
  h2 { font-size: 24px; }
  table.work, table.work tbody, table.work tr, table.work td { display: block; width: 100%; }
  table.work td { margin-bottom: 16px; }
}
/* Page nav bar, used on every page */
.nav { font-size: 16px; margin: 4px 0 14px; }
.nav a { margin: 0 4px; }
/* the mask makes the still logo's black background truly transparent */
.mini-logo { width: 100%; height: auto; display: block; -webkit-mask: url(img/logo-mask.png) center / 100% 100% no-repeat; mask: url(img/logo-mask.png) center / 100% 100% no-repeat; }
/* Podcast episode player */
.ep { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 2px ridge #ff0099; background: #000; }
.ep iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Logo hover: the logo tilts toward the cursor and a glow follows it, clipped to the logo's shape.
   logo.js sets --rx/--ry (tilt) and --mx/--my (cursor position). The tilt goes on the logo itself,
   not the wrapper, so the video's screen blend still reaches the stars behind it. */
.logo-wrap { position: relative; display: block; width: 640px; max-width: 100%; margin: 0 auto; --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; }
.logo-wrap.mini { width: 260px; max-width: 70%; }
.logo-wrap > .logo, .logo-wrap > .mini-logo, .logo-wrap::after {
  transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.5s ease-out, opacity 0.4s ease-out;
}
.logo-wrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,0.85), rgba(102,255,255,0.35) 9%, transparent 22%);
  -webkit-mask: url(img/logo-mask.png) center / 100% 100% no-repeat;
  mask: url(img/logo-mask.png) center / 100% 100% no-repeat;
}
.logo-wrap.ready.hover > .logo, .logo-wrap.ready.hover > .mini-logo, .logo-wrap.ready.hover::after { transition: transform 0.12s ease-out, opacity 0.2s ease-out; }
.logo-wrap.ready.hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .logo-wrap > .logo, .logo-wrap > .mini-logo, .logo-wrap::after { transform: none; } }

/* Moving starfield (starfield.js) replaces the static star tile when it runs */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
html.warp body { background-image: none; }
