:root {
  --charcoal: #14140F;
  --panel: #1C1B15;
  --panel-2: #232219;
  --steel: #9A9C94;
  --cream: #EDE8DB;
  --gilt: #C6A15B;
  --oxblood: #7C2A2A;
  --oxblood-bright: #9C3737;
  --line: rgba(198, 161, 91, 0.22);
  --radius: 2px;
  --display: 'Fraunces', serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 20, 15, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.wordmark-img {
  height: 26px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--steel);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--gilt); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--cream);
}

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

.hero {
  padding: 58px 0 0;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding-bottom: 40px;
}

.hero-copy { display: flex; flex-direction: column; align-items: center; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gilt);
  margin: 0 0 18px;
}

.hero-copy h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.hero-sub {
  color: var(--steel);
  font-size: 16px;
  max-width: 46ch;
  margin: 0 auto 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--oxblood);
  color: var(--cream);
}

.btn-primary:hover { background: var(--oxblood-bright); transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--line);
  color: var(--cream);
  background: transparent;
}

.btn-ghost:hover { border-color: var(--gilt); color: var(--gilt); }

.hero-logo-wrap {
  width: 100%;
  background: #000;
  border-top: 1px solid var(--line);
}

.hero-logo-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1400px;
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */

.section { padding: 56px 0; }
.section-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 14px;
}

.section-sub {
  color: var(--steel);
  max-width: 60ch;
  margin: 0 0 40px;
}

/* ---------- Inventory grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.inventory-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(4, minmax(128px, 1fr));
  gap: 10px;
  margin: 24px 0 16px;
}

.control-field {
  display: grid;
  gap: 6px;
  color: var(--steel);
  font-size: 13px;
}

.control-field input,
.control-field select,
.control-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--cream);
  font: inherit;
}

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

.inventory-results {
  min-height: 21px;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 12px;
  margin: 0 0 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover { border-color: var(--gilt); transform: translateY(-3px); }

.card:focus-within { border-color: var(--gilt); }

.card-link {
  color: inherit;
  display: flex;
  flex: 1;
  flex-direction: column;
  text-decoration: none;
}

.card-link:focus-visible { outline: 2px solid var(--gilt); outline-offset: -2px; }

.card-photo {
  aspect-ratio: 4 / 3;
  background: var(--charcoal) center/cover no-repeat;
  position: relative;
}

.card-sold-ribbon {
  position: absolute;
  top: 12px;
  right: -34px;
  transform: rotate(35deg);
  background: var(--oxblood);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 3px 40px;
}

.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card-brand {
  color: var(--gilt);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-ref {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gilt);
  text-transform: uppercase;
}

.card-name {
  font-family: var(--display);
  font-size: 20px;
  margin: 0;
}

.card-meta {
  border-top: 1px solid var(--line);
  color: var(--steel);
  display: grid;
  font-size: 12px;
  gap: 6px;
  margin-top: 5px;
  padding-top: 12px;
}

.card-meta span {
  display: grid;
  gap: 2px;
  grid-template-columns: 78px 1fr;
}

.card-meta strong {
  color: var(--cream);
  font-weight: 500;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
}

.card-price {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--cream);
}

.card-arrow { color: var(--gilt); font-family: var(--mono); font-size: 13px; }

.empty-state { color: var(--steel); }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 34px;
}

.step-ref {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gilt);
  letter-spacing: 0.08em;
}

.step h3 {
  font-family: var(--display);
  font-size: 19px;
  margin: 10px 0 8px;
}

.step p { color: var(--steel); font-size: 14px; margin: 0; }

.authentication-note {
  padding: 24px;
  background: var(--panel-2);
  border-left: 3px solid var(--gilt);
}

.authentication-note h3 {
  font-family: var(--display);
  font-size: 20px;
  margin: 0 0 8px;
}

.authentication-note p { color: var(--steel); margin: 0; }

/* ---------- Watch sourcing ---------- */

.sourcing-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.inquiry-form {
  display: grid;
  gap: 12px;
}

.inquiry-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.inquiry-form textarea { min-height: 100px; resize: vertical; }
.inquiry-form .btn { justify-self: start; }
.control-field em { font-style: normal; color: var(--gilt); }

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

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--steel);
}

.footer-tagline {
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--gilt);
}

/* ---------- Individual watch listing ---------- */

.watch-listing { min-height: calc(100vh - 140px); }

.listing-loading,
.listing-error { padding-top: 80px; padding-bottom: 80px; }

.listing-error h1 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  margin: 0 0 16px;
}

.listing-error p { color: var(--steel); margin: 0 0 24px; }

.listing-breadcrumb { padding-top: 28px; }

.listing-breadcrumb a {
  color: var(--steel);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
}

.listing-breadcrumb a:hover { color: var(--gilt); }

.listing-hero {
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
  padding-bottom: 56px;
  padding-top: 24px;
}

.listing-gallery { min-width: 0; }

.photography-note {
  background: var(--panel);
  border-left: 3px solid var(--gilt);
  margin: 18px 0;
  padding: 18px 20px;
}

.photography-note strong {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 7px;
}

.photography-note p {
  color: var(--steel);
  font-size: 13px;
  margin: 0;
}

.gallery-primary-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  position: relative;
}

