:root {
  --bg: #141210;
  --card: #1c1b19;
  --text: #f4f1ea;
  --muted: #a39e94;
  --button: #e8892f;
  --button-label: #1a1208;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: Impact, "Arial Narrow", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; text-transform: uppercase; }

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

p { margin: 0 0 0.8em; }

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

.kicker {
  color: var(--button);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.55em;
  font-weight: 700;
}

.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.btn {
  display: inline-block;
  background: var(--button);
  color: var(--button-label);
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 1.1rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 2px var(--button);
}

.hero-actions,
.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.1rem 0 0;
}

.hero-actions .btn + .btn,
.quote-actions .btn + .btn { margin-left: 0; }

header {
  display: flex;
  align-items: center;
  gap: 0.9rem 1.15rem;
  padding: 0.7rem 1rem;
  flex-wrap: wrap;
  background: rgba(20, 18, 16, 0.96);
  border-top: 3px solid var(--button);
  border-bottom: 1px solid rgba(232, 137, 47, 0.4);
  position: sticky;
  top: 0;
  z-index: 5;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  min-width: 0;
}

.wordmark img {
  height: 52px;
  width: auto;
  border-radius: 8px;
}

.wordmark span {
  display: none;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.15rem;
  line-height: 0.95;
  max-width: 8.5rem;
}

.nav-links a {
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.wide-nav a {
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.wide-nav a:hover {
  color: var(--button);
  border-bottom-color: var(--button);
}

.wide-nav { display: none; gap: 1.15rem; align-items: center; }
.nav-disclosure { width: 100%; }
.nav-disclosure summary {
  cursor: pointer;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--button);
}
.nav-disclosure:not([open]) > .nav-links { display: none; }
details[open] > .nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.7rem 0 0.4rem;
}

.header-call { margin-left: auto; white-space: nowrap; }

#stats,
#photos,
#roasters,
#specs,
#about,
#quote,
#ecwid-storefront { scroll-margin-top: 72px; }

@media (max-width: 880px) {
  header { position: static; }
}

@media (max-width: 767px) {
  header { flex-wrap: wrap; }
  .wordmark { order: 1; }
  .header-call { order: 2; }
  .nav-disclosure { order: 3; }
}

@media (min-width: 768px) {
  .wide-nav { display: flex; }
  .nav-disclosure { display: none; }
}


.hero { position: relative; background: var(--bg); }

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 68% center;
}

.hero-copy {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 5.5rem 0 4.5rem;
  background:
    linear-gradient(90deg, rgba(20, 18, 16, 0.92) 0%, rgba(20, 18, 16, 0.72) 42%, rgba(20, 18, 16, 0.18) 100%);
}

.hero-grid { width: min(1120px, calc(100% - 2rem)); }

.hero-main p:not(.kicker) { max-width: 38rem; font-size: 1.05rem; }

.inset {
  background: #1c1b19;
  padding: 1rem 1.05rem 1.05rem;
  max-width: 22rem;
  margin-top: 1.25rem;
  border-left: 3px solid var(--button);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.inset .kicker { margin-bottom: 0.35rem; }
.inset strong { display: block; font-size: 1.25rem; line-height: 1.2; margin-bottom: 0.35rem; }
.inset p:last-child { margin: 0; color: var(--muted); }

@media (min-width: 768px) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.7fr);
    gap: 1.5rem;
    align-items: end;
  }
  .inset { margin-top: 0; justify-self: end; align-self: center; }
}

section { padding: 4.25rem 0; }

#stats {
  position: relative;
  z-index: 2;
  padding: 0 0 0.5rem;
  margin-top: -2.8rem;
}

.stats, .buyers, .steps, .photos, .cards, .hardware {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.stat, .buyer, .step, .photo {
  background: var(--card);
}

.stat {
  padding: 1.15rem 1rem 1.2rem;
  border-top: 3px solid var(--button);
}

.stat b {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  font-family: Impact, "Arial Narrow", sans-serif;
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat p { margin: 0; color: var(--muted); }

.intro-layout, .about-layout { display: grid; gap: 1rem; }

.intro h2, .about-layout h2, #quote h2 { max-width: 16ch; }

.compare-points {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  padding: 0;
  margin: 1.4rem 0 0;
}

.compare-points li {
  background: var(--card);
  border-left: 3px solid var(--button);
  padding: 0.85rem 1rem;
  font-family: Impact, "Arial Narrow", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.35rem;
}

.photos { align-items: stretch; }

.photo { padding: 0; overflow: hidden; }

.photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #111;
}

.photo figcaption {
  padding: 0.85rem 1rem 1rem;
  color: var(--text);
}

.line-group {
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 2rem 0 0.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--button);
}

