/* Marnie Thread · original boutique presentation. Static, local and responsive. */

/* 1. Bundled type, semantic palette and shared foundations. */
@font-face {
  font-family: Lora;
  src: url('../fonts/lora-variable.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Karla;
  src: url('../fonts/karla-variable.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --mt-cream: #fbf7ef;
  --mt-flax: #e7d8c0;
  --mt-clay: #934b37;
  --mt-olive: #526145;
  --mt-ink: #342e28;
  --mt-muted: #74695d;
  --mt-deep-muted: #685e53;
  --mt-surface: #fffdf8;
  --mt-border: #d9cdbd;
  --mt-soft-border: #e9dfd1;
  --mt-tint: #f3ecdf;
  --mt-tint-deep: #ecdfcb;
  --mt-highlight: #ffffff;
  --mt-primary-bg: #934b37;
  --mt-primary-hover: #793d2d;
  --mt-primary-active: #633224;
  --mt-on-primary: #fffaf2;
  --mt-focus: #526145;
  --mt-danger: #a33231;
  --mt-nav-bg: #fffdf8;
  --mt-footer-bg: #ede2d0;
  --mt-image-bg: #e9deca;
  --mt-shadow: 0 3px 5px #53422d04, 0 12px 32px #53422d08;
  --mt-shadow-lift: 0 7px 12px #53422d08, 0 18px 38px #53422d16;
  --mt-shadow-dialog: 0 28px 90px #30231945;
  --mt-radius: 18px;
  --mt-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --bs-body-font-family: Karla, sans-serif;
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.6;
  --bs-body-bg: var(--mt-cream);
  --bs-body-color: var(--mt-ink);
  --bs-emphasis-color: var(--mt-ink);
  --bs-secondary-color: var(--mt-muted);
  --bs-secondary-bg: var(--mt-tint);
  --bs-tertiary-bg: var(--mt-tint);
  --bs-primary: #934b37;
  --bs-primary-rgb: 147, 75, 55;
  --bs-link-color: var(--mt-clay);
  --bs-link-hover-color: var(--mt-primary-hover);
  --bs-border-color: var(--mt-border);
  --bs-border-radius: 0.65rem;
  --bs-border-radius-lg: 1rem;
  --bs-heading-color: var(--mt-ink);
}
[data-theme='dark'] {
  color-scheme: dark;
  --mt-cream: #262722;
  --mt-flax: #464436;
  --mt-clay: #e2ad92;
  --mt-olive: #b5c3a4;
  --mt-ink: #f3eadd;
  --mt-muted: #c4b8a7;
  --mt-deep-muted: #c4b8a7;
  --mt-surface: #30312a;
  --mt-border: #5c594b;
  --mt-soft-border: #49493d;
  --mt-tint: #37382f;
  --mt-tint-deep: #424136;
  --mt-highlight: #3c3d33;
  --mt-primary-bg: #e2ad92;
  --mt-primary-hover: #edbea6;
  --mt-primary-active: #f4cdb8;
  --mt-on-primary: #35291f;
  --mt-focus: #c5d0b0;
  --mt-danger: #ffa5a0;
  --mt-nav-bg: #2c2d26;
  --mt-footer-bg: #33352c;
  --mt-image-bg: #454236;
  --mt-shadow: 0 3px 5px #10130d15, 0 12px 32px #10130d24;
  --mt-shadow-lift: 0 7px 12px #10130d24, 0 18px 38px #10130d48;
  --mt-shadow-dialog: 0 28px 90px #10130d80;
  --bs-primary-rgb: 226, 173, 146;
  --bs-link-hover-color: #f0c6ac;
}
html {
  scroll-padding-top: 1.5rem;
}
body {
  min-width: 360px;
  margin: 0;
  background: var(--mt-cream);
  color: var(--mt-ink);
  font-family: Karla, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--mt-flax);
  color: var(--mt-ink);
}
h1,
h2,
h3,
.h3,
.h4,
.h5,
.brand-name {
  color: var(--mt-ink);
  font-family: Lora, Georgia, serif;
  font-weight: 500;
  line-height: 1.23;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.85rem);
  margin-bottom: 1.15rem;
}
h2 {
  font-size: clamp(1.85rem, 2.8vw, 2.65rem);
  margin-bottom: 1rem;
}
h3,
.h3 {
  font-size: 1.6rem;
}
.h4 {
  font-size: 1.3rem;
}
.h5 {
  font-size: 1.15rem;
}
p {
  margin-bottom: 1.1rem;
}
a {
  color: var(--mt-clay);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}
a:hover {
  color: var(--mt-primary-hover);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  touch-action: manipulation;
}
img {
  display: block;
  width: 100%;
  height: auto;
}
svg {
  flex-shrink: 0;
}
figure {
  margin: 0;
}
figcaption {
  padding-inline: 0.2rem;
  font-size: 0.8125rem;
  line-height: 1.55;
}
.small,
small {
  font-size: 0.875rem;
  line-height: 1.55;
}
strong {
  font-weight: 700;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--mt-focus);
  outline-offset: 4px;
  border-radius: 3px;
}
main:focus {
  outline: none;
}
.skip-link {
  position: absolute;
  z-index: 2000;
  top: -8rem;
  left: 1rem;
  padding: 0.8rem 1.2rem;
  background: var(--mt-surface);
  color: var(--mt-ink);
  border-radius: 0.5rem;
  box-shadow: var(--mt-shadow-lift);
}
.skip-link:focus {
  top: 1rem;
}
.container-wide {
  width: min(1320px, calc(100% - 5rem));
  margin-inline: auto;
}
.container-wide > *,
.two-col > *,
.workflow-layout > *,
.shop-layout > * {
  min-width: 0;
}
.section {
  padding-block: 3.5rem;
}
.section-tight {
  padding-block: 1.8rem;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.25rem;
  align-items: start;
}
.workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr);
  gap: 2rem;
  align-items: start;
}
.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--mt-olive);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}
.lead {
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.65;
}
.muted {
  color: var(--mt-muted);
}
.page-intro {
  max-width: 820px;
  padding-block: 3.6rem 3rem;
}
.page-intro h1 {
  max-width: 18ch;
}
.page-intro .lead {
  max-width: 61ch;
  color: var(--mt-muted);
}
.page-intro p:last-child {
  margin-bottom: 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.9rem;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading .eyebrow {
  margin-bottom: 0.65rem;
}
.section-heading > a {
  padding-block: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* 2. The shop's navigation and tactile controls. */
.announcement {
  padding: 0.55rem 1rem;
  background: linear-gradient(100deg, var(--mt-flax), var(--mt-tint-deep) 60%, var(--mt-flax));
  color: var(--mt-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.025em;
}
.announcement span {
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--mt-border);
  font-weight: 400;
}
.site-nav {
  padding: 0;
  border-bottom: 1px solid var(--mt-soft-border);
  background: var(--mt-nav-bg);
}
.site-nav .container-wide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.35rem;
}
.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
  color: var(--mt-ink);
  text-decoration: none;
}
.brand:hover {
  color: var(--mt-clay);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 43px;
  border: 1px solid var(--mt-border);
  border-radius: 12px 12px 7px 7px;
  color: var(--mt-clay);
  background: linear-gradient(145deg, var(--mt-surface), var(--mt-tint));
  box-shadow: inset 0 1px var(--mt-highlight);
}
.brand-mark svg {
  width: 23px;
  height: 27px;
  stroke-width: 1.1;
}
.brand-name {
  display: block;
  font-size: 1.65rem;
  letter-spacing: -0.06em;
}
.brand small {
  display: block;
  margin-top: 0.3rem;
  color: var(--mt-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1.3;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-menu a {
  position: relative;
  display: block;
  padding-block: 0.7rem;
  color: var(--mt-ink);
  font-size: 0.9375rem;
  white-space: nowrap;
  text-decoration: none;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0.3rem;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--mt-clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--mt-ease);
}
.nav-menu a:hover,
.nav-menu a[aria-current='page'] {
  color: var(--mt-clay);
}
.nav-menu a:hover::after,
.nav-menu a[aria-current='page']::after {
  transform: scaleX(1);
}
.navbar-collapse {
  flex: 1 1 auto;
}
.nav-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.55rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 50px;
  background: transparent;
  color: var(--mt-ink);
  font-size: 0.875rem;
  line-height: 1.3;
  text-decoration: none;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms var(--mt-ease);
}
.icon-btn:hover,
.icon-btn:focus-visible {
  background: var(--mt-tint);
  border-color: var(--mt-soft-border);
  color: var(--mt-clay);
}
.icon-btn:active {
  transform: scale(0.96);
  background: var(--mt-flax);
}
.navbar-toggler:focus {
  box-shadow: none;
}
.nav-actions [aria-label='Open shopping basket'] {
  border-color: var(--mt-border);
  background: linear-gradient(135deg, var(--mt-surface), var(--mt-tint));
}
[data-cart-count],
[data-wishlist-count] {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mt-tint-deep);
  color: var(--mt-ink);
  font-size: 0.75rem;
  line-height: 1;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.72rem 1.2rem;
  border-radius: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition:
    transform 180ms var(--mt-ease),
    background-color 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}
