/* OBSKIRA RUNWAY — Drop 01
   Constitution: see brand DESIGN.md
   These three values do all the work. Hierarchy via opacity, never new hues. */

:root {
  --bg:            #0a0a0a;
  --bg-elevated:   #111111;
  --fg:            #e8e8e3;
  --accent:        #8b0000;

  --fg-body:       rgba(232, 232, 227, 0.82);
  --fg-muted:      rgba(232, 232, 227, 0.55);
  --fg-faint:      rgba(232, 232, 227, 0.35);
  --fg-whisper:    rgba(232, 232, 227, 0.18);

  --accent-line:   rgba(139, 0, 0, 0.40);
  --accent-soft:   rgba(139, 0, 0, 0.25);
  --accent-faint:  rgba(139, 0, 0, 0.18);
  --accent-wash:   rgba(139, 0, 0, 0.04);

  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

::selection { background: var(--accent); color: var(--fg); }

a { color: inherit; text-decoration: none; }

/* ---------- Atmospheric backdrop ---------- */
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 95% 78% at 50% 50%, transparent 42%, rgba(0,0,0,0.55) 100%);
}

/* ---------- Layout shell ---------- */
.page {
  position: relative; z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 32px 120px;
}

@media (max-width: 720px) {
  .page { padding: 20px 20px 80px; }
}

/* ---------- Reusable type ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--fg-faint);
}

.label {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--fg-muted);
}

.stat-label {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 400;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--fg-muted);
}

.serif { font-family: var(--font-display); font-weight: 400; }

/* ---------- Divider ---------- */
.divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(139,0,0,0.30) 20%,
    rgba(139,0,0,0.40) 50%,
    rgba(139,0,0,0.30) 80%,
    transparent 100%);
  margin: 56px 0;
}

@media (max-width: 720px) {
  .divider { margin: 40px 0; }
}

/* ---------- Header ---------- */
.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0 48px;
}

.wordmark {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  letter-spacing: 6px; text-transform: uppercase;
  color: var(--fg);
}

.wordmark .runway { color: var(--fg-faint); margin-left: 6px; }

.nav { display: flex; gap: 32px; }
.nav a {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--fg-muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.nav a:hover { color: var(--fg); border-bottom-color: var(--accent-line); }
.nav a.cart-link { color: var(--fg); }

@media (max-width: 720px) {
  .header { padding: 16px 0 32px; }
  .nav { gap: 16px; }
  .nav a { font-size: 9px; letter-spacing: 3px; }
  .nav a.hide-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 78vh; min-height: 560px; max-height: 760px;
  margin: 0 -32px 56px;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  border-bottom: 1px solid var(--accent-faint);
}

@media (max-width: 720px) {
  .hero { margin: 0 -20px 40px; height: 70vh; min-height: 480px; }
}

.hero-img {
  position: absolute; inset: 0;
  background-image: url('assets/bg_cathedral.jpg');
  background-size: cover; background-position: center;
  filter: contrast(1.05) saturate(0.78) brightness(0.78);
}

.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, transparent 30%, transparent 55%, rgba(10,10,10,0.95) 100%),
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(139,0,0,0.10) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  padding: 0 48px 64px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

@media (max-width: 720px) {
  .hero-inner { padding: 0 20px 40px; }
}

.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}

.live-dot {
  width: 6px; height: 6px; border-radius: 0;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(139,0,0,0.6);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-status-text {
  font-size: 10px; font-weight: 500;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 8vw, 64px);
  letter-spacing: 14px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--fg);
}

.hero-sub {
  margin-top: 18px;
  font-size: 10px; font-weight: 500;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--fg-muted);
}

.hero-sub .sep { margin: 0 14px; color: var(--accent); }

.hero-counts {
  margin-top: 36px;
  display: flex; gap: 56px;
}

@media (max-width: 720px) {
  .hero-counts { gap: 32px; margin-top: 28px; }
}

.hero-count {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-count .n {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 500;
  color: var(--fg);
  line-height: 1;
}
.hero-count .l {
  font-size: 10px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--fg-faint);
}

/* ---------- Manifesto ---------- */
.manifesto { padding: 24px 0 8px; }
.manifesto .eyebrow { margin-bottom: 32px; }

.manifesto p {
  color: var(--fg-body);
  font-size: 17px; line-height: 1.85;
  margin-bottom: 24px;
}

.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--fg-muted);
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 36px 0;
}

