/* This is all the CSS on the site, shared by every page.
   Two families: the top bar and the buttons in a plain grotesk,
   the texts in the browser's Times. */

body {
  margin: 0;
  line-height: 1.4;
  background: #fff;
}
a, a:visited { color: rgb(0, 255, 0); }   /* all links green */
a { overflow-wrap: anywhere; }            /* a very long link wraps instead of leaving the screen */

/* ---------- THE TOP BAR (written once, in nav.js) ---------- */
nav {
  position: sticky;        /* stays at the top while you scroll, so home is always one click away */
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;         /* on a phone the buttons go on a second line */
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #000;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
}
nav a, nav a:visited { color: #000; text-decoration: none; }
/* the name: fluo green box with black letters (same green as the links) */
nav .name, nav .name:visited { background: rgb(0, 255, 0); color: #000; padding: 3px 20px; }
nav .buttons { display: flex; flex-wrap: wrap; gap: 8px; }
nav .box { border: 1px solid #000; padding: 3px 16px; background: #fff; }
nav .box.here, nav .box.here:visited { background: #222; color: #fff; }   /* the page you are on */

/* contact: the triangle opens a small box with e-mails and instagram */
nav details { position: relative; }
nav summary { cursor: pointer; }
nav .drop {
  position: absolute;
  right: -1px;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid #000;
  padding: 8px 12px;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.6;
}
nav .drop a, nav .drop a:visited { color: #000; text-decoration: underline; }

/* ---------- THE PAGE CONTENT ---------- */
main { max-width: 640px; margin: 32px 24px 80px; }
h1 { font-size: clamp(30px, 10vw, 48px); line-height: 1.1; margin: 0 0 16px; overflow-wrap: anywhere; }
h2 { font-size: 1em; margin: 32px 0 8px; }
main ul { list-style: none; padding: 0; }
main li { margin: 6px 0; }
img { display: block; max-width: 100%; height: auto; margin: 16px 0; }

/* images with a caption:
   <figure><img src="images/file.jpg" alt="..." loading="lazy"><figcaption>caption</figcaption></figure> */
figure { margin: 16px 0 28px; }
figure img { margin: 0; }
figcaption { font-size: 14px; color: #666; margin-top: 4px; }

/* hidden text that opens on click: <details><summary>Let's get personal</summary> ... </details> */
main summary { cursor: pointer; color: rgb(255, 0, 0); text-decoration: underline; }
main summary:hover { text-decoration: none; }
main details[open] summary { margin-bottom: 1.5em; }
.quote { font-style: italic; padding-left: 32px; }

/* the shaking title, only on antiworksimulator.html: <h1 class="jitter"> */
h1.jitter {
  font-family: Arial, sans-serif; font-weight: 900;
  font-size: clamp(44px, 11vw, 96px); line-height: 0.88; letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-shadow: 2px 0 rgba(0,0,0,0.18), -2px 0 rgba(0,0,0,0.12), 0 2px rgba(0,0,0,0.10);
  animation: jitter 0.12s steps(2) infinite;
}
h1.jitter span { display: block; white-space: nowrap; }
@keyframes jitter {
  0%   { transform: translate(0,0) rotate(-0.25deg); }
  50%  { transform: translate(1px,-1px) rotate(0.18deg); }
  100% { transform: translate(-1px,1px) rotate(-0.18deg); }
}

/* ---------- HOME: full-screen moving background ----------
   The picture itself is chosen in index.html (look for "1. THE BACKGROUND").
   Here it is only stretched to fill the screen.
   Free Neocities does not accept .mp4 videos: use a .gif or an animated .webp. */
main.home { max-width: none; margin: 0; }
.hero {
  position: relative;
  min-height: calc(100vh - 58px);   /* the full window minus the top bar */
  background: #000;        /* black while the picture loads, or if it is missing */
  overflow: hidden;
}
.hero .background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* fills the space, cutting the edges if needed */
  margin: 0;
}

/* the spinning oval, in the middle of the background (from codepen.io/rscheuer/pen/jOLKyxG) */
.spin-stage {
  position: absolute; inset: 0;
  perspective: 500px;
  display: flex; justify-content: center; align-items: center;
  pointer-events: none;
}
.disc {
  width: 200px; height: 300px;
  border-radius: 100%;
  border: 3px solid rgb(0, 255, 0);
  color: rgb(0, 255, 0);
  font-size: 20px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  animation: rotateAnimation 5s linear infinite;
}
.disc p { margin: 5px 0; }
@keyframes rotateAnimation {
  0%   { transform: rotateY(0deg)   rotateZ(0deg); }
  50%  { transform: rotateY(180deg) rotateZ(5deg); }
  100% { transform: rotateY(360deg) rotateZ(0deg); }
}

/* the shows box: plain browser controls, like a tour-dates widget */
.shows {
  position: absolute;
  top: 24px; left: 24px;
  z-index: 2;
  width: 300px;
  background: #fff;
  padding: 16px 20px 20px;
  font-size: 18px;
  line-height: 1.3;
}
.shows select { font-size: 18px; width: 100%; display: block; margin-bottom: 8px; }
.shows .show { margin-top: 20px; }
/* the list scrolls inside the box, the Upcoming/Past menu stays on top.
   To make the box taller or shorter, change max-height. */
.shows .list {
  max-height: min(60vh, 480px);
  overflow-y: auto;
  padding-right: 8px;      /* a bit of space between the text and the scrollbar */
  scrollbar-width: thin;              /* Firefox: thin bar, */
  scrollbar-color: #000 #e6e6e6;      /* black handle on a light grey track */
}
/* Chrome, Edge, Safari: a visible bar (by default some systems hide it until you scroll) */
.shows .list::-webkit-scrollbar { width: 8px; }
.shows .list::-webkit-scrollbar-track { background: #e6e6e6; }
.shows .list::-webkit-scrollbar-thumb { background: #000; }
/* the little "scroll for more" line under the list */
.shows .more-hint { margin: 8px 0 0; font-size: 14px; color: #666; text-align: center; }
.shows .show b { text-transform: uppercase; }
.shows button { display: block; width: 100%; font-size: 18px; margin-top: 4px; cursor: pointer; }

/* PHONE: same layout as the computer, the shows box stays on top of the background */
@media (max-width: 700px) {
  body { font-size: 18px; line-height: 1.6; }
  nav { font-size: 16px; padding: 10px 12px; }
  nav .box { padding: 2px 10px; }
  main { margin: 24px 16px 64px; }
  .hero { min-height: calc(100vh - 92px); }          /* the bar is taller on a phone (two lines) */
  .shows { top: 12px; left: 12px; right: 12px; width: auto; padding: 12px 14px 14px; font-size: 16px; }
  .shows select, .shows button { font-size: 16px; }
  .shows .show { margin-top: 12px; }
  .shows .list { max-height: 28vh; }                 /* shorter, so the oval below stays visible */
  .disc { width: 170px; height: 255px; font-size: 17px; }   /* a slightly smaller oval */
  .spin-stage { align-items: flex-end; padding-bottom: 24px; }   /* the oval moves down, under the box */
}
@media (prefers-reduced-motion: reduce) {
  .disc, h1.jitter { animation: none; }
}
