:root {
  --ink: #171410;
  --muted: #6a6158;
  --line: #ddd4c6;
  --paper: #f4efe6;
  --white: #fbf8f2;
  --forest: #1e3a32;
  --copper: #c05627;
  --accent: var(--forest);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Outfit", "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow: 0 24px 60px rgba(23, 20, 16, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.store {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 90% 50% at 100% -20%, rgba(192, 86, 39, 0.07), transparent 55%),
    radial-gradient(ellipse 70% 45% at -10% 110%, rgba(30, 58, 50, 0.06), transparent 50%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.shop {
  background-image: none;
  background-color: var(--paper);
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: 760px; }

/* —— Brand (Shopfront product) —— */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 8px;
}
.brand-text b {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-text span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* —— Seller company mark —— */
.company-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}
.monogram {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  min-width: 0;
}
.wordmark b { font-weight: 700; }
.wordmark span {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mast-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 8px 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.mast-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.nav .btn {
  padding: 9px 16px;
  color: var(--paper);
}
.nav .btn-ghost { color: var(--ink); }

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}
.kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
}
.hero h1,
h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 700;
  font-optical-sizing: auto;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.hero p.hero-copy,
.hero-copy {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid var(--forest);
  border-radius: 2px;
  background: var(--forest);
  color: var(--paper);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--white); }
.btn-file { cursor: pointer; padding: 9px 12px; font-size: 12px; }

section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
section h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.lede {
  margin: 0 0 32px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 17px;
}

.brands {
  margin: 0 0 40px;
  padding: 0;
  columns: 2;
  column-gap: 48px;
}
.brands li {
  list-style: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
  font-weight: 500;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
}
table.range {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.range th,
table.range td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.range tbody tr:last-child td { border-bottom: 0; }
table.range tbody tr:hover td { background: color-mix(in srgb, var(--paper) 70%, var(--white)); }
table.range th {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: var(--paper);
}
table.range td.name { font-weight: 600; }
table.range td.price {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.thumb {
  aspect-ratio: 4 / 3;
  background: #ebe4d8;
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
}
.thumb-mark {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 0.04em;
}
.thumb-sku {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card-body { padding: 18px; }
.card-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.sku {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}
.facts { margin: 0; }
.facts dt {
  margin-top: 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.facts dt:first-child { margin-top: 0; }
.facts dd {
  margin: 5px 0 0;
  font-size: 16px;
}
.terms p {
  color: var(--muted);
  max-width: 70ch;
  font-size: 16px;
}

.site-footer {
  padding: 40px 0 64px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  align-items: end;
}

.no-print { }
.hidden { display: none !important; }

/* —— Landing —— */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}
.pill {
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero .price-line { color: var(--ink); max-width: none; font-size: 15px; }
.shop-list { margin-top: 36px; display: grid; gap: 10px; }
.shop-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
  font-weight: 500;
}
.shop-list a:hover { border-color: var(--ink); }

.preview {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.preview-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #efe8dc;
  border-bottom: 1px solid var(--line);
}
.preview-chrome i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9bfb0;
  display: block;
}
.preview-url {
  margin-left: 8px;
  flex: 1;
  padding: 4px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.preview-body { padding: 28px 24px 32px; }
.preview-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.preview-head .monogram { width: 40px; height: 40px; font-size: 13px; }
.preview-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.preview-name span {
  display: block;
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.preview-tile {
  aspect-ratio: 1;
  background: linear-gradient(160deg, #e8dfd2, #d9cfc0);
}
.preview-tile:nth-child(2) { background: linear-gradient(160deg, #d7e0d8, #c5d0c6); }
.preview-tile:nth-child(3) { background: linear-gradient(160deg, #e4d4c8, #d3c0b2); }
.preview-tile span {
  display: block;
  height: 100%;
  padding: 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 45%, transparent);
  align-content: end;
}

.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.how article {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
}
.how .num {
  display: block;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--copper);
  letter-spacing: -0.04em;
}
.how h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}
.how p { margin: 0; color: var(--muted); font-size: 15px; }

.price-card {
  padding: 32px;
  background: var(--forest);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}
.price-card h2 { color: inherit; margin: 0 0 8px; }
.price-card p { margin: 0; color: color-mix(in srgb, var(--paper) 78%, transparent); max-width: 46ch; }
.price-card .amount {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.price-card .amount span {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}
.price-card .btn {
  margin-top: 18px;
  background: var(--paper);
  color: var(--forest);
  border-color: var(--paper);
}

/* —— Steps / forms —— */
.steps {
  display: flex;
  gap: 0;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.steps li span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 11px;
}
.steps li.is-current { color: var(--ink); }
.steps li.is-current span,
.steps li.is-done span {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper);
}
.steps li.is-done { color: var(--forest); }

.form { display: grid; gap: 16px; max-width: 820px; }
.form-block {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: var(--white);
}
.form-block legend {
  padding: 0 8px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--forest);
  outline-offset: 1px;
  background: var(--white);
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
}
.panel h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 24px;
}
.stack { display: grid; gap: 0; }
.stack-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.stack-item strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.stack-item span { color: var(--ink); font-size: 16px; word-break: break-all; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.warn { color: #9a3412; }
.studio-note {
  margin: 0 0 28px;
  max-width: 62ch;
  color: var(--muted);
}
.product-editor { display: grid; gap: 16px; }
.product-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
}
.photo-pick {
  display: grid;
  gap: 8px;
  align-content: start;
}
.photo-pick img,
.photo-pick .photo-empty {
  width: 140px;
  height: 140px;
  object-fit: cover;
  background: #ebe4d8;
  border: 1px solid var(--line);
}
.photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .hero-grid, .how, .price-card, .cards, .split { grid-template-columns: 1fr; }
  .preview { max-width: 420px; }
  .brands { columns: 1; }
}
@media (max-width: 860px) {
  .mast-row { flex-direction: column; align-items: flex-start; }
  .hero { padding: 40px 0 36px; }
  section { padding: 44px 0; }
}
@media (max-width: 700px) {
  .row2, .product-row { grid-template-columns: 1fr; }
  .steps { flex-wrap: wrap; gap: 10px 0; }
}

@media print {
  body.store { background: #fff; }
  .no-print, .hero-actions, .nav, .mast { position: static; backdrop-filter: none; }
  .no-print, .hero-actions, .nav .btn { display: none !important; }
  .mast, section { border-color: #ccc; }
  .hero, section { padding: 20px 0; }
  .card { break-inside: avoid; box-shadow: none; transform: none; }
  .cards { display: none; }
}
