/* =========
   Root variables (design tokens / knobs)
   ========= */
:root{
  /* Page & background */
  --page-bg: rgba(160,172,11,1);         /* page background color */
  --bg-opacity: .75;         /* 0..1 => mosaic image transparency */

  /* Typography base */
  --font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-style: normal;    /* normal | italic */
  --text-color: #fff;      /* default text color */

  /* Brand (name) block */
  --brand-width: 81vw;
  --brand-max-width: 720px;
  --brand-margin-top: 0;
  --brand-margin-bottom: 2.5rem;
  --brand-padding-block: 0;     /* top/bottom padding on the brand block */

  /* Name (VALENTINA / CARCUPINO) */
  --brand-letter-spacing: 0.2rem;     /* legacy name for compatibility */
  --name-letter-spacing: var(--brand-letter-spacing);
  --name-line-height: 0.98;
  --name-font-weight: 100;

  /* Layout gaps */
  --v-gap: 0.6rem;   /* gap between name lines */
  --meta-gap: 0.75rem; /* gap between name and meta lines */

  /* Role line */
  --role-size: 12px;
  --role-line-height: 1.2;
  --role-weight: 800;
  --role-color: var(--text-color);
  --role-style: normal;
  --role-margin-top: 2rem;
  --role-margin-bottom: 0;
  --role-padding-block: 0;

  /* Location line */
  --location-size: 10px;
  --location-line-height: 1.2;
  --location-weight: 500;
  --location-color: var(--text-color);
  --location-style: normal;
  --location-margin-top: 0;
  --location-margin-bottom: 2rem;
  --location-padding-block: 0;

  /* Social line (handles) */
  --social-size: 10px;
  --social-line-height: 1.2;
  --social-weight: 500;
  --social-color: var(--text-color);
  --social-style: normal;
  --social-margin-top: 0;
  --social-margin-bottom: 0;
  --social-padding-block: 0;
  --social-link-color: var(--link-color);
  /* exact pipe with spaced sides; non-breaking spaces ensure consistent spacing */
  --social-separator: "\00a0\00a0\00a0|\00a0\00a0\00a0";

  /* Links (global) */
  --link-color: var(--text-color);
  --link-hover-color: rgba(160,172,11,1);
  --link-decoration: none;               /* none | underline */
  --link-hover-decoration: none;    /* none | underline */
  --link-font-weight: inherit;           /* e.g., 400 or 500 */
  --link-text-transform: none;           /* none | uppercase */
  --link-letter-spacing: 0;
}

/* =========
   Base / Reset
   ========= */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-family);
  font-style: var(--font-style);
  color: var(--text-color);
  background-color: var(--page-bg);

  /* Fallback background image if JS/canvas is unavailable */
  background-image: url("../img/vbg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Global link styles (variable-controlled) */
a {
  color: var(--link-color);
  text-decoration: var(--link-decoration);
  font-weight: var(--link-font-weight);
  text-transform: var(--link-text-transform);
  letter-spacing: var(--link-letter-spacing);
  transition: color 120ms ease, text-decoration-color 120ms ease;
}
a:hover,
a:focus-visible {
  color: var(--link-hover-color);
  text-decoration: var(--link-hover-decoration);
  outline: none;
}

/* =========
   Layout
   ========= */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;           /* behind text */
  display: block;
  pointer-events: none;  /* keep interactions on content */
  opacity: var(--bg-opacity); /* image transparency */
}

#hero {
  min-height: 100svh;                /* mobile-first; dynamic viewport on mobile */
  display: grid;
  place-items: center;
  padding: 5vw;
  text-align: center;
}

/* =========
   Brand Block
   ========= */
.brand {
  width: min(var(--brand-width), var(--brand-max-width));
  margin-inline: auto;
  margin-top: var(--brand-margin-top);
  margin-bottom: var(--brand-margin-bottom);
  padding-block: var(--brand-padding-block);
  display: grid;
  gap: var(--meta-gap);
  justify-items: center;
  line-height: 1; /* name line-height controlled per-line */
}

.name {
  display: grid;
  gap: var(--v-gap);
}

/* Each name line gets fitted by JS while keeping requested 0.2rem spacing */
.name-line {
  display: block;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: var(--name-letter-spacing);
  font-weight: var(--name-font-weight);
  line-height: var(--name-line-height);
  white-space: nowrap;
  overflow: visible;
}

/* Meta block */
.meta {
  display: grid;
  gap: 0.25rem;
}

.role {
  font-size: var(--role-size);
  line-height: var(--role-line-height);
  font-weight: var(--role-weight);
  color: var(--role-color);
  font-style: var(--role-style);
  margin-top: var(--role-margin-top);
  margin-bottom: var(--role-margin-bottom);
  padding-block: var(--role-padding-block);
  letter-spacing: .125rem;
}

.location {
  font-size: var(--location-size);
  line-height: var(--location-line-height);
  font-weight: var(--location-weight);
  color: var(--location-color);
  font-style: var(--location-style);
  margin-top: var(--location-margin-top);
  margin-bottom: var(--location-margin-bottom);
  padding-block: var(--location-padding-block);
  letter-spacing: .1rem;
}

/* Social (handles) */
.social {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  font-size: var(--social-size);
  line-height: var(--social-line-height);
  font-weight: var(--social-weight);
  color: var(--social-color);
  font-style: var(--social-style);
  margin-top: var(--social-margin-top);
  margin-bottom: var(--social-margin-bottom);
  padding-block: var(--social-padding-block);
}
.social .handle {
  color: var(--social-link-color);
  letter-spacing: .075rem;
}
.social .handle + .handle::before {
  content: var(--social-separator, " | ");
  color: rgba(160,172,11,1);
  white-space: pre; /* keep spacing as authored if var resolves to spaces */
}

/* =========
   Progressive enhancement niceties
   ========= */
@media (hover: none) and (pointer: coarse) {
  .meta { gap: 0.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
