:root {
  --ink: #17110c;
  --ink-soft: #3c2c1d;
  --midnight: #07131b;
  --midnight-2: #0c2230;
  --blue: #0e3448;
  --blue-soft: #163f53;
  --parchment: #e6cf99;
  --parchment-2: #cda86a;
  --gold: #c89534;
  --gold-bright: #f0c96c;
  --red: #7b251d;
  --red-bright: #a33d2e;
  --moss: #44513a;
  --cream: #f6e6bc;
  --line: rgba(232, 190, 101, 0.34);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 0%, rgba(200, 149, 52, 0.14), transparent 28rem),
    radial-gradient(circle at 82% 16%, rgba(123, 37, 29, 0.2), transparent 24rem),
    linear-gradient(135deg, #080d10, #07131b 42%, #1a100a 100%);
  color: var(--cream);
  font-family: "IM Fell English", Georgia, serif;
  letter-spacing: 0;
}

body.daylight {
  --midnight: #201508;
  --midnight-2: #3a2b19;
  --blue: #23485a;
  --cream: #fff0c8;
  --line: rgba(92, 46, 18, 0.34);
  background:
    radial-gradient(circle at 18% 4%, rgba(240, 201, 108, 0.2), transparent 28rem),
    linear-gradient(135deg, #2d1d11, #123345 52%, #4a251d);
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px, 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.site-frame {
  width: min(1540px, calc(100% - 24px));
  margin: 12px auto;
  border: 1px solid rgba(232, 190, 101, 0.42);
  box-shadow: var(--shadow);
  background:
    linear-gradient(rgba(9, 19, 26, 0.92), rgba(9, 19, 26, 0.94)),
    repeating-linear-gradient(45deg, rgba(246, 230, 188, 0.035) 0 1px, transparent 1px 9px);
  position: relative;
  overflow: clip;
}

.site-frame::before,
.site-frame::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(240, 201, 108, 0.26);
  z-index: 4;
}

.site-frame::after {
  inset: 18px;
  border-color: rgba(123, 37, 29, 0.38);
}

.site-header {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 3vw, 48px);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(10, 21, 27, 0.94), rgba(28, 17, 9, 0.94)),
    radial-gradient(circle at 20% 0%, rgba(200, 149, 52, 0.16), transparent 26rem);
  backdrop-filter: blur(16px);
}

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

.brand-sigil {
  width: 48px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 201, 108, 0.72);
  background:
    radial-gradient(circle at 50% 32%, rgba(240, 201, 108, 0.22), transparent 44%),
    linear-gradient(135deg, var(--red), #2b120d);
  color: var(--gold-bright);
  font-family: "UnifrakturCook", Georgia, serif;
  font-size: 2.1rem;
  line-height: 1;
  box-shadow: inset 0 0 0 4px rgba(9, 19, 26, 0.62);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--gold-bright);
  line-height: 1;
}

.brand-text small {
  color: rgba(246, 230, 188, 0.68);
  font-size: 0.85rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav a {
  color: rgba(246, 230, 188, 0.75);
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: var(--gold-bright);
}

.header-actions,
.toolbar-controls,
.preview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.seal-button,
.cart-button,
.primary-button,
.secondary-button,
.text-button {
  border: 1px solid rgba(240, 201, 108, 0.36);
  color: var(--cream);
  background: rgba(7, 19, 27, 0.72);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.icon-button,
.seal-button {
  width: 44px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  position: relative;
}

.icon-button svg,
.seal-button svg,
.cart-button svg,
.primary-button svg,
.secondary-button svg,
.compact-search svg,
.search-panel svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}

.icon-button:hover,
.seal-button:hover,
.cart-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 201, 108, 0.78);
  background: rgba(123, 37, 29, 0.84);
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%) translateY(-4px);
  opacity: 0;
  pointer-events: none;
  padding: 5px 8px;
  border: 1px solid rgba(240, 201, 108, 0.4);
  background: rgba(10, 13, 15, 0.94);
  color: var(--cream);
  white-space: nowrap;
  font-size: 0.76rem;
  z-index: 40;
  transition: 160ms ease;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cart-button {
  height: 44px;
  min-width: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 14px;
}

