/* ==========================================================================
 * IntaSkin Toolkit — base: tokens, low-specificity resets, type, buttons,
 * utilities, toast.
 *
 * The brand's own mark sets the tone: a heavy upright "inta" against a
 * hairline oblique "skin". Light, large Bricolage Grotesque headlines,
 * Instrument Sans for reading, fine line work, a bare skin-toned ground.
 *
 * Every widget root is `<section class="isk isk-<slug>">`. Resets below use
 * :where(.isk) so they carry no class weight and never beat a component rule;
 * component rules are written `.isk.isk-<slug> .x` (0,3,0), which beats
 * Hello's element resets and Elementor's `.elementor img` (0,1,1) while
 * Elementor's own control CSS ({{WRAPPER}} …) still wins over them.
 *
 * Token names are all --isk-*: never reuse Elementor container variables
 * (--display, --gap, --width, --padding-*, --content-width).
 * ======================================================================== */

:root {
	--isk-bare: #F2EDEB;
	--isk-bare-2: #E9E1DE;
	--isk-white: #FFFFFF;
	--isk-ink: #231F20;
	--isk-ink-2: #3B3536;
	--isk-blush: #EBD2CD;
	--isk-blush-2: #D9AFA8;
	--isk-rose: #9C5D5A;
	--isk-mute: #77706F;
	--isk-line: #DED4D1;
	--isk-ice: #E2EAEE;
	--isk-ice-2: #C9D8DF;
	--isk-warm: #F3DCCF;
	--isk-warm-2: #E7BBA3;
	--isk-night: #171415;

	--isk-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
	--isk-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

	--isk-pad: clamp(16px, 3.6vw, 56px);
	--isk-max: 1440px;
	--isk-hdr: 76px;
	--isk-ease: cubic-bezier(.16, 1, .3, 1);
	--isk-r: 6px;

	--isk-fs-h1: clamp(44px, 5.6vw, 92px);
	--isk-fs-h2: clamp(34px, 3.9vw, 62px);
	--isk-fs-lead: clamp(17px, 1.25vw, 19px);
}

