/* ═══════════════════════════════════════════════════════════════
   CoffeeFox — witchy art gallery styles
   ══════════════════════════════════════════════════════════════ */

/* ── Tokens ───────────────────────────────────────────────────── */
:root {
  --bg:           #080f09;
  --surface:      #0f1a10;
  --surface-2:    #162618;
  --border:       #1e3820;
  --gold:         #c9a64a;
  --gold-dim:     #8a6e2f;
  --purple:       #4a8c52;
  --purple-dim:   #243d28;
  --text:         #e8dff5;
  --text-muted:   #9d8fb5;
  --text-faint:   #5a5070;
  --font-display: 'Cinzel', Georgia, serif;
  --font-body:    'Crimson Text', Georgia, serif;
  --max-w:        1100px;
  --section-pad:  7rem 1.5rem;
  --bar-h:        2.4rem;
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--text); }

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

code {
  font-size: 0.8em;
  background: var(--surface-2);
  color: var(--gold);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-family: monospace;
}

/* ── Shared ───────────────────────────────────────────────────── */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad);
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--bg);
}

/* ── Nav ──────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: var(--bar-h); left: 0; right: 0;
  z-index: 100;
  background: rgba(8, 15, 9, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--gold);
}
.logo:hover { color: var(--text); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8.5rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 40%, rgba(53, 94, 59, 0.45) 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 20% 75%, rgba(201, 166, 74, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(30, 70, 35, 0.30) 0%, transparent 60%);
  pointer-events: none;
}

/* Subtle star field */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 12%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 60%, rgba(255,255,255,0.20) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 45%, rgba(255,255,255,0.30) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 80%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 30%, rgba(255,255,255,0.22) 0%, transparent 100%),
    radial-gradient(1px 1px at 5%  55%, rgba(255,255,255,0.18) 0%, transparent 100%),
    radial-gradient(1px 1px at 95% 75%, rgba(255,255,255,0.20) 0%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  /* gold shimmer */
  background: linear-gradient(135deg, #e8dff5 0%, #c9a64a 45%, #e8dff5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text);
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sigil {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
  font-size: 1.5rem;
  letter-spacing: 1rem;
  color: var(--text-faint);
}

/* ── Signature Art ────────────────────────────────────────────── */
.signature-art {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.signature-art .section-inner {
  text-align: center;
}

.art-frame-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.art-frame {
  position: relative;
  max-width: 600px;
  width: 100%;
  /* ornate double border */
  border: 1px solid var(--gold-dim);
  outline: 4px solid var(--surface-2);
  outline-offset: 6px;
  box-shadow:
    0 0 40px rgba(53, 94, 59, 0.30),
    0 0 80px rgba(201, 166, 74, 0.08);
}

.art-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Placeholder when no image */
.art-placeholder .art-image,
.art-frame:not(:has(.art-image)) .art-placeholder-inner {
  display: flex;
}

.art-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 400px;
  color: var(--text-faint);
  background: var(--surface-2);
}
.art-placeholder-inner span {
  font-size: 4rem;
  color: var(--purple-dim);
}
.art-placeholder-inner p {
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.6;
}

.art-caption {
  max-width: 520px;
  text-align: center;
}

.art-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.art-description {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.05rem;
}

/* ── About ────────────────────────────────────────────────────── */
.about {
  background: var(--bg);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.portrait-frame {
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-faint);
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
}
.portrait-placeholder span {
  font-size: 3rem;
  color: var(--purple-dim);
}

.about-text .section-eyebrow { margin-top: 0.5rem; }

.about-bio {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* ── Contact ──────────────────────────────────────────────────── */
.contact {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.contact .section-inner { text-align: left; }
.contact h2 { text-align: left; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  margin-top: 2.5rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  color: var(--text-muted);
}

.contact-icon {
  color: var(--gold-dim);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-form label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-top: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 2px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--purple);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-faint);
}

.contact-form textarea { resize: vertical; }

.contact-form .btn-primary { margin-top: 0.75rem; width: fit-content; }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}

/* ── Announce Bar ────────────────────────────────────────────── */
.announce-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  background: linear-gradient(90deg,
    #0a1a0b 0%,
    #1a3d1e 30%,
    #4a2a10 70%,
    #0a1a0b 100%
  );
  border-bottom: 1px solid rgba(201, 166, 74, 0.45);
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  overflow: hidden;
}

