@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500&display=swap');

/* ── Tokens ── */
:root {
  --bg:        #1C1612;
  --surface:   #2E261E;
  --parchment: #F0E6D3;
  --brass:     #C4965A;
  --stone:     #7A6A58;
  --rule:      rgba(196,150,90,0.25);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--parchment);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
}

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.42) sepia(0.3);
}

.hero__overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  width: 100%;
}

.hero__rule {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--brass);
  opacity: 0.7;
}

.hero__name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--parchment);
  line-height: 1;
  padding: 0.3em 0;
}

.hero__tagline {
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 1.2em;
}

.hero__caption {
  position: absolute;
  bottom: 28px;
  right: 32px;
  font-size: 0.72rem;
  color: var(--stone);
  letter-spacing: 0.08em;
  font-style: italic;
}

/* ── Content ── */
.content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Section ── */
.epk-section {
  padding: 64px 0;
  border-top: 1px solid var(--rule);
}

.epk-section:first-child { border-top: none; }

.section-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 28px;
  display: block;
}

/* ── Bio ── */
.bio-text p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.85;
  color: var(--parchment);
  margin-bottom: 1.2em;
}
.bio-text p:last-child { margin-bottom: 0; }
.bio-text strong { font-weight: 600; color: #fff; }
.bio-text em { font-style: italic; }

/* ── Offerings ── */
.offerings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
}

.offering-card {
  background: var(--surface);
  padding: 28px 24px;
  border-left: 2px solid var(--brass);
}

.offering-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 8px;
}

.offering-card p {
  font-size: 0.85rem;
  color: var(--stone);
  line-height: 1.6;
}

/* ── Credits ── */
.credits-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.credit-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  background: var(--surface);
  padding: 24px;
}

.credit-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 20px;
  border-right: 1px solid var(--rule);
}

.credit-year {
  font-size: 0.78rem;
  color: var(--brass);
  letter-spacing: 0.06em;
}

.credit-role {
  font-size: 0.75rem;
  color: var(--stone);
  line-height: 1.4;
}

.credit-body {
  padding-left: 24px;
}

.credit-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.credit-body h3 a {
  color: var(--parchment);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s, border-color 0.2s;
}

.credit-body h3 a:hover { color: var(--brass); border-color: var(--brass); }

.credit-body p {
  font-size: 0.83rem;
  color: var(--stone);
  line-height: 1.6;
}

/* ── Videos / Releases ── */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.video-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--surface);
  color: var(--parchment);
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.video-link:hover { background: #3a2f24; color: var(--brass); }

.play-icon {
  width: 30px;
  height: 30px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  color: var(--brass);
}

.release-alias {
  font-size: 0.8rem;
  color: var(--stone);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) sepia(0.15);
  transition: filter 0.3s;
}

.gallery-grid img:hover { filter: brightness(1) sepia(0); }

.gallery-more {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}

.gallery-more:hover { border-color: var(--brass); }

/* ── Contact ── */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.contact-item {
  font-size: 0.88rem;
  color: var(--stone);
}

.contact-item a {
  color: var(--parchment);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s, border-color 0.2s;
}

.contact-item a:hover { color: var(--brass); border-color: var(--brass); }

.social-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.social-link {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.social-link:hover { color: var(--brass); border-color: var(--brass); }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 48px 32px;
  border-top: 1px solid var(--rule);
  font-size: 0.72rem;
  color: var(--stone);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Gallery page ── */
.gallery-full {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 32px 120px;
}

.gallery-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.gallery-full-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) sepia(0.15);
  transition: filter 0.3s;
}

.gallery-full-grid img:hover { filter: brightness(1) sepia(0); }

.back-link {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  text-decoration: none;
}

/* ── Admin ── */
.admin-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 32px 120px;
}

.admin-wrap h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 8px;
}

.admin-wrap .back {
  font-size: 0.72rem;
  color: var(--brass);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 40px;
}

.admin-notice {
  background: var(--surface);
  border-left: 2px solid var(--brass);
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--stone);
  margin-bottom: 40px;
  line-height: 1.6;
}