.cart-button span {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #170e08;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-market {
  min-height: calc(100vh - var(--header-height) - 24px);
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
  background-image: var(--hero-image, url("assets/hero-bohemian-market.png"));
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 12, 16, 0.88), rgba(6, 12, 16, 0.46) 48%, rgba(6, 12, 16, 0.74)),
    linear-gradient(0deg, rgba(6, 12, 16, 0.95), transparent 42%),
    radial-gradient(circle at 50% 50%, transparent 38%, rgba(8, 7, 4, 0.58) 100%);
}

.hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: end;
  padding: clamp(70px, 9vw, 130px) clamp(18px, 4vw, 70px) clamp(24px, 5vw, 54px);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-bright);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-copy h1 {
  margin-bottom: 12px;
  color: var(--gold-bright);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(4.2rem, 13vw, 11rem);
  line-height: 0.8;
  text-shadow: 0 6px 0 rgba(22, 12, 3, 0.42), 0 0 32px rgba(240, 201, 108, 0.2);
}

.hero-lede {
  max-width: 560px;
  margin-bottom: 24px;
  color: rgba(246, 230, 188, 0.84);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.search-panel,
.compact-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid rgba(240, 201, 108, 0.44);
  background:
    linear-gradient(135deg, rgba(246, 230, 188, 0.16), rgba(8, 20, 27, 0.76)),
    rgba(8, 20, 27, 0.72);
  color: var(--cream);
}

.search-panel {
  width: min(100%, 620px);
  padding: 0 8px 0 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.search-panel input,
.compact-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cream);
}

.search-panel input::placeholder,
.compact-search input::placeholder {
  color: rgba(246, 230, 188, 0.58);
}

.search-panel button {
  width: 42px;
  aspect-ratio: 1;
  border: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #181008;
  cursor: pointer;
}

.hero-categories,
.category-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-categories {
  margin-top: 18px;
}

.chip,
.tab-button,
.filter-pill {
  border: 1px solid rgba(240, 201, 108, 0.28);
  background: rgba(7, 19, 27, 0.64);
  color: rgba(246, 230, 188, 0.78);
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.chip,
.tab-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chip:hover,
.tab-button:hover,
.filter-pill:hover,
.chip.is-active,
.tab-button.is-active,
.filter-pill.is-active {
  transform: translateY(-1px);
  border-color: rgba(240, 201, 108, 0.8);
  background: rgba(123, 37, 29, 0.74);
  color: var(--gold-bright);
}

.featured-board {
  border: 1px solid rgba(240, 201, 108, 0.46);
  background:
    linear-gradient(rgba(18, 10, 5, 0.74), rgba(10, 22, 29, 0.88)),
    repeating-linear-gradient(0deg, rgba(246, 230, 188, 0.035) 0 1px, transparent 1px 7px);
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
}

.featured-board::before,
.product-card::before,
.collection-band::before,
.filter-panel::before,
.cart-drawer::before,
.preview-modal::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(240, 201, 108, 0.2);
}

.board-heading,
.inventory-toolbar,
.panel-head,
.drawer-head,
.section-heading,
.journal-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.board-heading h2,
.inventory-toolbar h2,
.panel-head h2,
.drawer-head h2,
.section-heading h2,
.collection-copy h2,
.journal-band h2,
.guild-section h2,
.preview-info h2 {
  margin: 0;
  color: var(--cream);
  font-family: "Cinzel", Georgia, serif;
  line-height: 1;
}

.featured-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.featured-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 90px;
  padding: 10px;
  border: 1px solid rgba(240, 201, 108, 0.24);
  background: rgba(8, 20, 27, 0.58);
}

