:root {
  --paper: #f3ead7;
  --surface: #fffaf0;
  --ink: #111820;
  --muted: #596170;
  --line: rgba(23, 32, 44, 0.16);
  --brand: #c83a2a;
  --brand-dark: #8c241b;
  --green: #1d6f56;
  --blue: #255f8c;
  --gold: #d49a20;
  --danger: #b42318;
  --success: #087443;
  --radius: 8px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 24, 32, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(17, 24, 32, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 22px 22px;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #fffaf0;
  border-bottom: 6px solid var(--brand);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 42px;
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
  border-left: 8px solid var(--brand);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  font-family: "Alegreya", Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.1;
}

.brand-text small {
  color: #d6cab5;
  font-size: 0.86rem;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 2px solid var(--ink);
  background: var(--surface);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  padding: 8px 4px;
  margin: 0 9px;
  border-bottom: 3px solid transparent;
  color: #e8dcc8;
  font-weight: 700;
}

.site-nav a.active,
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  color: #fff;
  border-bottom-color: var(--gold);
}

.site-nav .cta-link {
  margin-left: 8px;
  background: var(--brand);
  color: #fff;
  border: 2px solid #fffaf0;
  border-radius: 0;
  padding: 9px 14px;
}

.site-main {
  flex: 1;
}

.hero {
  padding: 0 0 22px;
  background:
    linear-gradient(90deg, rgba(17, 24, 32, 0.95), rgba(17, 24, 32, 0.78)),
    repeating-linear-gradient(135deg, rgba(255, 250, 240, 0.08) 0 2px, transparent 2px 12px);
  color: #fffaf0;
  border-bottom: 6px solid var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 0;
  align-items: stretch;
}

.hero-copy {
  padding: 72px 44px 68px 0;
  border-right: 2px solid rgba(255, 250, 240, 0.22);
}

.hero-panel,
.product-card,
.contact-card,
.contact-form,
.sidebar-card,
.checkout-summary,
.checkout-form,
.status-card,
.prose,
.info-strip > div {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 0;
  box-shadow: 8px 8px 0 rgba(17, 24, 32, 0.16);
}

.hero-panel {
  padding: 72px 0 68px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #fffaf0;
}

.page-hero {
  padding: 46px 0 10px;
  background: var(--surface);
  border-bottom: 4px solid var(--ink);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 0;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  font-family: "Alegreya", Georgia, serif;
}

.hero h1,
.page-hero h1 {
  max-width: 860px;
  font-size: 4.8rem;
  margin-top: 18px;
}

.lede {
  max-width: 760px;
  font-size: 1.3rem;
  color: #f7d891;
  font-weight: 700;
}

.hero-copy > p:not(.lede) {
  max-width: 700px;
}

.hero-actions,
.policy-links,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 0;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 rgba(23, 32, 44, 0.2);
}

.button-primary {
  background: var(--brand);
  color: #fff;
}

.button-secondary {
  background: #fffaf0;
  color: var(--ink);
}

.button-block {
  width: 100%;
}

.site-note,
.callout,
.checkout-help {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 0;
  background: #fff2c7;
  border-left: 5px solid var(--gold);
  display: grid;
  gap: 4px;
}

.shelf-visual {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1.2fr 0.9fr 1fr;
  gap: 8px;
  height: 120px;
  align-items: end;
  border-bottom: 6px solid var(--ink);
  padding: 0 6px;
}

.shelf-visual span {
  display: block;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.shelf-visual span:nth-child(1) { height: 82px; background: var(--brand); }
.shelf-visual span:nth-child(2) { height: 104px; background: var(--blue); }
.shelf-visual span:nth-child(3) { height: 70px; background: var(--gold); }
.shelf-visual span:nth-child(4) { height: 96px; background: var(--green); }
.shelf-visual span:nth-child(5) { height: 60px; background: #f2d48f; }

.hero-list {
  display: grid;
  gap: 10px;
}

.hero-list-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 250, 240, 0.35);
  font-weight: 700;
}

.hero-list-item strong {
  color: #f7d891;
  white-space: nowrap;
}

.shelf-link {
  font-weight: 900;
  color: #f7d891;
}

.section {
  padding: 28px 0 42px;
}

.section-soft {
  padding-bottom: 60px;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  max-width: 760px;
}

.section-heading h2,
.info-strip h2 {
  font-size: 2rem;
}

.section-heading-compact {
  margin-bottom: 16px;
}

.catalog-section + .catalog-section {
  margin-top: 34px;
}

.catalog-band {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding: 10px 0;
  border-top: 5px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  font-weight: 900;
}

.catalog-band span {
  font-family: "Alegreya", Georgia, serif;
  font-size: 1.8rem;
}