.btn-primary {
  --bs-btn-color: var(--mt-on-primary);
  --bs-btn-bg: var(--mt-primary-bg);
  --bs-btn-border-color: var(--mt-primary-bg);
  --bs-btn-hover-color: var(--mt-on-primary);
  --bs-btn-hover-bg: var(--mt-primary-hover);
  --bs-btn-hover-border-color: var(--mt-primary-hover);
  --bs-btn-active-color: var(--mt-on-primary);
  --bs-btn-active-bg: var(--mt-primary-active);
  --bs-btn-active-border-color: var(--mt-primary-active);
  --bs-btn-disabled-color: var(--mt-on-primary);
  --bs-btn-disabled-bg: var(--mt-primary-bg);
  --bs-btn-disabled-border-color: var(--mt-primary-bg);
  box-shadow:
    inset 0 1px 0 #ffffff1f,
    0 3px 6px #6c3d2412;
}
.btn-outline-primary {
  --bs-btn-color: var(--mt-clay);
  --bs-btn-border-color: var(--mt-border);
  --bs-btn-hover-color: var(--mt-clay);
  --bs-btn-hover-bg: var(--mt-tint);
  --bs-btn-hover-border-color: var(--mt-clay);
  --bs-btn-active-color: var(--mt-clay);
  --bs-btn-active-bg: var(--mt-flax);
  --bs-btn-active-border-color: var(--mt-clay);
  --bs-btn-disabled-color: var(--mt-muted);
  --bs-btn-disabled-border-color: var(--mt-border);
  --bs-btn-disabled-bg: var(--mt-tint);
  background: var(--mt-surface);
}
.btn:focus-visible {
  outline: 3px solid var(--mt-focus);
  outline-offset: 4px;
  box-shadow: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled,
.btn.disabled {
  opacity: 0.62;
  cursor: not-allowed;
}
.btn[aria-busy='true'] {
  cursor: progress;
}
.btn[aria-pressed='true'] {
  color: var(--mt-clay);
  border-color: var(--mt-clay);
  background: var(--mt-tint-deep);
}
.btn[aria-pressed='true'] svg {
  fill: currentColor;
}
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--mt-soft-border);
  border-radius: 3rem;
  background: var(--mt-tint);
  color: var(--mt-olive);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
}

/* 3. A photograph-led shop window and dimensional collection cards. */
.hero-shop {
  position: relative;
  padding-block: 1.5rem;
}
.hero-visual {
  overflow: hidden;
  border: 1px solid var(--mt-soft-border);
  border-radius: 22px;
  background: var(--mt-image-bg);
  box-shadow: var(--mt-shadow);
}
.hero-photo {
  aspect-ratio: 2.4;
  min-height: 505px;
  object-fit: cover;
  object-position: 55% 53%;
}
.hero-copy {
  position: absolute;
  top: 50%;
  left: 2rem;
  width: min(500px, 42%);
  padding: 2.1rem;
  transform: translateY(-50%);
  border: 1px solid var(--mt-border);
  border-radius: 15px;
  background: linear-gradient(145deg, var(--mt-surface) 18%, var(--mt-cream));
  box-shadow:
    0 15px 45px #3e2d2222,
    inset 0 1px var(--mt-highlight);
}
.hero-copy h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.5rem, 3.3vw, 3.15rem);
  font-weight: 400;
  letter-spacing: -0.055em;
}
.hero-copy .lead {
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.hero-copy .eyebrow {
  color: var(--mt-clay);
  letter-spacing: 0.11em;
}
.hero-copy .d-flex {
  gap: 0.65rem !important;
}
.hero-copy .btn {
  padding-inline: 1rem;
}
.hero-copy .small {
  font-size: 0.8125rem;
}
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
  padding: 1.05rem 0.5rem;
  border-bottom: 1px solid var(--mt-border);
  color: var(--mt-muted);
  font-size: 0.875rem;
}
.trust-strip span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.trust-strip span::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--mt-olive);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.3rem;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.5rem;
}
.product-card,
.collection-card,
.surface {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--mt-soft-border);
  border-radius: var(--mt-radius);
  background: linear-gradient(145deg, var(--mt-surface) 35%, var(--mt-tint));
  box-shadow: var(--mt-shadow);
}
.surface-pad,
.card-copy {
  padding: 1.6rem;
}
.surface > :last-child,
.surface-pad > :last-child,
.card-copy > :last-child {
  margin-bottom: 0;
}
.surface.two-col {
  gap: 1.5rem;
  align-items: center;
}
.surface.two-col > figure {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.surface.two-col > figure img {
  flex: 1;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.surface.two-col > .surface-pad {
  padding: 2.5rem;
}
.surface > img,
.surface > a > img,
.surface > figure > img {
  aspect-ratio: 1.6;
  object-fit: cover;
}
.surface figcaption {
  margin: 0;
}
.product-card {
  display: flex;
  flex-direction: column;
}
.product-media {
  position: relative;
  margin: 0.55rem 0.55rem 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--mt-image-bg);
}
.product-media > a {
  display: block;
}
.product-media img {
  aspect-ratio: 1;
  object-fit: cover;
}
.product-media img[src*='wall-hanging'] {
  object-position: 50% 38%;
}
.product-card .card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem;
}
.product-card .eyebrow {
  margin-bottom: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.105em;
}
.card-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}
.card-topline h3 {
  max-width: 16ch;
  margin-bottom: 0.65rem;
  font-size: 1.1875rem;
  line-height: 1.35;
}
.card-copy h3 a,
.card-copy h2 a {
  color: var(--mt-ink);
  text-decoration: none;
}
.card-copy h3 a:hover,
.card-copy h2 a:hover {
  color: var(--mt-clay);
  text-decoration: underline;
}
.product-card .price {
  padding-top: 0.1rem;
  font-size: 1.0625rem;
}
.product-card .small {
  margin-bottom: 0.85rem;
  font-size: 0.8125rem;
}
.price {
  color: var(--mt-ink);
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.25rem;
}
.product-actions .btn {
  flex: 1 1 105px;
  min-height: 44px;
  padding: 0.65rem 0.6rem;
  font-size: 0.875rem;
}
.product-actions svg {
  width: 17px;
  height: 17px;
}
.collection-card {
  position: relative;
  display: block;
  color: var(--mt-ink);
  isolation: isolate;
}
.collection-card img {
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
}
.collection-card .card-copy {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  left: 0.8rem;
  padding: 1.35rem;
  border: 1px solid var(--mt-soft-border);
  border-radius: 12px;
  background: linear-gradient(120deg, var(--mt-surface), var(--mt-tint));
  box-shadow: 0 4px 20px #372e1e15;
}
.collection-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.5rem;
}
.collection-card p {
  max-width: 36ch;
  font-size: 0.9375rem;
}
.collection-card:hover {
  color: var(--mt-ink);
}
[data-premium-card] {
  transition:
    transform 240ms var(--mt-ease),
    box-shadow 240ms var(--mt-ease),
    border-color 240ms ease;
}
[data-premium-card] img {
  transition: transform 450ms var(--mt-ease);
}
[data-premium-card]:focus-within {
  border-color: var(--mt-olive);
  box-shadow: var(--mt-shadow-lift);
}
.collection-card:focus-visible {
  outline-offset: 4px;
}
.two-col > img,
.two-col > figure > img {
  border-radius: var(--mt-radius);
}
[data-page='home'] > main > .section.two-col .surface {
  height: 100%;
  padding: 2.1rem;
}
[data-page='home'] > main > .section.two-col .surface:first-child {
  background: linear-gradient(135deg, var(--mt-tint), var(--mt-flax));
  border-color: var(--mt-border);
}
[data-page='home'] > main > .section.two-col .surface:last-child {
  background: linear-gradient(135deg, var(--mt-surface), var(--mt-tint));
}
[data-page='home'] > main > .section.two-col .surface h2 {
  max-width: 18ch;
  font-size: 2rem;
}

