/* ===========================
   RAGDOLL TAROT
   Supports: light / dark / mobile / all
   =========================== */

/* --- LIGHT MODE — The Fool palette --- */
/* Sky teal as accent, warm sandy parchment as base */
:root {
  --bg:           #f0ead0;
  --bg-alt:       #e6dfc4;
  --bg-dark:      #0e1c1a;
  --surface:      #f8f4e4;
  --text:         #1e2018;
  --text-muted:   #5a6858;
  --brown:        #3d7c76;
  --brown-light:  #62a09a;
  --stitch:       rgba(61, 124, 118, 0.38);
  --border:       rgba(61, 124, 118, 0.22);
  --shadow:       0 4px 24px rgba(14, 28, 26, 0.14);
  --shadow-card:  0 8px 32px rgba(14, 28, 26, 0.24);
  --nav-bg:       rgba(240, 234, 208, 0.92);
  --notify-bg:    #0e1c1a;
  --notify-text:  rgba(240, 234, 208, 0.6);
  --card-back-a:  #7aada8;
  --card-back-b:  #a8ccc8;
  --placeholder-a:#c8d8d5;
  --placeholder-b:#dae8e5;
}

/* --- DARK MODE — The Fool palette --- */
/* Deep teal-black base, sandy gold as accent */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:           #0e1c1a;
    --bg-alt:       #142624;
    --bg-dark:      #080f0e;
    --surface:      #192e2a;
    --text:         #f0ecd4;
    --text-muted:   #88a898;
    --brown:        #c49820;
    --brown-light:  #deb838;
    --stitch:       rgba(196, 152, 32, 0.4);
    --border:       rgba(196, 152, 32, 0.22);
    --shadow:       0 4px 24px rgba(0, 0, 0, 0.45);
    --shadow-card:  0 8px 40px rgba(0, 0, 0, 0.65);
    --nav-bg:       rgba(14, 28, 26, 0.93);
    --notify-bg:    #080f0e;
    --notify-text:  rgba(240, 236, 212, 0.6);
    --card-back-a:  #2a4a46;
    --card-back-b:  #1a3230;
    --placeholder-a:#1a3230;
    --placeholder-b:#203c38;
  }
}

/* Manual dark override */
[data-theme="dark"] {
  --bg:           #0e1c1a;
  --bg-alt:       #142624;
  --bg-dark:      #080f0e;
  --surface:      #192e2a;
  --text:         #f0ecd4;
  --text-muted:   #88a898;
  --brown:        #c49820;
  --brown-light:  #deb838;
  --stitch:       rgba(196, 152, 32, 0.4);
  --border:       rgba(196, 152, 32, 0.22);
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-card:  0 8px 40px rgba(0, 0, 0, 0.65);
  --nav-bg:       rgba(14, 28, 26, 0.93);
  --notify-bg:    #080f0e;
  --notify-text:  rgba(240, 236, 212, 0.6);
  --card-back-a:  #2a4a46;
  --card-back-b:  #1a3230;
  --placeholder-a:#1a3230;
  --placeholder-b:#203c38;
}

/* --- FONTS --- */
@font-face {
  /* Fallback stack if Google Fonts unavailable */
  font-family: 'FallbackSerif';
  src: local('Georgia'), local('Times New Roman');
}

/* --- RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  /* Explicit hex fallback first, then variable */
  background-color: #f5ede0;
  background-color: var(--bg);
  color: #2e1f10;
  color: var(--text);
  font-family: 'IM Fell English', Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  color-scheme: light dark;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

/* Restore cursor and selection on interactive elements */
a, button, input, label, select, textarea, [role="button"] {
  cursor: pointer;
  user-select: auto;
  -webkit-user-select: auto;
}

input, textarea {
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
}

.section-eyebrow {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text);
  margin-bottom: 1.2rem;
}

.section-subtitle {
  font-family: 'Lato', system-ui, sans-serif;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  font-size: 1rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 0.75em 1.8em;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
  border: none;
  -webkit-appearance: none;
}

.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background-color: #7a5230;
  background-color: var(--brown);
  color: #fdf8f2;
  color: var(--surface);
}

.btn-secondary {
  background-color: transparent;
  color: var(--brown);
  border: 1.5px solid var(--brown);
}