.announce-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(53, 94, 59, 0.25), transparent);
  pointer-events: none;
}

/* ── Craft Strip ─────────────────────────────────────────────── */
.craft-strip {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 1.5rem;
}

.craft-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
}

.craft-tag {
  background: rgba(36, 61, 40, 0.6);
  border: 1px solid rgba(74, 140, 82, 0.55);
  color: var(--text);
  padding: 0.3rem 0.95rem;
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}

.craft-tag.gold {
  background: rgba(201, 166, 74, 0.12);
  border-color: rgba(201, 166, 74, 0.5);
  color: var(--gold);
}

.craft-sep {
  color: var(--text-faint);
  font-size: 0.75rem;
  user-select: none;
}

/* ── Ornament Divider ───────────────────────────────────────── */
.ornament-divider {
  position: relative;
  text-align: center;
  padding: 2.25rem 1.5rem;
  color: var(--gold-dim);
  font-size: 1.1rem;
  letter-spacing: 0.5rem;
  user-select: none;
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 4.5rem);
  height: 1px;
}

.ornament-divider::before {
  left: 0;
  background: linear-gradient(90deg, transparent, var(--border));
}

.ornament-divider::after {
  right: 0;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ── Manifesto Banner ───────────────────────────────────────── */
.manifesto-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg,
    #0a1a0b 0%,
    #12301a 40%,
    #1e1005 70%,
    #0a1a0b 100%
  );
  border-top: 1px solid rgba(53, 94, 59, 0.55);
  border-bottom: 1px solid rgba(201, 166, 74, 0.35);
}

.manifesto-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(53, 94, 59, 0.20), transparent),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(201, 166, 74, 0.07), transparent);
  pointer-events: none;
}

.manifesto-quote {
  position: relative;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 1.25rem;
  line-height: 1.55;
}

.manifesto-quote em {
  color: var(--gold);
  font-style: normal;
}

.manifesto-attr {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 760px) {
  :root { --section-pad: 4.5rem 1.25rem; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .portrait-frame {
    max-width: 260px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 480px) {
  .nav-links { gap: 1.25rem; }
  .hero-sigil { letter-spacing: 0.5rem; }
}

/* ── Gallery Page ─────────────────────────────────────────────── */
.gallery-page {
  padding-top: 5rem;
  min-height: 100svh;
}

.gallery-header {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}

.gallery-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #e8dff5 0%, #c9a64a 45%, #e8dff5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.gallery-sub {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.1rem;
}

.aceo-blurb {
  max-width: 600px;
  margin: 1.25rem auto 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.gallery-grid {
  columns: 3 280px;
  column-gap: 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
}

.gallery-frame {
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 30px rgba(53, 94, 59, 0.15);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.gallery-frame:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 0 50px rgba(201, 166, 74, 0.15);
}

.gallery-frame img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-frame:hover img {
  transform: scale(1.03);
}

.gallery-item figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 0.4rem 0.25rem;
}

.gallery-item-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

.gallery-item-medium {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-faint);
}

.gallery-back {
  text-align: center;
  padding: 0 1.5rem 5rem;
}

@media (max-width: 600px) {
  .gallery-grid { columns: 1; }
}

/* ── Bookmarks Page ───────────────────────────────────────────── */
.bookmark-pairs {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.bookmark-pairs::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--gold-dim);
}

.bookmark-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 0;
}

.bookmark-pair-label {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: 0 0.75rem;
}

.bookmark-pair-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 0;
}

.bookmark-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem;
}

.bookmark-frame {
  width: 140px;
  aspect-ratio: 2 / 5;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(53, 94, 59, 0.15);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.bookmark-frame:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 0 50px rgba(201, 166, 74, 0.15);
}

.bookmark-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.bookmark-frame:hover img {
  transform: scale(1.03);
}

.bookmark-singles {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  padding: 3rem 1.5rem 4rem;
  max-width: 680px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

@media (max-width: 500px) {
  .bookmark-pair-images { gap: 1.5rem; }
  .bookmark-frame { width: 120px; }
}