/* 4. Product discovery and the buying column. */
[data-page='shop'] .page-intro {
  padding-block: 2rem 1.6rem;
}
.shop-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.shop-layout > aside {
  padding: 1.4rem;
}
.shop-layout > aside h2 {
  margin-bottom: 1.3rem;
}
.shop-filter-panel > a {
  display: inline-block;
  font-size: 0.875rem;
}
.shop-filter-toggle {
  display: none;
}
@media (min-width: 992px) {
  .shop-filter-panel.collapse:not(.show) {
    display: block;
  }
}
@media (max-width: 991.98px) {
  [data-page='shop'] .page-intro {
    padding-block: 1.25rem 1rem;
  }
  [data-page='shop'] .page-intro h1 {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
  }
  [data-page='shop'] .page-intro .lead {
    font-size: 1rem;
    line-height: 1.6;
  }
  [data-shop] .toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 180px);
    align-items: center;
    column-gap: 0.75rem;
  }
  [data-shop] .toolbar > div {
    min-width: 0;
  }
  [data-shop] .toolbar > p {
    font-size: 0.875rem;
  }
  [data-shop] .toolbar .form-label {
    font-size: 0.8125rem;
  }
  .shop-layout > aside.surface {
    padding: 0;
  }
  .shop-filter-title {
    display: none;
  }
  .shop-filter-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    border-radius: inherit;
    padding: 0.85rem 1rem;
    text-align: left;
  }
  .shop-filter-toggle svg {
    flex-shrink: 0;
    transition: transform 180ms ease;
  }
  .shop-filter-toggle[aria-expanded='true'] svg {
    transform: rotate(180deg);
  }
  .shop-filter-panel > form {
    padding: 1rem 1rem 0;
    border-top: 1px solid var(--mt-soft-border);
  }
  .shop-filter-panel > p,
  .shop-filter-panel > a {
    margin-inline: 1rem;
  }
  .shop-filter-panel > a {
    margin-bottom: 1rem;
  }
}
.shop-layout .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.shop-layout .product-card .card-copy {
  padding: 1rem;
}
.shop-layout .card-topline {
  flex-wrap: wrap;
  column-gap: 0.5rem;
  row-gap: 0;
}
.shop-layout .card-topline h3 {
  max-width: 18ch;
}
.filter-stack {
  display: grid;
  gap: 1.15rem;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.6rem;
}
.toolbar > div {
  flex: 1;
  min-width: 180px;
}
.toolbar > p {
  margin-bottom: 0.7rem;
  color: var(--mt-muted);
  font-size: 0.9375rem;
}
.shop-layout .toolbar > div {
  flex: 0 1 230px;
}
.shop-layout .toolbar {
  margin-bottom: 1rem;
}
.breadcrumb {
  gap: 0.15rem;
  align-items: center;
  margin-bottom: 0;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
}
.breadcrumb-item.active {
  color: var(--mt-muted);
}
.breadcrumb-item + .breadcrumb-item::before {
  color: var(--mt-muted);
}
.breadcrumb a {
  padding-block: 0.3rem;
}
[data-product-detail] {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3.5rem;
}
[data-product-detail] h1 {
  max-width: 12ch;
  font-size: clamp(2.35rem, 3.6vw, 3.25rem);
}
[data-product-detail] .lead {
  font-size: 1.125rem;
}
[data-product-detail] .price {
  font-size: 1.75rem;
}
.product-gallery img {
  border-radius: var(--mt-radius);
  background: var(--mt-image-bg);
}
.product-gallery figure:first-child img {
  aspect-ratio: 1;
  object-fit: cover;
}
.product-gallery img[src*='wall-hanging'] {
  object-position: 50% 34%;
}
.product-gallery figure + figure {
  margin-top: 1.6rem;
}
.product-gallery figure + figure img {
  aspect-ratio: 1.35;
  object-fit: cover;
}
.product-buy {
  display: grid;
  gap: 0.75rem;
  margin-block: 1.5rem;
}
.product-buy > .small {
  margin: -0.15rem 0 0.3rem;
  color: var(--mt-olive);
}
.quantity-row {
  display: flex;
  align-items: end;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.quantity-row > div {
  flex: 0 0 92px;
  max-width: 110px;
}
.quantity-row .btn {
  min-height: 49px;
}
[data-product-detail] .tab-content {
  min-height: 205px;
}
[data-page-family='product'] main > .section {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: start;
}
[data-page-family='product'] main > .section .section-heading {
  flex-direction: column;
  align-items: start;
  gap: 1.3rem;
  padding-top: 1rem;
}
[data-page-family='product'] main > .section .product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
[data-page-family='collection'] .page-intro {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}
[data-page-family='collection'] .two-col.section-tight > img {
  aspect-ratio: 1.35;
  object-fit: cover;
}
[data-page-family='collection'] .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
[data-page-family='collection'] .product-card .card-topline h3 {
  font-size: 1.3rem;
}

/* 5. Comfortable forms, tabs, accordions and honest workflow feedback. */
.form-label {
  margin-bottom: 0.5rem;
  color: var(--mt-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
}
.form-control,
.form-select {
  min-width: 0;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--mt-border);
  border-radius: 0.55rem;
  background-color: var(--mt-surface);
  color: var(--mt-ink);
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px #41341e05;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}
.form-select {
  padding-right: 2.5rem;
}
.form-control::placeholder {
  color: var(--mt-muted);
  opacity: 1;
}
.form-control:hover:not(:disabled),
.form-select:hover:not(:disabled) {
  border-color: var(--mt-olive);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--mt-focus);
  background-color: var(--mt-surface);
  color: var(--mt-ink);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mt-focus) 19%, transparent);
}
.form-control:disabled,
.form-select:disabled,
fieldset:disabled .form-control,
fieldset:disabled .form-select {
  background-color: var(--mt-tint);
  color: var(--mt-muted);
  opacity: 1;
  cursor: not-allowed;
}
textarea.form-control {
  min-height: 132px;
  resize: vertical;
}
input[type='number'] {
  font-variant-numeric: tabular-nums;
}
input[type='search']::-webkit-search-cancel-button {
  cursor: pointer;
}
.form-check {
  padding-left: 1.8rem;
}
.form-check .form-check-input {
  float: left;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  margin-left: -1.8rem;
  border-color: var(--mt-border);
  background-color: var(--mt-surface);
  cursor: pointer;
}
.form-check-input:checked {
  border-color: var(--mt-primary-bg);
  background-color: var(--mt-primary-bg);
}
.form-check-input:focus {
  border-color: var(--mt-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mt-focus) 20%, transparent);
}
.form-check-label {
  display: block;
  min-height: 32px;
  padding-bottom: 0.4rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  cursor: pointer;
}
.form-control.is-invalid,
.form-select.is-invalid,
.form-check-input.is-invalid,
[aria-invalid='true'] {
  border-color: var(--mt-danger);
}
.invalid-feedback,
.form-check-input.is-invalid ~ .form-check-label {
  color: var(--mt-danger);
}
.invalid-feedback {
  margin-top: 0.45rem;
  font-size: 0.875rem;
}
fieldset {
  min-width: 0;
}
legend.h3 {
  float: none;
  margin-bottom: 1.25rem;
}
.filter-stack > legend {
  margin-bottom: 0;
}
form.surface-pad {
  padding: 2rem;
}
form .two-col {
  gap: 1.25rem;
}
form .filter-stack {
  gap: 1.2rem;
}
.nav-tabs {
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid var(--mt-border);
  border-radius: 0.7rem;
  background: var(--mt-tint);
}
.nav-tabs .nav-item {
  display: flex;
  flex: 1 1 auto;
}
.nav-tabs .nav-link {
  flex: 1;
  min-height: 44px;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  color: var(--mt-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}
.nav-tabs .nav-link:hover {
  border-color: transparent;
  background: var(--mt-surface);
  color: var(--mt-clay);
}
.nav-tabs .nav-link.active {
  border-color: var(--mt-soft-border);
  background: var(--mt-surface);
  color: var(--mt-clay);
  box-shadow: 0 2px 5px #4337230c;
}
.tab-content {
  padding-top: 1.5rem;
}
.tab-pane {
  color: var(--mt-ink);
}
.tab-pane.active {
  animation: mt-panel-in 180ms var(--mt-ease) both;
}
.accordion {
  --bs-accordion-color: var(--mt-ink);
  --bs-accordion-bg: var(--mt-surface);
  --bs-accordion-border-color: var(--mt-border);
  --bs-accordion-btn-color: var(--mt-ink);
  --bs-accordion-active-color: var(--mt-clay);
  --bs-accordion-active-bg: var(--mt-tint);
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-border-radius: 1rem;
}
.accordion-item {
  overflow: hidden;
  margin-bottom: 0.85rem;
  border: 1px solid var(--mt-border) !important;
  border-radius: 0.85rem !important;
  box-shadow: 0 3px 12px #43372304;
}
.accordion-header {
  font-family: Karla, sans-serif;
  letter-spacing: normal;
}
.accordion-button {
  min-height: 67px;
  padding: 1.25rem 1.4rem;
  gap: 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}
.accordion-button:hover {
  background: var(--mt-tint);
}
.accordion-button:focus-visible {
  z-index: 3;
  outline: 3px solid var(--mt-focus);
  outline-offset: -4px;
}
.accordion-button::after {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  background: none !important;
  transform: rotate(45deg) translateY(-3px);
}
.accordion-button:not(.collapsed)::after {
  transform: rotate(225deg) translate(-2px, -2px);
}
.accordion-body {
  padding: 1.3rem 1.4rem 1.6rem;
  line-height: 1.8;
}
.note {
  padding: 1rem 1.2rem;
  border: 1px solid var(--mt-soft-border);
  border-left: 3px solid var(--mt-olive);
  border-radius: 0 0.65rem 0.65rem 0;
  background: linear-gradient(110deg, var(--mt-tint), var(--mt-surface));
  color: var(--mt-ink);
}
.note h2 {
  margin-bottom: 0.7rem;
}
.note > :last-child {
  margin-bottom: 0;
}
.note[role='alert'] {
  border-left-color: var(--mt-danger);
}
.status-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-block: 0.5rem 1.2rem;
  color: var(--mt-muted);
  font-size: 0.875rem;
}
.status-note::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--mt-olive);
}
.empty-state {
  padding: 3.3rem 2rem;
  border: 1px dashed var(--mt-border);
  border-radius: var(--mt-radius);
  background: linear-gradient(135deg, var(--mt-surface), var(--mt-tint));
  text-align: center;
}
.empty-state::before {
  content: '';
  display: block;
  width: 36px;
  height: 26px;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--mt-border);
  border-top: 3px double var(--mt-olive);
  border-bottom: 3px double var(--mt-olive);
  border-radius: 6px;
  transform: rotate(-8deg);
}
.empty-state p {
  max-width: 48ch;
  margin-inline: auto;
  color: var(--mt-muted);
}
.empty-state .btn {
  margin-top: 0.4rem;
}
.line-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--mt-border);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.line-summary > :first-child {
  min-width: 0;
}
.line-summary > :last-child {
  flex-shrink: 0;
}
.line-summary:has(> strong:first-child) {
  padding-block: 1.1rem;
  font-size: 1.125rem;
}
.workflow-layout > aside.surface {
  padding: 1.8rem;
}
.workflow-layout > aside .line-summary + p {
  line-height: 1.6;
}
[data-checkout-form] .form-check:has([type='radio']) {
  margin-left: 0;
  padding: 1rem 1rem 1rem 2.85rem;
  border: 1px solid var(--mt-border);
  border-radius: 0.7rem;
  background: var(--mt-surface);
}
[data-checkout-form] .form-check:has([type='radio']:checked) {
  border-color: var(--mt-olive);
  background: var(--mt-tint);
  box-shadow: inset 0 0 0 1px var(--mt-olive);
}
[data-checkout-form] .form-check:has([type='radio']) .form-check-label {
  padding: 0;
}
[data-order-receipt] {
  max-width: 850px;
  margin-inline: auto;
}

