@font-face {
  font-family: "RuneScape UF";
  src: url("/static/fonts/runescape_uf.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0b0c0e;
  --text: #f1ece4;
  --accent: #d0021b;
  --gold: #f5c518;
  --cam: #3fc8d4;
  --rainbow: linear-gradient(90deg, #ff2d2d, #ff9a1f, #ffe11f, #33e04a, #2f7bff, #8a3dff, #ff3df2);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: "RuneScape UF", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
/* Close-up clown loop; the gradient keeps text legible over a busy face. */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.15);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(ellipse at center, rgba(11, 12, 14, 0) 0%, rgba(11, 12, 14, 0.55) 100%),
    linear-gradient(rgba(11, 12, 14, 0.1), rgba(11, 12, 14, 0.5));
}

/* Live-cam viewfinder overlay, after the stream's cam outlines. */
.cam-frame {
  position: fixed;
  inset: clamp(0.75rem, 3vw, 2rem);
  z-index: 4;
  pointer-events: none;
}
.corner {
  position: absolute;
  width: clamp(2.5rem, 8vw, 5rem);
  height: clamp(2.5rem, 8vw, 5rem);
  border: 0 solid var(--cam);
  opacity: 0.8;
}
.corner.tl { top: 0; left: 0; border-top-width: 6px; border-left-width: 6px; }
.corner.tr { top: 0; right: 0; border-top-width: 6px; border-right-width: 6px; }
.corner.bl { bottom: 0; left: 0; border-bottom-width: 6px; border-left-width: 6px; }
.corner.br { bottom: 0; right: 0; border-bottom-width: 6px; border-right-width: 6px; }
.reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(60vmin, 520px);
  height: min(60vmin, 520px);
  transform: translate(-50%, -50%);
  border: 3px solid var(--cam);
  border-radius: 50%;
  opacity: 0.18;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(clamp(0.75rem, 3vw, 2rem) + 1.25rem) calc(clamp(0.75rem, 3vw, 2rem) + 1.5rem);
}
.site-nav-brand {
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}
.site-nav-brand:hover {
  color: var(--gold);
}
.rec {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}
.rec-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #ff2020;
  box-shadow: 0 0 8px #ff2020;
  animation: blink 1.2s steps(1) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  padding: 6.5rem 2rem 3rem;
}
header {
  text-align: center;
  min-width: 0;
  max-width: 100%;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8)) drop-shadow(0 4px 16px rgba(0, 0, 0, 0.7));
}
/* Crimson title with a rainbow copy offset behind it, like the title card. */
h1 {
  position: relative;
  margin: 0;
  font-size: clamp(3rem, 15vw, 8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  overflow-wrap: break-word;
}
h1::before,
.portrait-arrow::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translate(0.06em, -0.05em);
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
p.subtitle {
  margin: 0.4rem 0 0;
  font-size: clamp(2rem, 9vw, 4.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0.05em 0.05em 0 var(--accent);
  overflow-wrap: break-word;
}
a.watch {
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  letter-spacing: 0.04em;
  color: #ff2a2a;
  text-decoration: none;
  text-shadow: 2px 2px 0 #000, 0 2px 10px rgba(0, 0, 0, 0.8);
}
a.watch:hover {
  color: var(--gold);
}
.hero-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
a.gallery-link {
  font-size: clamp(1rem, 4vw, 1.35rem);
  letter-spacing: 0.04em;
  color: var(--gold);
  text-decoration: none;
  text-shadow: 2px 2px 0 #000, 0 2px 10px rgba(0, 0, 0, 0.8);
}
a.gallery-link:hover {
  color: var(--text);
}

.site-nav-right {
  display: inline-flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 2rem);
}
.site-nav-link {
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}
.site-nav-link:hover {
  color: var(--text);
}

/* Portrait gallery: paintings hung on a dark wall, each with a museum plaque. */
.gallery {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 7.5rem clamp(1.5rem, 6vw, 4rem) 5rem;
}
.gallery-header {
  margin-bottom: 3rem;
}
.gallery-header h1 {
  font-size: clamp(2.25rem, 9vw, 5rem);
}
.gallery-tagline {
  margin: 0.75rem 0 0;
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  letter-spacing: 0.04em;
  color: var(--gold);
  text-shadow: 0.06em 0.06em 0 var(--accent);
}
.portrait-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 2.5rem 2rem;
}
.portrait-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.portrait-card img,
.portrait-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 6px solid #1a1410;
  box-shadow: 0 0 0 1px rgba(245, 197, 24, 0.25), 0 14px 32px rgba(0, 0, 0, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.portrait-card:hover img,
.portrait-card:focus-visible img {
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px var(--cam), 0 18px 40px rgba(0, 0, 0, 0.8);
}
.plaque {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 1rem;
}
.plaque-subjects {
  font-size: 1.3rem;
  color: var(--text);
}
.portrait-card:hover .plaque-subjects {
  color: var(--gold);
}
.plaque-meta {
  font-size: 1rem;
  color: rgba(241, 236, 228, 0.65);
}
.plaque-vod,
.back-link {
  font-size: 1.1rem;
  color: var(--cam);
  text-decoration: none;
}
.plaque-vod:hover,
.back-link:hover {
  color: var(--gold);
}
.portrait-page .back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
}
.portrait-figure {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: clamp(0.5rem, 2.5vw, 1.75rem);
  align-items: center;
}
.portrait-image { grid-area: 1 / 2; }
.portrait-figure .plaque { grid-column: 2; }
/* Crimson < > with the title's rainbow copy offset behind. */
.portrait-arrow {
  position: relative;
  isolation: isolate;
  grid-row: 1;
  padding: 0.25em 0.1em;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1;
  color: var(--accent);
  text-decoration: none;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8));
  transition: transform 0.15s ease;
}
.portrait-arrow.prev { grid-column: 1; }
.portrait-arrow.next { grid-column: 3; }
.portrait-arrow:hover,
.portrait-arrow:focus-visible {
  color: var(--gold);
}
.portrait-arrow.prev:hover { transform: translateX(-3px); }
.portrait-arrow.next:hover { transform: translateX(3px); }
/* Match the arrow's padding so the rainbow lines up with the glyph, and keep the
   offset subtle: a single thin character reads as two arrows at the title's offset. */
.portrait-arrow::before {
  padding: inherit;
  transform: translate(0.05em, -0.035em);
}
.portrait-figure .plaque-subjects {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
}
.get-painted {
  margin-top: 4.5rem;
  padding-top: 2.5rem;
  border-top: 3px solid rgba(63, 200, 212, 0.35);
  text-align: center;
}
.get-painted h2 {
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--accent);
}
.get-painted p {
  margin: 0.75rem auto 1.5rem;
  max-width: 32rem;
  font-size: 1.2rem;
  line-height: 1.4;
}
.get-painted strong {
  font-weight: 400;
  color: var(--gold);
}
@media (max-width: 30rem) {
  .site-nav-brand { font-size: 0.95rem; }
  .site-nav-link, .rec { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-card img, .portrait-arrow { transition: none; }
  .rec-dot { animation: none; }
}
