/* ============================================================
   Record Page  "The Archive"
   Premium hall-of-fame / legend reveal experience
   ============================================================ */

:root {
  --rc-accent: #c9a84c;
  --rc-accent-dim: #a08636;
  --rc-text: #1a1a1a;
  --rc-text-secondary: #555;
  --rc-bg: #fafaf8;
  --rc-card-bg: #fff;
  --rc-card-border: #e8e5dd;
  --rc-divider: #e0ddd5;
  --rc-number: #d4d0c8;
  --rc-serif: 'Playfair Display', 'IBM Plex Serif', Georgia, serif;
  --rc-sans: 'PT Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.dark {
  --rc-accent: #d4af5a;
  --rc-accent-dim: #b8943e;
  --rc-text: #e8e6e1;
  --rc-text-secondary: #9a9590;
  --rc-bg: #131416;
  --rc-card-bg: #1c1d21;
  --rc-card-border: #2a2b30;
  --rc-divider: #2a2b30;
  --rc-number: #2f3035;
}

/* ---- Page Header ---- */
.rc-page {
  background: var(--rc-bg);
  min-height: 100vh;
}

.rc-header {
  position: relative;
  padding: 100px 0 60px;
  text-align: center;
  overflow: hidden;
}

.rc-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, var(--rc-bg) 100%);
  z-index: 1;
}

.rc-header__content {
  position: relative;
  z-index: 2;
}

.rc-header__label {
  display: inline-block;
  font-family: var(--rc-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rc-accent);
  margin-bottom: 16px;
}

.rc-header__title {
  font-family: var(--rc-serif);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  color: var(--rc-text);
  margin: 0 0 16px;
  line-height: 1.1;
}

.rc-header__subtitle {
  font-family: var(--rc-sans);
  font-size: 16px;
  color: var(--rc-text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.rc-header__line {
  width: 48px;
  height: 2px;
  background: var(--rc-accent);
  margin: 32px auto 0;
}

/* ---- Record List ---- */
.rc-list {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ---- Record Entry ---- */
.rc-entry {
  border-bottom: 1px solid var(--rc-divider);
  position: relative;
}

.rc-entry:first-child {
  border-top: 1px solid var(--rc-divider);
}

/* ---- Entry Header (question-first) ---- */
.rc-entry__header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 0;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
}

.rc-entry__header:hover .rc-entry__title {
  color: var(--rc-accent);
}

.rc-entry__number {
  font-family: var(--rc-serif);
  font-size: 14px;
  font-weight: 400;
  color: var(--rc-number);
  min-width: 32px;
  padding-top: 4px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.rc-entry__title-wrap {
  flex: 1;
  min-width: 0;
}

.rc-entry__title {
  font-family: var(--rc-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--rc-text);
  margin: 0;
  line-height: 1.4;
  transition: color 0.25s ease;
}

.rc-entry__category {
  display: inline-block;
  font-family: var(--rc-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rc-accent);
  margin-top: 8px;
  opacity: 0.85;
}

.rc-entry__toggle {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  position: relative;
}

.rc-entry__toggle::before,
.rc-entry__toggle::after {
  content: '';
  position: absolute;
  background: var(--rc-text-secondary);
  border-radius: 1px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.rc-entry__toggle::before {
  width: 16px;
  height: 1.5px;
}

.rc-entry__toggle::after {
  width: 1.5px;
  height: 16px;
}

/* Open state: rotate to minus */
.rc-entry.is-open .rc-entry__toggle::after {
  transform: rotate(90deg);
  opacity: 0;
}

.rc-entry.is-open .rc-entry__header .rc-entry__title {
  color: var(--rc-accent);
}

/* ---- Entry Body (reveal) ---- */
.rc-entry__body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease 0.05s;
}

.rc-entry.is-open .rc-entry__body {
  max-height: 800px;
  opacity: 1;
}

.rc-entry__inner {
  padding: 0 0 32px 52px;
}

/* ---- Image Reveal ---- */
.rc-entry__image-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 16 / 9;
  background: var(--rc-card-border);
}

.rc-entry__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rc-entry.is-open .rc-entry__image-wrap img {
  transform: scale(1);
}

.rc-entry__image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
  pointer-events: none;
}

/* ---- Description ---- */
.rc-entry__description {
  font-family: var(--rc-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--rc-text-secondary);
  margin: 0 0 20px;
}

/* ---- Read More Link ---- */
.rc-entry__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--rc-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rc-accent);
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
}

.rc-entry__link:hover {
  gap: 12px;
  color: var(--rc-accent-dim);
}

.rc-entry__link-arrow {
  display: inline-block;
  width: 20px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.25s ease;
}

.rc-entry__link-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.rc-entry__link:hover .rc-entry__link-arrow {
  width: 28px;
}

/* ---- Empty State ---- */
.rc-empty {
  text-align: center;
  padding: 80px 20px;
}

.rc-empty__icon {
  font-size: 48px;
  color: var(--rc-number);
  margin-bottom: 16px;
}

.rc-empty__text {
  font-family: var(--rc-serif);
  font-size: 18px;
  color: var(--rc-text-secondary);
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .rc-header {
    padding: 80px 0 40px;
  }

  .rc-entry__header {
    gap: 14px;
    padding: 22px 0;
  }

  .rc-entry__number {
    font-size: 12px;
    min-width: 24px;
  }

  .rc-entry__title {
    font-size: 17px;
  }

  .rc-entry__inner {
    padding: 0 0 28px 38px;
  }

  .rc-entry__image-wrap {
    border-radius: 6px;
  }

  .rc-entry__description {
    font-size: 14px;
  }

  .rc-list {
    padding: 0 16px 60px;
  }
}

@media (max-width: 480px) {
  .rc-entry__inner {
    padding: 0 0 24px 0;
  }

  .rc-entry__toggle {
    width: 28px;
    height: 28px;
  }

  .rc-entry__toggle::before {
    width: 14px;
  }

  .rc-entry__toggle::after {
    height: 14px;
  }
}