:root {
  --record: #141311;
  --sleeve: #201e1a;
  --paper: #f0e9da;
  --copper: #c9793c;
  --rust: #8a3b23;
  --faded: #948c7c;
  --rule: #37332b;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  background: var(--record);
  color: var(--paper);
  font-family: "Libre Franklin", system-ui, sans-serif;
  font-size: 1.06rem;
  line-height: 1.6;
}

.display { font-family: "Fraunces", serif; font-weight: 600; }
.mono { font-family: "Space Mono", monospace; }
.kicker { color: var(--copper); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }

a { color: var(--copper); }

/* Masthead */
.masthead {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.2rem clamp(1rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.wordmark { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.4rem; letter-spacing: .01em; }
.masthead nav a {
  color: var(--faded); text-decoration: none; margin-left: 1.5rem;
  font-family: "Space Mono", monospace; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em;
}
.masthead nav a:hover, .masthead nav a:focus-visible { color: var(--copper); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem);
  max-width: 1200px; margin: 0 auto;
}
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); line-height: 1.05; margin: .6rem 0 1.4rem; }
.tagline { color: var(--faded); max-width: 42ch; margin-bottom: 2rem; }

.cta {
  display: inline-block;
  background: var(--copper); color: var(--record);
  font-family: "Space Mono", monospace; font-weight: 700; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .08em; text-decoration: none;
  border: none; cursor: pointer;
  padding: .85rem 1.6rem; border-radius: 3px;
  transition: transform .12s ease, background .12s ease;
}
.cta:hover, .cta:focus-visible { background: #e08e4f; transform: translateY(-2px); }
.cta:disabled { background: var(--rule); color: var(--faded); cursor: wait; transform: none; }

.hero-shot img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; background: var(--sleeve); }
.hero-shot figcaption { color: var(--faded); font-size: .8rem; margin-top: .6rem; text-align: right; }

/* Shop */
.shop {
  max-width: 900px; margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 5vw, 2rem);
  border-top: 1px dashed var(--rule);
}
.shop h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.shop-sub { color: var(--faded); font-size: .85rem; margin: .6rem 0 2.5rem; max-width: 60ch; }

.product {
  display: grid; grid-template-columns: 220px 1fr; gap: 2rem;
  padding: 1.8rem 0; border-top: 1px solid var(--rule);
  align-items: start;
}
.product img { width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--rule); background: var(--sleeve); }

.order-form { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; }
.order-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faded); }
.order-form select {
  background: var(--sleeve); color: var(--paper);
  border: 1px solid var(--rule); border-radius: 3px;
  font-family: "Space Mono", monospace; padding: .7rem .8rem; font-size: .95rem;
}
.order-form select:focus-visible, .cta:focus-visible, .masthead nav a:focus-visible {
  outline: 2px solid var(--copper); outline-offset: 2px;
}
.product-note { color: var(--faded); font-size: .8rem; margin-top: 1.2rem; max-width: 52ch; }

/* How it works */
.how {
  max-width: 640px; margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 5vw, 2rem);
}
.how h2 { color: var(--copper); font-size: 1.6rem; margin-bottom: 1.2rem; }
.how-steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 1.1rem; }
.how-steps li { counter-increment: step; padding-left: 2.4rem; position: relative; color: var(--faded); }
.how-steps li strong { color: var(--paper); }
.how-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--sleeve); border: 1px solid var(--rule); color: var(--copper);
  font-family: "Space Mono", monospace; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}

/* Story */
.story {
  max-width: 640px; margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 5vw, 2rem) 4rem;
}
.story h2 { color: var(--copper); font-size: 1.6rem; margin-bottom: 1rem; }
.story p + p { margin-top: 1rem; }

/* Footer */
.fine-print {
  border-top: 1px solid var(--rule);
  padding: 2.5rem clamp(1rem, 5vw, 4rem) 3rem;
  color: var(--faded); font-size: .8rem;
}
.fine-print p + p { margin-top: .6rem; }
.signoff { color: var(--copper); margin-top: 1.6rem !important; letter-spacing: .12em; text-transform: uppercase; }

/* Toast for checkout errors */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  background: var(--rust); color: var(--paper);
  font-family: "Space Mono", monospace; font-size: .85rem;
  padding: .8rem 1.2rem; border-radius: 4px; max-width: 90vw;
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-shot { order: -1; max-width: 380px; margin: 0 auto; }
  .product { grid-template-columns: 140px 1fr; }
  .masthead nav a { margin-left: .9rem; }
}
@media (max-width: 480px) {
  .product { grid-template-columns: 1fr; }
  .product img { max-width: 220px; }
}
