:root {
  --bg: #f3eee4;
  --bg-2: #ebe4d6;
  --panel: #fffdf8;
  --line: #ddd4c4;
  --text: #1c1915;
  --muted: #6a6358;
  --pine: #2d4a38;
  --pine-2: #3d6a4e;
  --amanita: #c43c2c;
  --amber: #a67c18;
  --milk: #f7f2e9;
  --beige: #8a7d6a;
  --accent: #c43c2c;
  --accent-fg: #fffdf8;
  --header-bg: #f3eee4;
  --header-fg: #1c1915;
  --footer-bg: #ebe4d6;
  --footer-fg: #6a6358;
  --radius: 18px;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--header-bg) 92%, transparent);
  color: var(--header-fg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid #c9ae55;
  background: #0a1c12;
  flex-shrink: 0;
}
.brand-name { font-family: var(--font-serif); letter-spacing: .12em; font-size: 14px; }
nav.desk { display: flex; gap: 18px; font-size: 14px; color: color-mix(in srgb, var(--header-fg) 72%, transparent); }
nav.desk a { text-decoration: none; }
nav.desk a:hover { color: var(--header-fg); }
.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 11px 18px; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; font: inherit; color: var(--text);
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-amber { background: var(--amber); color: #1a1408; font-weight: 600; }
.cart-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); text-decoration: none; flex-shrink: 0;
}
.cart-link svg { width: 20px; height: 20px; display: block; }
.cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--amanita); color: #fff; font-size: 11px; font-weight: 700;
  line-height: 18px; text-align: center; box-sizing: border-box;
}
.search-form { display: flex; gap: 8px; }
.search-form input {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 10px 14px; min-width: 180px; font: inherit;
}
.hero {
  position: relative; min-height: 86vh; display: grid; place-items: end start;
  background: #000 center/cover no-repeat; overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 28s ease-in-out alternate infinite;
}
.hero { color: #f7f2e9; }
.hero .kicker { color: #e8dcc8; }
.hero .lead { color: #e8dcc8; }
.hero .btn-ghost { color: #f7f2e9; border-color: rgba(247,242,233,.45); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,25,21,.12), rgba(28,25,21,.62) 70%);
}
.hero-inner { position: relative; z-index: 1; padding: 48px 0 72px; max-width: 720px; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-inner h1 { animation: rise .9s ease both; }
.hero-inner .lead { animation: rise .9s ease .12s both; }
.hero-inner .cta-row { animation: rise .9s ease .22s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.kicker { letter-spacing: .22em; text-transform: uppercase; font-size: 12px; color: var(--beige); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(40px, 6vw, 72px); margin: 12px 0 16px; }
.lead { font-size: 20px; color: var(--beige); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
section { padding: 72px 0; }
.section-title { font-size: 34px; margin: 0 0 24px; }
.grid-3, .grid-4, .cards { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card, .product-card, .panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.product-card a { text-decoration: none; }
.product-card, .region-tile, .panel {
  transition: transform .45s ease, border-color .3s ease, box-shadow .45s ease;
}
.product-card:hover, .region-tile:hover {
  transform: translateY(-6px);
  border-color: #c9bda8;
  box-shadow: 0 18px 40px rgba(80,60,30,.12);
}
.product-card .thumb { transition: transform .7s ease; }
.product-card:hover .thumb { transform: scale(1.05); }
.btn { transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.path span { transition: border-color .3s, background .3s; }
.path span:hover { border-color: var(--pine-2); background: #e7efe8; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.media-block { margin: 20px 0 28px; }
.media-block video {
  width: 100%; border-radius: var(--radius); display: block; background: #000;
}
.media-block figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-inner h1, .hero-inner .lead, .hero-inner .cta-row, .hero-video,
  .product-card, .region-tile, .product-card .thumb, .btn { animation: none !important; transition: none !important; transform: none !important; opacity: 1 !important; }
}
.thumb { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: #e6ddcf; display: block; }
.product-card video.thumb { pointer-events: none; }
.card-body { padding: 16px 18px 20px; }
.meta { color: var(--muted); font-size: 13px; }
.price { color: var(--amber); font-weight: 600; }
.badge {
  display: inline-block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; margin-right: 6px; color: var(--beige);
}
.badge.low { border-color: var(--amber); color: var(--amber); }
.badge.legal { border-color: var(--amanita); color: #f3b3ab; }
.path {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.path span {
  border: 1px solid var(--line); padding: 10px 14px; border-radius: 999px; background: var(--bg-2);
}
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.region-tile {
  min-height: 220px; border-radius: var(--radius); overflow: hidden; position: relative;
  background-size: cover; background-position: center; display: flex; align-items: end;
  text-decoration: none;
}
.region-tile span { position: relative; z-index: 1; padding: 18px; font-family: var(--font-serif); font-size: 28px; color: #f7f2e9; }
.region-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(28,25,21,.65)); }
.site-footer {
  border-top: 1px solid var(--line); padding: 40px 0 60px;
  background: var(--footer-bg); color: var(--footer-fg);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.legal-note { font-size: 13px; color: var(--muted); max-width: 62em; }
.crumbs { color: var(--muted); font-size: 13px; margin: 18px 0; }
.crumbs a { color: var(--beige); }
.layout-2 { display: grid; grid-template-columns: 280px 1fr; gap: 28px; }
.filters { position: sticky; top: 88px; padding: 16px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 6px; }
.checkout-form .form-section {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 24px; margin: 20px 0;
}
.checkout-form h2 { font-size: 20px; margin: 0 0 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; }
.consent-row input { width: auto; margin-top: 4px; flex-shrink: 0; }
.consent-row label { margin: 0; color: var(--text); }
select, input[type=text], input[type=email], input[type=tel], input[type=password], textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 10px 12px; font: inherit;
}
input[type=number] {
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 10px 12px; font: inherit; width: 88px; max-width: 100%;
}
.cart-table { width: 100%; overflow-x: auto; }
.qty input[type=number] { width: 72px; flex-shrink: 0; }
.pdp { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery-photo { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.gallery-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius); background: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .gallery-video { display: none; }
}
.sticky-cta { display: none; }
.quiz-card { max-width: 720px; }
.options { display: grid; gap: 10px; }
.options button, .options label.opt {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  color: var(--text); text-align: left; cursor: pointer; font: inherit;
}
.options button:hover, .options label.opt:hover { border-color: var(--pine-2); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; font-size: 14px; }
.notice {
  border: 1px solid #e8c0b8; background: #fbeeee; color: #8a2e24; padding: 14px 16px; border-radius: 12px;
}
.ok {
  border: 1px solid #c5d9c8; background: #eef6ef; padding: 14px 16px; border-radius: 12px;
}
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; z-index: 50; }
.drawer {
  position: fixed; top: 0; right: 0; width: min(420px, 100%); height: 100%;
  background: var(--bg-2); border-left: 1px solid var(--line); z-index: 51;
  transform: translateX(100%); transition: .25s ease; padding: 20px;
}
.drawer.open { transform: none; }
.drawer-backdrop.open { display: block; }
.qty { display: flex; gap: 8px; align-items: center; }
.admin { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; background: var(--bg); }
.admin aside { border-right: 1px solid var(--line); padding: 22px 18px; background: #efe8dc; }
.admin main { padding: 28px 32px 48px; background: var(--bg); }
.admin main h1 { font-size: clamp(26px, 3vw, 34px); margin: 0; }
.admin main h2 { font-size: 22px; margin: 0 0 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 16px; }
.mobile-nav { display: none; }
html { -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; height: auto; }
@media (max-width: 900px) {
  body { overflow-x: clip; }
  .reveal { opacity: 1; transform: none; }
  .wrap { width: min(1180px, calc(100% - 24px)); }
  nav.desk, .search-form { display: none; }
  .header-row { min-height: 56px; gap: 8px; }
  .brand-name { font-size: 12px; letter-spacing: .08em; }
  .palette-open { width: 44px; height: 44px; padding: 0; font-size: 0; border-radius: 50%; }
  .palette-open::after { content: "◐"; font-size: 16px; }
  .mobile-nav {
    display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 6px 12px 10px; border-top: 1px solid var(--line);
    scrollbar-width: none;
  }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav a {
    white-space: nowrap; color: var(--muted); text-decoration: none;
    font-size: 13px; padding: 8px 12px; min-height: 44px;
    display: inline-flex; align-items: center; flex-shrink: 0;
  }
  .grid-3, .grid-4, .regions, .layout-2, .pdp, .footer-grid, .stats, .admin, .form-grid { grid-template-columns: 1fr; }
  .filters { position: static; }
  .hero { min-height: 70svh; }
  .hero-inner { padding: 28px 0 40px; }
  h1 { font-size: clamp(28px, 8vw, 40px); overflow-wrap: anywhere; }
  .lead { font-size: 16px; }
  section { padding: 40px 0; }
  .section-title { font-size: 26px; }
  .cta-row .btn, .checkout-form .btn-primary { width: 100%; min-height: 48px; }
  .pdp { gap: 18px; }
  .gallery { max-height: 70vw; }
  .gallery-photo { max-height: 70vw; object-fit: cover; }
  .sticky-cta {
    display: flex; position: fixed; left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 30;
    background: color-mix(in srgb, var(--panel) 96%, transparent);
    border: 1px solid var(--line); border-radius: 16px; padding: 10px;
    justify-content: space-between; align-items: center; gap: 8px;
  }
  .sticky-cta strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 48%; }
  .sticky-cta .btn { flex-shrink: 0; padding: 10px 14px; }
  body:has(.sticky-cta) { padding-bottom: 88px; }
  .product-card:hover, .region-tile:hover, .btn:hover { transform: none; }
  select, input[type=text], input[type=email], input[type=tel], input[type=password],
  input[type=number], textarea { font-size: 16px; min-height: 44px; }
  .checkout-form .form-section { padding: 16px; }
  .cart-table thead { display: none; }
  .cart-table tr {
    display: block; border: 1px solid var(--line); border-radius: 14px;
    padding: 12px; margin-bottom: 12px; background: var(--panel);
  }
  .cart-table td { display: block; border: 0; padding: 4px 0; }
  .qty { flex-wrap: wrap; }
  .theme-studio { width: 100%; }
  .theme-swatches { grid-template-columns: repeat(5, 1fr); }
  .admin { grid-template-columns: 1fr; }
  .admin aside { border-right: 0; border-bottom: 1px solid var(--line); }
  .admin main { padding: 16px; }
  .article-body, .prose { overflow-wrap: anywhere; }
  .article-body img, .article-body video { width: 100%; height: auto; }
}
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.path-track {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
}
.path-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.path-media { aspect-ratio: 16/10; background: #d8cbb6; overflow: hidden; }
.path-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.path-card h3 { margin: 6px 0 8px; }

.palette-open {
  border: 1px solid var(--line); background: var(--panel); color: inherit;
  border-radius: 999px; padding: 8px 12px; font: inherit; cursor: pointer;
}
.theme-backdrop {
  position: fixed; inset: 0; background: rgba(28,25,21,.28); z-index: 60;
}
.theme-studio {
  position: fixed; top: 0; right: 0; z-index: 61;
  width: min(380px, 100%); height: 100%; overflow: auto;
  background: var(--panel); color: var(--text); border-left: 1px solid var(--line);
  padding: 18px 18px 32px; box-shadow: -16px 0 40px rgba(40,30,10,.12);
}
.theme-studio[hidden], .theme-backdrop[hidden] { display: none; }
.theme-studio-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.theme-close {
  width: 36px; height: 36px; border: 0; background: var(--bg-2); border-radius: 50%;
  cursor: pointer; font-size: 22px; color: inherit;
}
.theme-studio .field-hint { font-size: 12px; color: var(--muted); margin: 12px 0 8px; }
.theme-targets, .theme-schemes { display: flex; flex-wrap: wrap; gap: 6px; }
.theme-targets button, .theme-schemes button {
  border: 1px solid var(--line); background: var(--bg-2); color: inherit;
  border-radius: 999px; padding: 7px 11px; font: inherit; cursor: pointer;
}
.theme-targets button.is-on, .theme-schemes button.is-on {
  border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--panel));
}
.theme-swatches {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 14px 0;
}
.theme-swatches button {
  aspect-ratio: 1; border-radius: 12px; border: 2px solid transparent;
  cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.theme-swatches button:hover, .theme-swatches button.is-on { border-color: var(--text); }
.theme-custom {
  display: flex; justify-content: space-between; align-items: center;
  margin: 8px 0 16px; font-size: 13px;
}
.theme-custom input[type=color] {
  width: 56px; height: 36px; padding: 0; border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer; background: transparent;
}
.cart-link { color: var(--header-fg); background: color-mix(in srgb, var(--header-bg) 70%, var(--panel)); }
.mobile-nav { background: var(--header-bg); }
.mobile-nav a { color: var(--header-fg); }

html.theme-pricelist {
  --bg: #06150e;
  --bg-2: #0a1c12;
  --panel: #0d2418;
  --line: #2a5c38;
  --text: #f4efe4;
  --muted: #9bb892;
  --pine: #7dff6a;
  --pine-2: #5fdc4e;
  --amanita: #7dff6a;
  --amber: #e6f07a;
  --milk: #f4efe4;
  --beige: #c5d4b0;
  --accent: #7dff6a;
  --accent-fg: #06150e;
  --header-bg: #05120c;
  --header-fg: #f4efe4;
  --footer-bg: #04100b;
  --footer-fg: #9bb892;
}
html.theme-pricelist .brand-mark {
  border: 1px solid #c9ae55;
  box-shadow: 0 0 0 1px #0a2414;
}
.kicker-brand { display: inline-flex; align-items: center; gap: 10px; }
.kicker-brand .brand-mark { width: 36px; height: 36px; }
html.theme-pricelist .brand-name { letter-spacing: .2em; color: #f4efe4; }
html.theme-pricelist .kicker { color: var(--pine); }
html.theme-pricelist .price { color: var(--amber); font-size: 1.05em; letter-spacing: .02em; }
html.theme-pricelist .product-card,
html.theme-pricelist .panel,
html.theme-pricelist .card {
  border: 1px solid #c9ae5588;
  background: linear-gradient(180deg, #0f2a1c, #0a1c12);
}
html.theme-pricelist .product-card:hover {
  border-color: #e6f07a;
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
}
html.theme-pricelist .btn-primary { font-weight: 600; letter-spacing: .04em; }
html.theme-pricelist .hero::after {
  background: linear-gradient(180deg, rgba(6,21,14,.2), rgba(6,21,14,.78) 72%);
}
html.theme-pricelist .path span:hover { background: #123322; }
html.theme-pricelist .notice { border-color: #5a2a24; background: #1a120e; color: #f3b3ab; }
html.theme-pricelist .ok { border-color: #2f5a40; background: #0e1c14; }
html.theme-pricelist .quiz-tile span { color: #f4efe4; }
html.theme-pricelist input, html.theme-pricelist select, html.theme-pricelist textarea {
  background: #0a1c12;
}

.quiz-stage { padding: 12px 0 80px; }
.quiz-h { font-family: var(--font-serif); font-size: clamp(32px, 5vw, 56px); font-weight: 400; margin: 8px 0 12px; }
.quiz-lead { max-width: 42em; color: var(--muted); }
.quiz-progress { height: 4px; background: var(--line); border-radius: 99px; margin: 22px 0 8px; overflow: hidden; }
.quiz-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s ease; }
.quiz-panel { display: none; padding: 18px 0; }
.quiz-panel.is-on { display: block; }
.quiz-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.quiz-tile {
  position: relative; border: 0; padding: 0; cursor: pointer; border-radius: 16px;
  overflow: hidden; min-height: 180px; background: #1c1915; color: #f4efe6; font: inherit; text-align: left;
}
.quiz-tile img { width: 100%; height: 180px; object-fit: cover; display: block; opacity: .9; }
.quiz-tile span {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  font-family: var(--font-serif); font-size: 22px;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.quiz-tile.picked, .quiz-choice.picked { outline: 2px solid var(--accent); }
.quiz-row { display: grid; gap: 12px; margin: 20px 0; }
.quiz-choice {
  font: inherit; cursor: pointer; text-align: left;
  padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text);
}
.quiz-choice small { display: block; color: var(--muted); margin-top: 4px; }
.quiz-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0; }
.quiz-pick { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.quiz-mood { font-family: var(--font-serif); font-size: 20px; margin: 4px 0; }
.quiz-story {
  width: 100%; min-height: 96px; margin: 8px 0 12px;
  background: var(--panel); color: var(--text); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 14px 16px; font: inherit;
}
.quiz-story-label { font-weight: 600; display: block; margin-top: 8px; }
.quiz-q { border: 0; margin: 0 0 22px; padding: 0; }
.quiz-q legend { font-family: var(--font-serif); font-size: 22px; margin-bottom: 10px; }
.quiz-choice { display: flex; align-items: flex-start; gap: 10px; }
.quiz-choice input { width: auto; margin-top: 4px; }
@media (max-width: 900px) {
  .quiz-mosaic, .quiz-results { grid-template-columns: 1fr; }
}
.reviews { padding-top: 48px; }
.review-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.review-item {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 18px;
}
.review-item p { margin: 0; }
.review-head { color: var(--muted); font-size: 14px; margin-bottom: 8px !important; }
