/* ── Variables ─────────────────────────────────────────── */
:root {
  --cream:    #F6F1EA;
  --warm-mid: #EDE5D8;
  --tan:      #7A6A56;
  --earth:    #6B5540;
  --ink:      #0F0D0B;
  --ink-mid:  #1E1A16;
  --ink-soft: #3D3328;
  --accent:   #B05C2A;
  --accent-hover: #8F4820;
  --rule:     #C5B8A8;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
}

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

/* ── Base ──────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Admin Bar ─────────────────────────────────────────── */
.admin-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 32px;
  font-family: var(--font-body);
  font-size: 13px;
}
.admin-label { color: var(--tan); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-right: auto; }
.admin-action-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
}
.admin-action-btn:hover { background: var(--accent-hover); }
.admin-clear-btn {
  background: transparent;
  color: #f87171;
  border: 1px solid #7f3030;
  border-radius: 4px;
  padding: 5px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.admin-clear-btn:hover { color: #fff; border-color: #f87171; }
  background: transparent;
  color: #aaa;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 5px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.admin-logout:hover { color: #fff; border-color: #aaa; }

/* ── Login / Upload Modal ──────────────────────────────── */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,17,14,.7);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }

.login-modal {
  background: var(--cream);
  border-radius: 12px;
  padding: 48px 44px;
  width: 420px;
  max-width: 92vw;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  animation: slideUp .25s ease;
}
.upload-modal { width: 520px; }

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

.modal-close {
  position: absolute;
  top: 18px; right: 20px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1;
  transition: color .15s;
}
.modal-close:hover { color: var(--ink); }

.login-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.login-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.login-sub {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 28px;
}

.login-error {
  background: #FDE8E0;
  color: #9B3010;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 12px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
  margin-top: 16px;
}

.login-input {
  display: block;
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
  margin-bottom: 0;
}
.login-input:focus { border-color: var(--accent); }

.login-btn {
  display: block;
  width: 100%;
  margin-top: 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
}
.login-btn:hover { background: var(--accent-hover); }

/* ── Page Layout ───────────────────────────────────────── */
html, body { height: 100%; }
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ────────────────────────────────────────────── */
header {
  padding-top: 28px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  position: relative;
}
.name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}
.name em { font-style: italic; color: var(--accent); }
.descriptor {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 6px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-nav a {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s;
}
.header-nav a:hover { color: var(--ink); }
.nav-admin-btn {
  background: none;
  border: 1px solid var(--rule);
  color: var(--tan);
  font-family: var(--font-body);
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all .2s;
}
.nav-admin-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.header-left {
  display: flex;
  align-items: center;
}
.header-headshot {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--rule);
  flex-shrink: 0;
  transition: border-color .2s;
}
.name-link:hover .header-headshot { border-color: var(--accent); }
.header-rule { height: 1px; background: var(--rule); }

/* ── Above-fold two-column layout ──────────────────────── */
.above-fold {
  display: grid;
  grid-template-columns: 400px minmax(0, 540px);
  gap: 48px;
  align-items: start;
  padding: 28px 0 0;
}
.left-col { display: flex; flex-direction: column; gap: 24px; }

/* ── Hero ──────────────────────────────────────────────── */
.hero { display: contents; }
.hero-tag { display: none; }
.lead {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-mid);
  font-weight: 400;
}

/* ── Section Label ─────────────────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 10px;
}

/* ── Featured Video ────────────────────────────────────── */
.video-section { display: flex; flex-direction: column; }
.video-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--warm-mid);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.video-wrapper iframe { width: 100%; height: 100%; border: none; display: block; }
.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
}
.play-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--earth);
}
.video-placeholder-text { font-family: var(--font-display); font-size: 17px; color: var(--earth); }
.video-placeholder-sub { font-size: 12px; color: var(--tan); }
.featured-caption { margin-top: 14px; }

/* ── Recent Appearances (left col) ────────────────────────── */
.recent-appearances-block { display: flex; flex-direction: column; gap: 10px; }
.recent-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.recent-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.15s;
}
.recent-item:hover { opacity: 0.7; }
.recent-thumb {
  width: 100px;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  background: var(--warm-mid);
  flex-shrink: 0;
  position: relative;
}
.recent-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.recent-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.18);
  transition: background 0.15s;
}
.recent-item:hover .recent-thumb-play { background: rgba(0,0,0,0.32); }
.recent-thumb-play::after {
  content: '▶';
  font-size: 13px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.recent-meta { display: flex; flex-direction: column; gap: 3px; }
.recent-network {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tan);
}
.recent-title {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.4;
}
.all-appearances-link {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--earth);
  text-decoration: none;
  margin-top: 2px;
  transition: opacity 0.15s;
}
.all-appearances-link:hover { opacity: 0.6; }
.caption-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
}
.caption-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ── Compact appearances in left col ───────────────────── */
.appearances-compact .archive-list { list-style: none; }
.appearances-compact .archive-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}
.appearances-compact .archive-network {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tan);
  width: 100px;
  flex-shrink: 0;
}
.appearances-compact .archive-title-text {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink-mid);
  flex: 1;
}
.appearances-compact .archive-arrow {
  color: var(--rule);
  font-size: 13px;
  transition: transform .2s, color .2s;
}
.appearances-compact .archive-item[data-video]:not([data-video=""]) { cursor: pointer; }
.appearances-compact .archive-item[data-video]:not([data-video=""]):hover .archive-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* ── Contact compact in left col ───────────────────────── */
.contact-compact {
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.contact-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 5px;
}
.contact-email {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color .2s;
}
.contact-email:hover { color: var(--accent); }

/* ── About section (below fold) ────────────────────────── */
.about-section {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
  margin-bottom: 60px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 80px;
  align-items: start;
}
.about-text p {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.8;
  color: var(--ink-mid);
  margin-bottom: 20px;
}
.about-aside { display: flex; flex-direction: column; gap: 36px; }
.aside-num {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.aside-num span { font-size: 26px; }
.aside-desc {
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ── Archive (below fold, hide — shown in left col) ─────── */
.archive-section { display: none; }

/* ── Contact section (below fold, hide — shown in left col) */
.contact-section { display: none; }

/* ── Footer ────────────────────────────────────────────── */
/* ── Book Her For strip ────────────────────────────────── */
.book-strip {
  border-top: 1px solid var(--rule);
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow: hidden;
}
.book-strip .section-label { margin-bottom: 0; white-space: nowrap; flex-shrink: 0; }
.book-marquee-track {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.book-marquee-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.book-marquee-inner:hover { animation-play-state: paused; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.book-item {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink-mid);
  white-space: nowrap;
  padding: 0 6px;
}
.book-divider {
  color: var(--rule);
  font-size: 13px;
  padding: 0 4px;
}

footer {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--tan);
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.footer-dot { color: var(--rule); }

.delete-btn {
  background: none;
  border: 1px solid #e0c0b0;
  color: #b05040;
  font-family: var(--font-body);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.delete-btn:hover { background: #b05040; color: #fff; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .page { padding: 0 28px 40px; }
  .above-fold { grid-template-columns: 1fr; gap: 32px; }
  .header-inner { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .name { font-size: 22px; }
  .header-nav { gap: 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-aside { flex-direction: row; gap: 32px; }
}

.login-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--font-body);
  line-height: 1.5;
}
.hidden { display: none !important; }

.name-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 16px;
}
.name-link:hover .name { color: var(--accent); }

.featured-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
}
.featured-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ── Headshot ────────────────────────────────────────────── */
.headshot-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 28px;
}
.headshot-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--rule);
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.headshot-lg {
  width: 220px;
  height: 220px;
}
