*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

/* Lenis 1.3.26 recommended base rules (MIT, darkroom.engineering). */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  margin-block: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: var(--leading-tight);
  text-wrap: balance;
}

h1,
.h1 {
  font-size: var(--text-h1);
}

h2,
.h2 {
  font-size: var(--text-h2);
}

h3,
.h3 {
  font-size: var(--text-h3);
}

h4,
.h4 {
  font-size: var(--text-h4);
}

h5,
.h5 {
  font-size: var(--text-h5);
}

h6,
.h6 {
  font-size: var(--text-h6);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-accent-soft);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

::selection {
  color: var(--color-bg);
  background: var(--color-accent-soft);
}

button,
input,
select,
textarea {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: .75rem;
  left: .75rem;
  width: auto;
  height: auto;
  padding: .8rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
    border-radius: var(--radius-control);
  background: var(--color-accent);
    color: var(--palette-3);
  font-weight: 700;
}

.container-main {
  width: min(calc(100% - 2 * var(--gutter)), var(--container-main));
  margin-inline: auto;
}

.container-wide {
  width: min(calc(100% - 2 * var(--gutter)), var(--container-wide));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-space);
  color: var(--color-text);
  background: var(--color-bg);
}

.site-content {
  padding-block: var(--section-space);
}

.entry__title {
  margin-block-start: 0;
}

/* Native catalogue/product notices follow their local ivory or graphite surface. */
:is(.dg-catalog, .dg-product-page) :is(
  .woocommerce-info,
  .woocommerce-message,
  .woocommerce-error
) {
  position: relative;
  padding: 1rem 1.25rem;
  margin: 0 0 var(--space-md);
  border: 1px solid var(--color-border);
  border-inline-start: 3px solid var(--color-accent);
  border-radius: var(--radius-control);
  color: var(--color-body);
  background: var(--color-surface);
  box-shadow: none;
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  list-style: none;
}

:is(.dg-catalog, .dg-product-page) :is(
  .woocommerce-info,
  .woocommerce-message,
  .woocommerce-error
)::before {
  content: none;
}

:is(.dg-catalog, .dg-product-page) .woocommerce-error {
  border-inline-start-color: #b85c54;
}

:is(.dg-catalog, .dg-product-page) :is(
  .woocommerce-info,
  .woocommerce-message,
  .woocommerce-error
) a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .2em;
}

:is(.dg-catalog, .dg-product-page) :is(
  .woocommerce-info,
  .woocommerce-message
) .button {
  padding: .6rem .85rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  color: var(--color-text);
  background: transparent;
  font-size: var(--text-sm);
  line-height: var(--leading-ui);
  text-decoration: none;
}

:is(.dg-catalog, .dg-product-page) :is(
  .woocommerce-info,
  .woocommerce-message
) .button:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-accent), transparent 92%);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
