@import url("https://fonts.googleapis.com/css2?family=Special+Elite&display=swap");

:root {
  --ink: #211f1d;
  --muted: #68615b;
  --paper: #fbf7ef;
  --cream: #f3eadb;
  --sage: #75836f;
  --teal: #264d4a;
  --rose: #b46f62;
  --brass: #b8904f;
  --line: rgba(33, 31, 29, 0.16);
  --shadow: 0 24px 70px rgba(22, 18, 14, 0.22);
  --font-logo: "Special Elite", Georgia, "Times New Roman", serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body.has-admin-bar {
  padding-top: 36px;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fffaf2;
  background: linear-gradient(180deg, rgba(17, 16, 14, 0.76), rgba(17, 16, 14, 0.18));
}

.has-admin-bar .site-header {
  top: 36px;
}

.admin-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 36px;
  padding: 0 clamp(14px, 4vw, 36px);
  background: #171513;
  color: #fffaf2;
  font-size: 0.82rem;
  font-weight: 750;
}

.admin-bar a {
  color: #fffaf2;
  text-decoration: none;
}

.admin-bar a:hover,
.admin-bar a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-logo);
  font-size: 1.08rem;
  letter-spacing: 0;
  white-space: nowrap;
}

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

.brand-name {
  transform-origin: left center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-door-link:hover,
.brand-door-link:focus-visible {
  opacity: 0.88;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  text-underline-offset: 6px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
}

.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 250, 242, 0.45);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fffaf2;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.cart-count {
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: #fff7e8;
  color: var(--ink);
  font-size: 0.72rem;
}

@media (min-width: 821px) {
  .has-hero-title .site-header .brand-name {
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .has-hero-title:not(.is-hero-title-past) .site-header .brand-name {
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px) scale(0.96);
  }

  .has-hero-title.is-hero-title-past .site-header .brand-name {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero {
  position: relative;
  min-height: 48svh;
  display: flex;
  align-items: end;
  padding: 104px clamp(18px, 5vw, 72px) 44px;
  isolation: isolate;
  background-image:
    linear-gradient(90deg, rgba(19, 18, 16, 0.78) 0%, rgba(19, 18, 16, 0.48) 44%, rgba(19, 18, 16, 0.12) 100%),
    url("/assets/moe-vintage-blocks-hero-2400x900.webp");
  background-size: cover;
  background-position: center 32%;
  color: #fffaf2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  background: linear-gradient(0deg, rgba(14, 13, 12, 0.52), transparent);
  z-index: -1;
}

.hero-content {
  width: min(710px, 100%);
}

.eyebrow,
.card-kicker {
  margin: 0 0 14px;
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ead2a4;
}

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

h1,
h2 {
  font-family: var(--font-logo);
  letter-spacing: 0;
  line-height: 0.96;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  font-weight: 500;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4.8vw, 4.6rem);
  font-weight: 500;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 20px;
  color: rgba(255, 250, 242, 0.9);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.58;
}

.hero-actions,
.retailer-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: #fff7e8;
  color: #1f2e2c;
}

.button.secondary {
  border-color: rgba(255, 250, 242, 0.55);
  color: #fffaf2;
  background: rgba(255, 255, 255, 0.08);
}

.button.dark {
  background: var(--teal);
  color: #fffaf2;
}

