/*
 * Beeldjutters theme for LittleLink
 * Loaded after reset/style/brands, so everything here overrides the defaults.
 * Brand colours taken from beeldjutters.nl
 */

:root {
  --bj-teal: #26444a;
  --bj-teal-deep: #1b3237;
  --bj-teal-light: #3b646b;
  --bj-gold: #eaad54;
  --bj-gold-dark: #c49040;
  --bj-mist: #d5e0e0;
  --bj-white: #ffffff;
}

/* Fonts (self-hosted, no external requests)
   Sofia Pro = Beeldjutters house font (wordmark is Sofia Pro Black).
   EB Garamond Italic = stand-in for the Organza wordmark font until the original is supplied. */
@font-face { font-family: "Sofia Pro"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/SofiaProLight.woff2") format("woff2"); }
@font-face { font-family: "Sofia Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/SofiaPro-Regular.woff2") format("woff2"); }
@font-face { font-family: "Sofia Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/SofiaPro-Medium.woff2") format("woff2"); }
@font-face { font-family: "Sofia Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/SofiaPro-Bold.woff2") format("woff2"); }
@font-face { font-family: "Sofia Pro"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/SofiaPro-Black.woff2") format("woff2"); }
@font-face { font-family: "Organza Wordmark"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }

/* Background: deep teal with a soft "projector light" glow */
html, :root.theme-dark body, body {
  background-color: var(--bj-teal-deep);
  color: var(--bj-white);
  font-family: "Sofia Pro", system-ui, sans-serif;
  font-weight: 300;
}
body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(234, 173, 84, 0.18), transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(59, 100, 107, 0.55), transparent 70%),
    var(--bj-teal-deep);
  background-attachment: fixed;
}
.bj-glow { display: none; }

.container { padding-top: var(--spacing-xxl); }

/* Logo */
.bj-logo {
  display: block;
  width: 3.75rem;
  height: auto;
  margin: 0 auto var(--spacing-m);
  filter: drop-shadow(0 0 24px rgba(234, 173, 84, 0.35));
}

/* Heading + tagline */
h1 {
  font-family: "Sofia Pro", system-ui, sans-serif;
  font-weight: 700;          /* Beeldjutters wordmark: Sofia Pro Bold */
  font-size: var(--scale-4);
  letter-spacing: -0.01em;
  margin-bottom: var(--spacing-xs);
  hyphens: none;
}
.container p.bj-tagline {
  color: var(--bj-gold);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-m);
}
.container p.bj-intro {
  color: var(--bj-mist);
  font-weight: 300;
  font-size: var(--scale-0);
  line-height: 1.6;
  margin-bottom: var(--spacing-l);
}