.line-group:first-of-type { margin-top: 1.4rem; }

.line-note { color: var(--muted); margin: 0.55rem 0 0.9rem; max-width: 40rem; }

.cards { align-items: stretch; }

.cards article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--card);
  border: 1px solid rgba(163, 158, 148, 0.28);
}

.cards article img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #1c1b19;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.95rem 1rem 1.05rem;
}

.card-body h3 { font-size: 1.35rem; }

.price {
  font-size: 2rem;
  font-family: Impact, "Arial Narrow", sans-serif;
  letter-spacing: 0.03em;
  margin: 0.1em 0 0.35em;
}

.ship {
  color: var(--button);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-quote {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.85rem;
  color: var(--button);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.card-quote:hover { text-decoration: underline; }

.badge {
  display: inline-block;
  border: 1px solid var(--button);
  color: var(--button);
  padding: 0.2rem 0.45rem;
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dl {
  display: grid;
  grid-template-columns: 5.6rem 1fr;
  gap: 0.28rem 0.6rem;
  margin: 0.2rem 0 0.85rem;
}

dt { color: var(--muted); }
dd { margin: 0; }

.option { font-size: 0.95rem; }

.blurb { color: var(--muted); }

#ecwid-storefront {
  min-height: 160px;
  padding: 16px;
  border: 1px solid #a39e94;
  margin-top: 0.4rem;
  background:
    linear-gradient(90deg, rgba(232, 137, 47, 0.14), transparent 28%),
    var(--bg);
}

#ecwid-storefront h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
#ecwid-storefront p:last-child { margin-bottom: 0; color: var(--muted); }

.cart-slot { padding-bottom: 0.5rem; }

.buyer {
  padding: 0 0 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.buyer img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  background: #1c1b19;
}

.buyer-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: -1.25rem 0 0.55rem 0.85rem;
  background: var(--bg);
  border: 2px solid var(--button);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}

.buyer-icon svg { width: 1.3rem; height: 1.3rem; display: block; }

.buyer h3,
.buyer p { margin-left: 0.85rem; margin-right: 0.85rem; }

.buyer h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.buyer p { margin-bottom: 0; color: var(--muted); font-size: 0.95rem; }

.schematic-frame {
  position: relative;
  background: var(--card);
  min-width: 0;
}

.schematic-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #1c1b19;
}

.schematic {
  position: static;
  width: 100%;
  height: auto;
  display: block;
  margin-top: 0.85rem;
  background: transparent;
}

.regulator img {
  width: 100%;
  height: auto;
  background: #111;
}

.regulator p,
.schematic-frame + p,
.hardware .caption { color: var(--muted); margin: 0.7rem 0 0; }

.hardware { align-items: start; }
.hardware > * { min-width: 0; }

.hardware ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.hardware li { margin: 0.35rem 0; }
.hardware li::marker { color: var(--button); }

.step {
  padding: 1.1rem 1rem 1.15rem;
  border-top: 3px solid var(--button);
}

.step h3 { font-size: 1.35rem; }
.step p { margin: 0; color: var(--muted); }

.about-layout p { margin-bottom: 0; }

#quote {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background:
    linear-gradient(155deg, rgba(232, 137, 47, 0.2), transparent 46%),
    var(--card);
  border-top: 4px solid var(--button);
}

.quote-brand {
  height: 58px;
  width: auto;
  margin-bottom: 1rem;
}

#quote .lead { max-width: 40rem; font-size: 1.05rem; }

.contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 1.4rem 0 1rem;
}

.contact-token {
  font-family: ui-monospace, monospace;
  background: var(--bg);
  border-left: 3px solid var(--button);
  padding: 0.95rem 1rem;
  margin: 0;
  letter-spacing: 0.04em;
}

.quote-sign { margin: 0; color: var(--muted); }

footer {
  border-top: 1px solid rgba(163, 158, 148, 0.35);
  color: var(--muted);
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.3rem 0 1.8rem;
}

footer a { color: var(--text); font-weight: 700; }

.not-found { padding: 4rem 0 3rem; }
.not-found h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.05;
}

@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .photos { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .buyers { grid-template-columns: repeat(5, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .hardware { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.82fr); }
  .intro-layout, .about-layout { grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: end; }
  .compare-points { grid-template-columns: repeat(3, 1fr); }
  .contact-row { grid-template-columns: repeat(3, 1fr); }
  .buyer img { height: auto; }
}

@media (max-width: 767px) {
  .hero-copy {
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(20, 18, 16, 0.2) 0%, rgba(20, 18, 16, 0.88) 58%);
    align-items: flex-end;
  }
  h1 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
}
