/* Shared look for every page, taken from personal-page:
   The Fire Rises fonts, purple fire, film grain, Land and Thiel */
@font-face { font-family: "Pixeloid Sans"; src: url("fonts/PixeloidSans.woff2") format("woff2"); }
@font-face { font-family: "Pixeloid Sans"; src: url("fonts/PixeloidSans-Bold.woff2") format("woff2"); font-weight: bold; }
@font-face { font-family: "VCR OSD Mono"; src: url("fonts/VCR_OSD_Mono.ttf") format("truetype"); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #0b0a0d;
  color: #d4d4d4;
  font-family: "Pixeloid Sans", Tahoma, sans-serif;
  font-size: 17px;
}
.ph { color: #77797b; font-style: italic; }

/* ---------- film grain, scanlines, vignette over everything ---------- */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}
body::before {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.07;
}
body::after {
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 65%, rgba(0, 0, 0, 0.5));
}

/* fire along the bottom of the screen (flames.mp4, credit at the bottom of each page) */
.bg-fire {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40vh;
  z-index: -1;
  object-fit: cover;
  object-position: bottom;
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(to top, #000 40%, transparent);
  mask-image: linear-gradient(to top, #000 40%, transparent);
}

/* Land and Thiel left and right of me, standing in the fire */
.char {
  position: fixed;
  bottom: 0;
  z-index: -2;
  height: auto;
  pointer-events: none;
  filter: brightness(0.8);
  -webkit-mask-image: linear-gradient(to top, transparent, #000 25%);
  mask-image: linear-gradient(to top, transparent, #000 25%);
}
.char-land { right: calc(50% + 540px); width: calc((50% - 600px) * 1.25); max-width: 56vh; }
.char-thiel { left: calc(50% + 540px); width: calc((50% - 600px) * 1.55); max-width: 69vh; transform: translateX(-15%); }

/* me, in the middle between them: 1.2x as tall as Thiel (the bigger of the two),
   and never under 680px where the screen is tall enough.
   My head is at 37% of the picture's width, so -37% puts the head in the exact middle. */
.char-me { left: 50%; transform: translateX(-37%); width: auto; max-width: none;
  height: max(min((50vw - 600px) * 2, 89vh), min(680px, 100vh - 150px)); }

/* smaller screens: they stand in the corners */
@media (max-width: 1499px) {
  .char-land { right: auto; left: 0; width: 38vw; }
  .char-thiel { left: auto; right: 0; width: 47vw; transform: none; }
  .char-me { height: max(min(60vw, 89vh), min(680px, 100vh - 150px)); }
}

/* ---------- the middle column ---------- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 16px;
  text-align: center;
}
h1 {
  margin: 0;
  font-family: "VCR OSD Mono", monospace;
  font-size: clamp(48px, min(14vw, 13vh), 120px);
  font-weight: normal;
  letter-spacing: 4px;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 18px rgba(160, 70, 255, 0.9), 0 2px 0 #000;
}

/* buttons, like the tabs on the profile page */
.links { display: grid; gap: 10px; width: min(420px, 100%); }
.btn {
  display: block;
  min-height: 1.2em;
  padding: 14px 20px;
  background: linear-gradient(#3b3a40, #29282d);
  border: 1px solid #000;
  box-shadow: inset 0 1px 0 #4a4950;
  color: #fff;
  font-family: "VCR OSD Mono", monospace;
  font-size: 24px;
  line-height: 1.2;
  text-decoration: none;
}
a.btn:hover {
  background: linear-gradient(#55545c, #3c3b42);
  box-shadow: inset 0 -2px 0 #9b3fc0;
}

/* Evil Ass Vault, the password button: looks and reacts like the link buttons */
button.btn { width: 100%; box-sizing: border-box; cursor: default; margin: 0; border-radius: 0; }
button.btn-gate { cursor: pointer; }
button.btn-gate:hover {
  background: linear-gradient(#55545c, #3c3b42);
  box-shadow: inset 0 -2px 0 #9b3fc0;
}
.gate {
  position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.7);
}
.gate[hidden] { display: none; }
.gate input {
  width: min(320px, 80vw); padding: 12px 16px; box-sizing: border-box;
  background: #29282d; border: 1px solid #000; box-shadow: inset 0 -2px 0 #9b3fc0; color: #fff;
  font-family: "VCR OSD Mono", monospace; font-size: 22px; outline: none; text-align: center;
}
#gate-human { margin-top: 10px; }
.gate p { margin: 10px 0 0; min-height: 1.2em; color: #c9b3d6; font-family: "VCR OSD Mono", monospace; font-size: 18px; }

.credit { margin: 0 0 12px; text-align: center; font-size: 12px; color: #5d5c63; }
.credit a { color: #5d5c63; }
