:root {
  color-scheme: dark;
  --bg: #130e11;
  --panel: #1d151a;
  --text: #faeadd;
  --muted: #cdb8b5;
  --gold: #e9bc83;
  --border: #55343e;
  --display: "Trade Winds", Georgia, serif;
  --reading: "EB Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1.18rem/1.48 var(--reading); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
p { margin: 0 0 1rem; color: var(--muted); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.12; }
h2 { margin-bottom: 1.15rem; font-size: clamp(2rem, 4.3vw, 3.55rem); }
h3 { font-size: clamp(1.28rem, 1.8vw, 1.65rem); }

.shell { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.eyebrow {
  margin-bottom: .85rem;
  color: var(--gold);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.skip-link { position: absolute; transform: translateY(-150%); padding: .6rem; z-index: 5; background: var(--bg); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--border); }
.header-content, .footer-content { display: flex; justify-content: space-between; align-items: center; gap: 1rem 1.5rem; padding-block: 1rem; }
.wordmark { font-family: var(--display); text-decoration: none; font-size: 1.05rem; }
nav { display: flex; flex-wrap: wrap; gap: .4rem 1.65rem; }
nav a, .footer-content a { text-decoration: none; }
nav a:hover, .footer-content a:hover, .text-link:hover { color: var(--gold); }

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 77% 48%, #42191e, transparent 58%), #130e11;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  min-height: clamp(32rem, 68vh, 42rem);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  padding-block: 3.5rem;
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3.2rem, 5.4vw, 5.85rem); letter-spacing: -.045em; text-shadow: 0 5px 26px #0e090c; }
.hero .subtitle { color: var(--gold); font-size: clamp(1.4rem, 2.3vw, 2rem); font-style: italic; margin: .9rem 0; }
.hero-copy > p:not(.eyebrow):not(.subtitle) { max-width: 30rem; }
.hero-art { width: 100%; border: 1px solid var(--border); box-shadow: 0 18px 45px #05030490; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.35rem; margin-top: 1.8rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: .55rem 1.1rem;
  border: 1px solid #ba6d6d;
  border-radius: .22rem;
  font-weight: 600;
  text-decoration: none;
}
.primary { background: #801f31; color: #fff3e7; }
.primary:hover { background: #993346; }
.text-link { text-underline-offset: .23em; }

.collection { padding-block: clamp(3.6rem, 8vw, 6.4rem); }
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.product {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-top-color: #a45e60;
  background: linear-gradient(155deg, #281b20, var(--panel) 76%);
}
.product-preview { display: block; margin-bottom: 1rem; }
.product-preview img { width: min(100%, 10rem); margin-inline: auto; border-radius: .4rem; box-shadow: 0 8px 22px #0008; }
.product-preview:hover img { outline: 1px solid var(--gold); }
.product p { margin: .75rem 0 0; }

.demo-section { border-block: 1px solid var(--border); background: radial-gradient(ellipse at 75% 48%, #3b2226, transparent 66%), #1b141a; }
.demo-layout { max-width: 62rem; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 3rem; padding-block: clamp(3.6rem, 7vw, 5.8rem); }
.demo-layout p:not(.eyebrow) { max-width: 29rem; }
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .75rem; margin-top: 1.5rem; }
.demo-controls[hidden] { display: none; }
.demo-controls label { flex-basis: 100%; color: var(--text); }
select { min-height: 2.9rem; padding: .45rem .65rem; color: var(--text); background: var(--bg); border: 1px solid #a66971; border-radius: .22rem; }
.demo-card { width: min(100%, 16.5rem); margin: 0 auto; text-align: center; }
.demo-card img { border-radius: .55rem; box-shadow: 0 12px 40px #0009; }
.demo-card figcaption { margin-top: .8rem; color: var(--gold); }

.updates { text-align: center; padding-block: clamp(3.6rem, 7vw, 5.8rem); }
.site-footer { border-top: 1px solid var(--border); }
.footer-content { flex-wrap: wrap; color: var(--muted); }
.footer-content .wordmark { color: var(--text); }

@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .shell { width: min(100% - 2rem, 76rem); }
  .header-content { flex-wrap: wrap; }
  nav { gap: .35rem 1rem; }
  .hero-layout, .demo-layout { grid-template-columns: 1fr; gap: 2rem; }
  .hero-layout { min-height: auto; padding: 3rem 0 1.5rem; }
  .hero h1 { font-size: clamp(2.75rem, 10vw, 5.1rem); }
  .hero-art { width: min(100%, 27rem); margin: auto; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 350px) {
  .product-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