.gallery-primary {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  width: 100%;
}

.gallery-arrow {
  align-items: center;
  background: rgba(20, 20, 15, 0.84);
  border: 1px solid var(--line);
  color: var(--cream);
  cursor: pointer;
  display: flex;
  font-size: 20px;
  height: 42px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible { border-color: var(--gilt); color: var(--gilt); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.listing-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-color: var(--gilt) var(--panel);
}

.listing-thumb {
  background: var(--panel);
  border: 2px solid transparent;
  cursor: pointer;
  flex: 0 0 92px;
  padding: 0;
}

.listing-thumb img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.listing-thumb:hover,
.listing-thumb:focus-visible,
.listing-thumb[aria-pressed="true"] { border-color: var(--gilt); }

.gallery-count {
  color: var(--steel);
  font-family: var(--mono);
  font-size: 11px;
  margin: 4px 0 0;
}

.gallery-disclosure {
  border-left: 2px solid var(--gilt);
  color: var(--steel);
  display: grid;
  font-size: 13px;
  gap: 3px;
  margin-top: 18px;
  padding-left: 14px;
}

.gallery-disclosure strong { color: var(--cream); font-weight: 500; }

.listing-summary { align-self: start; padding-top: 12px; }

.listing-summary h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 10px;
}

.listing-reference {
  color: var(--gilt);
  font-family: var(--mono);
  font-size: 13px;
  margin: 0 0 28px;
}

.listing-facts { border-bottom: 1px solid var(--line); margin: 0; }

.listing-facts div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 120px 1fr;
  padding: 12px 0;
}

.listing-facts dt {
  color: var(--steel);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.listing-facts dd { font-size: 14px; margin: 0; }

.listing-condition-summary {
  color: var(--steel);
  font-size: 14px;
  margin: 20px 0 0;
}

.listing-purchase {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  margin-top: 28px;
}

.listing-price { font-family: var(--mono); font-size: 24px; }

.listing-sections { padding-bottom: 64px; }

.listing-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(200px, 0.45fr) minmax(0, 1.55fr);
  padding: 44px 0;
}

.listing-section h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  margin: 0;
}

.listing-prose { color: var(--steel); max-width: 76ch; }
.listing-prose p { margin: 0 0 16px; }
.listing-prose p:last-child { margin-bottom: 0; }
.listing-prose ul { margin: 0; padding-left: 20px; }

.detail-grid { display: grid; gap: 0; margin: 0; }

.detail-grid div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr);
  padding: 12px 0;
}

.detail-grid div:first-child { padding-top: 0; }
.detail-grid div:last-child { border-bottom: 0; }
.detail-grid dt { color: var(--steel); font-size: 13px; }
.detail-grid dd { margin: 0; }

.timegrapher-photo {
  grid-column: 2;
  margin-top: -18px;
  max-height: 520px;
  object-fit: contain;
}

.section-note {
  color: var(--steel);
  font-size: 13px;
  grid-column: 2;
  margin: -14px 0 0;
}

.buying-steps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.buying-steps > div { border-top: 1px solid var(--line); padding-top: 14px; }
.buying-steps span { color: var(--gilt); font-family: var(--mono); font-size: 11px; }
.buying-steps h3 { font-family: var(--display); font-size: 18px; margin: 8px 0; }
.buying-steps p { color: var(--steel); font-size: 13px; margin: 0; }
.buying-section .authentication-note { grid-column: 2; }

.listing-stock {
  border-top: 1px solid var(--line);
  color: var(--steel);
  font-family: var(--mono);
  font-size: 11px;
  margin: 0;
  padding-top: 22px;
}

/* ---------- Responsive ---------- */

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-dial { order: -1; max-width: 220px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .inventory-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .control-search { grid-column: 1 / -1; }
  .sourcing-inner { grid-template-columns: 1fr; gap: 28px; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--charcoal);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 24px 24px;
    display: none;
    gap: 18px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .listing-hero { gap: 32px; grid-template-columns: 1fr; }
  .listing-summary { padding-top: 0; }
  .listing-section { gap: 22px; grid-template-columns: 1fr; }
  .timegrapher-photo,
  .section-note,
  .buying-section .authentication-note { grid-column: 1; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 38px; }
  .hero-inner { padding-bottom: 32px; }
  .section { padding: 40px 0; }
  .inventory-controls,
  .inquiry-row { grid-template-columns: 1fr; }
  .control-search { grid-column: auto; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .steps { gap: 20px; margin-bottom: 24px; }
  .authentication-note { padding: 20px; }
  .inquiry-form .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; }
  .listing-breadcrumb { padding-top: 20px; }
  .listing-hero { padding-bottom: 40px; padding-top: 18px; }
  .listing-purchase { align-items: stretch; flex-direction: column; }
  .listing-purchase .btn { justify-content: center; text-align: center; width: 100%; }
  .listing-section { padding: 34px 0; }
  .listing-section h2 { font-size: 25px; }
  .listing-facts div { grid-template-columns: 105px 1fr; }
  .detail-grid div { gap: 8px; grid-template-columns: 1fr; }
  .buying-steps { grid-template-columns: 1fr; }
  .gallery-arrow { height: 38px; width: 38px; }
  .listing-thumb { flex-basis: 78px; }
}