html:has(> body.isk-site) { overflow-x: hidden; scroll-padding-top: 90px; }
body.isk-site { margin: 0; background: var(--isk-bare); color: var(--isk-ink); font: 400 16px/1.6 var(--isk-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.isk-site .site-main, body.isk-site .page-content, body.isk-site .page-header { margin: 0; padding: 0; max-width: none; }
body.isk-site .page-header .entry-title { display: none; }
body.isk-site.is-locked { overflow: hidden; }

/* ---------------------------------------------------------------- resets (no class weight) */
.isk { position: relative; font-family: var(--isk-body); color: var(--isk-ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
:where(.isk) *, :where(.isk) *::before, :where(.isk) *::after { box-sizing: border-box; }
:where(.isk) img, :where(.isk) video { display: block; max-width: 100%; height: auto; }
:where(.isk) a { color: inherit; }
:where(.isk) :is(h1, h2, h3, h4, h5, p, figure, ul, ol, dl, dd, blockquote) { margin: 0; }
:where(.isk) :is(ul, ol) { padding: 0; list-style: none; }
:where(.isk) :is(h1, h2) { font-family: var(--isk-display); font-weight: 300; font-stretch: 92%; letter-spacing: -.035em; line-height: 1; color: inherit; text-wrap: balance; }
:where(.isk) :is(h3, h4) { font-family: var(--isk-body); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; color: inherit; }
:where(.isk) :is(button, input, select, textarea) { font-family: inherit; }
:where(.isk) svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.isk :focus-visible { outline: 2px solid var(--isk-ink); outline-offset: 3px; }

/* ---------------------------------------------------------------- utilities */
.isk .isk-wrap { width: 100%; max-width: var(--isk-max); margin: 0 auto; padding: 0 var(--isk-pad); }
.isk .isk-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.isk .isk-h1 { font: 300 var(--isk-fs-h1)/1 var(--isk-display); font-stretch: 92%; letter-spacing: -.035em; font-variation-settings: "opsz" 96; text-wrap: balance; }
.isk .isk-h2 { font: 300 var(--isk-fs-h2)/1 var(--isk-display); font-stretch: 92%; letter-spacing: -.035em; font-variation-settings: "opsz" 72; text-wrap: balance; }
.isk .isk-lead { font-size: var(--isk-fs-lead); line-height: 1.6; color: var(--isk-ink-2); max-width: 46ch; text-wrap: pretty; }
.isk .isk-kicker { margin-bottom: 16px; font: 600 15px/1.2 var(--isk-body); color: var(--isk-rose); }
.isk .isk-link { font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.isk .isk-link:hover { text-decoration-thickness: 2px; }
.isk .isk-sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; margin-bottom: 36px; }

/* plain reset for <button>s used as controls (beats Hello's button colours) */
.isk .isk-plain, .isk .isk-plain:hover, .isk .isk-plain:focus { padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-transform: none; letter-spacing: inherit; box-shadow: none; cursor: pointer; }

/* icon buttons (header, drawers) */
.isk .isk-ibtn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.isk .isk-ibtn:hover, .isk .isk-ibtn:focus { background: rgba(35, 31, 32, .06); color: inherit; }
.isk .isk-ibtn svg { width: 22px; height: 22px; }
.isk .isk-bag-n { position: absolute; top: 3px; right: 2px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--isk-ink); color: #fff; font: 600 11px/1 var(--isk-body); transition: transform .3s var(--isk-ease); }
.isk .isk-bag-n[hidden] { display: none; }
.isk .isk-bag-n.bump { transform: scale(1.35); }

/* ---------------------------------------------------------------- buttons */
.isk .isk-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; max-width: 100%; padding: 0 28px;
	border: 1px solid transparent; border-radius: 999px;
	font-family: var(--isk-body); font-size: 16px; font-weight: 500; line-height: 1.2; letter-spacing: 0; text-transform: none;
	text-decoration: none; text-align: center; white-space: normal; cursor: pointer;
	transition: background-color .25s, color .25s, border-color .25s, transform .2s;
}
.isk .isk-btn:active { transform: translateY(1px); }
.isk .isk-btn--solid { background-color: var(--isk-ink); border-color: var(--isk-ink); color: #fff; }
.isk .isk-btn--solid:hover, .isk .isk-btn--solid:focus-visible { background-color: var(--isk-ink-2); border-color: var(--isk-ink-2); color: #fff; }
.isk .isk-btn--line { background-color: transparent; border-color: var(--isk-ink); color: var(--isk-ink); }
.isk .isk-btn--line:hover, .isk .isk-btn--line:focus-visible { background-color: var(--isk-ink); border-color: var(--isk-ink); color: #fff; }
.isk .isk-btn--white { background-color: #fff; border-color: #fff; color: var(--isk-ink); }
.isk .isk-btn--white:hover, .isk .isk-btn--white:focus-visible { background-color: var(--isk-bare); border-color: var(--isk-bare); color: var(--isk-ink); }
.isk .isk-btn--sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.isk .isk-btn[disabled], .isk .isk-btn.is-busy { opacity: .6; pointer-events: none; }

/* dark sections */
.isk.isk-dark, .isk .isk-dark { color: #fff; }
.isk.isk-dark .isk-btn--line, .isk .isk-dark .isk-btn--line { border-color: #fff; color: #fff; }
.isk.isk-dark .isk-btn--line:hover, .isk .isk-dark .isk-btn--line:hover { background-color: #fff; color: var(--isk-ink); }

/* ---------------------------------------------------------------- logo (inline SVG, follows text colour) */
.isk .isk-logo { display: inline-flex; color: inherit; text-decoration: none; }
.isk .isk-logo-svg { display: block; width: 132px; height: auto; max-width: none; }
.isk .isk-logo-text { font: 600 22px/1 var(--isk-display); letter-spacing: -.02em; }

/* Elementor: sections sit edge to edge */
.elementor-widget[class*="elementor-widget-isk_"] > .elementor-widget-container { margin: 0; padding: 0; }

/* ---------------------------------------------------------------- toast (fallback when no mini basket is on the page) */
.isk-toast {
	position: fixed; z-index: 9990; left: 50%; bottom: 24px;
	display: flex; align-items: center; gap: 12px;
	width: 440px; max-width: calc(100vw - 32px); padding: 8px 8px 8px 8px;
	border-radius: 999px; background: var(--isk-ink); color: #fff;
	box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .5);
	font: 400 15px/1.35 var(--isk-body);
	transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
	transition: transform .45s var(--isk-ease), visibility 0s .45s;
}
.isk-toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--isk-ease); }
.isk-toast.is-error { background: #6b1d1d; }
.isk-toast img { flex: none; width: 40px; height: 40px; object-fit: cover; border-radius: 50%; background: var(--isk-blush); }
.isk-toast img[src=""] { display: none; }
.isk-toast .isk-toast__txt { flex: 1; min-width: 0; display: grid; }
.isk-toast b { overflow: hidden; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.isk-toast .isk-toast__txt span { font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.isk-toast .isk-toast__go { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--isk-ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.isk-toast .isk-toast__go[hidden] { display: none; }
.isk-toast .isk-toast__x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .75); cursor: pointer; }
.isk-toast .isk-toast__x:hover, .isk-toast .isk-toast__x:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; }
.isk-toast .isk-toast__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* A section straight after a page hero starts at its content: the hero's own bottom
   padding is the gap (both paddings stacked to 176px desktop / 120px phone). */
.e-con:has(.isk-pagehero) + .e-con .isk:not(.isk-footer) { padding-top: 0; }

@media (max-width: 1024px) {
	:root { --isk-hdr: 64px; }
}
@media (max-width: 640px) {
	:root { --isk-fs-h1: 40px; --isk-fs-h2: 30px; --isk-fs-lead: 16px; }
	.isk-toast { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
	.isk *, .isk *::before, .isk *::after, .isk-toast { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
