/* EPII Art – portfolio, shop, live */
/* Self-hosted fonts (same-origin) so the site looks correct without Google Fonts / cache issues. */
@font-face {
  font-family: 'Permanent Marker';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/permanent-marker-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Rubik Wet Paint';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/rubik-wet-paint-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Base: tinted wall / paper so color reads clearly */
  --bg: #ebe6f2;
  --bg-wash: #e0d8ec;
  --surface: #f8f5fc;
  --surface-elevated: #fffcff;
  --text: #16101e;
  --text-muted: #4c3f5c;
  /* Primary UI accent (links, outline) */
  --accent: #b91c8c;
  --accent-soft: #e879c8;
  --accent-hover: #86146a;
  /* Spray pops — use for gradients & highlights */
  --pop-cyan: #0891b2;
  --pop-magenta: #db2777;
  --pop-gold: #d97706;
  --pop-lime: #65a30d;
  --pop-violet: #7c3aed;
  --border: #c9bdd4;
  --shadow: 0 1px 2px rgba(45, 20, 80, 0.06);
  --shadow-hover: 0 20px 40px -18px rgba(124, 58, 237, 0.22),
    0 8px 20px -8px rgba(219, 39, 119, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  /* Rubik Wet Paint: logo & display headings only. Permanent Marker: all other text. */
  --font-display: 'Rubik Wet Paint', 'Permanent Marker', cursive;
  --font-body: 'Permanent Marker', cursive;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* Optional background images: put files in www/images/ then set below or in HTML */
  --hero-bg: url(/images/hero-bg.jpg);
  --page-bg: url(/images/page-bg.jpg);
}

* {
  box-sizing: border-box;
}

code,
kbd,
pre {
  font-family: var(--font-body);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: radial-gradient(
      ellipse 100% 70% at 95% 5%,
      rgba(8, 145, 178, 0.18),
      transparent 50%
    ),
    radial-gradient(ellipse 80% 60% at 5% 85%, rgba(219, 39, 119, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 70% 65%, rgba(217, 119, 6, 0.1), transparent 45%),
    radial-gradient(ellipse 90% 40% at 20% 10%, rgba(124, 58, 237, 0.09), transparent 50%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-wash) 45%, #e8dff5 100%);
}

/* Header */
header {
  background: linear-gradient(
    105deg,
    rgba(248, 245, 252, 0.9) 0%,
    rgba(236, 252, 255, 0.75) 40%,
    rgba(255, 245, 252, 0.85) 100%
  );
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

header .wrap {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease-out);
}

.logo:hover {
  color: var(--pop-cyan);
}

nav {
  display: flex;
  gap: 0.25rem 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.2s var(--ease-out);
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--pop-magenta), var(--pop-gold), var(--pop-cyan));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

nav a:hover,
nav a.active {
  color: var(--pop-magenta);
}

nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
}

/* Main */
main {
  flex: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 3rem;
  width: 100%;
}

main .page-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--text);
  text-shadow: 2px 2px 0 rgba(8, 145, 178, 0.35), -1px -1px 0 rgba(219, 39, 119, 0.25);
}

.tagline {
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 1.05rem;
  max-width: 42rem;
}

.tagline code {
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
}

/* Hero (home) */
.hero {
  position: relative;
  padding: 2.5rem 0 3.5rem;
  margin-bottom: 0.5rem;
}

.hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 4.5rem;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--pop-magenta),
    var(--pop-gold),
    var(--pop-lime),
    var(--pop-cyan)
  );
  border-radius: 3px;
  opacity: 0.95;
  box-shadow: 0 0 12px rgba(219, 39, 119, 0.35);
}

/* Hero with background image: add class "with-bg" to <section class="hero"> in index.html */
.hero.with-bg {
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  color: var(--text);
  padding: 3rem 1.5rem 4rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.hero.with-bg::before {
  display: none;
}

.hero.with-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 245, 252, 0.9);
  pointer-events: none;
  border-radius: var(--radius);
}

.hero.with-bg .hero-eyebrow,
.hero.with-bg h1,
.hero.with-bg .hero-lede,
.hero.with-bg .hero-actions {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pop-cyan);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7.5vw, 4rem);
  font-weight: 400;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  line-height: 1.05;
  max-width: 14ch;
  text-shadow: 3px 3px 0 rgba(8, 145, 178, 0.28), -2px 2px 0 rgba(219, 39, 119, 0.22),
    1px -1px 0 rgba(217, 119, 6, 0.2);
}