.mini-art,
.cart-thumb {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 201, 108, 0.32);
  background:
    radial-gradient(circle at 50% 40%, var(--accent, #c89534), transparent 38%),
    var(--image, url("assets/hero-bohemian-market.png"));
  background-size: 360%, cover;
  background-position: var(--pos, center), center;
}

.mini-art {
  width: 76px;
  aspect-ratio: 1;
}

.mini-art::after,
.cart-thumb::after {
  content: attr(data-glyph);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 230, 170, 0.88);
  font-family: "UnifrakturCook", Georgia, serif;
  font-size: 2.1rem;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
  background: rgba(8, 12, 14, 0.2);
}

.featured-item h3,
.cart-line h3,
.product-card h3 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  line-height: 1.15;
}

.featured-item p,
.product-card p,
.collection-band p,
.guild-card p,
.cart-line p {
  margin: 6px 0 0;
  color: rgba(246, 230, 188, 0.7);
  line-height: 1.45;
}

.featured-item strong,
.product-price {
  color: var(--gold-bright);
  font-family: "Cinzel", Georgia, serif;
}

.trust-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(123, 37, 29, 0.62), rgba(12, 34, 48, 0.72), rgba(68, 81, 58, 0.58)),
    repeating-linear-gradient(90deg, rgba(246, 230, 188, 0.04) 0 1px, transparent 1px 14px);
}

.trust-ribbon div {
  min-height: 108px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border-right: 1px solid rgba(240, 201, 108, 0.2);
}

.trust-ribbon div:last-child {
  border-right: 0;
}

.trust-ribbon strong {
  color: var(--gold-bright);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  line-height: 1;
}

.trust-ribbon span {
  color: rgba(246, 230, 188, 0.7);
}

.market-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 22px;
  padding: clamp(24px, 4vw, 56px) clamp(18px, 4vw, 70px);
}

.filter-panel {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 18px);
  border: 1px solid rgba(240, 201, 108, 0.34);
  background:
    linear-gradient(rgba(21, 13, 7, 0.84), rgba(7, 19, 27, 0.9)),
    repeating-linear-gradient(45deg, rgba(246, 230, 188, 0.035) 0 1px, transparent 1px 10px);
  padding: 18px;
}

.close-filter {
  display: none;
}

fieldset {
  border: 0;
  margin: 22px 0 0;
  padding: 0;
}

legend {
  margin-bottom: 12px;
  color: var(--gold-bright);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.filter-options {
  display: grid;
  gap: 8px;
}

.filter-pill {
  min-height: 42px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.filter-pill span {
  color: rgba(246, 230, 188, 0.58);
  font-size: 0.88rem;
}

.range-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(246, 230, 188, 0.72);
}

.range-label strong {
  color: var(--gold-bright);
  white-space: nowrap;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.toggle-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(246, 230, 188, 0.72);
}

.toggle-row input {
  width: 18px;
  aspect-ratio: 1;
  accent-color: var(--gold);
}

.inventory {
  min-width: 0;
}

.inventory-toolbar {
  margin-bottom: 16px;
}

.compact-search {
  width: min(320px, 44vw);
  min-height: 44px;
  padding: 0 12px;
}

select {
  height: 44px;
  min-width: 130px;
  border: 1px solid rgba(240, 201, 108, 0.34);
  background: rgba(7, 19, 27, 0.8);
  color: var(--cream);
  padding: 0 12px;
  outline: 0;
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  color: rgba(246, 230, 188, 0.62);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--gold-bright);
  padding: 0;
}

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

.product-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(240, 201, 108, 0.28);
  background:
    linear-gradient(rgba(12, 34, 48, 0.62), rgba(21, 13, 7, 0.88)),
    rgba(8, 20, 27, 0.74);
  overflow: hidden;
  transition:
    transform 190ms ease,
    border-color 190ms ease,
    box-shadow 190ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 201, 108, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.product-art {
  min-height: 210px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(240, 201, 108, 0.24);
  background:
    linear-gradient(45deg, rgba(7, 19, 27, 0.2), rgba(123, 37, 29, 0.28)),
    var(--image, url("assets/hero-bohemian-market.png"));
  background-size: cover;
  background-position: var(--pos, center);
}

