/* ============================================================
   Tiger Eye — design tokens
   Palette named after the actual "Tiger Eye Pearl" paint code
   the poster car wears, plus the ink and parchment of an old
   auction catalog.
   ============================================================ */

:root {
  --ink: #14110D;
  --ink-soft: #1F1B14;
  --gold: #B8863A;
  --gold-light: #E8C27A;
  --parchment: #EDE6D3;
  --oxide: #7A4632;
  --hairline: #3A3226;

  --font-display: "Fraunces", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; }

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline) 15%, var(--hairline) 85%, transparent);
  margin: 3rem 0;
}

/* ---- Header ---- */

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2rem clamp(1.5rem, 5vw, 4rem) 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wordmark {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

/* Signature element: a slow gold sweep mimicking the "chatoyance"
   (moving cat's-eye band of light) that gives tiger's-eye stone,
   and the poster car's paint, its name. */
.wordmark-sweep {
  background: linear-gradient(
    100deg,
    var(--gold) 30%,
    var(--gold-light) 45%,
    var(--gold) 60%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sweep 7s ease-in-out infinite;
}

@keyframes sweep {
  0%, 100% { background-position: 120% 0; }
  50% { background-position: -20% 0; }
}

.site-header-note {
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.75;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* ---- Hero ---- */

.hero {
  padding: clamp(2rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem) 2rem;
}

.hero-inner { max-width: 44rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 1.5rem;
  color: var(--parchment);
}

.hero-sub {
  max-width: 32rem;
  color: #C9C2AE;
  font-size: 1.05rem;
}

/* ---- Lot list (home page) ---- */

.lots {
  padding: 1rem clamp(1.5rem, 5vw, 4rem) 3rem;
}

.lot-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0;
}

.lot-number {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.9rem;
  align-self: start;
  padding-top: 0.3rem;
}

.lot-media img,
.lot-media-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--ink-soft), #26201A);
}

.lot-detail-media img { border-radius: 2px; }

.lot-body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  margin: 0 0 0.35rem;
}

.lot-tagline {
  color: var(--gold-light);
  font-style: italic;
  margin: 0 0 0.75rem;
}

.lot-excerpt {
  color: #C9C2AE;
  margin: 0 0 1rem;
}

.btn-link {
  display: inline-block;
  text-decoration: none;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--oxide);
  padding-bottom: 2px;
}

.btn-link:hover { color: var(--gold-light); border-color: var(--gold); }

.empty-note { color: #8b8474; }

/* ---- Lot detail page ---- */

.lot-detail {
  padding: 2rem clamp(1.5rem, 5vw, 4rem) 4rem;
  max-width: 68rem;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 2rem;
}

.lot-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
}

@media (max-width: 860px) {
  .lot-detail-grid { grid-template-columns: 1fr; }
  .lot-row { grid-template-columns: 3.5rem 1fr; }
  .lot-row .lot-media { grid-column: 1 / -1; }
}

.lot-media-placeholder--large { aspect-ratio: 4/3; }

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
}

.lot-detail-info .lot-number {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}

.lot-detail-info h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.4rem;
}

.story p { color: #DAD3BF; margin: 0 0 1rem; }

.specs {
  margin-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.specs-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.specs-row dt { color: #8b8474; margin: 0; }
.specs-row dd { margin: 0; color: var(--parchment); text-align: right; }

/* ---- Inquiry form ---- */

.inquiry h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
}

.inquiry-note { color: #8b8474; margin: 0 0 1.5rem; }

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  max-width: 40rem;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field:nth-child(4) { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.field input,
.field textarea {
  background: var(--ink-soft);
  border: 1px solid var(--hairline);
  color: var(--parchment);
  padding: 0.7rem 0.8rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.btn-submit {
  grid-column: 1 / -1;
  justify-self: start;
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  margin-top: 0.5rem;
}

.btn-submit:hover { background: var(--gold-light); }

@media (max-width: 600px) {
  .lead-form { grid-template-columns: 1fr; }
  .field:nth-child(4) { grid-column: auto; }
}

/* ---- Also showing ---- */

.also-showing-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.also-showing-list a {
  text-decoration: none;
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* ---- Confirmation page ---- */

.confirmation {
  padding: 6rem clamp(1.5rem, 5vw, 4rem);
  max-width: 36rem;
  margin: 0 auto;
  text-align: left;
}

.confirmation h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
}

/* ---- Footer ---- */

.site-footer {
  padding: 0 clamp(1.5rem, 5vw, 4rem) 3rem;
}

.site-footer p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #6b6455;
  margin: 0;
}

/* ---- Stats page ---- */

.stats-page {
  padding: 2rem clamp(1.5rem, 5vw, 4rem) 4rem;
  max-width: 40rem;
  margin: 0 auto;
}

.stats-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
  margin: 0 0 1.5rem;
}

.stats-totals {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-block { display: flex; flex-direction: column; }

.stat-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: #8b8474;
  margin-top: 0.3rem;
}

.stats-table { display: flex; flex-direction: column; }

.stats-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 0.7fr) minmax(0, 0.9fr) minmax(0, 0.6fr);
  gap: 0.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  align-items: center;
}

.stats-row--head {
  color: var(--gold);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--gold);
}

.stats-row-label {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
}

.stats-source {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #8b8474;
}

.stats-refresh-note {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #6b6455;
}

@media (max-width: 480px) {
  .stats-row { font-size: 0.78rem; }
  .stat-number { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark-sweep { animation: none; background-position: 0 0; }
  html { scroll-behavior: auto; }
}
