/* handup.racing — cloud sky background.

   A #99f sky with soft white clouds, matched to a reference screenshot of a
   classic tiled cloud background. How it works:

   - body::before is one layer behind the page. Its background is a repeating
     710x355px tile of hard-edged white ellipses (one radial-gradient each),
     three or four ellipses per cloud.
   - filter: blur() softens the whole layer into clouds and opacity sets their
     brightness. Blurring after tiling keeps the clouds seamless across tiles.
   - Ellipse geometry was fitted numerically to the reference; ellipses that
     cross a tile edge are repeated at the wrapped position.
   - Only the tile's left ~290px was visible in the reference; the clouds in the
     rest of the tile are resized copies of the fitted ones.

   To change the look: --sky for the blue, blur() for softness, opacity for how
   white the clouds are. */

:root { --sky: #99f; }

html {
  background: var(--sky);
  /* Non-visible, so the viewport takes its scrolling from html and body is
     free to clip (below) without that leaking to the viewport. */
  overflow: auto;
}

body {
  position: relative;
  min-height: 100vh;
  display: flow-root; /* keep child margins inside body, not above it */
  margin: 0;
  /* The cloud layer bleeds 48px past every edge so the blur doesn't fade
     clouds that touch an edge. Clip that bleed here so it never adds
     scrollable overflow (clip, unlike hidden, isn't a scroll container;
     hidden is the fallback for browsers without clip). */
  overflow: hidden;
  overflow: clip;
}

body::before {
  content: "";
  position: absolute;
  inset: -48px;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(46.8px 24.5px at 244.9px 78.1px, #fff 97%, #fff0 100%),
    radial-gradient(15.9px 11.0px at 188.7px 93.4px, #fff 97%, #fff0 100%),
    radial-gradient(79.2px 4.2px at 255.3px 111.6px, #fff 97%, #fff0 100%),
    radial-gradient(58.8px 30.4px at 325.6px 73.9px, #fff 97%, #fff0 100%),
    radial-gradient(33.1px 13.6px at 82.0px 302.2px, #fff 97%, #fff0 100%),
    radial-gradient(33.5px 7.6px at 107.0px 309.4px, #fff 97%, #fff0 100%),
    radial-gradient(22.1px 7.2px at 159.4px 263.8px, #fff 97%, #fff0 100%),
    radial-gradient(48.2px 6.0px at 156.8px 282.2px, #fff 97%, #fff0 100%),
    radial-gradient(44.1px 23.1px at 653.4px 66.6px, #fff 97%, #fff0 100%),
    radial-gradient(15.0px 10.4px at -3.6px 81.0px, #fff 97%, #fff0 100%),
    radial-gradient(15.0px 10.4px at 706.4px 81.0px, #fff 97%, #fff0 100%),
    radial-gradient(74.6px 3.9px at -66.4px 98.2px, #fff 97%, #fff0 100%),
    radial-gradient(74.6px 3.9px at 643.6px 98.2px, #fff 97%, #fff0 100%),
    radial-gradient(55.4px 28.7px at 577.3px 62.6px, #fff 97%, #fff0 100%),
    radial-gradient(29.0px 15.2px at 478.2px 217.3px, #fff 97%, #fff0 100%),
    radial-gradient(9.9px 6.8px at 443.4px 226.8px, #fff 97%, #fff0 100%),
    radial-gradient(49.1px 2.6px at 484.6px 238.1px, #fff 97%, #fff0 100%),
    radial-gradient(36.4px 18.8px at 528.2px 214.7px, #fff 97%, #fff0 100%),
    radial-gradient(28.2px 11.5px at 644.0px 335.3px, #fff 97%, #fff0 100%),
    radial-gradient(28.5px 6.5px at 622.7px 341.4px, #fff 97%, #fff0 100%),
    radial-gradient(18.8px 6.1px at 578.1px 302.7px, #fff 97%, #fff0 100%),
    radial-gradient(41.0px 5.1px at 580.3px 318.2px, #fff 97%, #fff0 100%);
  background-size: 710px 355px;
  background-position: 48px 48px; /* tile origin = page top-left */
  filter: blur(9.56px);
  opacity: 0.831;
}


/* ------------------------------------------------------------------------
   1996 page — a dark, semi-transparent column floating over the sky, in the
   spirit of sscxwc.bike (whose look descends from whitep4nth3r's "Geocities"
   Style Stage theme). 800px max: the width of a good monitor in 1996.
   ------------------------------------------------------------------------ */

:root {
  --ink: #fff;
  --panel: rgba(5, 10, 35, 0.87);
  --silver: #c0c0c0;
  --orange: #f90;
  --green: #0f0;
  --cyan: #0ff;
  --magenta: #f0f;
  --yellow: #ff0;
  --shadow-purple: #64406e;
  --comic: "Comic Sans MS", "Comic Neue", "Chalkboard SE", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font: 18px/1.5 var(--comic);
  color: var(--ink);
}

.page {
  width: min(800px, 100% - 32px);
  margin: 24px auto;
  padding: 16px clamp(12px, 4vw, 24px) 24px;
  background: var(--panel);
  border: 4px ridge var(--silver);
}

/* Masthead: pickle | name | beer can */

.masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mascot {
  width: clamp(56px, 16vw, 144px);
  height: auto;
  flex: none;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.75rem);
  line-height: 1.1;
  text-align: center;
  color: var(--magenta);
  text-shadow: 2px 4px 5px var(--shadow-purple), -1px -1px 2px var(--silver);
}

h2 {
  margin: 0 0 0.5em;
  font-size: 1.6rem;
  text-align: center;
  color: var(--yellow);
}

p { margin: 0 0 1em; }

a { color: var(--cyan); }
a:visited { color: var(--magenta); }

/* Bevelled rule, like the default <hr> of the era. */
hr {
  margin: 24px 0;
  border: 0;
  border-top: 3px groove var(--silver);
}

/* Scrolling ticker (a CSS stand-in for <marquee>). */

.marquee {
  margin-top: 12px;
  overflow: hidden;
  white-space: nowrap;
  border: 2px inset var(--silver);
  background: #000;
  color: var(--yellow);
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
}

.marquee span {
  display: inline-block;
  padding: 4px 0 4px 100%;
  animation: marquee 15s linear infinite;
}

@keyframes marquee {
  to { transform: translateX(-100%); }
}

.panel { padding: 0 8px; }

/* Sponsors: white tiles (the logos are dark-on-white) in a silver ridge
   frame. Four across on desktop, two across on phones. */

.sponsors ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 40%), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sponsors img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 4px ridge var(--silver);
}

/* Old-school link buttons */

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.socials img { display: block; }

@media (prefers-reduced-motion: reduce) {
  h1, .marquee span { animation: none; }
  .marquee span { padding-left: 8px; }
}
