/* ==========================================================================
   PsyGravel — design tokens
   Override any of these (e.g. in an inline <style> or a later stylesheet)
   to retint pieces of the page without touching the rules below.
   Example: to shift just the H1 toward violet, override --pg-h1-color.
   ========================================================================== */

@font-face {
  font-family: "Uniqueline";
  src: url("UniquelineRegular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gimcracks";
  src: url("Gimcracks.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "what-time-is-it";
  src: url("what-time-is-it.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
   --pg-text-color: rgb(99, 255, 0);        /* default text color, site-wide */
  /* --pg-text-color: rgb(255, 255, 117); */       /* default text color, site-wide */
  /* --pg-text-color: rgb(116, 255, 255); */        /* default text color, site-wide */
  --pg-h1-color: var(--pg-text-color); /* override this alone to shift the H1 hue */
  --pg-link-color: var(--pg-text-color);
  --pg-link-hover-color: #ffffff;

  --pg-overlay-color: 15, 4, 26;    /* RGB triplet: near-black with a purple cast */
  --pg-overlay-alpha: 0.40;         /* panel behind text, instead of pure black */

  --pg-font-display: "Gimcracks", "Uniqueline", "Rubik Glitch", "Space Grotesk", system-ui, sans-serif;
  --pg-font-body: "what-time-is-it", "Space Grotesk", system-ui, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--pg-font-body);
  color: var(--pg-text-color);
  position: relative;
}

/* ==========================================================================
   Nav — minimal fixed corner link, reuses footer-link's color/hover
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 0.75rem 1.25rem;
}

.site-nav .nav-link {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0;
}

/* Full-bleed, fixed background image sitting behind everything */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("background.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Page-specific background overrides — apply alongside .page-bg */
.page-bg-about {
  background-image: url("background-about.webp");
}

/* ==========================================================================
   Hero area — spans the full viewport height so the title (near the top)
   and paragraph (dead center) are positioned against the whole screen,
   independent of footer height or content length.
   ========================================================================== */
.hero-area {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
}

.title-block {
  flex-shrink: 0;
  max-width: 90vw;
  margin-bottom: 1.5rem;
}

.copy-block {
  margin-top: auto;
  margin-bottom: auto;
  width: 60vw;
}

@media (max-width: 576px) {
  .copy-block {
    width: 92vw;
  }
}

/* grid-sizer hack exists because Masonry, without an explicit columnWidth, defaults to using the first item's width as its packing unit. */
.grid-sizer {
  width: 8.3333%;
}

/* Content panel — a partially-transparent dark surface behind the copy */
.content-panel {
  --panel-text-color: var(--pg-text-color);
  --panel-font: var(--pg-font-body);
  color: var(--panel-text-color);
  font-family: var(--panel-font);
  background-color: rgba(var(--pg-overlay-color), var(--pg-overlay-alpha));
  border: 1px solid rgba(var(--pg-overlay-color), 0.9);
  border-radius: 1.1rem;
  /* backdrop-filter: blur(2px); */
}


/* Panel color variants — add more as needed, then apply the class in the HTML */
.panel-cyan   { --panel-text-color: #00E5FF; }
.panel-lime   { --panel-text-color: #B6FF00; }
.panel-amber  { --panel-text-color: #FFB300; }

/* Panel font variants — add more as needed, then apply the class in the HTML */
.panel-font-display { --panel-font: var(--pg-font-display); }
.panel-font-mono    { --panel-font: "Space Mono", "Space Grotesk", monospace; }
.panel-font-serif   { --panel-font: "Playfair Display", Georgia, serif; }

.site-title {
  font-family: var(--pg-font-display);
  color: var(--pg-h1-color);
  font-size: clamp(2.5rem, 6.5vw, 3.7rem);
  /* font-size: clamp(2.5rem, 8vw, 4.5rem); */
  line-height: 1;
  /* letter-spacing: -0.06em; */
  /*text-shadow: 0 0 18px rgba(223, 0, 255, 0.55), 0 0 40px rgba(223, 0, 255, 0.25); */
  margin-top: 0.22em; /* fallback nudge for browsers without text-box-trim support */
  margin: 0;
}

@supports (text-box-trim: trim-both) {
  .site-title {
    margin-top: 0;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
  }
}

/* Optional intensity boost — apply alongside .site-title, independent of font choice */
.title-intense {
  -webkit-text-stroke: 0.5px var(--pg-h1-color);
  text-shadow:
    0 0 14px rgba(223, 0, 255, 0.5),
    0 0 32px rgba(223, 0, 255, 0.22);
}

.site-copy {
  color: var(--pg-text-color);
  font-size: 1.05rem;
}

.content-panel p + p {
  margin-top: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  background-color: rgba(var(--pg-overlay-color), var(--pg-overlay-alpha));
}

.footer-link {
  color: var(--pg-link-color);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--pg-link-hover-color);
  text-decoration: underline;
}

.footer-credit {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--pg-text-color);
  opacity: 0.95;
}

@media (max-width: 576px) {
  .footer-credit {
    display: none;
  }
}