/* 6. Real API results, bounded catalog tables and the page search. */
.ai-output {
  min-height: 125px;
  padding: 1.3rem;
  overflow-wrap: anywhere;
  border: 1px solid var(--mt-border);
  border-radius: 0.75rem;
  background: var(--mt-cream);
  color: var(--mt-ink);
  line-height: 1.75;
}
.ai-output > :last-child {
  margin-bottom: 0;
}
.ai-output pre {
  max-width: 100%;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--mt-ink);
  font-size: 0.875rem;
  line-height: 1.7;
}
.ai-result-text {
  white-space: pre-wrap;
}
.ai-usage {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--mt-border);
  color: var(--mt-muted);
  font-size: 0.8125rem;
}
.ai-upgrade-link {
  display: inline-block;
  margin-block: 0.8rem;
  font-weight: 600;
}
.ai-retry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0.5rem 0.5rem 0.5rem 0;
  padding: 0.6rem 1rem;
  border: 1px solid var(--mt-border);
  border-radius: 0.5rem;
  background: var(--mt-surface);
  color: var(--mt-clay);
}
.ai-retry-button:hover {
  border-color: var(--mt-clay);
  background: var(--mt-tint);
}
[data-ai-service][aria-busy='true'] .ai-output {
  border-color: var(--mt-olive);
  background: linear-gradient(115deg, var(--mt-tint), var(--mt-cream));
}
.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--mt-ink);
  --bs-table-border-color: var(--mt-border);
  --bs-table-striped-color: var(--mt-ink);
  --bs-table-striped-bg: var(--mt-tint);
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.65;
}
.table-responsive {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-color: var(--mt-border) transparent;
}
.table > :not(caption) > * > * {
  padding: 1.3rem 1.4rem;
}
.table thead {
  background: var(--mt-tint);
}
.table th {
  font-weight: 600;
}
.table tbody > tr:last-child > * {
  border-bottom: 0;
}
.table td {
  vertical-align: top;
}
.table ul {
  margin-bottom: 0;
}
.table li + li {
  margin-top: 0.65rem;
}
.table caption {
  caption-side: top;
  padding-block: 0.85rem;
  background: var(--mt-surface);
  color: var(--mt-muted);
  font-size: 0.875rem;
}
[aria-labelledby='ai-catalog-title'] .table th:first-child {
  width: 34%;
}
[aria-labelledby='ai-catalog-title'] .table td:nth-child(2) {
  width: 36%;
}
.search-row {
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--mt-soft-border);
  border-radius: 0.85rem;
  background: var(--mt-surface);
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}
.search-row + .search-row {
  margin-top: 0.75rem;
}
.search-row:hover,
.search-row:focus-within {
  border-color: var(--mt-border);
  background: var(--mt-tint);
}
.search-row .eyebrow {
  margin-bottom: 0.45rem;
}
.search-row h2 {
  margin-bottom: 0.6rem;
}
.search-row h2 a {
  text-decoration: none;
}
.search-row p:last-child {
  margin: 0;
  color: var(--mt-muted);
}
.list-group {
  --bs-list-group-color: var(--mt-ink);
  --bs-list-group-bg: var(--mt-surface);
  --bs-list-group-border-color: var(--mt-border);
  --bs-list-group-action-color: var(--mt-ink);
  --bs-list-group-action-hover-color: var(--mt-clay);
  --bs-list-group-action-hover-bg: var(--mt-tint);
  --bs-list-group-action-active-color: var(--mt-clay);
  --bs-list-group-action-active-bg: var(--mt-flax);
  --bs-list-group-active-color: var(--mt-on-primary);
  --bs-list-group-active-bg: var(--mt-primary-bg);
  --bs-list-group-active-border-color: var(--mt-primary-bg);
}
.list-group-item {
  padding: 0.95rem 1rem;
  font-size: 0.9375rem;
}

