:root {
  --ds-color-bg: #F1EEE8;
  --ds-color-surface: #E8E3DB;
  --ds-color-surface-2: #F1EEE8;
  --ds-color-border: #CFC8BE;
  --ds-color-primary: #8C4B3E;
  --ds-color-secondary: #202725;
  --ds-color-accent: #B58A5A;
  --ds-color-text: #1D1D1B;
  --ds-color-text-muted: color-mix(in srgb, #1D1D1B 62%, #F1EEE8);
  --ds-color-text-inverse: #FFFDFC;
  --ds-font-heading: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  --ds-font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --ds-font-size: 16px;
  --ds-line: 1.65;
  --ds-space-section: 144px;
  --ds-space-gutter: 32px;
  --ds-space-gap: 32px;
  --ds-radius-sm: 0px;
  --ds-radius-md: 0px;
  --ds-radius-lg: 0px;
  --nc-motion-distance: 2.5rem;
  --nc-motion-duration: 0.9s;
  --nc-motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nc-motion-page: 0.4s;
  --nc-motion-split-step: 0.055s;
  --nc-motion-stagger: 0.09s;
  --nc-vt-out: nc-vt-rise-out;
  --nc-vt-in: nc-vt-rise-in;
  --nc-vt-duration: 0.55s;
}
html {
  font-size: var(--ds-font-size);
}
body {
  background: var(--ds-color-bg);
  color: var(--ds-color-text);
  font-family: var(--ds-font-body);
  line-height: var(--ds-line);
}
h1, h2, h3, h4, .font-heading {
  font-family: var(--ds-font-heading);
}
[data-nc-edge] { color: var(--ds-color-bg) !important; }
[data-nc-block]:has(+ :is([class~="bg-canvas"],[class^="bg-canvas/"],[class*=" bg-canvas/"])) [data-nc-edge]:not([data-nc-edge-top]), :is([class~="bg-canvas"],[class^="bg-canvas/"],[class*=" bg-canvas/"]) + [data-nc-block] [data-nc-edge-top] { color: #F1EEE8 !important; }
[data-nc-block]:has(+ :is([class~="bg-ink"],[class^="bg-ink/"],[class*=" bg-ink/"])) [data-nc-edge]:not([data-nc-edge-top]), :is([class~="bg-ink"],[class^="bg-ink/"],[class*=" bg-ink/"]) + [data-nc-block] [data-nc-edge-top] { color: #1D1D1B !important; }
[data-nc-block]:has(+ :is([class~="bg-muted"],[class^="bg-muted/"],[class*=" bg-muted/"])) [data-nc-edge]:not([data-nc-edge-top]), :is([class~="bg-muted"],[class^="bg-muted/"],[class*=" bg-muted/"]) + [data-nc-block] [data-nc-edge-top] { color: #E8E3DB !important; }
[data-nc-block]:has(+ :is([class~="bg-brand"],[class^="bg-brand/"],[class*=" bg-brand/"])) [data-nc-edge]:not([data-nc-edge-top]), :is([class~="bg-brand"],[class^="bg-brand/"],[class*=" bg-brand/"]) + [data-nc-block] [data-nc-edge-top] { color: #8C4B3E !important; }
[data-nc-block]:has(+ :is([class~="bg-secondary"],[class^="bg-secondary/"],[class*=" bg-secondary/"])) [data-nc-edge]:not([data-nc-edge-top]), :is([class~="bg-secondary"],[class^="bg-secondary/"],[class*=" bg-secondary/"]) + [data-nc-block] [data-nc-edge-top] { color: #202725 !important; }
[data-nc-block]:has(+ :is([class~="bg-accent"],[class^="bg-accent/"],[class*=" bg-accent/"])) [data-nc-edge]:not([data-nc-edge-top]), :is([class~="bg-accent"],[class^="bg-accent/"],[class*=" bg-accent/"]) + [data-nc-block] [data-nc-edge-top] { color: #B58A5A !important; }
[data-nc-block]:has(+ :is([class~="bg-line"],[class^="bg-line/"],[class*=" bg-line/"])) [data-nc-edge]:not([data-nc-edge-top]), :is([class~="bg-line"],[class^="bg-line/"],[class*=" bg-line/"]) + [data-nc-block] [data-nc-edge-top] { color: #CFC8BE !important; }
[data-nc-block]:has(+ :is([class~="bg-inverse"],[class^="bg-inverse/"],[class*=" bg-inverse/"])) [data-nc-edge]:not([data-nc-edge-top]), :is([class~="bg-inverse"],[class^="bg-inverse/"],[class*=" bg-inverse/"]) + [data-nc-block] [data-nc-edge-top] { color: #FFFDFC !important; }
[data-nc-block]:is([class~="bg-canvas"],[class^="bg-canvas/"],[class*=" bg-canvas/"]):has(+ :is([class~="bg-canvas"],[class^="bg-canvas/"],[class*=" bg-canvas/"])) [data-nc-edge]:not([data-nc-edge-top]), :is([class~="bg-canvas"],[class^="bg-canvas/"],[class*=" bg-canvas/"]) + [data-nc-block]:is([class~="bg-canvas"],[class^="bg-canvas/"],[class*=" bg-canvas/"]) [data-nc-edge-top] { display: none !important; }
[data-nc-block]:is([class~="bg-ink"],[class^="bg-ink/"],[class*=" bg-ink/"]):has(+ :is([class~="bg-ink"],[class^="bg-ink/"],[class*=" bg-ink/"])) [data-nc-edge]:not([data-nc-edge-top]), :is([class~="bg-ink"],[class^="bg-ink/"],[class*=" bg-ink/"]) + [data-nc-block]:is([class~="bg-ink"],[class^="bg-ink/"],[class*=" bg-ink/"]) [data-nc-edge-top] { display: none !important; }
[data-nc-block]:is([class~="bg-muted"],[class^="bg-muted/"],[class*=" bg-muted/"]):has(+ :is([class~="bg-muted"],[class^="bg-muted/"],[class*=" bg-muted/"])) [data-nc-edge]:not([data-nc-edge-top]), :is([class~="bg-muted"],[class^="bg-muted/"],[class*=" bg-muted/"]) + [data-nc-block]:is([class~="bg-muted"],[class^="bg-muted/"],[class*=" bg-muted/"]) [data-nc-edge-top] { display: none !important; }
[data-nc-block]:is([class~="bg-brand"],[class^="bg-brand/"],[class*=" bg-brand/"]):has(+ :is([class~="bg-brand"],[class^="bg-brand/"],[class*=" bg-brand/"])) [data-nc-edge]:not([data-nc-edge-top]), :is([class~="bg-brand"],[class^="bg-brand/"],[class*=" bg-brand/"]) + [data-nc-block]:is([class~="bg-brand"],[class^="bg-brand/"],[class*=" bg-brand/"]) [data-nc-edge-top] { display: none !important; }
[data-nc-block]:is([class~="bg-secondary"],[class^="bg-secondary/"],[class*=" bg-secondary/"]):has(+ :is([class~="bg-secondary"],[class^="bg-secondary/"],[class*=" bg-secondary/"])) [data-nc-edge]:not([data-nc-edge-top]), :is([class~="bg-secondary"],[class^="bg-secondary/"],[class*=" bg-secondary/"]) + [data-nc-block]:is([class~="bg-secondary"],[class^="bg-secondary/"],[class*=" bg-secondary/"]) [data-nc-edge-top] { display: none !important; }
[data-nc-block]:is([class~="bg-accent"],[class^="bg-accent/"],[class*=" bg-accent/"]):has(+ :is([class~="bg-accent"],[class^="bg-accent/"],[class*=" bg-accent/"])) [data-nc-edge]:not([data-nc-edge-top]), :is([class~="bg-accent"],[class^="bg-accent/"],[class*=" bg-accent/"]) + [data-nc-block]:is([class~="bg-accent"],[class^="bg-accent/"],[class*=" bg-accent/"]) [data-nc-edge-top] { display: none !important; }
[data-nc-block]:is([class~="bg-line"],[class^="bg-line/"],[class*=" bg-line/"]):has(+ :is([class~="bg-line"],[class^="bg-line/"],[class*=" bg-line/"])) [data-nc-edge]:not([data-nc-edge-top]), :is([class~="bg-line"],[class^="bg-line/"],[class*=" bg-line/"]) + [data-nc-block]:is([class~="bg-line"],[class^="bg-line/"],[class*=" bg-line/"]) [data-nc-edge-top] { display: none !important; }
[data-nc-block]:is([class~="bg-inverse"],[class^="bg-inverse/"],[class*=" bg-inverse/"]):has(+ :is([class~="bg-inverse"],[class^="bg-inverse/"],[class*=" bg-inverse/"])) [data-nc-edge]:not([data-nc-edge-top]), :is([class~="bg-inverse"],[class^="bg-inverse/"],[class*=" bg-inverse/"]) + [data-nc-block]:is([class~="bg-inverse"],[class^="bg-inverse/"],[class*=" bg-inverse/"]) [data-nc-edge-top] { display: none !important; }
[data-nc-block]:has([data-nc-edge]:not([data-nc-edge-top])) + [data-nc-block] [data-nc-edge-top] { display: none !important; }
[data-nc-block]:has(+ [data-nc-block] > img.absolute, + [data-nc-block] > .absolute.inset-0 img) [data-nc-edge]:not([data-nc-edge-top]), [data-nc-block]:has(> img.absolute, > .absolute.inset-0 img) + [data-nc-block] [data-nc-edge-top] { display: none !important; }
[data-nc-print] { position: relative; }
[data-nc-print] :is(img, video) { scale: none !important; }
[data-nc-print="tape"] { overflow: visible !important; }
[data-nc-print="tape"]::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: clamp(4.5rem, 30%, 8rem);
  height: 1.6rem;
  transform: translate(-50%, -55%) rotate(-3deg);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.28), transparent 35%, rgb(255 255 255 / 0.18) 70%, transparent),
    color-mix(in srgb, var(--ds-color-surface) 62%, transparent);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
  clip-path: polygon(2% 0, 98% 0, 100% 22%, 97% 45%, 100% 68%, 98% 100%, 2% 100%, 0 76%, 3% 52%, 0 30%);
  pointer-events: none;
}
[data-nc-print="polaroid"] {
  box-sizing: border-box;
  padding: 0.75rem 0.75rem 2.75rem;
  background: color-mix(in srgb, var(--ds-color-bg) 40%, #fff);
  box-shadow: 0 18px 40px -24px rgb(0 0 0 / 0.35);
}

/* netcraft: animation hardening — visible by default; hide only after JS enables motion */
:where(html) {
  --nc-motion-distance: 2.5rem;
  --nc-motion-duration: 0.9s;
  --nc-motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nc-motion-page: 0.4s;
  --nc-motion-split-step: 0.055s;
  --nc-motion-stagger: 0.09s;
  --nc-vt-out: nc-vt-fade-out;
  --nc-vt-in: nc-vt-fade-in;
  --nc-vt-duration: 0.55s;
}

/* netcraft: cross-page transitions. Header and footer stay put; only the main slot moves. */
@view-transition { navigation: auto; }
header[data-nc-block] { view-transition-name: nc-site-header; }
footer[data-nc-block] { view-transition-name: nc-site-footer; }
[data-nc-content] { view-transition-name: nc-page; }

::view-transition-group(root),
::view-transition-group(nc-page),
::view-transition-group(nc-site-header),
::view-transition-group(nc-site-footer) {
  animation: none;
}
::view-transition-group(nc-page) { overflow: clip; }
::view-transition-old(nc-site-header),
::view-transition-new(nc-site-header),
::view-transition-old(nc-site-footer),
::view-transition-new(nc-site-footer) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root),
::view-transition-new(root),
::view-transition-old(nc-page),
::view-transition-new(nc-page) {
  animation-duration: var(--nc-vt-duration);
  animation-timing-function: var(--nc-motion-ease);
  animation-fill-mode: both;
  mix-blend-mode: normal;
}
::view-transition-old(root) { animation-name: nc-vt-fade-out; }
::view-transition-new(root) { animation-name: nc-vt-fade-in; }
::view-transition-old(nc-page) { animation-name: var(--nc-vt-out, nc-vt-fade-out); }
::view-transition-new(nc-page) { animation-name: var(--nc-vt-in, nc-vt-fade-in); }

@keyframes nc-vt-fade-out { to { opacity: 0; } }
@keyframes nc-vt-fade-in { from { opacity: 0; } }
@keyframes nc-vt-slide-out { to { opacity: 0; translate: -1.25rem 0; } }
@keyframes nc-vt-slide-in { from { opacity: 0; translate: 1.25rem 0; } }
@keyframes nc-vt-rise-out { to { opacity: 0; translate: 0 -0.75rem; } }
@keyframes nc-vt-rise-in { from { opacity: 0; translate: 0 1rem; } }

@keyframes nc-vt-curtain-out { to { clip-path: inset(0 0 100% 0); } }
@keyframes nc-vt-curtain-in { from { clip-path: inset(100% 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* netcraft: static photo placeholders until generated assets land */
.nc-img-pending {
  background-color: #e6e1d8;
  background-size: cover;
  object-fit: cover;
}
img.nc-img-pending:not([data-nc-asset='vector']) {
  min-height: 12rem;
  animation: nc-img-shimmer 1.6s ease-in-out infinite;
}
img.nc-img-pending[data-nc-asset='vector'] {
  background-color: transparent;
  object-fit: contain;
}
@keyframes nc-img-shimmer {
  0%, 100% { filter: saturate(0.85) brightness(0.98); }
  50% { filter: saturate(0.7) brightness(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  img.nc-img-pending { animation: none; }
}

/* netcraft: gradient text fallback when background-clip:text is unsupported */
.ds-heading-gradient {
  color: var(--ds-color-secondary, var(--ds-color-primary));
  background-image: none;
  background-color: transparent;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .ds-heading-gradient {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* netcraft: overflow + wrapping — generated pages must not clip or spill the viewport */
html, body {
  max-width: 100%;
  overflow-x: clip;
}

img, video, canvas, svg, iframe {
  max-width: 100%;
}

/* netcraft: in-page anchors land below a sticky header, not under it */
[data-nc-block][id], [data-nc-block] [id] {
  scroll-margin-top: var(--nc-anchor-offset, 5rem);
}

/* Content images keep their intrinsic ratio. Framed photos are excluded so they can fill the box,
   and icons and logos keep the fixed size their classes give them. */
img:not(.absolute):not(.fixed):not([class^="h-"]):not([class*=" h-"]):not([class*=":h-"]):not([class*="size-"]):not([class*="aspect-"]):not([data-nc-asset="vector"]):not([data-nc-logo]),
video:not(.absolute):not(.fixed) {
  height: auto;
}

/*
  The generated file is square (or the placeholder is 16:9). The frame is often taller.
  Without this, height:auto shrinks the img to the file and the card background shows underneath.
*/
img.h-full:not(.absolute):not(.fixed) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img[class*="aspect-"]:not(.absolute):not(.fixed) {
  width: 100%;
  height: auto;
  object-fit: cover;
}

[data-nc-block],
.nc-block,
.ds-container,
.ds-split,
.ds-cluster,
.ds-grid-2,
.ds-grid-3,
.ds-grid-4 {
  min-width: 0;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6, p, li, a, button, span, label {
  overflow-wrap: break-word;
}

header[data-nc-block],
footer[data-nc-block] {
  max-width: 100%;
}

/* A long brand name must give way so the header CTA stays inside the viewport. */
header[data-nc-block] > div {
  min-width: 0;
}

header[data-nc-block] a:has([data-nc-brand]) {
  flex-shrink: 1;
  min-width: 0;
}

header[data-nc-block] [data-nc-brand] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* A single public language leaves the switcher unfilled. display utilities must not override hidden, and an empty menu is not a control. */
[data-nc-locale-switcher][hidden],
[data-nc-locale-switcher]:not(:has([data-nc-locale-menu] a)) {
  display: none !important;
}

/* The open menu must paint above the next section. A static header traps z-index, and overflow on a bar clips the second language. */
:is(header, footer):has([data-nc-locale-switcher]) {
  position: relative;
  z-index: 40 !important;
  overflow: visible !important;
}

:is(header, footer) :has([data-nc-locale-switcher]) {
  overflow: visible !important;
}

:is(header, footer):is(.sticky, [class*=":sticky"]):has([data-nc-locale-switcher]) {
  position: sticky;
}

:is(header, footer):is(.fixed, [class*=":fixed"]):has([data-nc-locale-switcher]) {
  position: fixed;
}

/* netcraft: one menu glyph at a time. Generated chrome often leaves the hamburger and the close mark side by side. */
header :is(button, [role="button"]):has(svg[data-nc-icon="menu"]):has(svg[data-nc-icon="x"]) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
}
/* The glyph rule above beats Tailwind md:hidden, so a mobile-only control was stuck open on desktop and its panel stayed hidden. */
@media (min-width: 768px) {
  header :is(button, [role="button"])[class~="md:hidden"]:has(svg[data-nc-icon="menu"]) {
    display: none !important;
  }
  header:has(:is(button, [role="button"]):not([class~="md:hidden"]):has(svg[data-nc-icon="menu"])) [x-show*="navOpen"]:not([data-nc-icon]):not([style*="display: none"]) {
    display: block !important;
  }
}
header :is(button, [role="button"]):has(svg[data-nc-icon="menu"]):has(svg[data-nc-icon="x"]) svg[data-nc-icon="menu"],
header :is(button, [role="button"]):has(svg[data-nc-icon="menu"]):has(svg[data-nc-icon="x"]) svg[data-nc-icon="x"] {
  position: absolute;
  inset: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin: auto;
}
header :is(button, [role="button"]):has(svg[data-nc-icon="menu"]):has(svg[data-nc-icon="x"]) svg[data-nc-icon="x"] {
  display: none !important;
}
header:has([x-show*="navOpen"]:not([data-nc-icon]):not([x-cloak]):not([hidden]):not([style*="display: none"])) :is(button, [role="button"]):has(svg[data-nc-icon="menu"]):has(svg[data-nc-icon="x"]) svg[data-nc-icon="menu"],
header :is(button, [role="button"])[aria-expanded="true"]:has(svg[data-nc-icon="menu"]):has(svg[data-nc-icon="x"]) svg[data-nc-icon="menu"] {
  display: none !important;
}
header:has([x-show*="navOpen"]:not([data-nc-icon]):not([x-cloak]):not([hidden]):not([style*="display: none"])) :is(button, [role="button"]):has(svg[data-nc-icon="menu"]):has(svg[data-nc-icon="x"]) svg[data-nc-icon="x"],
header :is(button, [role="button"])[aria-expanded="true"]:has(svg[data-nc-icon="menu"]):has(svg[data-nc-icon="x"]) svg[data-nc-icon="x"] {
  display: block !important;
}
[data-nc-shape="organic"] {
  border-radius: 2.2em 1.5em 2.4em 1.3em / 1.7em 2.3em 1.4em 2em !important;
  clip-path: none !important;
}
