:root {
  color-scheme: dark;
  --ink: #090a0c;
  --ink-soft: #111317;
  --surface: #17191e;
  --surface-2: #1e2127;
  --line: #30343c;
  --text: #f2eee5;
  --muted: #a9adb6;
  --gold: #c9a35d;
  --gold-bright: #e2c27f;
  --blue: #98afbd;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
button, textarea { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: var(--text); color: var(--ink); }
.skip:focus { top: 1rem; }

.site-header {
  min-height: 74px;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255,255,255,.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9,10,12,.9);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: .02em; }
.brand-mark { color: var(--gold); font-size: 1.5rem; transform: rotate(45deg); }
nav { display: flex; align-items: center; gap: clamp(.7rem, 3vw, 1.7rem); }
nav a { text-decoration: none; color: #d7d8dc; font-size: .92rem; }
nav a:hover, nav a:focus-visible { color: white; }
.nav-button { border: 1px solid var(--line); padding: .5rem .85rem; border-radius: 999px; }

main { overflow: hidden; }
.sale-intro, .featured, .available, .next-release, .purchase, .about, footer { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.sale-intro {
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, .55fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
}
.eyebrow { margin: 0 0 .75rem; color: var(--gold-bright); text-transform: uppercase; font-size: .78rem; font-weight: 700; letter-spacing: .16em; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.05; letter-spacing: -.025em; }
h1 { max-width: 900px; margin: 0; font-size: clamp(2.8rem, 7vw, 6.5rem); }
.intro-text { max-width: 680px; margin: 1.5rem 0 0; color: #c6c8ce; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.intro-note { border-left: 1px solid var(--gold); padding-left: 1.5rem; display: grid; gap: .2rem; }
.intro-note span { color: var(--muted); font-size: .86rem; text-transform: uppercase; letter-spacing: .12em; }
.intro-note strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 400; }
.intro-note a { margin-top: .75rem; color: var(--gold-bright); text-decoration: none; }

.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.image-button { position: relative; appearance: none; padding: 0; border: 0; background: transparent; color: inherit; cursor: zoom-in; overflow: hidden; }
.featured-image { min-height: 620px; background: #161719; }
.featured-image img, .card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .4s ease; }
.image-button:hover img, .image-button:focus-visible img { transform: scale(1.018); filter: brightness(1.06); }
.image-button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: -2px; }
.image-cue { position: absolute; right: 1rem; bottom: 1rem; padding: .45rem .7rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(9,10,12,.78); backdrop-filter: blur(8px); font-size: .76rem; letter-spacing: .04em; }
.featured-copy { padding: clamp(2rem, 5vw, 4.5rem); align-self: center; }
.locality { color: var(--blue); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; }
.featured h2 { margin: .8rem 0 1.1rem; font-size: clamp(2.1rem, 4vw, 4rem); }
.price { margin: 0 0 1.25rem; color: var(--gold-bright); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.summary { color: #c7c9cf; max-width: 45rem; }
.specs, .compact-specs { margin: 1.7rem 0 2rem; border-top: 1px solid var(--line); }
.specs div, .compact-specs div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: .72rem 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); font-size: .82rem; }
dd { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.primary, .secondary, .text-button, .link-button { min-height: 48px; padding: .75rem 1rem; border-radius: 2px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.primary { border: 1px solid var(--gold); background: var(--gold); color: #11100d; font-weight: 750; }
.primary:hover, .primary:focus-visible { background: var(--gold-bright); border-color: var(--gold-bright); }
.secondary { border: 1px solid #4a4f59; background: transparent; color: var(--text); }
.secondary:hover, .secondary:focus-visible { border-color: var(--text); }
.text-button { border: 0; background: transparent; color: #cdd0d6; text-decoration: underline; text-underline-offset: 4px; }

.available { padding: clamp(5rem, 10vw, 9rem) 0; }
.section-heading { display: grid; grid-template-columns: 1fr auto; gap: .4rem 2rem; align-items: end; margin-bottom: 2rem; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 4.6rem); }
.section-heading > p:last-child { max-width: 420px; color: var(--muted); margin: 0 0 .4rem; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.product-card { background: var(--surface); border: 1px solid var(--line); }
.card-image { display: block; width: 100%; aspect-ratio: 4 / 3; background: #15171a; }
.card-copy { padding: clamp(1.25rem, 3vw, 2rem); }
.card-copy h3 { margin: .35rem 0 1rem; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.card-copy > p:not(.locality) { color: #bfc2c9; }
.card-price { display: flex; justify-content: space-between; align-items: baseline; padding: .9rem 0; border-block: 1px solid var(--line); }
.card-price strong { color: var(--gold-bright); font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; font-weight: 400; }
.card-price span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.compact-specs { margin: 1.25rem 0 1.5rem; }
.compact-specs div { grid-template-columns: 72px 1fr; }

.next-release { margin-bottom: clamp(5rem, 10vw, 9rem); padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, .8fr) auto; gap: 2rem; align-items: center; background: linear-gradient(120deg, #121418, #1a1d22); }
.next-release h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.8rem); }
.next-release > p { color: #bec1c7; }

.purchase { padding: clamp(4rem, 8vw, 7rem) 0; border-top: 1px solid var(--line); }
.purchase ol { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.purchase li { padding: 1.5rem; background: var(--surface); border-top: 2px solid var(--gold); min-height: 220px; }
.purchase li > span { color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.purchase li strong { display: block; margin-top: 2.5rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 400; }
.purchase li p { color: var(--muted); margin-bottom: 0; }

.about { padding: clamp(4rem, 10vw, 9rem) 0; border-top: 1px solid var(--line); }
.about h2 { max-width: 900px; margin: 0; font-size: clamp(2.6rem, 6vw, 5.7rem); }
.about > p:last-child { max-width: 720px; margin: 1.7rem 0 0 auto; color: #c8cad0; font-size: 1.08rem; }
footer { min-height: 110px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .86rem; }
footer a { color: var(--text); }

dialog { width: min(calc(100% - 1.5rem), 1040px); max-height: min(92vh, 950px); padding: 0; border: 1px solid #474c55; border-radius: 4px; background: #101216; color: var(--text); box-shadow: 0 30px 100px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
.close { position: sticky; float: right; top: 1rem; right: 1rem; z-index: 5; width: 44px; height: 44px; border: 1px solid #4a4e57; border-radius: 50%; background: rgba(9,10,12,.88); color: white; font-size: 1.7rem; cursor: pointer; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); }
.detail-gallery { padding: 1rem; display: grid; gap: .75rem; background: #0a0b0d; }
.detail-gallery img { width: 100%; max-height: 650px; object-fit: contain; background: #121419; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.thumbs button { padding: 0; border: 1px solid transparent; background: transparent; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--gold); }
.thumbs img { aspect-ratio: 1; object-fit: cover; }
.detail-copy { padding: clamp(1.5rem, 4vw, 3.5rem); align-self: center; }
.detail-copy h2 { margin: .6rem 0 1rem; font-size: clamp(2rem, 4vw, 3.8rem); }
.detail-copy .price { margin-bottom: 1.25rem; }
.detail-copy > p:not(.locality):not(.price) { color: #c4c7cd; }
.purchase-dialog { width: min(calc(100% - 1.5rem), 610px); padding: clamp(1.5rem, 5vw, 3.5rem); }
.purchase-dialog h2 { margin: .5rem 0 1rem; font-size: clamp(2rem, 5vw, 3.2rem); }
.purchase-dialog > p:not(.eyebrow):not(.copy-status) { color: #c4c7cd; }
.purchase-dialog label { display: block; margin: 1.5rem 0 .5rem; font-weight: 700; }
textarea { width: 100%; resize: none; padding: .9rem; border: 1px solid var(--line); border-radius: 2px; background: #0a0b0d; color: white; }
.copy-status { min-height: 1.4rem; color: var(--gold-bright); font-size: .9rem; }

@media (max-width: 900px) {
  .sale-intro, .featured, .section-heading, .next-release, .detail-layout { grid-template-columns: 1fr; }
  .intro-note { max-width: 420px; }
  .featured-image { min-height: auto; aspect-ratio: 1 / 1; }
  .section-heading > p:last-child { margin-top: .5rem; }
  .product-grid { grid-template-columns: 1fr; }
  .next-release .link-button { justify-self: start; }
  .purchase ol { grid-template-columns: 1fr; }
  .purchase li { min-height: auto; }
  .purchase li strong { margin-top: 1.5rem; }
}

@media (max-width: 620px) {
  .site-header { min-height: 64px; }
  nav > a:not(.nav-button) { display: none; }
  .sale-intro, .featured, .available, .next-release, .purchase, .about, footer { width: min(calc(100% - 1.25rem), var(--max)); }
  .sale-intro { padding-top: 3.5rem; }
  h1 { font-size: clamp(2.75rem, 15vw, 4.5rem); }
  .featured-copy { padding: 1.4rem; }
  .actions > * { flex: 1 1 100%; }
  footer { padding: 2rem 0; flex-direction: column; align-items: flex-start; }
  .next-release { padding: 1.4rem; }
  .detail-copy { padding: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
