/* ════════════════════════════════════════════════════════════
   Erin B's Menagerie — Quirky variant
   Bold colors, silly copy, CSS hover interactions
   ════════════════════════════════════════════════════════════ */

:root {
  --lavender:  #EDE0FF;
  --purple:    #5B0DA0;
  --mint:      #00C97A;
  --dark:      #0D0028;
  --yellow:    #FFE120;
  --orange:    #FF6240;
  --white:     #FFFFFF;
  --serif: Georgia, 'Times New Roman', serif;
  --sans:  'Helvetica Neue', Arial, sans-serif;
  --max-w: 1280px;
  --pad-x: 1.25rem;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark);
  background: var(--lavender);
  -webkit-font-smoothing: antialiased;
}

/* ── Proto nav ──────────────────────────────────────────────── */
.proto-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.proto-nav a { color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: color 0.15s; }
.proto-nav a:hover { color: white; }
.proto-nav .proto-active { color: white; font-weight: bold; }

/* ── Keyframe animations ────────────────────────────────────── */
@keyframes wobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  15%       { transform: rotate(-4deg) scale(1.04); }
  35%       { transform: rotate(3deg) scale(1.04); }
  55%       { transform: rotate(-2deg) scale(1.02); }
  75%       { transform: rotate(2deg) scale(1.02); }
}

@keyframes pop-in {
  0%   { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1);    opacity: 1; }
}

@keyframes bounce-up {
  0%, 100% { transform: translateY(0); }
  40%       { transform: translateY(-6px); }
  60%       { transform: translateY(-3px); }
}

/* ── Header — bold, dark ────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Purple solid for first 60%, then bleeds into a subtle rainbow */
  background: linear-gradient(110deg,
    #0D0028  0%,
    #5B0DA0 45%,
    #5B0DA0 60%,
    rgba(120,   0, 255, 0.85) 68%,
    rgba(  0, 140, 255, 0.75) 76%,
    rgba(  0, 200, 100, 0.65) 83%,
    rgba(255, 210,   0, 0.65) 90%,
    rgba(255,  80,  40, 0.70) 96%,
    rgba(255,   0, 120, 0.65) 100%);
  border-bottom: 3px solid var(--orange);
}
.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--yellow);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
}
.wordmark:hover { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  position: relative;
  transition: color 0.15s;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.2s;
}
.nav-links a:hover { color: white; }
.nav-links a:hover::after { width: 100%; }

@media (max-width: 600px) {
  .nav-links { display: none; }
}