.product-art::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(240, 201, 108, 0.46);
  background:
    radial-gradient(circle at 50% 50%, rgba(240, 201, 108, 0.2), transparent 38%),
    linear-gradient(135deg, rgba(7, 19, 27, 0.36), rgba(123, 37, 29, 0.18));
}

.product-art::after {
  content: attr(data-glyph);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--accent, var(--gold-bright)) 72%, #fff 28%);
  font-family: "UnifrakturCook", Georgia, serif;
  font-size: clamp(4.2rem, 8vw, 7rem);
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.42), 0 0 24px rgba(0, 0, 0, 0.7);
}

.badge-row {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(240, 201, 108, 0.38);
  background: rgba(7, 19, 27, 0.72);
  color: var(--gold-bright);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.heart-button {
  width: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 201, 108, 0.36);
  background: rgba(7, 19, 27, 0.72);
  color: var(--cream);
  cursor: pointer;
}

.heart-button.is-active {
  color: var(--gold-bright);
  background: rgba(123, 37, 29, 0.8);
}

.heart-button svg {
  width: 17px;
  height: 17px;
}

.product-body {
  padding: 16px;
}

.product-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: rgba(246, 230, 188, 0.62);
  font-size: 0.88rem;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold-bright);
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 16px;
}

.primary-button,
.secondary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.primary-button {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1b1208;
}

.primary-button:hover {
  color: #1b1208;
  background: linear-gradient(135deg, #ffe08b, var(--gold-bright));
}

.secondary-button {
  background: rgba(7, 19, 27, 0.62);
  color: var(--cream);
}

.collection-band,
.content-band,
.guild-section,
.testimonial-band,
.journal-band {
  padding: clamp(30px, 5vw, 70px) clamp(18px, 4vw, 70px);
  border-top: 1px solid var(--line);
}

.collection-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  background:
    linear-gradient(90deg, rgba(123, 37, 29, 0.7), rgba(12, 34, 48, 0.82)),
    url("assets/hero-bohemian-market.png");
  background-size: cover;
  background-position: center 60%;
}

.collection-copy {
  max-width: 520px;
}

.collection-copy p {
  color: rgba(246, 230, 188, 0.78);
  line-height: 1.55;
}

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

.collection-tiles article,
.guild-card {
  border: 1px solid rgba(240, 201, 108, 0.28);
  background: rgba(7, 19, 27, 0.72);
  padding: 16px;
}

.collection-tiles span {
  color: var(--gold-bright);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.78rem;
}

.collection-tiles strong,
.guild-card strong {
  display: block;
  margin-top: 10px;
  color: var(--cream);
  font-family: "Cinzel", Georgia, serif;
}

.content-band {
  background:
    linear-gradient(rgba(7, 19, 27, 0.94), rgba(21, 13, 7, 0.92)),
    repeating-linear-gradient(45deg, rgba(246, 230, 188, 0.032) 0 1px, transparent 1px 10px);
}

.seo-copy {
  columns: 2 320px;
  column-gap: clamp(24px, 4vw, 56px);
  margin-top: 20px;
  color: rgba(246, 230, 188, 0.78);
  line-height: 1.65;
}

.seo-copy h3 {
  break-after: avoid;
  color: var(--gold-bright);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.25;
}

.guild-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.guild-avatar {
  width: 56px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(240, 201, 108, 0.36);
  background:
    radial-gradient(circle at 50% 44%, var(--accent), transparent 46%),
    rgba(12, 34, 48, 0.88);
  color: var(--gold-bright);
  font-family: "UnifrakturCook", Georgia, serif;
  font-size: 2rem;
}