.section,
.band,
.split-band,
.contact-band {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.intro {
  background: var(--teal);
  color: #fffaf2;
}

.intro .eyebrow,
.split-band .eyebrow {
  color: #e1bd7d;
}

.intro-grid,
.split-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.intro-grid-full {
  grid-template-columns: 1fr;
}

.intro p,
.split-grid p,
.retailer-copy p,
.section-heading p,
.contact-grid p {
  color: inherit;
  font-size: 1.04rem;
  line-height: 1.72;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading p,
.product-card p,
.retailer-panel span {
  color: var(--muted);
}

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

.storefront-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.store-product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 18px 48px rgba(33, 31, 29, 0.08);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.store-product-card:hover,
.store-product-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 56px rgba(33, 31, 29, 0.13);
  outline: none;
}

.store-product-image {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  background: #e9dfcf;
  color: var(--muted);
  font-weight: 850;
}

.store-product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-category {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  background: rgba(255, 250, 242, 0.92);
  color: #264d4a;
  box-shadow: 0 8px 22px rgba(17, 16, 14, 0.18);
}

.store-product-body {
  display: flex;
  min-height: 0;
  height: 100%;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.store-product-body h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.12;
}

.store-product-body p {
  display: block;
  overflow: visible;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.28;
}

.product-meta-row,
.product-action-row,
.product-chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.product-meta-row {
  justify-content: flex-start;
}

.product-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.product-number,
.product-category,
.product-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #efe7d8;
  color: #544d45;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-price {
  min-width: 0;
  margin-right: 0;
  font-size: 0.88rem;
  line-height: 1.15;
}

.inquire-price {
  color: var(--muted);
  font-size: 0.76rem;
}

.product-cart-button {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: none;
  place-items: center;
  padding: clamp(14px, 3vw, 36px);
  background: rgba(17, 16, 14, 0.68);
}

.product-modal.is-open {
  display: grid;
}

.product-modal-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  width: min(1040px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: hidden;
  border: 1px solid rgba(255, 250, 242, 0.28);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 28px 90px rgba(17, 16, 14, 0.36);
}

.product-modal-media {
  position: relative;
  display: grid;
  min-height: min(660px, calc(100vh - 86px));
  place-items: center;
  overflow: hidden;
  background: #e9dfcf;
  color: var(--muted);
  font-weight: 850;
}

.product-modal-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal-media img:not([src]),
.product-modal-media img[src=""] {
  display: none;
}

.product-modal-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
}

.product-modal-copy h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
}

.product-modal-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.product-modal-meta {
  min-height: 24px;
}

.product-modal-actions {
  margin-top: auto;
}

.product-modal-close,
.product-modal-arrow {
  position: absolute;
  z-index: 2;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 250, 242, 0.92);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(17, 16, 14, 0.18);
}