/* 7. Related dialog surfaces, a useful basket drawer and quiet motion. */
.modal {
  --bs-modal-color: var(--mt-ink);
  --bs-modal-bg: var(--mt-surface);
  --bs-modal-border-color: var(--mt-border);
  --bs-modal-border-radius: 1.15rem;
  --bs-modal-inner-border-radius: 1.1rem;
  --bs-modal-header-border-color: var(--mt-border);
  --bs-modal-footer-border-color: var(--mt-border);
  --bs-modal-padding: 1.8rem;
  --bs-modal-width: 560px;
  padding-inline: 1rem;
}
.modal-lg {
  --bs-modal-width: 880px;
}
.modal-content {
  overflow: hidden;
  border: 1px solid var(--mt-border);
  border-radius: 1.15rem;
  background: var(--mt-surface);
  color: var(--mt-ink);
  box-shadow: var(--mt-shadow-dialog);
}
.modal-header {
  align-items: start;
  gap: 1rem;
  padding: 1.55rem 1.8rem;
  border-bottom: 1px solid var(--mt-border);
  background: linear-gradient(110deg, var(--mt-flax), var(--mt-tint-deep));
}
.modal-title {
  font-size: 1.45rem;
}
.modal-header .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.09em;
}
.modal-header .btn-close {
  flex: 0 0 44px;
  margin: -0.4rem -0.6rem -0.4rem auto;
}
.modal-body {
  padding: 1.8rem;
  background: var(--mt-surface);
}
.modal-body > :last-child {
  margin-bottom: 0;
}
.modal-body .two-col {
  align-items: center;
  gap: 1.8rem;
}
.modal-body .two-col > img {
  aspect-ratio: 1;
  border-radius: 0.85rem;
  object-fit: cover;
}
.modal-body .price {
  margin-bottom: 0.8rem;
}
.modal-footer {
  gap: 0.65rem;
  padding: 1.2rem 1.8rem;
  border-top: 1px solid var(--mt-border);
  background: linear-gradient(110deg, var(--mt-tint), var(--mt-tint-deep));
}
.modal-footer > * {
  margin: 0;
}
.modal-footer .muted {
  color: var(--mt-deep-muted);
}
.btn-close {
  box-sizing: border-box;
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 50%;
  background-size: 13px;
  color: var(--mt-ink);
  opacity: 0.8;
  transition:
    opacity 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms var(--mt-ease);
}
.btn-close:hover {
  border-color: var(--mt-border);
  background-color: var(--mt-surface);
  opacity: 1;
  transform: rotate(6deg);
}
.btn-close:focus {
  outline: 2px solid var(--mt-focus);
  outline-offset: 2px;
  box-shadow: none;
  opacity: 1;
}
.btn-close:focus-visible {
  outline-width: 3px;
}
[data-theme='dark'] .btn-close {
  filter: none;
  --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath stroke='%23f3eadd' stroke-width='1.5' d='m3 3 10 10M13 3 3 13'/%3e%3c/svg%3e");
}
.modal-backdrop,
.offcanvas-backdrop {
  background-color: #27261f;
  --bs-backdrop-opacity: 0.55;
}
.modal.fade .modal-dialog {
  transform: translateY(14px) scale(0.985);
  transition: transform 220ms var(--mt-ease);
}
.modal.show .modal-dialog {
  transform: none;
}
.offcanvas {
  --bs-offcanvas-width: 440px;
  --bs-offcanvas-color: var(--mt-ink);
  --bs-offcanvas-bg: var(--mt-surface);
  --bs-offcanvas-border-color: var(--mt-border);
  max-width: 100%;
  box-shadow: var(--mt-shadow-dialog);
}
.offcanvas-header {
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--mt-border);
  background: linear-gradient(110deg, var(--mt-flax), var(--mt-tint));
}
.offcanvas-header h2 {
  margin-bottom: 0;
}
.offcanvas-body {
  padding: 1.5rem;
}
[data-cart-drawer-lines] {
  margin-bottom: 1rem;
}
[data-reveal] {
  animation: mt-arrive 560ms var(--mt-ease) both;
}
@keyframes mt-arrive {
  from {
    opacity: 0.85;
    translate: 0 9px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes mt-panel-in {
  from {
    opacity: 0.65;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (hover: hover) and (pointer: fine) {
  [data-premium-card]:hover {
    transform: translateY(-5px);
    border-color: var(--mt-border);
    box-shadow: var(--mt-shadow-lift);
  }
  .product-card:hover .product-media img,
  .collection-card:hover img {
    transform: scale(1.035);
  }
  .btn:not(:disabled):not(.disabled):hover {
    transform: translateY(-1px);
  }
  .btn-primary:not(:disabled):hover {
    box-shadow:
      inset 0 1px 0 #ffffff1f,
      0 5px 12px #6c3d2424;
  }
}

/* 8. The maker, studio journal, help pages and complete footer. */
.rich-text {
  max-width: 770px;
  color: var(--mt-ink);
  line-height: 1.85;
}
.rich-text h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.85rem;
}
.rich-text p {
  max-width: 68ch;
}
.rich-text li {
  margin-bottom: 0.5rem;
}
.step-list {
  display: grid;
  gap: 1.7rem;
  margin-bottom: 0;
  padding-left: 1.7rem;
}
.step-list li {
  padding-left: 0.5rem;
}
.step-list li::marker {
  color: var(--mt-clay);
  font-size: 1rem;
  font-weight: 700;
}
.step-list h2 {
  margin-top: -0.15rem;
  margin-bottom: 0.65rem;
}
.step-list p {
  margin-bottom: 0;
}
[data-page-family='maker'] .page-intro {
  padding-block: 1rem 1.5rem;
}
[data-page-family='maker'] .two-col > figure img {
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  object-position: 46% 50%;
}
[data-page-family='maker'] .brand-name:not(a .brand-name) {
  margin-top: 1.5rem;
  font-size: 2rem;
  color: var(--mt-clay);
}
[data-page-family='process'] .two-col > figure img {
  aspect-ratio: 1 / 1.03;
  object-fit: cover;
}
[data-page-family='journal-article'] main > article > figure img {
  max-height: 650px;
  aspect-ratio: 2.05;
  object-fit: cover;
  object-position: 50% 55%;
  border-radius: var(--mt-radius);
}
[data-page-family='journal-article'] .rich-text {
  margin-inline: auto;
  padding-top: 2.8rem;
}
[data-page-family='journal-article'] .page-intro {
  max-width: 900px;
}
[data-journal] .two-col {
  gap: 1.7rem;
}
[data-journal-item] > a {
  display: block;
  overflow: hidden;
}
[data-journal-item] img {
  aspect-ratio: 1.65;
  object-fit: cover;
}
[data-journal-item] .card-copy {
  padding: 1.9rem;
}
[data-page-family='sitemap'] .collection-grid {
  align-items: start;
}
[data-page-family='sitemap'] .footer-links li {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--mt-soft-border);
}
[data-page-family='sitemap'] .footer-links li:last-child {
  border-bottom: 0;
}
[data-page-family='error'] .section {
  align-items: center;
}
[data-page-family='error'] .two-col > img {
  max-height: 590px;
  aspect-ratio: 1;
  object-fit: cover;
}
.site-footer {
  margin-top: 4rem;
  padding-block: 3.5rem 1.5rem;
  border-top: 1px solid var(--mt-border);
  background: linear-gradient(120deg, var(--mt-tint), var(--mt-footer-bg));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 3rem;
}
.footer-grid > :first-child {
  padding-right: 0.5rem;
}
.footer-grid .brand-name {
  font-size: 1.9rem;
}
.site-footer h2 {
  margin-block: 0.55rem 1.3rem;
  font-family: Karla, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li {
  margin-block: 0.6rem;
}
.footer-links a {
  display: inline-block;
  padding-block: 0.15rem;
  font-size: 0.9375rem;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.site-footer .footer-links a {
  color: var(--mt-ink);
}
.site-footer .footer-links a:hover {
  color: var(--mt-clay);
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--mt-border);
}
.footer-bottom a {
  color: var(--mt-muted);
  text-decoration: none;
}
.site-footer .muted,
.footer-bottom a {
  color: var(--mt-deep-muted);
}
.footer-bottom a:hover {
  color: var(--mt-clay);
  text-decoration: underline;
}
noscript > .note {
  margin-block: 1.5rem;
}

/* Runtime family hooks: share these classes when rendering catalog lines. */
.cart-line,
.basket-line,
.receipt-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: start;
  gap: 1.2rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--mt-border);
}
.cart-line img,
.basket-line img,
.receipt-line img {
  width: 96px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.65rem;
}
.cart-line h3,
.basket-line h3,
.receipt-line h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.cart-line input[type='number'],
.basket-line input[type='number'] {
  width: 85px;
  min-height: 44px;
}
.cart-line .btn,
.basket-line .btn {
  min-width: 76px;
  min-height: 44px;
}
.cart-line-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
}
.request-card {
  margin-bottom: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--mt-border);
  border-radius: 0.8rem;
  background: var(--mt-surface);
}
.request-card h3 {
  font-size: 1.3rem;
}
.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.offcanvas .cart-line,
.offcanvas .basket-line {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1rem;
}
.offcanvas .cart-line img,
.offcanvas .basket-line img {
  width: 72px;
}
.offcanvas .cart-line > :last-child,
.offcanvas .basket-line > :last-child {
  grid-column: 2;
}

