:root {
  --parchment: #f3e6c8;
  --parchment-dark: #e7d4a6;
  --ink: #1c1410;
  --ink-soft: #3a2a22;
  --muted: #6b5346;
  --rule: #c4a574;
  --gold: #9a7423;
  --gold-bright: #d4af37;
  --red: #6e1c1c;
  --red-deep: #4a1212;
  --card: #fff8e8;
  --card-edge: #e3cd9a;
  --focus: #8a1f1f;
  --shadow: rgba(74, 18, 18, 0.1);
  --serif: "EB Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --display: "Cinzel", "EB Garamond", Palatino, serif;
  --space: 1.15rem;
  --wide: 68rem;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(rgba(110, 28, 28, 0.035) 0.7px, transparent 0.7px),
    linear-gradient(180deg, var(--parchment) 0%, var(--parchment-dark) 100%);
  background-size: 3px 3px, auto;
  font-family: var(--serif);
  line-height: 1.5;
}

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

a { color: var(--red); }
a:hover { color: var(--red-deep); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 0.8rem;
  top: -3rem;
  background: var(--card);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  z-index: 20;
}
.skip:focus { top: 0.6rem; }

.site-header {
  background: var(--red-deep);
  color: var(--parchment);
  border-bottom: 3px solid var(--gold-bright);
}

.site-header a { color: inherit; text-decoration: none; }
.site-header a:hover { color: var(--gold-bright); }

.header-inner,
.footer-inner,
.wrap,
.hero-inner {
  width: min(100% - 1.6rem, var(--wide));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-mark {
  width: 1.7rem;
  height: 2.5rem;
  color: var(--gold-bright);
  flex: none;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.15;
}

.brand-tag {
  display: block;
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #f0d9a8;
  font-weight: 400;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.95rem;
  justify-content: flex-end;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cart-link { white-space: nowrap; }
.cart-count {
  display: inline-block;
  min-width: 1.15rem;
  margin-left: 0.2rem;
  padding: 0 0.28rem;
  border: 1px solid var(--gold-bright);
  color: var(--gold-bright);
  text-align: center;
}

main { flex: 1; padding: 1.4rem 0 3rem; }

.hero {
  margin: -1.4rem 0 1.6rem;
  padding: 2.2rem 0 2.4rem;
  background:
    linear-gradient(180deg, rgba(74, 18, 18, 0.92), rgba(74, 18, 18, 0.84)),
    var(--red-deep);
  color: var(--parchment);
  border-bottom: 1px solid var(--gold);
  text-align: center;
}

.hero-mark {
  width: 2.1rem;
  height: 3.1rem;
  margin: 0 auto 0.7rem;
  color: var(--gold-bright);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero p {
  margin: 0.7rem auto 0;
  max-width: 32rem;
  color: #f0d9a8;
  font-size: 1.12rem;
}

.kicker {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.page-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.lede, .muted, .tax-note { color: var(--muted); }
.tax-note { font-size: 0.95rem; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}

.card, .panel {
  background: var(--card);
  border: 1px solid var(--card-edge);
  box-shadow: 0 8px 24px var(--shadow);
}

.product-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.product-card:hover { border-color: var(--gold); }

.product-card .thumb {
  aspect-ratio: 1;
  object-fit: contain;
  background: #f7f0de;
  border-bottom: 1px solid var(--card-edge);
  padding: 0.6rem;
}

.product-card .body, .panel { padding: 0.95rem 1rem 1.1rem; }

.product-card h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.price {
  margin: 0.35rem 0 0;
  color: var(--red);
  font-family: var(--display);
  letter-spacing: 0.04em;
}

.product-layout {
  display: grid;
  gap: 1.3rem;
  margin-top: 1rem;
}

.mockup {
  background: var(--card);
  border: 1px solid var(--card-edge);
  padding: 0.8rem;
}

.mockup img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f7f0de;
}

.thumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.thumbs button {
  width: 4.2rem;
  height: 4.2rem;
  padding: 0.2rem;
  border: 1px solid var(--card-edge);
  background: #f7f0de;
  cursor: pointer;
}
.thumbs button[aria-current="true"] { border-color: var(--red); }

label, .label {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

input, select, textarea {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--ink);
  background: #fffaf0;
  border: 1px solid var(--card-edge);
  border-radius: 0;
  padding: 0.5rem 0.6rem;
  width: 100%;
}

.choices { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.choice {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--card-edge);
  background: #fffaf0;
  color: var(--ink);
  min-width: 2.8rem;
  min-height: 2.6rem;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}
.choice[aria-pressed="true"], .choice:checked + span {
  background: var(--red);
  color: var(--parchment);
  border-color: var(--red);
}

.row { display: grid; gap: 0.8rem; margin-top: 0.85rem; }
.buy { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: end; margin-top: 1rem; }
.buy label { width: 5.5rem; }

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.05rem;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--parchment);
  background: var(--red);
  border: 1px solid var(--red-deep);
  cursor: pointer;
}
.btn:hover { background: var(--red-deep); color: var(--parchment); }
.btn.secondary {
  background: transparent;
  color: var(--red);
  border-color: var(--gold);
}
.btn.secondary:hover { background: #f6ead0; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.banner, .alert {
  margin: 0.9rem 0;
  padding: 0.8rem 0.95rem;
  background: var(--card);
  border: 1px solid var(--gold);
  border-left: 4px solid var(--red);
}
.banner p, .alert p { margin: 0.2rem 0; }
.error { color: var(--red); }

.cart-line {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--card-edge);
}
.cart-line:first-of-type { border-top: 0; }
.cart-line img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  background: #f7f0de;
  border: 1px solid var(--card-edge);
}
.line-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.4rem; }
.line-actions input { width: 4.2rem; }
.linkish {
  background: none;
  border: 0;
  color: var(--red);
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.totals { margin-top: 1rem; }
.totals div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0;
}
.totals .grand { font-size: 1.15rem; color: var(--red); font-family: var(--display); }

.checkout {
  display: grid;
  gap: 1.2rem;
  margin-top: 1rem;
}

.rates { display: grid; gap: 0.5rem; margin-top: 0.6rem; }
.rate {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: start;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--card-edge);
  background: #fffaf0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.rate:has(input:checked) { border-color: var(--red); }
.rate input { width: auto; margin-top: 0.25rem; }

.prose { max-width: 42rem; }
.prose p { margin: 0.7rem 0; }
.prose ul { padding-left: 1.2rem; }

.site-footer {
  background: var(--red-deep);
  color: #f0d9a8;
  border-top: 3px solid var(--gold-bright);
  padding: 1.6rem 0 2rem;
  font-size: 0.98rem;
}
.site-footer a { color: var(--gold-bright); }
.footer-inner { display: grid; gap: 0.8rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.copyright { margin: 0; color: #e3c68a; }

.status { margin: 1rem 0; color: var(--muted); }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .row.two { grid-template-columns: 1fr 1fr; }
  .product-layout { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .checkout { grid-template-columns: 1.3fr 0.9fr; align-items: start; }
  .header-inner { padding: 1rem 0; }
  .brand-name { font-size: 1.2rem; }
}