.product-modal-close {
  top: 14px;
  right: 14px;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.product-modal-arrow {
  top: 50%;
  display: grid;
  width: 42px;
  height: 54px;
  place-items: center;
  transform: translateY(-50%);
  font-size: 2.2rem;
  line-height: 1;
}

.product-modal-arrow.previous {
  left: 14px;
}

.product-modal-arrow.next {
  right: 14px;
}

.product-modal-arrow:hover,
.product-modal-arrow:focus-visible,
.product-modal-close:hover,
.product-modal-close:focus-visible {
  background: #fffaf2;
}

.storefront-empty {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px dashed rgba(33, 31, 29, 0.28);
  border-radius: 8px;
  background: #fffdf8;
}

.storefront-empty span {
  color: var(--muted);
}

.product-card {
  min-height: 245px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 18px 48px rgba(33, 31, 29, 0.08);
}

.product-card p {
  margin-bottom: 0;
  line-height: 1.62;
}

.split-band {
  background: #e8efe9;
}

.split-band h2,
.retailers h2 {
  color: #1c3331;
}

.copy-stack p:last-child {
  margin-bottom: 0;
}

.retailers {
  background:
    linear-gradient(90deg, rgba(251, 247, 239, 0.96), rgba(251, 247, 239, 0.82)),
    radial-gradient(circle at 90% 15%, rgba(180, 111, 98, 0.22), transparent 34%),
    var(--paper);
}

.retailer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.retailer-actions {
  margin-top: 22px;
}

.retailer-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.retailer-panel div {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: #fffdf8;
}

.retailer-panel strong {
  font-size: 1rem;
}

.retailer-panel span {
  line-height: 1.55;
}

.contact-band {
  background: var(--ink);
  color: #fffaf2;
}

.contact-band .eyebrow {
  color: #e1bd7d;
}

.contact-grid {
  align-items: center;
}

.contact-grid h2 {
  margin-bottom: 0;
}

.contact-actions {
  justify-content: flex-end;
}

.section-editable.has-section-bg {
  color: var(--section-text, inherit);
  font-family: var(--section-body-font, inherit);
}

.section-editable.has-section-bg:not(.hero) {
  background: var(--section-bg);
}

.section-editable.has-section-bg .eyebrow {
  color: var(--section-eyebrow, inherit);
}

.section-editable.has-section-bg h1,
.section-editable.has-section-bg h2 {
  color: var(--section-heading, inherit);
  font-family: var(--section-heading-font, var(--font-logo));
}

.section-editable.has-section-bg p,
.section-editable.has-section-bg .section-heading p,
.section-editable.has-section-bg .retailer-panel span,
.section-editable.has-section-bg .store-product-body p {
  color: var(--section-body, inherit);
  font-family: var(--section-body-font, inherit);
}

.section-editable.has-section-bg .button.primary {
  background: var(--section-primary-bg, #fff7e8);
  color: var(--section-primary-text, #1f2e2c);
}

.section-editable.has-section-bg .button.secondary,
.section-editable.has-section-bg .button.dark {
  background: var(--section-secondary-bg, rgba(255, 255, 255, 0.08));
  color: var(--section-secondary-text, #fffaf2);
  border-color: color-mix(in srgb, var(--section-secondary-text, #fffaf2) 55%, transparent);
}

.section-editable.has-section-bg .store-product-card,
.section-editable.has-section-bg .storefront-empty,
.section-editable.has-section-bg .product-card,
.section-editable.has-section-bg .retailer-panel div {
  background: var(--section-card-bg, #fffdf8);
}

.hero.section-editable.has-section-bg .eyebrow {
  color: var(--section-eyebrow, #ead2a4);
}

.hero.section-editable.has-section-bg h1 {
  color: var(--section-heading, #fffaf2);
}

.hero.section-editable.has-section-bg .hero-copy {
  color: var(--section-body, rgba(255, 250, 242, 0.9));
}

.hero.section-editable.has-section-bg .button.primary {
  background: var(--section-primary-bg, #fff7e8);
  color: var(--section-primary-text, #1f2e2c);
}

.hero.section-editable.has-section-bg .button.secondary {
  background: var(--section-secondary-bg, rgba(255, 255, 255, 0.08));
  color: var(--section-secondary-text, #fffaf2);
}

.section-theme-paper {
  --section-bg: var(--paper);
  --section-text: var(--ink);
  --section-eyebrow: var(--rose);
  --section-heading: var(--ink);
  --section-body: var(--muted);
  --section-primary-bg: var(--teal);
  --section-primary-text: #fffaf2;
  --section-secondary-bg: #fff7e8;
  --section-secondary-text: var(--ink);
  --section-card-bg: #fffdf8;
}

.section-theme-cream {
  --section-bg: var(--cream);
  --section-text: var(--ink);
  --section-eyebrow: var(--rose);
  --section-heading: #1c3331;
  --section-body: #544d45;
  --section-primary-bg: var(--teal);
  --section-primary-text: #fffaf2;
  --section-secondary-bg: #fffdf8;
  --section-secondary-text: var(--ink);
  --section-card-bg: #fffdf8;
}

.section-theme-teal {
  --section-bg: var(--teal);
  --section-text: #fffaf2;
  --section-eyebrow: #e1bd7d;
  --section-heading: #fffaf2;
  --section-body: rgba(255, 250, 242, 0.86);
  --section-primary-bg: #fff7e8;
  --section-primary-text: #1f2e2c;
  --section-secondary-bg: rgba(255, 255, 255, 0.08);
  --section-secondary-text: #fffaf2;
  --section-card-bg: #fffdf8;
}

.section-theme-sage {
  --section-bg: #e8efe9;
  --section-text: #233632;
  --section-eyebrow: var(--rose);
  --section-heading: #1c3331;
  --section-body: #4f5b53;
  --section-primary-bg: var(--teal);
  --section-primary-text: #fffaf2;
  --section-secondary-bg: #fffdf8;
  --section-secondary-text: var(--ink);
  --section-card-bg: #fffdf8;
}

.section-theme-ink {
  --section-bg: var(--ink);
  --section-text: #fffaf2;
  --section-eyebrow: #e1bd7d;
  --section-heading: #fffaf2;
  --section-body: rgba(255, 250, 242, 0.78);
  --section-primary-bg: #fff7e8;
  --section-primary-text: var(--ink);
  --section-secondary-bg: rgba(255, 255, 255, 0.08);
  --section-secondary-text: #fffaf2;
  --section-card-bg: #fffdf8;
}

.section-theme-white {
  --section-bg: #fffdf8;
  --section-text: var(--ink);
  --section-eyebrow: var(--rose);
  --section-heading: var(--ink);
  --section-body: var(--muted);
  --section-primary-bg: var(--teal);
  --section-primary-text: #fffaf2;
  --section-secondary-bg: var(--cream);
  --section-secondary-text: var(--ink);
  --section-card-bg: #fffdf8;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  background: #11100f;
  color: rgba(255, 250, 242, 0.72);
  font-size: 0.9rem;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  justify-content: flex-end;
  background: rgba(20, 18, 16, 0.42);
}

.cart-drawer.is-open {
  display: flex;
}

.cart-panel {
  width: min(420px, 100%);
  height: 100%;
  overflow: auto;
  padding: 22px;
  background: #fffdf8;
  box-shadow: -20px 0 60px rgba(20, 18, 16, 0.25);
}

.cart-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.cart-panel h2 {
  margin-bottom: 0;
  font-size: 2.2rem;
}

.cart-close,
.cart-item button {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.cart-close {
  min-height: 36px;
  padding: 7px 10px;
}

.cart-items {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7ef;
}

.cart-item div {
  display: grid;
  gap: 4px;
}

.cart-item span,
.cart-item em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.cart-item button {
  padding: 7px 9px;
}

.cart-empty {
  margin-bottom: 16px;
  color: var(--muted);
}

.cart-email {
  width: 100%;
}

.inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(20, 18, 16, 0.48);
}

.inquiry-modal.is-open {
  display: grid;
}

.inquiry-form {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(20, 18, 16, 0.28);
}

.inquiry-form h2 {
  margin-bottom: 0;
  font-size: 2.2rem;
}

.inquiry-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: #3a352f;
  font-size: 0.82rem;
  font-weight: 850;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(33, 31, 29, 0.22);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.inquiry-form textarea {
  resize: vertical;
  line-height: 1.45;
}

.trap-field {
  position: absolute;
  left: -10000px;
}

.inquiry-selected {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7ef;
}

.inquiry-selected ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.inquiry-form-status {
  min-height: 24px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.inquiry-form-status.success {
  color: #21433f;
}

.inquiry-form-status.error {
  color: #8f2f24;
}

.admin-login-page,
.admin-page {
  min-height: 100vh;
  background: #f4efe6;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 22px 64px rgba(33, 31, 29, 0.14);
}

.admin-login-brand {
  margin-bottom: 22px;
  color: var(--ink);
}

.login-card h1,
.dashboard-main h1 {
  margin-bottom: 20px;
  font-family: var(--font-logo);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

.login-card label,
.section-editor-card label,
.brand-color-card label,
.settings-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #3a352f;
  font-size: 0.82rem;
  font-weight: 850;
}

.login-card input,
.section-editor-card input[type="text"],
.section-editor-card input[type="number"],
.section-editor-card select,
.section-editor-card textarea,
.brand-color-card input[type="text"],
.brand-color-card input[type="number"],
.brand-color-card textarea,
.settings-form input,
.product-edit-form input,
.product-edit-form textarea,
.product-edit-form select,
.inline-manager-form input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(33, 31, 29, 0.22);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.section-editor-card input[type="color"],
.brand-color-card input[type="color"],
.color-input-pair input[type="color"] {
  width: 100%;
  min-height: 42px;
  padding: 4px;
  border: 1px solid rgba(33, 31, 29, 0.22);
  border-radius: 6px;
  background: #fff;
}

.product-edit-form *,
.manager-card *,
.workshop-product-row * {
  min-width: 0;
}

.product-edit-form input[type="file"] {
  min-height: auto;
  padding: 9px;
  font-size: 0.9rem;
}

.product-edit-form select {
  appearance: auto;
}

.section-editor-card textarea,
.product-edit-form textarea {
  resize: vertical;
  line-height: 1.45;
}

.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.admin-button.primary {
  background: var(--teal);
  color: #fffaf2;
}

.admin-button.danger {
  background: #8f2f24;
  color: #fffaf2;
}

.form-error,
.notice.error {
  color: #8f2f24;
}

.login-back-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 10px 22px;
  background: #171513;
  color: #fffaf2;
}

.dashboard-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fffaf2;
  font-family: var(--font-logo);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.86rem;
  font-weight: 750;
}

.dashboard-user a {
  color: #fffaf2;
  text-decoration: none;
}

.dashboard-user a:hover,
.dashboard-user a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 58px);
}

.dashboard-sidebar {
  border-right: 1px solid var(--line);
  background: #211f1d;
}

.dashboard-sidebar nav {
  position: sticky;
  top: 58px;
  display: grid;
  gap: 2px;
  padding: 14px;
}

.dashboard-sidebar a {
  padding: 12px 14px;
  border-radius: 6px;
  color: rgba(255, 250, 242, 0.76);
  font-weight: 850;
  text-decoration: none;
}

.dashboard-sidebar a.active,
.dashboard-sidebar a:hover,
.dashboard-sidebar a:focus-visible {
  background: rgba(255, 250, 242, 0.12);
  color: #fffaf2;
}

.dashboard-main {
  min-width: 0;
  padding: clamp(22px, 4vw, 44px);
}

.dashboard-panel {
  width: min(1080px, 100%);
}

.dashboard-panel.narrow {
  width: min(620px, 100%);
}

.panel-heading {
  margin-bottom: 24px;
}

.panel-heading p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.notice {
  width: min(1080px, 100%);
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(38, 77, 74, 0.2);
  border-radius: 6px;
  background: #eef5ef;
  color: #21433f;
  font-weight: 800;
}

.empty-state {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px dashed rgba(33, 31, 29, 0.28);
  border-radius: 8px;
  background: #fffdf8;
}

.muted-copy {
  color: var(--muted);
  line-height: 1.55;
}

.product-manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.manager-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.manager-card,
.product-edit-form,
.delete-product-form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.manager-card h2 {
  margin-bottom: 12px;
  font-size: 1.7rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pill-list span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #efe7d8;
  color: #544d45;
  font-size: 0.78rem;
  font-weight: 850;
}

.inline-manager-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.inline-manager-form label {
  margin-bottom: 0;
}

.workshop-product-list {
  display: grid;
  gap: 12px;
}

.workshop-product-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.workshop-product-thumb {
  display: grid;
  width: 96px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #e9dfcf;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.workshop-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workshop-product-info h2 {
  margin: 6px 0;
  font-size: 1.45rem;
}

.workshop-product-info p {
  margin-bottom: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.photo-upload-field img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.tag-fieldset {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tag-fieldset legend {
  padding: 0 6px;
  font-size: 0.82rem;
  font-weight: 850;
}

.retailer-highlight-editor {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.retailer-highlight-editor legend {
  padding: 0 6px;
  font-size: 0.82rem;
  font-weight: 850;
}

.retailer-highlight-editor .muted-copy {
  margin: 0;
}

.tag-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tag-checkbox-grid label,
.checkbox-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tag-checkbox-grid input,
.checkbox-card input {
  width: 16px;
  min-height: 16px;
}

.product-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.delete-product-form {
  margin-top: 14px;
}

.empty-state span {
  color: var(--muted);
}

.inquiry-list {
  display: grid;
  gap: 14px;
}

.inquiry-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 14px 38px rgba(33, 31, 29, 0.07);
}

.inquiry-card.is-new {
  border-color: rgba(38, 77, 74, 0.38);
  box-shadow: 0 16px 42px rgba(38, 77, 74, 0.12);
}

.inquiry-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.inquiry-card h2 {
  margin-bottom: 6px;
  font-size: 1.65rem;
}

.inquiry-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.inquiry-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.inquiry-detail-grid div,
.inquiry-products,
.inquiry-message {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.inquiry-detail-grid strong,
.inquiry-products strong,
.inquiry-message strong {
  color: var(--ink);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.inquiry-detail-grid span,
.inquiry-detail-grid a,
.inquiry-products li,
.inquiry-message p {
  color: var(--muted);
  line-height: 1.45;
}

.inquiry-products ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.section-editor-list {
  display: grid;
  gap: 18px;
}

.brandkit-panel {
  margin-bottom: 28px;
}

.brandkit-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.brandkit-heading h2 {
  margin-bottom: 0;
  font-size: 2rem;
}

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

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

.type-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 12px 34px rgba(33, 31, 29, 0.06);
}

.type-sample {
  display: block;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 400;
  line-height: 1.05;
}

.logo-font {
  font-family: var(--font-logo);
}

.support-serif-font {
  font-family: var(--font-serif);
}

.sans-font {
  font-family: var(--font-sans);
}

.type-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.brand-color-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 12px 34px rgba(33, 31, 29, 0.06);
}

.brand-color-card label {
  margin-bottom: 0;
}

.brand-color-top {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.color-swatch {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.compact-grid {
  grid-template-columns: minmax(0, 1fr) 92px;
}

.section-editor-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 16px 42px rgba(33, 31, 29, 0.08);
}

.editor-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.editor-card-head h2 {
  margin-bottom: 0;
  font-size: 1.7rem;
}

.section-key {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.toggle-row.compact {
  justify-content: flex-end;
}

.toggle-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  white-space: nowrap;
}

.toggle-row input {
  width: 16px;
  height: 16px;
}

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

.manual-style-editor {
  margin: 4px 0 18px;
  padding: 14px;
  border: 1px solid rgba(33, 31, 29, 0.13);
  border-radius: 8px;
  background: #fbf7ef;
}

.manual-style-editor summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.manual-style-editor > p {
  margin: 10px 0 14px;
}

.manual-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.color-input-pair {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.settings-form {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.etsy-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.nested-panel {
  margin-top: 18px;
  padding: 20px;
}

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

.compact-heading h2 {
  margin-bottom: 8px;
  font-size: 1.55rem;
}

.copy-code {
  display: block;
  overflow-x: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
}

.etsy-listing-list {
  display: grid;
  gap: 12px;
}

.etsy-listing-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.etsy-listing-row h3 {
  margin: 4px 0 6px;
  font-family: var(--font-logo);
  font-size: 1.35rem;
  line-height: 1.05;
}

.etsy-listing-row p {
  margin: 0;
  color: rgba(33, 31, 29, 0.68);
  font-weight: 800;
}

@media (max-width: 720px) {
  .etsy-status-grid,
  .etsy-listing-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100vw;
    overflow: visible;
    padding: 10px 12px;
    color: #fffaf2;
    background: linear-gradient(180deg, rgba(17, 16, 14, 0.94), rgba(17, 16, 14, 0.78));
    backdrop-filter: none;
  }

  .site-header-actions {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }

  .menu-toggle {
    display: inline-grid;
    flex: 0 0 auto;
    gap: 4px;
    width: 32px;
    min-height: 32px;
    place-content: center;
    padding: 4px;
    border: 0;
    background: transparent;
    color: #fffaf2;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 4px);
    left: 12px;
    right: 12px;
    display: none;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    width: auto;
    max-width: none;
    min-width: 0;
    gap: 10px 16px;
    overflow-x: visible;
    padding: 12px;
    border-radius: 8px;
    background: rgba(17, 16, 14, 0.94);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    color: #fffaf2;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    z-index: 25;
  }

  .site-header.is-menu-open .site-nav {
    display: flex;
  }

  .site-nav a {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fffaf2;
    text-align: left;
    text-decoration: none;
  }

  .cart-toggle {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 4px;
    border: 0;
    background: transparent;
    color: #fffaf2;
    font-size: 0.62rem;
  }

  .cart-toggle svg {
    width: 22px;
    height: 22px;
  }

  .cart-count {
    display: none;
  }

  .brand {
    flex: 0 0 auto;
    gap: 8px;
    color: #fffaf2;
    font-size: 0.98rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    display: none;
  }

  main {
    padding-top: 58px;
  }

  h1 {
    max-width: 330px;
    font-size: clamp(2rem, 10vw, 2.85rem);
    line-height: 1.04;
  }

  .hero h1 {
    max-width: 280px;
    font-size: clamp(1.7rem, 8vw, 2.3rem);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 2.35rem);
  }

  .intro-grid,
  .split-grid,
  .contact-grid,
  .retailer-layout {
    grid-template-columns: 1fr;
  }

  .intro-grid > *,
  .split-grid > *,
  .contact-grid > *,
  .retailer-layout > * {
    min-width: 0;
  }

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

  .storefront-grid,
  .manager-grid {
    grid-template-columns: 1fr;
  }

  .store-product-body {
    align-items: stretch;
  }

  .product-cart-button {
    width: auto;
  }

  .product-modal {
    padding: 12px;
  }

  .product-modal-dialog {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: calc(100vh - 24px);
    overflow: auto;
  }

  .product-modal-media {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .product-modal-copy {
    padding: 18px;
  }

  .product-modal-copy h2 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .product-modal-arrow {
    top: calc(50vw + 12px);
    width: 36px;
    height: 46px;
    font-size: 1.8rem;
  }

  .product-modal-arrow.previous {
    left: 8px;
  }

  .product-modal-arrow.next {
    right: 8px;
  }

  .cart-panel {
    width: 100%;
  }

  .product-card {
    min-height: auto;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }

  body.has-admin-bar {
    padding-top: 72px;
  }

  .has-admin-bar .site-header {
    top: 72px;
  }

  .admin-bar {
    flex-wrap: wrap;
    min-height: 72px;
    align-content: center;
    gap: 7px 14px;
  }

  .dashboard-topbar,
  .dashboard-user,
  .brandkit-heading,
  .inquiry-card-head,
  .editor-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar nav {
    position: static;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .dashboard-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dashboard-sidebar a {
    text-align: center;
  }

  .dashboard-main {
    padding: 22px 14px;
  }

  .product-edit-form,
  .manager-card,
  .delete-product-form {
    padding: 16px;
  }

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

  .brandkit-grid,
  .typography-grid,
  .inquiry-detail-grid,
  .manual-color-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .inline-manager-form {
    grid-template-columns: 1fr;
  }

  .workshop-product-row {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .workshop-product-row > .admin-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .workshop-product-thumb {
    width: 78px;
  }

  .tag-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .toggle-row.compact {
    justify-content: flex-start;
  }
}
