/*
 * Haus Stash Archive — public authentication page
 * Mobile-first. Inherits theme tokens (--hs-*) from
 * haus-stash/assets/css/global.css, with identical fallbacks
 * so the page renders correctly even without the theme.
 */

.hs-record {
  --_bone:     var(--hs-bone, #F0E8DC);
  --_graphite: var(--hs-graphite, #1A1816);
  --_stone:    var(--hs-stone, #E4DDD3);
  --_dark:     var(--hs-dark, #1C1B18);
  --_muted:    var(--hs-muted, #9B9188);
  --_border:   var(--hs-border, #DDD6CC);
  --_white:    var(--hs-white, #FFFFFF);
  --_serif:    var(--hs-font-display, 'Playfair Display', Georgia, serif);
  --_sans:     var(--hs-font-body, 'Inter', -apple-system, system-ui, sans-serif);
  --_ease:     var(--hs-ease, cubic-bezier(0.25, 0, 0.25, 1));
  --_fast:     var(--hs-duration-fast, 200ms);
  --_slow:     var(--hs-duration-slow, 500ms);
  --_radius:   var(--hs-radius, 0px);
  --_side:     clamp(20px, 6vw, 48px);

  background: var(--_bone);
  color: var(--_graphite);
  font-family: var(--_sans);
  font-weight: 300;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── Scroll reveal (mirrors theme .hs-reveal) ─────────────── */
.hs-record .hs-reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--_slow) var(--_ease), transform var(--_slow) var(--_ease);
}
.hs-record .hs-reveal.is-visible { opacity: 1; transform: none; }
.hs-record .hs-reveal-d1 { transition-delay: 80ms; }
.hs-record .hs-reveal-d2 { transition-delay: 160ms; }

@media (prefers-reduced-motion: reduce) {
  .hs-record .hs-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Eyebrow (mirrors theme .hs-eyebrow) ──────────────────── */
.hs-record .hs-eyebrow {
  display: block;
  font-family: var(--_sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--_graphite);
  opacity: 0.45;
  line-height: 1;
  margin-bottom: 20px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hs-record__hero { padding-bottom: clamp(40px, 8vw, 80px); }

.hs-record__hero-media {
  margin: 0;
  background: var(--_stone);
  overflow: hidden;
}

.hs-record__hero-img,
.hs-record__hero-media img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: cover;
  display: block;
}

.hs-record__hero-text {
  padding: clamp(32px, 7vw, 64px) var(--_side) 0;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hs-record__eyebrow { margin-bottom: 16px; }

.hs-record__title {
  font-family: var(--_serif);
  font-size: clamp(34px, 8vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--_graphite);
  margin: 0 0 20px;
}

.hs-record__ident {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 24px;
}

.hs-record__collection,
.hs-record__edition,
.hs-record__serial {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--_muted);
}

.hs-record__serial {
  color: var(--_graphite);
  border-bottom: 1px solid var(--_border);
  padding-bottom: 2px;
}

/* ── Status badge ─────────────────────────────────────────── */
.hs-record__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid var(--_graphite);
  border-radius: var(--_radius);
  color: var(--_graphite);
  background: transparent;
}

.hs-record__badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.hs-record__badge--authenticated,
.hs-record__badge--permanent_collection { border-color: var(--_graphite); }

.hs-record__badge--prototype,
.hs-record__badge--limited_edition {
  border-color: var(--_muted);
  color: var(--_graphite);
}

.hs-record__badge--archived,
.hs-record__badge--discontinued {
  border-color: var(--_border);
  color: var(--_muted);
}

.hs-record__badge--sold {
  background: var(--_graphite);
  color: var(--_bone);
  border-color: var(--_graphite);
}

/* ── Sections ─────────────────────────────────────────────── */
.hs-record__section {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 64px) var(--_side);
  border-top: 1px solid var(--_border);
}

.hs-record__prose {
  font-size: 15px;
  line-height: 1.85;
  color: var(--_graphite);
}

.hs-record__prose p { margin: 0 0 1.2em; }
.hs-record__prose p:last-child { margin-bottom: 0; }

.hs-record__prose--story {
  font-family: var(--_serif);
  font-size: 19px;
  font-style: italic;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.hs-record__story .hs-eyebrow:not(:first-child) { margin-top: 40px; }

/* ── Specifications ───────────────────────────────────────── */
.hs-record__spec-list { margin: 0; }

.hs-record__spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--_border);
}
.hs-record__spec-row:last-child { border-bottom: 0; }

.hs-record__spec-row dt {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--_muted);
  flex-shrink: 0;
}

.hs-record__spec-row dd {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--_graphite);
  text-align: right;
}

/* ── Gallery ──────────────────────────────────────────────── */
.hs-record__gallery { max-width: 1000px; }

.hs-record__gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.hs-record__gallery-item {
  margin: 0;
  background: var(--_stone);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.hs-record__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--_slow) var(--_ease);
}

.hs-record__gallery-item:hover img { transform: scale(1.03); }

@media (min-width: 600px) {
  .hs-record__gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Authentication statement ─────────────────────────────── */
.hs-record__auth {
  background: var(--_dark);
  color: var(--_bone);
  margin-top: clamp(40px, 8vw, 80px);
}

.hs-record__auth-inner {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(56px, 12vw, 96px) var(--_side);
  text-align: center;
}

.hs-record__auth-eyebrow {
  color: var(--_bone);
  opacity: 0.5;
  margin-bottom: 28px;
}

.hs-record__auth-serial {
  font-family: var(--_serif);
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--_white);
  margin: 0 0 28px;
}

.hs-record__auth-statement {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(240, 232, 220, 0.75);
  margin: 0 0 32px;
}

.hs-record__auth-meta {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 232, 220, 0.4);
  margin: 0;
}

/* ── Desktop refinements ──────────────────────────────────── */
@media (min-width: 900px) {
  .hs-record__hero-media {
    max-width: min(1280px, 100%);
    margin: 0 auto;
  }
}