/* 9. Layout changes preserve readable controls rather than shrinking the shop. */
@media (min-width: 992px) {
  .navbar-collapse.collapse {
    display: flex !important;
  }
  .shop-layout > aside {
    position: sticky;
    top: 1.5rem;
  }
  [data-cart-page] .workflow-layout > aside,
  [data-checkout] .workflow-layout > aside {
    position: sticky;
    top: 1.5rem;
  }
}
@media (min-width: 992px) and (max-width: 1279.98px) {
  .site-nav .container-wide {
    gap: 0.7rem 1.5rem;
    padding-block: 1rem 0.6rem;
  }
  .site-nav .navbar-collapse {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    border-top: 1px solid var(--mt-soft-border);
  }
  .nav-menu {
    gap: 2rem;
  }
  .nav-menu a {
    padding-block: 0.75rem;
  }
  .hero-copy {
    left: 1.5rem;
    width: 48%;
    padding: 1.75rem;
  }
  .hero-copy h1 {
    font-size: 2.7rem;
  }
  .hero-copy .btn {
    padding-inline: 0.8rem;
    font-size: 0.875rem;
  }
  .hero-photo {
    min-height: 490px;
  }
  .shop-layout {
    grid-template-columns: 206px minmax(0, 1fr);
    gap: 1.4rem;
  }
  .shop-layout .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .surface.two-col > .surface-pad {
    padding: 1.8rem;
  }
  .workflow-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    gap: 1.5rem;
  }
  [data-product-detail] {
    gap: 2rem;
  }
  .product-card .card-topline {
    flex-direction: column;
    gap: 0;
  }
  .product-card .card-topline h3 {
    max-width: none;
    margin-bottom: 0.35rem;
  }
  .product-card .price {
    margin-bottom: 0.5rem;
  }
  .footer-grid {
    gap: 2rem;
  }
}
@media (max-width: 991.98px) {
  .container-wide {
    width: calc(100% - 3rem);
  }
  .site-nav .container-wide {
    gap: 0.75rem;
    padding-block: 1rem;
  }
  .site-nav .brand {
    flex-shrink: 1;
    margin-right: auto;
  }
  .site-nav .nav-actions {
    margin-left: 0;
  }
  .site-nav .navbar-toggler {
    order: 1;
    margin-left: auto;
  }
  .site-nav .navbar-collapse {
    order: 3;
    flex-basis: 100%;
  }
  .nav-menu {
    display: grid;
    gap: 0.25rem;
    padding-top: 0.75rem;
  }
  .nav-menu a {
    min-height: 47px;
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
  }
  .nav-menu a::after {
    display: none;
  }
  .nav-menu a:hover,
  .nav-menu a[aria-current='page'] {
    background: var(--mt-tint);
  }
  .nav-actions .action-label {
    display: none;
  }
  .nav-actions .icon-btn {
    padding: 0.55rem;
  }
  .brand small {
    max-width: 230px;
  }
  .hero-shop {
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }
  .hero-photo {
    min-height: 0;
    aspect-ratio: 1.85;
    object-position: 60% 50%;
  }
  .hero-copy {
    position: relative;
    top: auto;
    left: auto;
    z-index: 1;
    width: calc(100% - 3rem);
    max-width: 580px;
    margin: -3rem auto 0;
    padding: 1.8rem;
    transform: none;
  }
  .hero-copy h1 {
    font-size: 2.85rem;
  }
  .hero-copy .lead {
    max-width: 43ch;
  }
  .trust-strip {
    gap: 0.75rem;
    font-size: 0.8125rem;
  }
  .trust-strip span {
    gap: 0.5rem;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.3rem;
  }
  .product-card .card-copy {
    padding: 1.3rem;
  }
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .collection-card img {
    aspect-ratio: 1 / 1.15;
  }
  .two-col {
    gap: 1.8rem;
  }
  .surface.two-col > .surface-pad {
    padding: 1.5rem;
  }
  .surface.two-col h2 {
    font-size: 1.9rem;
  }
  .workflow-layout {
    grid-template-columns: 1fr;
    gap: 1.7rem;
  }
  .workflow-layout > aside:not(.surface) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
    align-items: start;
  }
  .workflow-layout > aside:not(.surface) > .mt-4 {
    margin-top: 0 !important;
  }
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .shop-layout > aside {
    padding: 1.4rem;
  }
  .shop-layout .filter-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shop-layout > aside > .small {
    margin-bottom: 0.5rem;
  }
  .shop-layout .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.3rem;
  }
  .shop-layout .product-card .card-copy {
    padding: 1.3rem;
  }
  [data-product-detail] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
  }
  [data-product-detail] h1 {
    font-size: 2.25rem;
  }
  [data-product-detail] .quantity-row {
    flex-wrap: wrap;
  }
  [data-product-detail] .quantity-row > .btn {
    flex-basis: 100%;
  }
  [data-page-family='product'] main > .section {
    display: block;
  }
  [data-page-family='product'] main > .section .section-heading {
    flex-direction: row;
    align-items: end;
    padding-top: 0;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 3rem;
  }
  .site-footer {
    margin-top: 3rem;
  }
  [data-page-family='collection'] .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .container-wide {
    width: calc(100% - 2.5rem);
  }
  .section {
    padding-block: 2.7rem;
  }
  .two-col,
  [data-product-detail] {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .page-intro {
    padding-block: 2.7rem 2.2rem;
  }
  .page-intro h1 {
    max-width: 19ch;
  }
  .hero-copy {
    max-width: 510px;
  }
  .hero-copy h1 {
    font-size: 2.65rem;
  }
  .trust-strip {
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 1.7rem;
    row-gap: 0.6rem;
  }
  .section-heading {
    align-items: start;
    margin-bottom: 1.4rem;
  }
  .surface.two-col {
    gap: 0;
  }
  .surface.two-col > .surface-pad {
    padding: 1.8rem;
  }
  .surface.two-col > figure img {
    min-height: 0;
    aspect-ratio: 1.5;
  }
  .product-card .card-topline {
    flex-direction: column;
    gap: 0;
  }
  .product-card .card-topline h3 {
    max-width: none;
    margin-bottom: 0.3rem;
  }
  .product-card .price {
    margin-bottom: 0.6rem;
  }
  .product-gallery {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 1rem;
    align-items: start;
  }
  .product-gallery figure + figure {
    margin-top: 0;
  }
  .product-gallery figure:first-child img,
  .product-gallery figure + figure img {
    aspect-ratio: 1;
    object-fit: cover;
  }
  .product-gallery figcaption {
    font-size: 0.75rem;
  }
  [data-product-detail] h1 {
    max-width: none;
    font-size: 2.5rem;
  }
  [data-product-detail] .quantity-row {
    flex-wrap: nowrap;
  }
  [data-product-detail] .quantity-row > .btn {
    flex-basis: auto;
  }
  [data-product-detail] .tab-content {
    min-height: 0;
  }
  .table > :not(caption) > * > * {
    padding: 1rem;
  }
  [aria-labelledby='ai-catalog-title'] .table {
    min-width: 720px;
  }
  .modal-body .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
  .modal-body .small {
    font-size: 0.8125rem;
  }
  [data-page-family='journal-article'] main > article > figure img {
    aspect-ratio: 1.5;
  }
  .workflow-layout > aside:not(.surface) {
    grid-template-columns: 1fr;
  }
  [data-page-family='maker'] .two-col > figure img,
  [data-page-family='process'] .two-col > figure img {
    max-height: 470px;
    aspect-ratio: 1.4;
  }
  [data-page-family='collection'] .page-intro {
    padding-top: 0;
  }
}
@media (max-width: 575.98px) {
  .container-wide {
    width: calc(100% - 2rem);
  }
  h1 {
    font-size: 2.25rem;
  }
  h2 {
    font-size: 1.85rem;
  }
  .lead {
    font-size: 1.0625rem;
  }
  .announcement {
    padding-block: 0.4rem;
    font-size: 0.75rem;
    line-height: 1.6;
  }
  .announcement span {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 0.75rem;
  }
  .site-nav .container-wide {
    column-gap: 0.6rem;
    row-gap: 0.7rem;
    padding-block: 0.8rem 0.55rem;
  }
  .site-nav .brand {
    max-width: calc(100% - 56px);
    margin-right: 0;
    gap: 0.6rem;
  }
  .brand > span:last-child {
    min-width: 0;
  }
  .brand-mark {
    flex: 0 0 31px;
    width: 31px;
    height: 38px;
  }
  .brand-mark svg {
    width: 20px;
  }
  .brand-name {
    font-size: 1.5rem;
  }
  .brand small {
    max-width: 210px;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
  }
  .site-nav .nav-actions {
    order: 2;
    flex-basis: 100%;
    justify-content: space-between;
    gap: 0.25rem;
    padding-top: 0.45rem;
    border-top: 1px solid var(--mt-soft-border);
  }
  .nav-actions .action-label {
    display: inline;
    font-size: 0.8125rem;
  }
  .nav-actions .icon-btn {
    padding: 0.5rem 0.65rem;
  }
  .site-nav .navbar-toggler {
    min-width: 44px;
    margin-left: auto;
  }
  .nav-menu {
    padding-top: 0.25rem;
  }
  .hero-shop {
    padding-block: 1rem 1.25rem;
  }
  .hero-visual {
    border-radius: 16px;
  }
  .hero-photo {
    aspect-ratio: 1.2;
    object-position: 65% 50%;
  }
  .hero-copy {
    width: calc(100% - 1rem);
    margin-top: -1.7rem;
    padding: 1.5rem 1.25rem;
    border-radius: 12px;
  }
  .hero-copy h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.05rem, 9.1vw, 2.6rem);
  }
  .hero-copy .lead {
    margin-bottom: 1.25rem;
    font-size: 1rem;
  }
  .hero-copy .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.07em;
  }
  .hero-copy .btn {
    flex: 1 1 auto;
    padding-inline: 0.85rem;
    font-size: 0.875rem;
  }
  .hero-copy .small {
    font-size: 0.75rem;
  }
  .trust-strip {
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem 1.1rem;
  }
  .trust-strip span {
    font-size: 0.8125rem;
  }
  .section {
    padding-block: 2.3rem;
  }
  .section-tight {
    padding-block: 1.4rem;
  }
  .page-intro {
    padding-block: 2.3rem 2rem;
  }
  .page-intro h1 {
    font-size: 2.3rem;
  }
  .section-heading {
    gap: 0.7rem;
  }
  .section-heading > a {
    padding-top: 0;
  }
  .product-grid,
  .shop-layout .product-grid,
  [data-page-family='collection'] .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .product-card {
    border-radius: 12px;
  }
  .product-media {
    margin: 0.35rem 0.35rem 0;
    border-radius: 8px;
  }
  .product-card .card-copy,
  .shop-layout .product-card .card-copy {
    padding: 0.8rem;
  }
  .product-card .card-topline h3,
  [data-page-family='collection'] .product-card .card-topline h3 {
    font-size: 1.0625rem;
    line-height: 1.4;
  }
  .product-card .eyebrow {
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
  }
  .product-card .small {
    font-size: 0.75rem;
  }
  .product-card .price {
    font-size: 1rem;
  }
  .product-actions {
    gap: 0.4rem;
  }
  .product-actions .btn {
    flex-basis: 100%;
    min-width: 0;
    padding: 0.6rem 0.3rem;
    font-size: 0.8125rem;
  }
  .product-actions .btn svg {
    width: 16px;
    height: 16px;
  }
  .collection-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .collection-card img {
    aspect-ratio: 1 / 1.1;
  }
  .collection-card .card-copy {
    padding: 1.25rem;
  }
  .collection-card h3 {
    font-size: 1.4rem;
  }
  .collection-card p {
    font-size: 0.875rem;
  }
  .card-copy,
  .surface-pad {
    padding: 1.4rem;
  }
  .surface.two-col > .surface-pad {
    padding: 1.5rem;
  }
  .surface.two-col h2 {
    font-size: 1.8rem;
  }
  [data-page='home'] > main > .section.two-col .surface {
    padding: 1.5rem;
  }
  [data-page='home'] > main > .section.two-col .surface h2 {
    font-size: 1.8rem;
  }
  .shop-layout .filter-stack {
    grid-template-columns: 1fr;
  }
  .shop-layout > aside {
    padding: 1.25rem;
  }
  .toolbar {
    align-items: stretch;
    gap: 1rem;
  }
  .toolbar > div {
    min-width: 100%;
  }
  .shop-layout .toolbar {
    gap: 0.5rem;
  }
  .shop-layout .toolbar > div {
    flex-basis: 100%;
  }
  .shop-layout .toolbar > p {
    margin-bottom: 0;
  }
  .breadcrumb {
    padding-top: 1rem;
    font-size: 0.8125rem;
  }
  [data-product-detail] {
    gap: 1.7rem;
  }
  [data-product-detail] h1 {
    font-size: 2.3rem;
  }
  .product-gallery {
    grid-template-columns: 1.35fr 1fr;
    gap: 0.7rem;
  }
  .product-gallery img {
    border-radius: 0.65rem;
  }
  .product-gallery figcaption {
    font-size: 0.75rem;
  }
  .quantity-row {
    gap: 0.7rem;
  }
  .quantity-row > div {
    flex-basis: 80px;
  }
  .quantity-row .btn {
    padding-inline: 0.6rem;
    font-size: 0.875rem;
  }
  .product-buy > .d-flex > a {
    font-size: 0.9375rem;
  }
  .nav-tabs {
    gap: 0;
  }
  .nav-tabs .nav-link {
    padding-inline: 0.6rem;
    font-size: 0.875rem;
  }
  form.surface-pad {
    padding: 1.3rem;
  }
  form .two-col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .workflow-layout > aside.surface {
    padding: 1.4rem;
  }
  .workflow-layout {
    gap: 1.5rem;
  }
  .empty-state {
    padding: 2.2rem 1.25rem;
  }
  .empty-state h2 {
    font-size: 1.55rem;
  }
  .line-summary {
    gap: 1rem;
    font-size: 0.9375rem;
  }
  .line-summary:has(> strong:first-child) {
    font-size: 1.0625rem;
  }
  .ai-output {
    padding: 1rem;
  }
  .modal {
    --bs-modal-margin: 0.75rem;
    padding-inline: 0;
  }
  .modal-dialog {
    margin: 0.75rem;
  }
  .modal-header {
    padding: 1.25rem;
  }
  .modal-title {
    font-size: 1.25rem;
  }
  .modal-body {
    padding: 1.25rem;
  }
  .modal-body .two-col {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .modal-body .two-col > img {
    max-height: 270px;
  }
  .modal-body .small {
    font-size: 0.875rem;
  }
  .modal-footer {
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
  }
  .modal-footer .btn {
    flex: 1 1 120px;
    min-width: 0;
    padding-inline: 0.75rem;
    font-size: 0.875rem;
  }
  .modal-footer > .me-auto {
    flex-basis: 100%;
  }
  .offcanvas-header,
  .offcanvas-body {
    padding: 1.25rem;
  }
  .accordion-button {
    padding: 1.1rem 1.2rem;
  }
  .accordion-body {
    padding: 1.2rem;
  }
  [data-journal-item] .card-copy {
    padding: 1.4rem;
  }
  [data-page-family='journal-article'] .rich-text {
    padding-top: 2rem;
  }
  .rich-text h2 {
    margin-top: 2rem;
    font-size: 1.6rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.2rem;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
  .footer-grid > :first-child > .small {
    max-width: 48ch;
  }
  .site-footer {
    margin-top: 2.5rem;
    padding-block: 2.5rem 1.2rem;
  }
  .site-footer h2 {
    font-size: 0.875rem;
  }
  .footer-links a {
    padding-block: 0.3rem;
    font-size: 0.875rem;
  }
  .footer-bottom {
    margin-top: 2rem;
    padding-top: 1.2rem;
  }
  .footer-bottom nav {
    gap: 0.5rem 1rem !important;
  }
  .footer-bottom a {
    display: inline-block;
    padding-block: 0.3rem;
  }
  .cart-line,
  .basket-line,
  .receipt-line {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 1rem;
  }
  .cart-line img,
  .basket-line img,
  .receipt-line img {
    width: 74px;
  }
  .cart-line > :last-child,
  .basket-line > :last-child,
  .receipt-line > :last-child {
    grid-column: 2;
  }
  .cart-line h3,
  .basket-line h3,
  .receipt-line h3 {
    font-size: 1.0625rem;
  }
  .request-card {
    padding: 1.25rem;
  }
}

/* All content starts visible. Motion is finite and entirely optional. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    translate: none;
    animation: none;
  }
  [data-premium-card]:hover,
  [data-premium-card]:hover img,
  .btn:hover,
  .btn-close:hover {
    transform: none;
  }
}
@media (forced-colors: active) {
  .btn,
  .icon-btn,
  .badge-soft,
  .nav-tabs .nav-link {
    border: 1px solid ButtonText;
  }
  .nav-link.active,
  .btn[aria-pressed='true'] {
    outline: 2px solid Highlight;
  }
  :focus-visible {
    outline-color: Highlight;
  }
}
@media print {
  .announcement,
  .site-nav,
  .site-footer,
  .modal,
  .offcanvas,
  .product-actions,
  [data-commerce-loading] {
    display: none !important;
  }
  body {
    min-width: 0;
    background: white;
    color: black;
  }
  .container-wide {
    width: 100%;
  }
  .surface,
  .product-card {
    box-shadow: none;
    break-inside: avoid;
  }
  .page-intro {
    padding-block: 1rem;
  }
}