/* ---------- Section headers ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 40px;
}

.section-head .h {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: 1px;
  color: var(--fg);
}

.section-head .meta {
  font-size: 10px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--fg-faint);
}

@media (max-width: 720px) {
  .section-head { flex-direction: column; gap: 12px; align-items: flex-start; margin-bottom: 28px; }
}

/* ---------- Pieces grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--accent-faint);
  border: 1px solid var(--accent-faint);
}

@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }

.piece {
  background: var(--bg);
  cursor: pointer;
  transition: background-color 200ms ease;
  display: flex; flex-direction: column;
  text-align: left;
  border: none;
  font: inherit;
  color: inherit;
  padding: 0;
}
.piece:hover { background: rgba(139,0,0,0.04); }
.piece:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }

.thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.thumb::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.30) 0%, transparent 25%, transparent 60%, rgba(10,10,10,0.92) 100%);
  z-index: 1;
}

.thumb .roman {
  position: absolute;
  top: 16px; left: 18px;
  font-family: var(--font-display);
  font-size: 13px; font-style: italic;
  color: var(--fg-faint);
  z-index: 2;
  letter-spacing: 2px;
}

.thumb .silhouette {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  opacity: 0.85;
}

.piece-meta {
  padding: 20px 22px 24px;
  display: flex; flex-direction: column; gap: 8px;
}

.piece-name {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1.1;
}

.piece-price {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 400;
  color: var(--fg-body);
}

.piece-remaining {
  margin-top: 4px;
  font-size: 10px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent);
}

.piece-remaining.low { color: var(--accent); }
.piece-remaining.sold { color: var(--fg-faint); }

/* ---------- Reserve form ---------- */
.reserve {
  text-align: center;
  padding: 24px 0 8px;
}
.reserve .h {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.reserve .sub {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 36px;
  font-weight: 300;
}

.reserve-form {
  max-width: 440px;
  margin: 0 auto;
  display: flex; gap: 24px; align-items: flex-end;
}

.reserve-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(232,232,227,0.30);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 300;
  padding: 12px 0;
  outline: none;
  transition: border-color 200ms ease;
}
.reserve-input::placeholder { color: var(--fg-faint); }
.reserve-input:focus { border-bottom-color: var(--accent); }

.btn {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 10px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase;
  padding: 12px 0;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
}
.btn:hover { color: var(--fg); border-bottom-color: rgba(232,232,227,0.85); }
.btn:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.btn.large {
  font-size: 11px;
  letter-spacing: 5px;
  padding: 14px 0;
}

.reserve-confirm {
  text-align: center;
  color: var(--fg-muted);
  font-size: 13px;
  font-style: italic;
  font-family: var(--font-display);
}
.reserve-confirm .em { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid rgba(232,232,227,0.06);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
}
.footer .small {
  font-size: 10px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--fg-whisper);
}
.footer .links { display: flex; gap: 24px; }
.footer .links a {
  font-size: 10px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--fg-faint);
  transition: color 200ms ease;
}
.footer .links a:hover { color: var(--fg); }

@media (max-width: 600px) {
  .footer { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; justify-content: center;
  overflow-y: auto;
  opacity: 0;
  animation: backdropIn 280ms ease forwards;
}

@keyframes backdropIn {
  to { opacity: 1; }
}

.modal {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--accent-line);
  max-width: 1080px;
  width: calc(100% - 64px);
  margin: 48px 32px;
  padding: 56px 64px 72px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
  opacity: 0;
  transform: translateY(20px);
  animation: modalIn 420ms ease 80ms forwards;
}

@keyframes modalIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 880px) {
  .modal {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
    margin: 24px 16px;
    padding: 32px 24px 48px;
    gap: 32px;
  }
}

.modal-close {
  position: absolute;
  top: 24px; right: 32px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 10px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase;
  padding: 4px 0;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
  z-index: 2;
}
.modal-close:hover { color: var(--fg); border-bottom-color: rgba(232,232,227,0.85); }

.gallery {
  display: flex; flex-direction: column; gap: 12px;
}

.gallery-main {
  aspect-ratio: 3 / 4;
  background-size: cover; background-position: center;
  background-color: #050505;
  position: relative;
}
.gallery-main::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.20) 0%, transparent 30%, transparent 60%, rgba(10,10,10,0.65) 100%);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gallery-thumbs button {
  aspect-ratio: 1 / 1;
  background-size: cover; background-position: center;
  background-color: #0a0a0a;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
  transition: opacity 200ms ease, border-color 200ms ease;
}
.gallery-thumbs button.active { opacity: 1; border-color: var(--accent-line); }
.gallery-thumbs button:hover { opacity: 0.9; }

.detail-pane { padding-top: 8px; }

.detail-roman {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--fg-faint);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.detail-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 44px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1.05;
  margin-bottom: 12px;
}

.detail-price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--fg-body);
  margin-bottom: 24px;
}

.detail-remaining {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 36px;
}
.detail-remaining::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent);
}

.detail-section { margin-bottom: 32px; }
.detail-section .label { margin-bottom: 16px; display: block; }

.detail-section p {
  color: var(--fg-body);
  font-size: 15px;
  line-height: 1.75;
}

.measurements {
  width: 100%;
  border-collapse: collapse;
}
.measurements th,
.measurements td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.measurements th {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--fg-faint);
  width: 50%;
}
.measurements td {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--fg);
  text-align: right;
}

.detail-cta {
  margin-top: 12px;
  display: flex; gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--accent-line);
}

/* ---------- Fade-up entry ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .fade-up, .modal, .modal-backdrop { animation: none !important; opacity: 1 !important; transform: none !important; }
  .live-dot { animation: none !important; }
}

/* ---------- Runway backlink (subpage → index.html) ---------- */
.runway-back {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 1px;
  transition: color 200ms ease, border-color 200ms ease;
}
.runway-back:hover,
.runway-back:focus-visible {
  color: var(--fg);
  border-bottom-color: rgba(232, 232, 227, 0.85);
  outline: none;
}
.runway-back-fixed {
  position: fixed;
  z-index: 60;
}
.runway-back-fixed.top {
  top: clamp(20px, 4vh, 40px);
  left: clamp(20px, 4vw, 40px);
}
.runway-back-fixed.bottom {
  bottom: clamp(20px, 4vh, 40px);
  right: clamp(20px, 4vw, 40px);
}