.journal-band {
  align-items: start;
  background:
    linear-gradient(90deg, rgba(21, 13, 7, 0.94), rgba(7, 19, 27, 0.94)),
    repeating-linear-gradient(45deg, rgba(246, 230, 188, 0.032) 0 1px, transparent 1px 10px);
}

.journal-list {
  width: min(100%, 760px);
  display: grid;
  gap: 10px;
}

.faq-list {
  width: min(100%, 820px);
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid rgba(240, 201, 108, 0.24);
  background: rgba(12, 34, 48, 0.56);
  padding: 14px 16px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--cream);
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  line-height: 1.35;
}

.faq-list p {
  margin: 12px 0 0;
  color: rgba(246, 230, 188, 0.72);
  line-height: 1.55;
}

.testimonial-band {
  background:
    linear-gradient(90deg, rgba(12, 34, 48, 0.88), rgba(21, 13, 7, 0.94)),
    repeating-linear-gradient(0deg, rgba(246, 230, 188, 0.028) 0 1px, transparent 1px 8px);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.testimonial-grid article {
  border: 1px solid rgba(240, 201, 108, 0.24);
  background: rgba(7, 19, 27, 0.72);
  padding: 16px;
}

.testimonial-grid strong {
  color: var(--gold-bright);
  font-family: "Cinzel", Georgia, serif;
  line-height: 1.25;
}

.testimonial-grid p {
  margin: 10px 0 0;
  color: rgba(246, 230, 188, 0.72);
  line-height: 1.5;
}

.journal-list a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  border: 1px solid rgba(240, 201, 108, 0.24);
  padding: 12px;
  background: rgba(12, 34, 48, 0.56);
}

.journal-list span {
  display: grid;
  place-items: center;
  height: 48px;
  border: 1px solid rgba(240, 201, 108, 0.34);
  color: var(--gold-bright);
  font-family: "Cinzel", Georgia, serif;
}

.journal-list strong {
  font-family: "Cinzel", Georgia, serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journal-list small {
  color: rgba(246, 230, 188, 0.62);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 70px);
  border-top: 1px solid var(--line);
  color: rgba(246, 230, 188, 0.62);
}

.page-shade {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.cart-drawer {
  width: min(440px, calc(100vw - 24px));
  height: calc(100vh - 24px);
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 60;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(240, 201, 108, 0.46);
  background:
    linear-gradient(rgba(21, 13, 7, 0.96), rgba(7, 19, 27, 0.98)),
    repeating-linear-gradient(45deg, rgba(246, 230, 188, 0.035) 0 1px, transparent 1px 8px);
  box-shadow: var(--shadow);
  padding: 18px;
  transform: translateX(calc(100% + 28px));
  transition: transform 240ms ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-items {
  overflow: auto;
  padding: 16px 2px;
}

.empty-cart {
  display: grid;
  place-items: center;
  min-height: 240px;
  text-align: center;
  color: rgba(246, 230, 188, 0.66);
  border: 1px dashed rgba(240, 201, 108, 0.24);
}

.cart-line {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(240, 201, 108, 0.18);
}

.cart-thumb {
  width: 74px;
  aspect-ratio: 1;
}

.cart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(240, 201, 108, 0.28);
}

.qty-control button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.qty-control span {
  min-width: 34px;
  text-align: center;
  color: var(--gold-bright);
}

.remove-line {
  border: 0;
  background: transparent;
  color: rgba(246, 230, 188, 0.68);
  cursor: pointer;
}

.cart-summary {
  border-top: 1px solid rgba(240, 201, 108, 0.24);
  padding-top: 16px;
  display: grid;
  gap: 14px;
}

.cart-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-summary strong {
  color: var(--gold-bright);
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.4rem;
}

.preview-modal {
  width: min(960px, calc(100vw - 28px));
  border: 1px solid rgba(240, 201, 108, 0.48);
  padding: 0;
  color: var(--cream);
  background:
    linear-gradient(rgba(21, 13, 7, 0.94), rgba(7, 19, 27, 0.98)),
    repeating-linear-gradient(45deg, rgba(246, 230, 188, 0.035) 0 1px, transparent 1px 8px);
  box-shadow: var(--shadow);
}

.preview-modal::backdrop {
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(5px);
}

.preview-modal[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
}

.preview-art {
  min-height: 460px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(7, 19, 27, 0.16), rgba(123, 37, 29, 0.26)),
    var(--image, url("assets/hero-bohemian-market.png"));
  background-size: cover;
  background-position: var(--pos, center);
}