.admin-notice strong { color: var(--parchment); }
.admin-notice code {
  font-size: 0.8rem;
  background: rgba(255,255,255,0.06);
  padding: 1px 5px;
  border-radius: 2px;
}

/* Mode links panel */
.mode-panel {
  background: var(--surface);
  padding: 24px;
  margin-bottom: 40px;
  border-left: 2px solid var(--brass);
}

.mode-panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-bottom: 16px;
}

.mode-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mode-link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.83rem;
}

.mode-link-label {
  width: 100px;
  color: var(--stone);
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.mode-link-url {
  flex: 1;
  color: var(--parchment);
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  background: rgba(0,0,0,0.3);
  padding: 4px 8px;
  border-radius: 2px;
}

.btn-copy {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--stone);
  padding: 4px 10px;
  font-size: 0.7rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-copy:hover { border-color: var(--brass); color: var(--brass); }
.btn-copy.copied { color: #7abf7a; border-color: #7abf7a; }

.block-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 32px; }

.block-row {
  background: var(--surface);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.block-row strong {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  flex: 1;
  min-width: 80px;
}

.block-row code { font-size: 0.72rem; color: var(--stone); }

.btn {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--parchment);
  padding: 6px 12px;
  font-size: 0.72rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn:hover { border-color: var(--brass); color: var(--brass); }
.btn:disabled { opacity: 0.3; cursor: default; }
.btn-primary { background: var(--brass); color: var(--bg); border-color: var(--brass); font-weight: 500; }
.btn-primary:hover { background: #d4a868; border-color: #d4a868; color: var(--bg); }
.btn-danger { border-color: #8b3a3a; color: #c47a7a; }
.btn-danger:hover { border-color: #c47a7a; }

.add-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }

.editor-box { margin-top: 32px; }
.editor-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

textarea#box {
  width: 100%;
  height: 320px;
  background: var(--surface);
  color: var(--parchment);
  border: 1px solid var(--rule);
  font-family: 'Courier New', monospace;
  font-size: 13px;
  padding: 16px;
  resize: vertical;
  outline: none;
  line-height: 1.5;
}

textarea#box:focus { border-color: var(--brass); }

.edit-actions { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.edit-status { font-size: 0.78rem; color: var(--brass); margin-left: 8px; }

hr.divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 32px 0;
}

.action-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .content { padding: 0 20px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-full-grid { grid-template-columns: repeat(2, 1fr); }
  .offerings-grid { grid-template-columns: 1fr; }
  .credit-row { grid-template-columns: 1fr; }
  .credit-meta { border-right: none; border-bottom: 1px solid var(--rule); padding-right: 0; padding-bottom: 12px; margin-bottom: 12px; flex-direction: row; gap: 12px; }
  .credit-body { padding-left: 0; }
  .block-row { gap: 8px; }
  .admin-wrap { padding: 40px 20px 80px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ── Print ── */
@media print {
  :root {
    --bg: #ffffff;
    --surface: #f5f0ea;
    --parchment: #1a1208;
    --brass: #8a6030;
    --stone: #5a4a38;
    --rule: rgba(138,96,48,0.3);
  }

  body { background: #fff; color: #1a1208; font-size: 11pt; }

  .hero {
    height: auto;
    min-height: 0;
    page-break-after: always;
    display: block;
    position: relative;
  }

  .hero__img {
    position: relative;
    width: 100%;
    height: 280px;
    filter: brightness(0.5) sepia(0.2);
  }

  .hero__overlay {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
  }

  .hero__name { font-size: 48pt; }
  .hero__caption { position: static; margin-top: 8px; text-align: center; display: block; }

  .gallery-grid img { filter: brightness(0.9) sepia(0.1); }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: var(--stone);
  }

  .video-link::after,
  .credit-body h3 a::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    font-family: 'Inter', sans-serif;
    color: var(--stone);
  }

  footer { border-top: 1pt solid var(--rule); }

  .epk-section { page-break-inside: avoid; }
}
