/*
  /projects theme: fantasy. Carries over public/designs/fantasy.css:
  the dark firelit gradient, Cinzel text, a gold Cinzel Decorative heading,
  gold-framed panels with the offset outline, gem statuses, and the red quest button.
  Contract: src/projects-themes.md.
*/

:root[data-theme="fantasy"] {
  color-scheme: dark;

  --stage: #0e0906;
  --shot: #1a120b;
  --line: #5a4318;
  --fg: #e9d9b0;
  --muted: #b89a5c;
  --sub: #d8c69a;
  --accent: #ffd100;
  --accent-text: #ffd100;
  --on-accent: #1a120b;
  --accent-soft: rgba(255, 209, 0, 0.08);

  --f-text: "Cinzel", serif;
  --f-mono: "Cinzel", serif;

  --s-hero: clamp(2.4rem, 6vw, 4.6rem);

  --r-sm: 0;
  --r-md: 0;

  --fantasy-gold: #ffd100;
  --fantasy-border: #a8812f;
  --fantasy-border-dim: #5a4318;
  --fantasy-panel: #1a120b;
  --fantasy-epic: #c77dff;
}

.theme-fantasy {
  background: radial-gradient(ellipse at 30% 30%, #2a1d12, #0e0906 75%) var(--stage);
  line-height: 1.55;
}

.theme-fantasy a:focus-visible,
.theme-fantasy .btn:focus-visible {
  outline: 2px solid var(--fantasy-gold);
  outline-offset: 3px;
}

/* Header */
.theme-fantasy .site-header {
  border-bottom: 1px solid var(--fantasy-border-dim);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.theme-fantasy .site-header__inner {
  min-height: 64px;
}

.theme-fantasy .site-header__home {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

@media (max-width: 479px) {
  .theme-fantasy .site-header {
    font-size: 0.72rem;
    letter-spacing: 0;
  }

  .theme-fantasy .site-header__home {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
  }
}

.theme-fantasy .site-header a:hover {
  color: var(--fantasy-gold);
}

/* Headings */
.theme-fantasy h1,
.theme-fantasy h2,
.theme-fantasy h3 {
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.theme-fantasy .projects__intro h1 {
  font-family: "Cinzel Decorative", serif;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  color: var(--fantasy-gold);
  text-shadow: 0 3px 0 #6b4a10, 0 0 30px rgba(255, 180, 0, 0.25);
}

.theme-fantasy .projects__lede {
  margin-top: 20px;
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--sub);
}

/* Featured: the cover in the character-card frame */
.theme-fantasy .featured__media {
  border: 3px solid var(--fantasy-border);
  outline: 1px solid var(--fantasy-border-dim);
  outline-offset: 6px;
  margin: 7px;
  background: var(--fantasy-panel);
}

.theme-fantasy .featured__title a,
.theme-fantasy .entry__title a {
  color: var(--fg);
}

.theme-fantasy .featured__title a:hover,
.theme-fantasy .entry__title a:hover {
  color: var(--fantasy-gold);
}

.theme-fantasy .featured__pitch,
.theme-fantasy .entry__pitch {
  color: var(--sub);
}

/* Meta: the card labels, bold and spaced */
.theme-fantasy .meta {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Status gems: gold for live, epic purple in progress, dull for archived */
.theme-fantasy .planet--coral {
  background: radial-gradient(circle at 35% 35%, #fff4b8, var(--fantasy-gold) 45%, #b8860b 85%);
  box-shadow: 0 0 8px 1px rgba(255, 209, 0, 0.5);
}

.theme-fantasy .planet--neutral {
  background: radial-gradient(circle at 35% 35%, #f0d9ff, var(--fantasy-epic) 50%, #4b178a 90%);
  box-shadow: 0 0 8px rgba(199, 125, 255, 0.45);
}

.theme-fantasy .planet--off {
  background: #2b1c10;
  border: 1px solid var(--fantasy-border-dim);
}

/* Button: the red quest button with the gold border */
.theme-fantasy .btn {
  min-height: 50px;
  padding: 12px 28px;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.theme-fantasy .btn--ghost {
  background: linear-gradient(#8b1a10, #4d0c06);
  border: 2px solid var(--fantasy-border);
  color: var(--fantasy-gold);
}

.theme-fantasy .btn--ghost:hover {
  background: linear-gradient(#a3241a, #5e1009);
  border-color: var(--fantasy-gold);
  color: var(--fantasy-gold);
}

/* More projects: the eyebrow, then each entry as a badge panel */
.theme-fantasy .more__title {
  font-family: var(--f-text);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--fantasy-border);
  margin-bottom: 16px;
}

.theme-fantasy .more__title::before {
  content: "- " / "";
}

.theme-fantasy .more__title::after {
  content: " -" / "";
}

.theme-fantasy .entries {
  display: grid;
  gap: 12px;
}

.theme-fantasy .entry {
  padding: 16px;
  border: 1px solid var(--fantasy-border-dim);
  background: rgba(0, 0, 0, 0.3);
}

.theme-fantasy .entry__media {
  border: 2px solid var(--fantasy-border-dim);
}

/* Contact */
.theme-fantasy .projects__contact {
  border-top: 1px solid var(--fantasy-border-dim);
  color: var(--sub);
}

.theme-fantasy .projects__contact a {
  color: var(--fantasy-gold);
}

.theme-fantasy .projects__contact a:hover {
  color: var(--fg);
}
