:root {
  --ink: #161616;
  --muted: #5d6268;
  --paper: #f8f7f3;
  --panel: #ffffff;
  --line: #ded8ce;
  --accent: #b92828;
  --accent-dark: #7d1d1d;
  --gold: #d9a441;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(248, 247, 243, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

main {
  min-height: calc(100vh - 130px);
}

.view {
  display: none;
  padding: clamp(24px, 5vw, 56px);
}

.view.active {
  display: block;
}

.hero {
  min-height: 52vh;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.85rem;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.3rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.section-heading h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.hero p,
.section-heading p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

button.secondary,
.secondary {
  background: #2e3034;
  color: #fff;
}

.status-strip,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #ece8df;
}

.product-card .body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.product-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.product-card p,
.muted {
  color: var(--muted);
  line-height: 1.5;
}

select,
input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.cart-actions,
.checkout-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 20px 0;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
}

legend {
  font-weight: 900;
}

label {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.proof-output {
  margin-top: 18px;
  padding: 16px;
  overflow: auto;
  max-height: 420px;
  background: #171717;
  color: #f5f0e8;
  border-radius: 8px;
  white-space: pre-wrap;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer a {
  font-weight: 900;
}

@media (max-width: 520px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-line {
    grid-template-columns: 1fr;
  }
}