/* ── Hero — rainbow dark ────────────────────────────────────── */
.hero {
  background-color: var(--dark);
  background-image:
    /* scattered coloured blobs — boosted opacity for more pop */
    radial-gradient(circle at 12% 20%, rgba(255,  60,  60, 0.55) 0%, transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(255, 220,   0, 0.45) 0%, transparent 26%),
    radial-gradient(circle at 50% 90%, rgba(  0, 220, 100, 0.42) 0%, transparent 32%),
    radial-gradient(circle at 82% 55%, rgba(  0, 160, 255, 0.38) 0%, transparent 24%),
    radial-gradient(circle at 20% 68%, rgba(120,   0, 255, 0.50) 0%, transparent 30%),
    radial-gradient(circle at 62% 28%, rgba(220,   0, 220, 0.38) 0%, transparent 22%),
    radial-gradient(circle at 38% 50%, rgba(255, 120,   0, 0.28) 0%, transparent 20%),
    /* dark overlay — lightened so rainbow shows through */
    linear-gradient(rgba(13, 0, 40, 0.60), rgba(13, 0, 40, 0.60)),
    /* rainbow base — fully saturated ROYGBIV */
    linear-gradient(135deg,
      #ff0000  0%,
      #ff6600 13%,
      #ffee00 25%,
      #00dd44 38%,
      #00aaff 50%,
      #4400ff 63%,
      #aa00ff 75%,
      #ff00aa 88%,
      #ff0000 100%);
  padding: 5rem var(--pad-x) 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Extra corner blobs for depth */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 550px;
  height: 550px;
  background: var(--purple);
  opacity: 0.45;
  top: -180px;
  left: -180px;
  filter: blur(100px);
}
.hero::after {
  width: 450px;
  height: 450px;
  background: var(--orange);
  opacity: 0.32;
  bottom: -120px;
  right: -120px;
  filter: blur(100px);
}

.hero-content { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 1.25rem;
  display: block;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: normal;
  line-height: 1.1;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 0, 0, 0.4);
}
.hero h1 em {
  font-style: italic;
  color: var(--yellow);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.btn-quirky {
  display: inline-block;
  padding: 1rem 2.25rem;
  background: var(--orange);
  color: white;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(255, 98, 64, 0.4);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.btn-quirky:hover {
  animation: wobble 0.55s ease;
  box-shadow: 0 6px 28px rgba(255, 98, 64, 0.6);
}

/* ── Gallery — staggered cards with hover pop ───────────────── */
.gallery {
  background: var(--lavender);
  padding: 5rem var(--pad-x);
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: normal;
  color: var(--purple);
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-heading::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--orange);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ── Glitter heading ─────────────────────────────────────────── */
/* background-position animation on a gradient is unreliable;
   animating color + text-shadow works in all browsers */
@keyframes glitter-cycle {
  0%   { color: #ff6240; text-shadow: 0 0 10px rgba(255,  98,  64, 0.8), 0 0 24px rgba(255,  98,  64, 0.4); }
  16%  { color: #ffe120; text-shadow: 0 0 10px rgba(255, 225,  32, 0.8), 0 0 24px rgba(255, 225,  32, 0.4); }
  33%  { color: #00c97a; text-shadow: 0 0 10px rgba(  0, 201, 122, 0.8), 0 0 24px rgba(  0, 201, 122, 0.4); }
  50%  { color: #00aaff; text-shadow: 0 0 10px rgba(  0, 170, 255, 0.8), 0 0 24px rgba(  0, 170, 255, 0.4); }
  66%  { color: #aa00ff; text-shadow: 0 0 10px rgba(170,   0, 255, 0.8), 0 0 24px rgba(170,   0, 255, 0.4); }
  83%  { color: #cc18c0; text-shadow: 0 0 10px rgba(204,  24, 192, 0.8), 0 0 24px rgba(204,  24, 192, 0.4); }
  100% { color: #ff6240; text-shadow: 0 0 10px rgba(255,  98,  64, 0.8), 0 0 24px rgba(255,  98,  64, 0.4); }
}

@keyframes rainbow-shift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.glitter-heading {
  animation: glitter-cycle 4s linear infinite;
}

.section-heading.glitter-heading::after {
  background: linear-gradient(90deg,
    #ff6240, #ffe120, #00c97a, #00aaff, #aa00ff, #cc18c0, #ff6240);
  background-size: 200% auto;
  animation: rainbow-shift 4s linear infinite;
  width: 5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
  max-width: var(--max-w);
  margin-inline: auto;
  margin-top: 3rem;
}
@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-card {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
  transform-origin: center bottom;
  cursor: pointer;
}
.gallery-card:nth-child(1) { transform: rotate(-2.5deg); }
.gallery-card:nth-child(2) { transform: rotate(1.5deg); }
.gallery-card:nth-child(3) { transform: rotate(-1deg); }

.gallery-card:hover {
  transform: rotate(0deg) scale(1.06) translateY(-4px) !important;
  z-index: 10;
  position: relative;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  border-radius: var(--radius);
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.25s;
}

/* Shadow on image only — not on text below the card */
.gallery-card:hover .gallery-img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 12px 36px rgba(91, 13, 160, 0.4);
}

.gallery-card h3 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: normal;
  color: var(--purple);
  margin-top: 0.75rem;
}
.piece-meta {
  font-size: 0.78rem;
  color: #8060AA;
  margin-top: 0.2rem;
}

.link-arrow {
  display: block;
  text-align: center;
  margin-top: 3rem;
  color: var(--orange);
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: letter-spacing 0.2s;
}
.link-arrow:hover { letter-spacing: 0.12em; }

/* ── Etsy CTA band ──────────────────────────────────────────── */
.etsy-band {
  background: var(--purple);
  padding: 3.5rem var(--pad-x);
  text-align: center;
}
.etsy-band h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: normal;
  color: white;
  margin-bottom: 1rem;
}
.etsy-band p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ── About ──────────────────────────────────────────────────── */
.about {
  background: var(--dark);
  padding: 5rem var(--pad-x);
}
.about-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .about-inner { grid-template-columns: 5fr 6fr; }
}

.about-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center;
  display: block;
  border: 4px solid var(--purple);
  box-shadow: 8px 8px 0 var(--orange);
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 0.75rem;
  display: block;
}
.about-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: normal;
  color: var(--yellow);
  margin-bottom: 1.25rem;
}
.about-text p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}
.signature {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--orange) !important;
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
}

/* ── Social ─────────────────────────────────────────────────── */
.social {
  background: var(--mint);
  padding: 4rem var(--pad-x);
}
.social .section-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  text-align: center;
}
.social .section-heading { color: var(--dark); }
.social .section-heading::after { background: var(--dark); }

.social-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 2.5rem;
}
.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--dark);
  font-size: 0.85rem;
  font-weight: bold;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.social-link:hover {
  transform: translateY(-8px);
}
.social-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  transition: background 0.2s, box-shadow 0.2s;
}
.social-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}
.social-link:hover .social-icon {
  background: var(--purple);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.25);
}

/* ── Contact ────────────────────────────────────────────────── */
.contact {
  background: var(--lavender);
  padding: 5rem var(--pad-x);
}
.contact .section-inner {
  max-width: var(--max-w);
  margin-inline: auto;
}
.contact-sub {
  text-align: center;
  color: #6040A0;
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}
.contact-form {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6040A0;
  font-weight: bold;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--purple);
  border-radius: var(--radius);
  background: white;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 98, 64, 0.15);
}
.contact-form textarea { resize: vertical; margin-bottom: 0.5rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  padding: 2rem var(--pad-x);
  border-top: 3px solid var(--purple);
}
.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.copyright { font-size: 0.78rem; color: rgba(255, 255, 255, 0.35); }
.site-footer nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.site-footer nav a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer nav a:hover { color: var(--yellow); }
