/* ==================================================================
   DAEMS FILMS — page themes
   A project can dress its own page in the look of the thing itself:
   set `theme` in data.js and project.html puts it on <html> before the
   first paint. Nothing here applies to a page without a theme.
   ================================================================== */

/* ------------------------------------------------------------------
   LUMIÈRE — matches lumieregallery.io
   Paper ground, navy ink, Fraunces and Geist, the "iris" gradient,
   numbered pill labels, white cards.
------------------------------------------------------------------- */

html[data-theme='lumiere'] {
  --bg:        #f5f5f3;
  --bg-raised: #ffffff;
  --bg-card:   #ededea;
  --ink:       #1e1b3a;
  --ink-dim:   #4a4766;
  --ink-faint: #7a7792;

  --accent:      #6c5ce7;
  --accent-soft: rgba(108, 92, 231, 0.1);

  --line:        #e4e1ea;
  --line-strong: #d2cedc;

  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body:    'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --iris: linear-gradient(100deg, #7b61ff 0%, #5b8cff 38%, #c77dff 68%, #ff9eb8 100%);
  --card-shadow: 0 1px 0 rgba(30, 27, 58, 0.03), 0 22px 48px -28px rgba(30, 27, 58, 0.25);
  --radius: 10px;
}

[data-theme='lumiere'] body {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

[data-theme='lumiere'] h1,
[data-theme='lumiere'] h2,
[data-theme='lumiere'] h3,
[data-theme='lumiere'] h4 {
  font-weight: 340;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

[data-theme='lumiere'] ::selection { background: var(--accent); color: #fff; }

/* Paper, not film: a still, faint grain and no darkened corners. */
[data-theme='lumiere'] .grain { opacity: 0.035; mix-blend-mode: multiply; animation: none; }
[data-theme='lumiere'] .vignette { display: none; }

/* The gradient italic, as in "Your art, interactive". */
[data-theme='lumiere'] .proj-title em,
[data-theme='lumiere'] .footer-cta em {
  font-style: italic;
  font-weight: 300;
  background: var(--iris);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
  /* Room for the italic's overhang, so the last letter isn't clipped. */
  padding-right: 0.08em;
}

/* ------------------------------------------------------------ header */

[data-theme='lumiere'] .site-header[data-solid='true'] {
  background: rgba(245, 245, 243, 0.82);
}
/* The wordmark stays Daems Films' own. */
[data-theme='lumiere'] .brand {
  font-family: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

[data-theme='lumiere'] .nav { gap: 0.25rem; }
[data-theme='lumiere'] .nav a:not(.btn) {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-faint);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
[data-theme='lumiere'] .nav a:not(.btn):hover {
  color: var(--ink);
  background: rgba(19, 20, 22, 0.05);
}
/* `.nav a` sets a dim colour that outranks the button's own. */
[data-theme='lumiere'] .nav .btn { margin-left: 0.75rem; color: #fff; }

/* ----------------------------------------------------------- buttons */

[data-theme='lumiere'] .btn {
  --btn-bg: var(--bg-raised);
  --btn-line: var(--line-strong);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.8rem 1.4rem;
}
[data-theme='lumiere'] .btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Primary: the navy pill, as "Create a space". */
[data-theme='lumiere'] .nav .btn,
[data-theme='lumiere'] .proj-link,
[data-theme='lumiere'] .btn--accent {
  --btn-bg: var(--ink);
  --btn-ink: #fff;
  --btn-line: var(--ink);
}
[data-theme='lumiere'] .nav .btn:hover,
[data-theme='lumiere'] .proj-link:hover,
[data-theme='lumiere'] .btn--accent:hover {
  background: #2d2858;
  border-color: #2d2858;
  box-shadow: 0 12px 28px -14px rgba(108, 92, 231, 0.7);
}

/* --------------------------------------------- labels: "01 COMMUNITY" */

[data-theme='lumiere'] #main { counter-reset: lg-section; }

[data-theme='lumiere'] .eyebrow {
  gap: 0.7rem;
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
[data-theme='lumiere'] .eyebrow .dot,
[data-theme='lumiere'] .eyebrow::after { display: none; }
[data-theme='lumiere'] .eyebrow::before {
  counter-increment: lg-section;
  content: counter(lg-section, decimal-leading-zero);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* ------------------------------------------------------ project head */

[data-theme='lumiere'] .backlink:hover,
[data-theme='lumiere'] .next-proj:hover .next-proj__title { color: var(--accent); }

[data-theme='lumiere'] .proj-title {
  font-weight: 330;
  letter-spacing: -0.035em;
  line-height: 1;
}
[data-theme='lumiere'] .proj-title small {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: -0.01em;
}

[data-theme='lumiere'] .proj-meta .pill {
  background: var(--bg-raised);
  border-color: rgba(108, 92, 231, 0.35);
  color: var(--accent);
}

/* The film sits in a rounded card, like a space on the gallery. */
[data-theme='lumiere'] .proj-head .player {
  border: 0;
  border-radius: calc(var(--radius) + 4px);
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--line), var(--card-shadow);
}
[data-theme='lumiere'] .player img { filter: brightness(0.72); }
[data-theme='lumiere'] .player:hover img { filter: brightness(0.85); }
[data-theme='lumiere'] .player__disc {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.78);
}
[data-theme='lumiere'] .player:hover .player__disc {
  background: var(--iris);
  border-color: transparent;
  color: #fff;
}
[data-theme='lumiere'] .player__label { color: #fff; }

/* No film: the cover hangs as a plain picture, not a dimmed placeholder. */
[data-theme='lumiere'] .player:not([data-embed]) img,
[data-theme='lumiere'] .player:not([data-embed]):hover img { filter: none; transform: none; }
[data-theme='lumiere'] .player:not([data-embed]) .player__play { display: none; }

/* -------------------------------------------------- about: soft band */

[data-theme='lumiere'] .proj-about {
  margin-top: clamp(3rem, 7vw, 6rem);
  background: linear-gradient(180deg, rgba(108, 92, 231, 0.055) 0%, rgba(255, 158, 184, 0.04) 100%);
  border-block: 1px solid var(--line);
}
[data-theme='lumiere'] .proj-body__text > p:not(.eyebrow) { max-width: 60ch; }
/* Base styles size the first paragraph up; here that is the label. */
[data-theme='lumiere'] .proj-body__text > p.eyebrow { font-size: 0.69rem; color: var(--accent); }
[data-theme='lumiere'] .proj-body__text > p:nth-child(2) {
  color: var(--ink);
  font-size: 1.12em;
}
/* The quote, set in the serif. */
[data-theme='lumiere'] .proj-body__text > p:nth-child(3) {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.3em;
  line-height: 1.4;
  color: var(--ink);
  margin-top: 1.6em;
}

/* --------------------------------------- stills: prints on the wall */

[data-theme='lumiere'] .proj-about + section { padding-top: clamp(3rem, 7vw, 6rem); }

[data-theme='lumiere'] .stills {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  justify-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
[data-theme='lumiere'] .stills figure {
  width: 100%;
  max-width: 34rem;
  padding: clamp(0.8rem, 2vw, 1.4rem);
  background: var(--bg-raised);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line), var(--card-shadow);
}
[data-theme='lumiere'] .stills img { border-radius: 3px; }

/* ------------------------------------------------- next and footer */

[data-theme='lumiere'] .next-proj__thumb { border-radius: var(--radius); }
[data-theme='lumiere'] .footer-cta { font-weight: 330; letter-spacing: -0.03em; }
[data-theme='lumiere'] .footer-mail { font-weight: 400; }