/* ===========================
   NAV
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background-color: rgba(245, 237, 224, 0.9);
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px dashed var(--stitch);
  transition: box-shadow 0.3s;
}

.nav-logo {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--brown); }

.nav-cta {
  background-color: var(--brown) !important;
  color: var(--surface) !important;
  padding: 0.45em 1.2em;
  border-radius: 6px;
}

.nav-lang {
  background: none;
  border: 1px solid var(--stitch);
  border-radius: 3px;
  padding: 0 0.5em;
  height: 2rem;
  cursor: pointer;
  color: var(--text-muted);
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.nav-lang:hover {
  border-color: var(--brown);
  color: var(--brown);
}

.nav-theme {
  background: none;
  border: 1px solid var(--stitch);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s, transform 0.3s;
  padding: 0;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.nav-theme:hover {
  border-color: var(--brown);
  color: var(--brown);
  transform: rotate(20deg);
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 0.25rem;
  line-height: 1;
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 3rem 4rem;
  background-color: var(--bg);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 0.8rem;
}

.hero-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1;
  color: var(--text);
  margin-bottom: 1.4rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  max-width: 420px;
}

.hero-text .btn + .btn { margin-left: 1rem; }

/* --- Card stack --- */
.hero-card-stack {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 520px;
}

.card-wrapper {
  position: absolute;
  width: 230px;
  aspect-ratio: 3 / 5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.card-back-face {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.card-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.card-back-2 {
  transform: rotate(-12deg) translate(-30px, 20px);
  z-index: 1;
  opacity: 0.65;
}

.card-back-1 {
  transform: rotate(-5deg) translate(-12px, 8px);
  z-index: 2;
  opacity: 0.8;
}

.card-front {
  z-index: 3;
  transform: rotate(2deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-front:hover { transform: rotate(0deg) scale(1.04); }

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* --- Scroll hint --- */
.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.4;
}

.hero-scroll-hint span {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brown);
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--brown), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ===========================
   STITCH DIVIDER
   =========================== */
.stitch-divider {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
}

.stitch-divider::before {
  content: '';
  position: absolute;
  left: 3rem; right: 3rem;
  border-top: 2px dashed var(--stitch);
}

.stitch-divider::after {
  content: '✦';
  background-color: var(--bg);
  color: var(--brown-light);
  padding: 0 0.8rem;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

/* ===========================
   GALLERY
   =========================== */
.gallery {
  padding: 5rem 3rem 6rem;
  max-width: 1100px;
  margin: 0 auto;
  background-color: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.card-filters {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5em 1.4em;
  border-radius: 2rem;
  border: 1.5px solid var(--stitch);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-btn:hover {
  border-color: var(--brown);
  color: var(--brown);
}

.filter-btn.active {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--surface);
}

.card-filters--suits {
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
  animation: fadeIn 0.2s ease;
}

.filter-btn-suit {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35em 1.1em;
  border-radius: 2rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-btn-suit:hover  { border-color: var(--brown-light); color: var(--brown); }
.filter-btn-suit.active { background: var(--brown-light); border-color: var(--brown-light); color: var(--surface); }

/* ===========================
   DECK VIEWER
   =========================== */
.deck-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 0 3rem;
}

.deck-stack-wrap {
  position: relative;
  width: 280px;
  height: 467px;
}

.deck-behind {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.deck-behind img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.deck-behind--2 { transform: rotate(-5deg) translateX(-14px); }
.deck-behind--1 { transform: rotate(-2.5deg) translateX(-7px); }

.deck-current {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.25s;
}

.deck-current:hover {
  transform: translateY(-7px) rotate(0.5deg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.deck-current img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.deck-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}


/* Open overlay on hover */
.deck-current::after {
  content: 'Open';
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 10, 0.45);
  color: #fdf8f2;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 4;
}
.deck-current:hover::after { opacity: 1; }

.deck-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.deck-caption {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.deck-number {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown-light);
}

.deck-name {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--text);
}

.deck-counter {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.deck-nav {
  display: flex;
  gap: 1rem;
}

.deck-btn {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.1rem;
  padding: 0.55em 1.5em;
  border-radius: 2rem;
  border: 1.5px solid var(--stitch);
  background: transparent;
  color: var(--brown);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.deck-btn:hover:not(:disabled) {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--surface);
  transform: scale(1.06);
}

.deck-btn:disabled {
  opacity: 0.28;
  cursor: default;
}

/* --- Single card --- */
.tarot-card {
  cursor: pointer;
}

.tarot-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tarot-card-front {
  aspect-ratio: 3 / 5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.3s;
  position: relative;
}

.tarot-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

/* WATERMARK — diagonal text overlay on every card */
.tarot-card-front::before {
  content: 'Ragdoll Tarot';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-28deg);
  z-index: 3;
  pointer-events: none;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.7rem;
  font-style: italic;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.tarot-card:hover .tarot-card-front {
  transform: translateY(-6px) rotate(1deg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* View overlay */
.tarot-card-front::after {
  content: 'View';
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 10, 0.5);
  color: #fdf8f2;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: 10px;
}

.tarot-card:hover .tarot-card-front::after { opacity: 1; }

.tarot-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.card-number {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown-light);
}

.card-name {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
}


/* --- Placeholder card --- */
.tarot-card--hidden {
  cursor: default;
  opacity: 0.55;
}

.tarot-card--hidden .tarot-card-front {
  background: repeating-linear-gradient(
    45deg,
    var(--placeholder-a) 0px, var(--placeholder-a) 2px,
    var(--placeholder-b) 2px, var(--placeholder-b) 12px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 3px var(--border), var(--shadow);
}

.tarot-card--hidden .tarot-card-front::after { display: none; }

.placeholder-inner {
  text-align: center;
  color: var(--brown);
}

.placeholder-inner span {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 3rem;
  display: block;
  opacity: 0.45;
}

.placeholder-inner p {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: 0.3rem;
}

/* ===========================
   ABOUT
   =========================== */
.about {
  padding: 5rem 3rem 6rem;
  background-color: var(--bg-alt);
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: center;
}

.about-card-display {
  position: relative;
  display: flex;
  justify-content: center;
}


.about-card-flip {
  width: 260px;
  height: 456px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transform: rotate(-3deg);
  transition: transform 0.4s;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  background: none;
  border: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .about-card-flip:hover { transform: rotate(0deg); } }

.about-card {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.3s ease;
}

.about-card-back {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 2rem 1.5rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.about-card-flip.flipped .about-card      { opacity: 0; }
.about-card-flip.flipped .about-card-back { opacity: 1; }

.acb-number {
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown-light);
}

.acb-name {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.3rem;
  color: var(--text);
  line-height: 1.2;
}

.acb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.acb-tag {
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.3em 0.9em;
}

.about-text-col p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--stitch);
}

.stat { display: flex; flex-direction: column; }

.stat-number {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 2rem;
  color: var(--brown);
  line-height: 1;
}

.stat-label {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ===========================
   ARTIST
   =========================== */
.artist {
  padding: 5rem 3rem 6rem;
  background-color: var(--bg);
}

.artist-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

/* Photo column */
.artist-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.artist-photo-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px dashed var(--stitch);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  flex-shrink: 0;
}

.artist-photo-placeholder span {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 4rem;
  color: var(--brown-light);
  opacity: 0.5;
}

/* Small tilted card next to photo */
.artist-photo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transform: rotate(3deg);
  transition: transform 0.3s;
}

.artist-photo-card:hover { transform: rotate(0deg); }

.artist-photo-card img {
  width: 110px;
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  pointer-events: none;
  -webkit-user-drag: none;
}

.artist-photo-card-label {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Text column */
.artist-text-col p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.artist-tagline {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.95rem;
  color: var(--brown) !important;
  letter-spacing: 0.04em;
  border-left: 2px solid var(--brown);
  padding-left: 1rem;
  margin-top: 1.5rem !important;
}

.artist-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--stitch);
  flex-wrap: wrap;
}

.artist-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color 0.2s;
  cursor: pointer;
}

.artist-link:hover { color: var(--brown); }

/* ===========================
   CONTACT
   =========================== */
.contact {
  padding: 6rem 3rem;
  background: var(--bg);
}
.contact-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.contact-form { margin-top: 2.5rem; text-align: left; }
.contact-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.contact-field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-field input,
.contact-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  padding: 0.65em 1em;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.contact-field input:focus,
.contact-field textarea:focus { border-color: var(--brown); }
.contact-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.contact-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.contact-error {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: #c0392b;
}
.contact-success {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--brown);
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .contact { padding: 4rem 1.5rem; }
  .contact-row { grid-template-columns: 1fr; }
}

