/* farveloc.design — brand styles shared by every page (home, work, password page, 404).
   Change the brand here: colours, fonts, spacing. */

@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Brand colours, taken from the logo's gradient. */
  --magenta: #f916e2;
  --red: #ff0000;
  --brand-gradient: linear-gradient(135deg, var(--magenta) 0%, var(--red) 100%);
  --accent: #ff3d8f;           /* single-colour accent (midpoint of the gradient) */

  --black: #0c0b0d;            /* page background */
  --charcoal: #17161a;         /* cards, player backgrounds */
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f1f3;
  --muted: rgba(244, 241, 243, 0.62);

  --font: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page-width: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--magenta); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
.text-size-small { font-size: 0.9375rem; }
.text-weight-normal { font-weight: 400; }
.gradient-text { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.container { width: 100%; max-width: var(--page-width); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--black) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav_inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.25rem; }
.site-nav_brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; font-weight: 500; }
.site-nav_brand img { width: 1.9rem; height: 1.9rem; transition: transform 0.5s var(--ease); }
.site-nav_brand:hover img { transform: rotate(-8deg) scale(1.06); }
.site-nav_links { display: flex; gap: clamp(0.75rem, 2.5vw, 2rem); list-style: none; margin: 0; padding: 0; }
.site-nav_links a { text-decoration: none; color: var(--muted); font-size: 0.9375rem; transition: color 0.2s; }
.site-nav_links a:hover, .site-nav_links a[aria-current="page"] { color: var(--text); }
@media (max-width: 30rem) { .site-nav_brand span { display: none; } }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 0.9375rem; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.2s, border-color 0.2s;
}
.button:hover { transform: translateY(-2px); }
.button.is-primary { background: var(--brand-gradient); color: #fff; }
.button.is-secondary { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
.button.is-secondary:hover { border-color: rgba(255, 255, 255, 0.5); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 6rem; padding: 2.5rem 0; color: var(--muted); font-size: 0.875rem; }
.site-footer_inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer_links { display: flex; gap: 1.5rem; }

/* ---------- reveal-on-scroll (js/site.js adds .is-visible) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- password page + 404 (centred card) ---------- */
.utility-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem var(--gutter); }
.utility-page_card { width: 100%; max-width: 22rem; text-align: center; }
.utility-page_title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.utility-page_text { color: var(--muted); margin-bottom: 1.75rem; }
.utility-page_form { display: grid; gap: 0.75rem; }
.utility-page_form .form_input {
  width: 100%; min-height: 3rem; margin: 0; padding: 0.75rem 1rem;
  color: #fff; font: inherit; font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0.6rem; outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.utility-page_form .form_input::placeholder { color: rgba(255, 255, 255, 0.4); }
.utility-page_form .form_input:focus { border-color: var(--accent); background-color: rgba(255, 255, 255, 0.06); }
.utility-page_form .button { width: 100%; border-radius: 0.6rem; }
.utility-page_form .form_message-error {
  display: none; padding: 0.75rem 1rem; border-radius: 0.6rem; font-size: 0.875rem;
  color: #ffb3c8; background-color: rgba(249, 22, 226, 0.08); border: 1px solid rgba(249, 22, 226, 0.35);
}
.utility-page_back { display: inline-block; margin-top: 1.5rem; color: var(--muted); font-size: 0.875rem; text-decoration: none; }
.utility-page_back:hover { color: var(--text); }

/* Logo on the password page: tilts toward the cursor (js/logo-tilt.js). */
.gate-logo { display: block; width: 5.5rem; margin: 0 auto 2rem; perspective: 600px; }
.gate-logo img { display: block; width: 100%; height: auto; transform-style: preserve-3d; transition: transform 0.6s var(--ease); filter: drop-shadow(0 18px 40px rgba(249, 22, 226, 0.35)); animation: gate-in 1.2s var(--ease) both; }
@keyframes gate-in { from { opacity: 0; transform: translateY(18px) scale(0.92) rotate(-6deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gate-logo img { animation: none; transition: none; } }