.hero-lede {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 32rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

/* Optional: full-page background. Add class "with-bg" to <body> in index.html */
body.with-bg {
  background-image: var(--page-bg);
  background-size: cover;
  background-attachment: fixed;
}

body.with-bg main {
  background: rgba(248, 245, 252, 0.94);
  border-radius: var(--radius);
  margin: 2rem auto;
  padding: 2rem 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.45rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.btn-primary {
  background: linear-gradient(125deg, var(--pop-magenta) 0%, var(--accent) 45%, var(--pop-violet) 100%);
  color: #fff;
  box-shadow: 0 4px 18px -4px rgba(219, 39, 119, 0.55), 0 2px 8px -2px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(125deg, #e11d8b 0%, var(--accent-hover) 40%, #5b21b6 100%);
  color: #fff;
  box-shadow: 0 8px 28px -6px rgba(219, 39, 119, 0.45), 0 4px 14px -4px rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.08), rgba(219, 39, 119, 0.06));
  border-color: var(--pop-cyan);
  color: var(--pop-magenta);
}

/* About block */
.about-block {
  background: linear-gradient(145deg, var(--surface) 0%, rgba(232, 121, 200, 0.08) 55%, rgba(8, 145, 178, 0.06) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0 3rem;
  box-shadow: var(--shadow), inset 4px 0 0 var(--pop-magenta), inset 8px 0 0 var(--pop-gold);
}

.about-block h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 0.65rem;
  letter-spacing: 0.02em;
  color: var(--pop-violet);
  text-shadow: 1px 1px 0 rgba(8, 145, 178, 0.35);
}

.about-block p {
  margin: 0;
  color: var(--text-muted);
}

.about-block code {
  font-size: 0.88em;
  padding: 0.15em 0.45em;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.65rem;
}

.gallery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

.gallery-item:hover {
  box-shadow: var(--shadow-hover), 0 -3px 0 0 var(--pop-cyan), 0 0 0 1px rgba(219, 39, 119, 0.15);
  border-color: rgba(8, 145, 178, 0.45);
  transform: translateY(-3px);
}

.gallery-item .thumb {
  aspect-ratio: 1;
  background: linear-gradient(
    145deg,
    rgba(8, 145, 178, 0.15),
    var(--bg-wash) 35%,
    rgba(219, 39, 119, 0.12) 70%,
    rgba(217, 119, 6, 0.1)
  );
  overflow: hidden;
}

.gallery-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.gallery-item:hover .thumb img {
  transform: scale(1.04);
}

.gallery-item .meta {
  padding: 1.25rem 1.35rem;
}

.gallery-item h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 0.4rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.gallery-item:hover h2 {
  color: var(--pop-magenta);
}

.gallery-item .desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Shop / contact */
.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 520px;
  box-shadow: var(--shadow);
}

.contact-block p {
  margin: 0 0 1rem;
}

.contact-block p:last-child {
  margin-bottom: 0;
}

.contact-block a {
  color: var(--pop-cyan);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(219, 39, 119, 0.4);
  transition: border-color 0.2s, color 0.2s;
}

.contact-block a:hover {
  color: var(--pop-magenta);
  border-bottom-color: var(--pop-gold);
}

.contact-block code {
  font-size: 0.88em;
  padding: 0.15em 0.45em;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* Live player */
.player-wrap {
  margin: 1.5rem 0;
  background: linear-gradient(180deg, #1a1030 0%, #0f0a18 100%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover), 0 0 0 2px rgba(124, 58, 237, 0.35), 0 0 24px rgba(219, 39, 119, 0.12);
  border: 1px solid rgba(8, 145, 178, 0.35);
}

#live-player {
  width: 100%;
  display: block;
  max-height: 70vh;
}

.live-status {
  padding: 1rem 1.35rem;
  background: linear-gradient(90deg, rgba(26, 16, 48, 0.95), rgba(15, 10, 24, 0.98));
  color: #c4b8dc;
  border-top: 1px solid rgba(124, 58, 237, 0.4);
  font-size: 0.875rem;
}

.live-status.live {
  color: #7befb5;
  text-shadow: 0 0 12px rgba(123, 239, 181, 0.45);
}

/* Footer */
footer {
  margin-top: auto;
  padding: 1.5rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(248, 240, 255, 0.88), rgba(232, 252, 255, 0.55));
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  font-size: 0.875rem;
}

footer .wrap {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-copy {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--pop-gold);
}

.footer-links a + a {
  border-left: 1px solid var(--border);
  padding-left: 0.85rem;
  margin-left: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .gallery-item:hover,
  .gallery-item:hover .thumb img,
  .btn-primary:hover {
    transform: none;
  }
}