/* ===========================
   NOTIFY / WAITLIST
   =========================== */
.notify {
  padding: 6rem 3rem;
  text-align: center;
  background-color: #1e1510;
  background-color: var(--notify-bg);
  position: relative;
  overflow: hidden;
}

.notify::before, .notify::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border: 2px dashed rgba(176, 125, 80, 0.25);
  border-radius: 4px;
  pointer-events: none;
}

.notify::before { top: 1.5rem;    left: 1.5rem;  }
.notify::after  { bottom: 1.5rem; right: 1.5rem; }

.notify .section-eyebrow { color: var(--brown-light); }
.notify .section-title   { color: #fdf8f2; }

.notify-text {
  color: var(--notify-text);
  max-width: 440px;
  margin: 0 auto 2.5rem;
  font-family: 'Lato', system-ui, sans-serif;
}

.notify-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 460px;
}

.form-input {
  flex: 1;
  padding: 0.75rem 1.2rem;
  background: rgba(253, 248, 242, 0.08);
  border: 1.5px solid rgba(176, 125, 80, 0.4);
  border-radius: 6px;
  color: #fdf8f2;
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-input::placeholder { color: rgba(253, 248, 242, 0.3); }
.form-input:focus        { border-color: var(--brown-light); }

.form-note {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.72rem;
  color: rgba(253, 248, 242, 0.3);
}

.notify-success {
  margin-top: 1.5rem;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--brown-light);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  padding: 2rem 3rem;
  background-color: #1e1510;
  background-color: var(--notify-bg);
  border-top: 1px dashed rgba(176, 125, 80, 0.2);
  text-align: center;
}