.preview-art::before {
  content: attr(data-glyph);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--accent, var(--gold-bright)) 74%, #fff 26%);
  font-family: "UnifrakturCook", Georgia, serif;
  font-size: clamp(7rem, 16vw, 12rem);
  text-shadow: 0 8px 0 rgba(0, 0, 0, 0.45), 0 0 34px rgba(0, 0, 0, 0.72);
  background: radial-gradient(circle at center, transparent 20%, rgba(0, 0, 0, 0.34));
}

.preview-info {
  padding: clamp(24px, 4vw, 44px);
  align-self: center;
}

.preview-info p {
  color: rgba(246, 230, 188, 0.74);
  line-height: 1.55;
}

.preview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.preview-meta span {
  border: 1px solid rgba(240, 201, 108, 0.22);
  padding: 10px;
  color: rgba(246, 230, 188, 0.72);
}

.preview-meta strong {
  display: block;
  color: var(--gold-bright);
  font-family: "Cinzel", Georgia, serif;
}

@media (max-width: 1180px) {
  .hero-content,
  .market-shell,
  .collection-band,
  .journal-band {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: fixed;
    inset: 12px auto 12px 12px;
    width: min(360px, calc(100vw - 24px));
    z-index: 60;
    overflow: auto;
    transform: translateX(calc(-100% - 28px));
    transition: transform 240ms ease;
  }

  .filter-panel.is-open {
    transform: translateX(0);
  }

  .close-filter {
    display: grid;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guild-grid,
  .collection-tiles,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 74px;
  }

  .site-frame {
    width: 100%;
    margin: 0;
    border-inline: 0;
  }

  .site-frame::before,
  .site-frame::after {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .site-header {
    padding: 12px 14px;
  }

  .brand-sigil {
    width: 42px;
  }

  .hero-market {
    min-height: auto;
  }

  .hero-content {
    padding: 70px 14px 22px;
  }

  .featured-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .featured-item strong {
    grid-column: 2;
  }

  .trust-ribbon,
  .product-grid,
  .guild-grid,
  .collection-tiles,
  .testimonial-grid,
  .preview-modal[open],
  .preview-meta {
    grid-template-columns: 1fr;
  }

  .trust-ribbon div {
    min-height: 82px;
    border-right: 0;
    border-bottom: 1px solid rgba(240, 201, 108, 0.2);
  }

  .inventory-toolbar,
  .toolbar-controls,
  .site-footer,
  .journal-list a {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-controls,
  .compact-search,
  .product-actions,
  .preview-actions {
    width: 100%;
  }

  .compact-search,
  select {
    width: 100%;
  }

  .journal-list a {
    grid-template-columns: 1fr;
  }

  .journal-list strong {
    white-space: normal;
  }

  .preview-art {
    min-height: 320px;
  }
}

@media (max-width: 480px) {
  .header-actions {
    gap: 6px;
  }

  .icon-button,
  .seal-button {
    width: 40px;
  }

  .cart-button {
    min-width: 52px;
    padding: 0 10px;
  }

  .brand-text small {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(3.4rem, 22vw, 5.6rem);
  }

  .market-shell,
  .collection-band,
  .guild-section,
  .journal-band {
    padding-inline: 14px;
  }
}