.catalog-band strong {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  padding: 18px 18px 18px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 292px;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--brand);
}

.product-card:nth-child(3n + 2)::before {
  background: var(--blue);
}

.product-card:nth-child(3n + 3)::before {
  background: var(--green);
}

.product-card-top,
.product-card-bottom {
  display: grid;
  gap: 11px;
}

.product-card h3 {
  font-size: 1.45rem;
}

.pill,
.digital-badge,
.status-chip {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 900;
  background: #f6ead0;
  color: var(--brand-dark);
  text-transform: uppercase;
}

.pill-muted {
  background: #ecf2ed;
  color: var(--green);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.price,
.detail-price,
.summary-price {
  font-weight: 900;
  color: var(--ink);
  font-size: 1.4rem;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-strip > div {
  padding: 22px;
}

.product-detail,
.contact-grid,
.checkout-layout,
.about-layout,
.policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
}

.detail-main,
.detail-sidebar,
.prose,
.policy-stack {
  display: grid;
  gap: 18px;
}

.detail-sidebar .sidebar-card,
.contact-card,
.contact-form,
.checkout-summary,
.checkout-form,
.prose,
.ledger-panel,
.policy-entry {
  padding: 22px;
}

.ledger-panel,
.policy-entry {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 rgba(23, 32, 44, 0.12);
}

.detail-kicker,
.checkout-product-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.detail-kicker span,
.summary-format {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.detail-kicker strong,
.summary-name {
  margin: 0;
  font-family: "Alegreya", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 800;
}

.fact-sheet dl,
.contact-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.fact-sheet div,
.contact-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.fact-sheet dt,
.contact-list dt {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.fact-sheet dd,
.contact-list dd {
  margin: 0;
  font-weight: 700;
}

.policy-layout {
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  align-items: start;
}

.policy-index {
  position: sticky;
  top: 96px;
}

.policy-entry {
  box-shadow: none;
  border-left: 8px solid var(--blue);
}

.policy-entry:nth-child(3n + 2) {
  border-left-color: var(--green);
}

.policy-entry:nth-child(3n + 3) {
  border-left-color: var(--gold);
}

.policy-entry h2 {
  font-size: 1.35rem;
}

.bullet-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.fineprint,
.success {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-form label,
.checkout-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 0;
  min-height: 46px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.contact-form textarea,
.checkout-form textarea {
  min-height: 140px;
  resize: vertical;
}

.consent {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600 !important;
}

.consent input {
  width: auto;
  margin-top: 4px;
}

.status-page {
  padding: 64px 0;
}

.status-page .container {
  display: grid;
  gap: 18px;
}

.status-card {
  padding: 22px;
}

.receipt-block {
  display: grid;
  gap: 6px;
  padding: 16px;
  margin-bottom: 18px;
  border-radius: 0;
  background: #ecf2ed;
  border-left: 6px solid var(--success);
}

.receipt-label {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 0;
  background: var(--success);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-chip-success {
  background: #ecf2ed;
  color: var(--success);
}

.status-chip-failed {
  background: #fbe7e4;
  color: var(--danger);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 34px 0 18px;
}

.site-footer {
  margin-top: 24px;
  background: var(--ink);
  color: #f8fafc;
  border-top: 6px solid var(--brand);
}

.footer-brand,
.footer-title {
  font-family: "Alegreya", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #dbe4ef;
}

.footer-bottom {
  padding: 16px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
}

.prose h2 {
  margin-top: 10px;
  font-size: 1.5rem;
}

.prose p {
  margin: 0;
}

@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero h1,
  .page-hero h1 {
    font-size: 3.4rem;
  }

  .hero-grid,
  .product-detail,
  .contact-grid,
  .checkout-layout,
  .about-layout,
  .policy-layout,
  .info-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 48px 0 32px;
    border-right: 0;
    border-bottom: 2px solid rgba(255, 250, 240, 0.22);
  }

  .hero-panel {
    padding: 32px 0 42px;
  }

  .policy-index {
    position: static;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding: 12px 0 18px;
    margin-left: 0;
  }

  .site-nav.open {
    display: grid;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1140px);
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.55rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .product-card,
  .contact-card,
  .contact-form,
  .sidebar-card,
  .checkout-summary,
  .checkout-form,
  .prose,
  .ledger-panel,
  .policy-entry,
  .info-strip > div,
  .status-card {
    padding: 18px;
    box-shadow: 5px 5px 0 rgba(23, 32, 44, 0.12);
  }

  .hero {
    padding-top: 26px;
  }

  .catalog-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-kicker,
  .checkout-product-line,
  .fact-sheet div,
  .contact-list div {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