.footer-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: rgba(253, 248, 242, 0.4);
  margin-bottom: 0.3rem;
}

.footer-copy {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.72rem;
  color: rgba(253, 248, 242, 0.2);
}

/* ===========================
   LIGHTBOX
   =========================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 7, 4, 0.93);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease;
  transition: background 0.6s ease;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

/* When hidden attribute is set, hide it */
.lightbox[hidden] { display: none !important; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 800px;
  width: 100%;
  animation: liftIn 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes liftIn {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* Lightbox image wrapper — needed for arrow positioning */
.lightbox-img-wrap {
  position: relative;
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

.lightbox-img-wrap img {
  max-height: 76vh;
  max-width: 300px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.7);
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.15s ease;
}

/* Watermark overlay on lightbox image */
.lightbox-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: repeating-linear-gradient(
    -28deg,
    transparent 0px,
    transparent 60px,
    rgba(255,255,255,0.0) 60px,
    rgba(255,255,255,0.0) 61px
  );
  pointer-events: none;
  z-index: 2;
}


.lightbox-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
  max-height: 78vh;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--brown) transparent;
}

.lightbox-text::-webkit-scrollbar { width: 4px; }
.lightbox-text::-webkit-scrollbar-track { background: transparent; }
.lightbox-text::-webkit-scrollbar-thumb { background: var(--brown); border-radius: 2px; }

.lightbox-caption { display: flex; flex-direction: column; gap: 0.2rem; }

#lightbox-number {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown-light);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

#lightbox-name {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.6rem;
  color: #fdf8f2;
  line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.lightbox-divider {
  width: 40px;
  height: 1px;
  background-color: var(--brown);
  opacity: 0.5;
}

.lightbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lb-tag {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 220, 190, 0.7);
  border: 1px solid rgba(176, 125, 80, 0.35);
  border-radius: 2rem;
  padding: 0.25em 0.85em;
}

#lightbox-meaning {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(253, 248, 242, 0.95);
  line-height: 1.9;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

#lightbox-meaning p + p {
  margin-top: 0.9rem;
}

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(253, 248, 242, 0.5);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  z-index: 201;
  padding: 0.5rem;
}

.lightbox-close:hover { color: #fdf8f2; }

/* ---- LIGHT THEME OVERRIDES ---- */
.lightbox[data-theme="light"] #lightbox-number {
  color: var(--brown);
  text-shadow: none;
}
.lightbox[data-theme="light"] #lightbox-name {
  color: var(--text);
  text-shadow: none;
}
.lightbox[data-theme="light"] #lightbox-meaning {
  color: var(--text);
  text-shadow: none;
}
.lightbox[data-theme="light"] .lb-tag {
  color: var(--brown);
  border-color: var(--border);
}
.lightbox[data-theme="light"] .lightbox-close {
  color: rgba(30, 32, 24, 0.45);
}
.lightbox[data-theme="light"] .lightbox-close:hover {
  color: var(--text);
}
.lightbox[data-theme="light"] .lightbox-arrow {
  background: rgba(240, 234, 208, 0.7);
  border-color: var(--border);
  color: var(--text);
}
.lightbox[data-theme="light"] .lightbox-arrow:hover {
  background: rgba(240, 234, 208, 0.95);
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 14, 10, 0.55);
  border: 1px solid rgba(253, 248, 242, 0.2);
  color: rgba(253, 248, 242, 0.85);
  font-size: 1.2rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 201;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  padding: 0;
  backdrop-filter: blur(4px);
}

