/*
 * Epic Smiles — global tokens.
 *
 * Colours and families come from Vendo Kit → Design System (vk_design) and
 * are only referenced here. Sizes are the Figma's two frames: the mobile
 * value at 390px, the desktop value at 1440px, sliding between them
 * (calc(min + (max − min) × (100vw − 390px) / 1050), clamped at both ends).
 * At a 1440px window every value is the exact Figma pixel.
 *
 * Change a size here, never in a section rule.
 */

:root,
.vk-scope,
.editor-styles-wrapper {
	/* ---- Colour roles (Figma variables → kit palette) ---- */
	--es-ivory:      var(--vk-color-bg);          /* color/ivory #f4efe8 */
	--es-ink:        var(--vk-color-ink);         /* color/ink #1b1a18 */
	--es-night:      var(--vk-color-night);       /* dark sections #1c1a17 */
	--es-charcoal:   var(--vk-color-charcoal);    /* call tile #2b2a25 */
	--es-stone:      var(--vk-color-surface-2);   /* color/stone #e9e1d5 */
	--es-sand:       var(--vk-color-sand);        /* section band #ece4d9 */
	--es-terracotta: var(--vk-color-accent);      /* color/terracotta #a6705a */
	--es-terra-text: var(--vk-color-brand);       /* color/terracotta-text #8f5c48 */
	--es-body:       var(--vk-color-muted);       /* color/body #5e5953 */
	--es-body-2:     var(--vk-color-stone-text);  /* B&A captions #5c574f */
	--es-line:       var(--vk-color-line);        /* color/line #d9cfc1 */
	--es-rule:       rgba(28, 26, 23, .3);        /* form underlines */
	--es-rule-soft:  rgba(28, 26, 23, .15);       /* hours rows */

	/* ---- Families ---- */
	--es-serif:  var(--vk-font-heading);
	--es-sans:   var(--vk-font-body);
	--es-italic: var(--vk-font-cormorant);
	--es-ui:     var(--vk-font-schibsted);

	/* ---- Layout ---- */
	--vk-container: 1440px;
	--vk-gutter: clamp(24px, calc(24px + 40 * (100vw - 390px) / 1050), 64px);   /* 24 → 64 */
	--es-section-y: clamp(48px, calc(48px + 40 * (100vw - 390px) / 1050), 88px); /* 48 → 88 */

	/* ---- Type: display headings (Libre Caslon Display) ---- */
	--es-closing:   clamp(64px, calc(64px + 104 * (100vw - 390px) / 1050), 168px); /* Let's talk */
	--es-smile:     clamp(56px, calc(56px + 94 * (100vw - 390px) / 1050), 150px);  /* Name your smile */
	--es-hero:      clamp(52px, calc(52px + 66 * (100vw - 390px) / 1050), 118px);  /* Expert care */
	--es-display:   clamp(52px, calc(52px + 60 * (100vw - 390px) / 1050), 112px);  /* Come and say hello */
	--es-implant:   clamp(56px, calc(56px + 56 * (100vw - 390px) / 1050), 112px);  /* The calmest */
	--es-feature:   clamp(42px, calc(42px + 30 * (100vw - 390px) / 1050), 72px);   /* The Natural */
	--es-h2-lg:     clamp(48px, calc(48px + 16 * (100vw - 390px) / 1050), 64px);   /* Patient stories */
	--es-h2:        clamp(38px, calc(38px + 18 * (100vw - 390px) / 1050), 56px);   /* section headings */
	--es-time:      clamp(38px, calc(38px + 14 * (100vw - 390px) / 1050), 52px);   /* 08:30 */
	--es-tile:      clamp(34px, calc(34px + 4 * (100vw - 390px) / 1050), 38px);    /* quick-action titles */
	--es-style:     clamp(26px, calc(26px + 6 * (100vw - 390px) / 1050), 32px);    /* The Soft */
	--es-quote:     clamp(24px, calc(24px + 4 * (100vw - 390px) / 1050), 28px);    /* story quotes */
	--es-address:   clamp(26px, calc(28px - 2 * (100vw - 390px) / 1050), 28px);    /* Visit us address 28 → 26 */
	--es-card:      clamp(22px, calc(22px + 4 * (100vw - 390px) / 1050), 26px);    /* treatment names */

	/* Inner pages (Figma "Inner pages", desktop only — phone sizes follow the homepage's mobile scale) */
	--es-page-title: clamp(48px, calc(48px + 48 * (100vw - 390px) / 1050), 96px);  /* photo hero H1 */
	--es-quiet-title: clamp(52px, calc(52px + 60 * (100vw - 390px) / 1050), 112px); /* quiet hero H1, steps title */
	--es-statement: clamp(44px, calc(44px + 44 * (100vw - 390px) / 1050), 88px);   /* About statement */
	--es-h3:        clamp(30px, calc(30px + 8 * (100vw - 390px) / 1050), 38px);    /* fact titles, fee groups, plan names */
	--es-price:     clamp(52px, calc(52px + 20 * (100vw - 390px) / 1050), 72px);   /* plan price */

	/* ---- Type: text (Manrope) ---- */
	--es-lead-lg: clamp(17px, calc(17px + 5 * (100vw - 390px) / 1050), 22px); /* featured style copy */
	--es-lead:    clamp(16px, calc(16px + 2 * (100vw - 390px) / 1050), 18px); /* section intros */
	--es-body-lg: 17px;
	--es-text:    16px;
	--es-small:   15px;
	--es-xs:      14px;
	--es-micro:   13px;
	--es-eyebrow: clamp(12px, calc(12px - 1 * (100vw - 390px) / 1050), 12px);

	/* ---- Shape ---- */
	--es-pill: 999px;
	--es-btn-y: clamp(14px, calc(14px + 2 * (100vw - 390px) / 1050), 16px);
	--es-btn-x: clamp(24px, calc(24px + 4 * (100vw - 390px) / 1050), 28px);
}

@media (min-width: 1100px) {
	:root,
	.vk-scope,
	.editor-styles-wrapper {
		--es-eyebrow: 11px;
	}
}