/* Buttons: one consistent brand style instead of per-platform colours */
.button-stack { display: flex; flex-direction: column; align-items: center; }
.button {
  width: 100%;
  max-width: 22rem;
  min-height: 3.25rem;
  font-family: "Sofia Pro", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--bj-white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(213, 224, 224, 0.28);
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s, color 0.2s;
  hyphens: none;
}
.button:hover, .button:focus-visible {
  color: var(--bj-white);
  border-color: var(--bj-gold);
  background: rgba(234, 173, 84, 0.10);
  transform: translateY(-1px);
}
.button .icon {
  width: 1.125rem;
  height: 1.125rem;
  margin-right: 0.625rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Primary button: solid gold */
.button.bj-primary {
  background: var(--bj-gold);
  border-color: var(--bj-gold);
  color: var(--bj-teal-deep);
}
.button.bj-primary .icon { filter: brightness(0); opacity: 0.8; }
.button.bj-primary:hover, .button.bj-primary:focus-visible {
  background: #f1bf74;
  border-color: #f1bf74;
  color: var(--bj-teal-deep);
}

/* Featured card: for the current project / event */
.button.bj-featured {
  flex-direction: column;
  min-height: 4.5rem;
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--bj-gold);
  background:
    linear-gradient(135deg, rgba(234, 173, 84, 0.16), rgba(59, 100, 107, 0.35));
}
.bj-featured-label {
  color: var(--bj-gold);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.bj-featured-title {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Focus + links */
:root.theme-dark :focus-visible { outline: 2px solid var(--bj-gold); outline-offset: 3px; }
:root.theme-dark a:not(.button), a:not(.button) { color: var(--bj-mist); text-decoration: none; border-bottom: 1px solid rgba(213, 224, 224, 0.3); }
:root.theme-dark a:not(.button):hover, a:not(.button):hover { color: var(--bj-gold); border-color: var(--bj-gold); }

footer {
  color: rgba(213, 224, 224, 0.6);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

@media (max-width: 34.375rem) {
  .container { padding-top: var(--spacing-xl); }
  h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover { transform: none; }
}

/* Intro animation (js/intro.js)
   –––––––––––––––––––––––––––––––––––––––––––––––––– */
.bj-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.container { position: relative; z-index: 1; }

/* Only applies when JS runs and motion is allowed */
.bj-anim .bj-logo {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.bj-anim.bj-logo-shown .bj-logo { opacity: 1; }

/* Page content waits until the logo has formed (class added by intro.js) */
.bj-anim h1,
.bj-anim .bj-tagline,
.bj-anim .bj-intro,
.bj-anim .button-stack .button,
.bj-anim footer {
  opacity: 0;
}
.bj-anim.bj-content-shown h1,
.bj-anim.bj-content-shown .bj-tagline,
.bj-anim.bj-content-shown .bj-intro,
.bj-anim.bj-content-shown .button-stack .button,
.bj-anim.bj-content-shown footer {
  animation: bj-rise 0.7s cubic-bezier(.2,.7,.2,1) forwards;
}
.bj-content-shown h1          { animation-delay: 0.15s; }
.bj-content-shown .bj-tagline { animation-delay: 0.30s; }
.bj-content-shown .bj-intro   { animation-delay: 0.45s; }
.bj-content-shown .button-stack .button:nth-child(1) { animation-delay: 0.60s; }
.bj-content-shown .button-stack .button:nth-child(2) { animation-delay: 0.68s; }
.bj-content-shown .button-stack .button:nth-child(3) { animation-delay: 0.76s; }
.bj-content-shown .button-stack .button:nth-child(4) { animation-delay: 0.84s; }
.bj-content-shown .button-stack .button:nth-child(5) { animation-delay: 0.92s; }
.bj-content-shown .button-stack .button:nth-child(6) { animation-delay: 1.00s; }
.bj-content-shown .button-stack .button:nth-child(7) { animation-delay: 1.08s; }
.bj-content-shown .button-stack .button:nth-child(n+8) { animation-delay: 1.16s; }
.bj-content-shown footer      { animation-delay: 1.35s; }

@keyframes bj-rise {
  from { opacity: 0; translate: 0 10px; }
  to   { opacity: 1; translate: 0 0; }
}

/* Featured card subtitle
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
.bj-featured-sub {
  color: var(--bj-mist);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.bj-featured + .bj-featured { margin-top: -0.5rem; }

/* Intro page (one short page before heading on to an external link)
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
.bj-sub .container { padding-top: var(--spacing-l); }
.bj-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--spacing-xl);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
:root.theme-dark a.bj-back, a.bj-back { border-bottom: none; color: var(--bj-mist); }
.bj-back img { width: 1rem; height: auto; }
.bj-sub-hero {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--spacing-m);
  display: block;
  box-shadow: 0 0 0 1px rgba(234, 173, 84, 0.5), 0 0 40px rgba(234, 173, 84, 0.25);
}
.bj-sub h1 { font-size: var(--scale-3); }
.bj-sub .bj-tagline { margin-bottom: var(--spacing-l); }
.container .bj-sub-text {
  max-width: 26rem;
  margin: 0 auto var(--spacing-l);
  text-align: left;
  font-weight: 300;
  font-size: var(--scale-0);
  line-height: 1.7;
  color: var(--bj-mist);
}
.container .bj-sub-text p { margin: 0 0 1rem; font-size: inherit; }
.bj-sub main { animation: bj-rise 0.6s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .bj-sub main { animation: none; } }

/* Organza wordmark: white text in the Organza logo font
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
.bj-organza {
  font-family: "Organza Wordmark", "EB Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0;
  color: var(--bj-white);
}
.bj-featured-title.bj-organza { font-size: 2rem; line-height: 1; margin: 0.1rem 0 0.15rem; }
h1.bj-organza { font-size: 4.5rem; line-height: 1; margin-bottom: var(--spacing-xs); font-weight: 400; }

/* Beeldjutters lockup: B mark + wordmark, proportions taken from the official logo
   (Logo_TransparantWit_Beeldjutters.png): wordmark = Sofia Pro Black,
   font-size = 0.556 x mark width, ink gap mark -> word = 0.67 x mark width.
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
:root { --bj-mark: 4rem; }                 /* 64px mark width */
.bj-logo { width: var(--bj-mark); margin-bottom: 0; }
h1.bj-wordmark {
  font-weight: 900;
  font-size: calc(var(--bj-mark) * 0.556);
  letter-spacing: 0;
  line-height: 1;
  margin: calc(var(--bj-mark) * 0.67 - 0.2em) 0 var(--spacing-s);
}

/* Other projects (e.g. Organza): normal list button with a wordmark */
.button.bj-project {
  flex-direction: column;
  min-height: 4rem;
  padding: 0.6rem 1rem 0.7rem;
}
.bj-project .bj-featured-title.bj-organza { font-size: 1.75rem; margin: 0 0 0.1rem; }