.lightbox-arrow:hover {
  background: rgba(253, 248, 242, 0.18);
  color: #fdf8f2;
}

.lightbox-arrow--prev { left: 1.2rem; }
.lightbox-arrow--next { right: 1.2rem; }

.lightbox-arrow--prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox-arrow--next:hover { transform: translateY(-50%) translateX(2px); }

.lightbox-arrow:disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

/* Mobile: position arrows on sides of the card image */
@media (max-width: 680px) {
  .lightbox-arrow {
    position: absolute;
    top: 50%;
  }
  .lightbox-arrow--prev { left: -3rem; }
  .lightbox-arrow--next { right: -3rem; }
  .lightbox-arrow--prev:hover { transform: translateY(-50%) translateX(-2px); }
  .lightbox-arrow--next:hover { transform: translateY(-50%) translateX(2px); }
}

/* ===========================
   COPY PROTECTION WARNING
   =========================== */
.copy-warning {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(20, 14, 10, 0.92);
  color: rgba(240, 230, 211, 0.9);
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  border: 1px solid rgba(176, 125, 80, 0.3);
  pointer-events: none;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}

.copy-warning.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Ensure [hidden] always wins over display:flex/grid from component classes */
[hidden] { display: none !important; }

/* Global image protection */
img {
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

/* ===========================
   SCROLL REVEAL
   =========================== */
.reveal-item {
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-item.reveal-hidden {
  opacity: 0;
  transform: translateY(16px);
}
.reveal-item.revealed {
  opacity: 1;
  transform: none;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background-color: var(--surface);
    padding: 1.5rem;
    border-bottom: 1px dashed var(--stitch);
    gap: 1.2rem;
    z-index: 99;
  }
  .nav-burger { display: block; }

  .hero { padding: 6rem 1.5rem 3rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-card-stack { height: 340px; order: -1; }
  .card-wrapper { width: 150px; }

  .gallery { padding: 4rem 1.5rem; }
  .deck-stack-wrap { width: 220px; height: 367px; }
  .deck-name { font-size: 1.1rem; }

  .stitch-divider::before { left: 1.5rem; right: 1.5rem; }
  .stitch-divider { background-color: var(--bg); }
  .about .stitch-divider { background-color: var(--bg-alt); }

  .card-filters {
    justify-content: safe center;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .card-filters::-webkit-scrollbar { display: none; }

  .about { padding: 4rem 1.5rem; }
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-card-display { justify-content: center; }
  .about-card-flip { width: 155px; height: 272px; }

  .artist { padding: 4rem 1.5rem; }
  .artist-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .artist-photo-wrap { flex-direction: row; justify-content: center; align-items: flex-start; }

  .notify { padding: 4rem 1.5rem; }
  .form-row { flex-direction: column; }

  .lightbox {
    padding: 1rem;
    align-items: flex-start;
    overflow-y: auto;
  }
  .lightbox-content {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 3rem 0.5rem 2rem;
    width: 100%;
  }
  .lightbox-img-wrap img {
    max-height: 55vw;
    max-width: 200px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 3rem; }
  .hero-text .btn { display: block; text-align: center; }
  .hero-text .btn + .btn { margin-left: 0; margin-top: 0.75rem; }
  .about-stats { gap: 1.5rem; }
  .deck-stack-wrap { width: 190px; height: 317px; }
  .deck-btn { font-size: 0.95rem; padding: 0.5em 1.2em; }
}

/* Touch devices — remove hover-only effects */
@media (hover: none) {
  .tarot-card-front::after { display: none; }
  .tarot-card:hover .tarot-card-front { transform: none; }
  .deck-current::after { display: none; }
  .deck-current:hover { transform: none; }
  .card-front:hover { transform: rotate(2deg); }
  .about-card-flip:hover { transform: rotate(-3deg); }
}

/* High contrast / accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-item.reveal-hidden { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
