/* My Signature Table: design tokens (final)
   Palette: Velvet & Linen with Pine as the second dark colour (about 10% of use). Type: Playfair Display + Source Sans 3.
   Generated 2026-11-30 by work/emit.py from work/system.py. Do not edit by hand; edit system.py and run emit.py.
   Contrast figures in comments are WCAG 2.x ratios computed with the toolkit (mstkit.contrast).
   Explanation for the team (Turkish): tokens.md. Machine-readable copy: tokens.json.

   CONTENTS  1 fonts  2 palette  3 scales  4 helper colours  5 semantic colours (light)  6 status  7 scrims  8 seasonal
             9 type  10 layout  11 motion  12 focus  13 surfaces (paper, cream, linen, blush, burgundy, pine)  14 breakpoints
             15 print  16 base rules (Turkish, focus, reduced motion)  17 type classes */

/* 1. FONTS
   Self-hosted Latin + Turkish subsets, variable weight. The files are Modified Versions of Playfair Display 1.203 and
   Source Sans 3 3.052 (SIL OFL 1.1). Both upstream families declare a Reserved Font Name, so the subsets carry the
   neutral names "MST Serif" and "MST Sans" inside the files and here. See fonts/FONTLOG.txt and the two OFL texts. */
@font-face { font-family: "MST Serif"; src: url("fonts/mst-serif-roman.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-017F, U+0218-021B, U+2009-200A, U+2010-2015, U+2018-201E, U+2020-2022, U+2026, U+202F-2030, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+20BA, U+2116, U+2122, U+2190-2193, U+2212, U+2260, U+2264-2265; }
@font-face { font-family: "MST Serif"; src: url("fonts/mst-serif-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-017F, U+0218-021B, U+2009-200A, U+2010-2015, U+2018-201E, U+2020-2022, U+2026, U+202F-2030, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+20BA, U+2116, U+2122, U+2190-2193, U+2212, U+2260, U+2264-2265; }
@font-face { font-family: "MST Sans"; src: url("fonts/mst-sans-roman.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-017F, U+0218-021B, U+2009-200A, U+2010-2015, U+2018-201E, U+2020-2022, U+2026, U+202F-2030, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+20BA, U+2116, U+2122, U+2190-2193, U+2212, U+2260, U+2264-2265; }
@font-face { font-family: "MST Sans"; src: url("fonts/mst-sans-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-017F, U+0218-021B, U+2009-200A, U+2010-2015, U+2018-201E, U+2020-2022, U+2026, U+202F-2030, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+20BA, U+2116, U+2122, U+2190-2193, U+2212, U+2260, U+2264-2265; }

:root {
  /* 2. PALETTE, named. Class in brackets: [dark] takes cream text, [text] is text-safe on Paper, Cream and Linen,
     [ground] light ground, [fill] never text, [accent] small accents only, [ui] non-text lines only. */
  --mst-burgundy: #6B1E2A;  /* [dark] Primary: logo, headings, buttons, links, total bars */
  --mst-ink: #2E1A1F;  /* [text] Body text */
  --mst-mulberry: #522A34;  /* [text] Secondary text, captions */
  --mst-pine: #2F3E2E;  /* [dark] Second dark ground (about 10%), green text */
  --mst-paper: #FEFBF6;  /* [ground] Page ground */
  --mst-cream: #FAF6EF;  /* [ground] Card and section ground; text on dark */
  --mst-linen: #F1E8DC;  /* [ground] Bands, table stripes */
  --mst-sage: #838F64;  /* [fill] Fill only */
  --mst-sage-deep: #4F5C38;  /* [text] Small green text and icons on light grounds */
  --mst-blush: #EBC4B6;  /* [ground] Soft panel; secondary text on Burgundy */
  --mst-brass: #A8803F;  /* [accent] Fine lines, icons, foil */
  --mst-brass-deep: #7A5B29;  /* [text] Brass-toned small text */
  --mst-champagne: #DCC391;  /* [accent] On dark grounds only: labels, borders, focus ring */
  /* Stone 600 (muted text), Stone 400 (functional border) and Stone 200 (decorative hairline) are in the Stone scale below. */

  /* 3. SCALES (OKLCH lightness steps, hue held). "text" = 4.5:1 or better on Linen, the darkest light ground; "large" = 3:1 there; otherwise fill only. */
  /* Burgundy: 700 is the brand colour */
  --mst-burgundy-50: #FCF2F1;  /* 1.02 on Cream; fill only */
  --mst-burgundy-100: #F8E4E3;  /* 1.13 on Cream; fill only */
  --mst-burgundy-200: #EFCCCB;  /* 1.38 on Cream; fill only */
  --mst-burgundy-300: #DFA9A9;  /* 1.88 on Cream; fill only */
  --mst-burgundy-400: #CA7F80;  /* 2.84 on Cream; fill only */
  --mst-burgundy-500: #AF555B;  /* 4.56 on Cream; large text only */
  --mst-burgundy-600: #8D353F;  /* 7.18 on Cream; text and dark fill */
  --mst-burgundy-700: #6B1E2A;  /* 10.57 on Cream; text and dark fill | BRAND */
  --mst-burgundy-800: #53131E;  /* 13.17 on Cream; text and dark fill */
  --mst-burgundy-900: #3C0D14;  /* 15.47 on Cream; text and dark fill */
  /* Pine: 800 is Pine */
  --mst-pine-50: #F3F5F2;  /* 1.02 on Cream, 10.36 on Pine; fill only */
  --mst-pine-100: #E7EBE5;  /* 1.12 on Cream, 9.42 on Pine; fill only */
  --mst-pine-200: #D2D8CF;  /* 1.35 on Cream, 7.82 on Pine; fill only */
  --mst-pine-300: #B3BDAE;  /* 1.80 on Cream, 5.84 on Pine; fill only */
  --mst-pine-400: #8D9C88;  /* 2.69 on Cream, 3.92 on Pine; fill only */
  --mst-pine-500: #6B7E66;  /* 4.06 on Cream, 2.60 on Pine; large text only */
  --mst-pine-600: #50634C;  /* 6.03 on Cream, 1.75 on Pine; text and dark fill */
  --mst-pine-700: #3B4C39;  /* 8.55 on Cream, 1.23 on Pine; text and dark fill */
  --mst-pine-800: #2F3E2E;  /* 10.54 on Cream, 1.00 on Pine; text and dark fill | PINE */
  --mst-pine-900: #242F23;  /* 12.94 on Cream, 1.23 on Pine; text and dark fill */
  /* Stone (neutrals): 0 Paper, 50 Cream, 100 Linen, 900 Ink; 200, 400 and 600 are the existing card colours */
  --mst-stone-0: #FEFBF6;  /* 1.04 on Cream; page ground | = Paper */
  --mst-stone-50: #FAF6EF;  /* 1.00 on Cream; card ground | = Cream */
  --mst-stone-100: #F1E8DC;  /* 1.13 on Cream; bands, stripes | = Linen */
  --mst-stone-150: #E0D1C4;  /* 1.38 on Cream; pressed state on Linen, disabled fill */
  --mst-stone-200: #CBB5AA;  /* 1.82 on Cream; decorative hairline only | = Stone 200 */
  --mst-stone-300: #AE9891;  /* 2.53 on Cream; non-text decoration */
  --mst-stone-400: #917D78;  /* 3.60 on Cream; functional border, disabled text | = Stone 400 */
  --mst-stone-500: #847071;  /* 4.30 on Cream; large text only */
  --mst-stone-600: #76636A;  /* 5.18 on Cream; muted text, placeholder | = Stone 600 */
  --mst-stone-700: #5B474E;  /* 7.94 on Cream; muted text on Blush */
  --mst-stone-800: #432E34;  /* 11.61 on Cream; text */
  --mst-stone-900: #2E1A1F;  /* 15.19 on Cream; body text | = Ink */

  /* 4. HELPER COLOURS (states and dark grounds) */
  --mst-rose-grey: #C5A5A7;  /* muted text on Burgundy, 5.05 */
  --mst-pine-mist: var(--mst-pine-300);  /* muted text on Pine, 5.84 */
  --mst-disabled-on-burgundy: #AD7F83;  /* 3.33 on Burgundy (disabled is WCAG-exempt) */
  --mst-disabled-on-pine: var(--mst-pine-400);  /* 3.92 on Pine (disabled is WCAG-exempt) */
  --mst-visited: #5A2D5E;  /* visited link, 9.89 on Cream */
  --mst-focus: #2B5C84;  /* focus ring on light grounds, 6.57 on Cream, 5.84 on Linen */

  /* 5. SEMANTIC COLOURS, light surface (the default). The same names are redefined per surface in section 13. */
  --mst-color-primary: var(--mst-burgundy);
  --mst-color-second-dark: var(--mst-pine);  /* edge to edge with the primary only where the boundary carries no information: 1.00:1 edge contrast */
  --mst-color-text-green: var(--mst-pine);  /* 10.54 on Cream */
  --mst-color-bg: var(--mst-paper);  /* Ground of this surface. */
  --mst-color-surface: var(--mst-cream);  /* Card or inset block on this ground. */
  --mst-color-surface-alt: var(--mst-linen);  /* Band, table stripe. */
  --mst-color-text: var(--mst-ink);  /* Body text. 15.85 on Paper, 13.49 on Linen. */
  --mst-color-text-secondary: var(--mst-mulberry);  /* Secondary text, captions. 11.69 on Paper, 9.95 on Linen. */
  --mst-color-text-muted: var(--mst-stone-600);  /* Muted text, meta. 5.41 on Paper, 4.60 on Linen. */
  --mst-color-heading: var(--mst-burgundy);  /* Headings. 11.03 on Paper, 9.39 on Linen. */
  --mst-color-accent: var(--mst-brass-deep);  /* Eyebrow labels, small accent text. 6.06 on Paper, 5.16 on Linen. */
  --mst-color-border: var(--mst-stone-400);  /* Functional border (inputs, dividers that carry meaning). 3.76 on Paper, 3.20 on Linen. */
  --mst-color-rule: var(--mst-stone-200);  /* Decorative hairline; never the only separator of two pieces of information. */
  --mst-color-rule-strong: var(--mst-burgundy);  /* Strong rule under headings, table head. 11.03 on Paper, 9.39 on Linen. */
  --mst-color-action: var(--mst-burgundy);  /* Primary button fill. 11.03 on Paper, 9.39 on Linen. */
  --mst-color-action-hover: var(--mst-burgundy-900);  /* Primary button fill, hover. 16.15 on Paper, 13.75 on Linen. */
  --mst-color-action-active: var(--mst-burgundy-800);  /* Primary button fill, pressed. 13.75 on Paper, 11.70 on Linen. */
  --mst-color-on-action: var(--mst-cream);  /* Primary button label. 10.57 on the fill. */
  --mst-color-action-secondary: var(--mst-burgundy);  /* Outline button: label and 1.5 px border. 11.03 on Paper, 9.39 on Linen. */
  --mst-color-action-secondary-hover-bg: var(--mst-linen);  /* Outline button fill on hover. */
  --mst-color-link: var(--mst-burgundy);  /* Link; always underlined. 11.03 on Paper, 9.39 on Linen. */
  --mst-color-link-hover: var(--mst-burgundy-900);  /* Link hover; underline grows to 2 px. 16.15 on Paper, 13.75 on Linen. */
  --mst-color-link-visited: var(--mst-visited);  /* Visited link. 10.32 on Paper, 8.78 on Linen. */
  --mst-color-link-active: var(--mst-ink);  /* Pressed link. 15.85 on Paper, 13.49 on Linen. */
  --mst-color-text-disabled: var(--mst-stone-400);  /* Disabled text (WCAG-exempt; kept at 3:1). 3.76 on Paper, 3.20 on Linen. */
  --mst-color-text-placeholder: var(--mst-stone-600);  /* Placeholder text. 5.41 on Paper, 4.60 on Linen. */
  --mst-color-focus: var(--mst-focus);  /* Focus ring: 2 px, 2 px offset. 6.86 on Paper, 5.84 on Linen. */

  /* 6. STATUS. Never by colour alone: each has its own icon shape and says what it is in words. */
  --mst-success: #1F665C;  /* 6.26 on Cream */
  --mst-success-bg: #DFEDE8;  /* tint; the status colour (5.59) or Ink on it */
  --mst-success-on-dark: #9AD1C4;  /* 6.66 on Burgundy, 6.65 on Pine */
  --mst-warning: #854D00;  /* 6.37 on Cream */
  --mst-warning-bg: #F8E8CC;  /* tint; the status colour (5.69) or Ink on it */
  --mst-warning-on-dark: #F2C572;  /* 7.05 on Burgundy, 7.03 on Pine */
  --mst-error: #AD2015;  /* 6.51 on Cream */
  --mst-error-bg: #FADFD9;  /* tint; the status colour (5.55) or Ink on it */
  --mst-error-on-dark: #F6ADA3;  /* 6.19 on Burgundy, 6.18 on Pine */
  --mst-info: #2B5C84;  /* 6.57 on Cream */
  --mst-info-bg: #DDE8F1;  /* tint; the status colour (5.69) or Ink on it */
  --mst-info-on-dark: #A9CBE8;  /* 6.72 on Burgundy, 6.70 on Pine */
  --mst-color-success: var(--mst-success);
  --mst-color-warning: var(--mst-warning);
  --mst-color-error: var(--mst-error);
  --mst-color-info: var(--mst-info);

  /* 7. SCRIMS for text over photographs. Text never sits directly on a photograph. */
  --mst-scrim-dark: rgb(46 26 31 / 0.7);  /* Ink 70%: cream text of 24 px and larger; 5.63:1 even over pure white */
  --mst-scrim-dark-strong: rgb(46 26 31 / 0.8);  /* Ink 80%: cream text under 24 px; 7.97:1 over pure white */
  --mst-scrim-burgundy: rgb(107 30 42 / 0.85);  /* brand veil with cream text; 7.05:1 over pure white */
  --mst-scrim-pine: rgb(47 62 46 / 0.88);  /* pine veil with cream text; 7.31:1 over pure white. Never beside a burgundy veil. */
  --mst-scrim-light: rgb(250 246 239 / 0.88);  /* cream label; Ink 11.53, Burgundy 8.02, Pine 8.00 even over pure black. The form for the logo on a photo. */
  --mst-scrim-gradient: linear-gradient(to top, rgb(46 26 31 / 0.82) 0%, rgb(46 26 31 / 0.7) 55%, rgb(46 26 31 / 0) 100%);  /* text sits only inside the lower 55% */

  /* 8. SEASONAL ACCENTS. Taken out of the 5% accent share, never added on top. At most two per piece; never the logo.
     New Year needs no extra green: Pine is core. Not allowed: Nar #B3222B, Cloth Red #902524, Fir #2F4A35, Lemon #E9C84A. */
  --mst-season-poppy: #C8402F;  /* New Year red. At most 5% of a layout, small solid shapes only (berries, a dot, a ribbon line), on Cream or on Pine. Never text, never a ground, never touching Burgundy. */
  --mst-season-rose: #DF9A8F;  /* Spring and weddings, fill only. Ink text on it. Not text itself. */
  --mst-season-slate: #4A5F67;  /* Spring and weddings, at most 10%. Text-safe on Paper, Cream and Linen. Not on any dark ground. */
  --mst-season-dusty-blue: #8FA3AD;  /* Spring and weddings, fill only (leaves, shapes). Ink text on it. */
  --mst-season-olive: #6E6A3F;  /* Summer, at most 10%. Replaces Sage for the season; never together with Sage. Text-safe on Paper, Cream and Linen. Not on Pine. */
  --mst-season-citrus: #D98A2B;  /* Summer, at most 5%, small solid shapes only. Never text or a line on light grounds. */

  /* 9. TYPE. Two families only. Sizes are fluid between a 390 px and a 1440 px viewport (mobile and desktop artboards). */
  --mst-font-display: "MST Serif", "Playfair Display", Georgia, "Times New Roman", serif;  /* Playfair Display: headings from 20 px up, italic as the accent */
  --mst-font-text: "MST Sans", "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;  /* Source Sans 3: text, labels and every numeral */
  --mst-fw-regular: 400; --mst-fw-medium: 500; --mst-fw-semibold: 600;
  /* display: 36 px mobile, 68 px desktop, print 40 pt. Hero lines, covers. One per page. */
  --mst-fs-display: clamp(2.25rem, 1.5071rem + 3.0476vw, 4.25rem); --mst-fw-display: 500; --mst-lh-display: 1.12; --mst-ls-display: -0.005em;
  /* h1: 31 px mobile, 52 px desktop, print 26 pt. Page or document title. */
  --mst-fs-h1: clamp(1.9375rem, 1.45rem + 2vw, 3.25rem); --mst-fw-h1: 500; --mst-lh-h1: 1.15; --mst-ls-h1: 0;
  /* h2: 26 px mobile, 38 px desktop, print 19 pt. Section heading. */
  --mst-fs-h2: clamp(1.625rem, 1.3464rem + 1.1429vw, 2.375rem); --mst-fw-h2: 500; --mst-lh-h2: 1.2; --mst-ls-h2: 0;
  /* h3: 22 px mobile, 27 px desktop, print 14 pt. Sub-heading. Weight 600 because the size is small. */
  --mst-fs-h3: clamp(1.375rem, 1.2589rem + 0.4762vw, 1.6875rem); --mst-fw-h3: 600; --mst-lh-h3: 1.25; --mst-ls-h3: 0;
  /* h4: 18 px mobile, 19 px desktop, print 11 pt. Smallest heading, set in the sans: Playfair is too thin here. */
  --mst-fs-h4: clamp(1.125rem, 1.1018rem + 0.0952vw, 1.1875rem); --mst-fw-h4: 600; --mst-lh-h4: 1.35; --mst-ls-h4: 0;
  /* quote: 22 px mobile, 28 px desktop, print 13 pt. Playfair Display Italic: pull quote, tagline, sign-off. The accent; one per layout. */
  --mst-fs-quote: clamp(1.375rem, 1.2357rem + 0.5714vw, 1.75rem); --mst-fw-quote: 400; --mst-lh-quote: 1.4; --mst-ls-quote: 0;
  /* lead: 19 px mobile, 22 px desktop, print 12 pt. Intro paragraph under a heading. */
  --mst-fs-lead: clamp(1.1875rem, 1.1179rem + 0.2857vw, 1.375rem); --mst-fw-lead: 400; --mst-lh-lead: 1.5; --mst-ls-lead: 0;
  /* body: 17 px mobile, 18 px desktop, print 10 pt. Running text. */
  --mst-fs-body: clamp(1.0625rem, 1.0393rem + 0.0952vw, 1.125rem); --mst-fw-body: 400; --mst-lh-body: 1.6; --mst-ls-body: 0;
  /* small: 14 px mobile, 15 px desktop, print 8 pt. Captions, notes, legal. */
  --mst-fs-small: clamp(0.875rem, 0.8518rem + 0.0952vw, 0.9375rem); --mst-fw-small: 400; --mst-lh-small: 1.5; --mst-ls-small: 0;
  /* label: 12 px mobile, 13 px desktop, print 7.5 pt. Tracked capitals: eyebrow labels, table headers. Type real Turkish capitals. */
  --mst-fs-label: clamp(0.75rem, 0.7268rem + 0.0952vw, 0.8125rem); --mst-fw-label: 600; --mst-lh-label: 1.5; --mst-ls-label: 0.16em;
  /* button: 16 px mobile, 16 px desktop. Button label, sentence case. */
  --mst-fs-button: 1rem; --mst-fw-button: 600; --mst-lh-button: 1; --mst-ls-button: 0.03em;
  /* price: 17 px mobile, 18 px desktop, print 10 pt. Every price, quantity, date and phone number: Source Sans 3, tabular lining figures. */
  --mst-fs-price: clamp(1.0625rem, 1.0393rem + 0.0952vw, 1.125rem); --mst-fw-price: 500; --mst-lh-price: 1.3; --mst-ls-price: 0;
  /* total: 26 px mobile, 30 px desktop, print 15 pt. The total in a quote or the one large price on a product card. */
  --mst-fs-total: clamp(1.625rem, 1.5321rem + 0.381vw, 1.875rem); --mst-fw-total: 600; --mst-lh-total: 1.1; --mst-ls-total: 0;
  --mst-fw-accent-italic: 400;  /* italic word inside a display, h1 or h2 heading; 500 inside h3 */

  /* 10. LAYOUT */
  /* spacing: 4 px base */
  --mst-space-0: 0;
  --mst-space-1: 0.25rem;  /* 4 px */
  --mst-space-2: 0.5rem;  /* 8 px */
  --mst-space-3: 0.75rem;  /* 12 px */
  --mst-space-4: 1rem;  /* 16 px */
  --mst-space-5: 1.5rem;  /* 24 px */
  --mst-space-6: 2rem;  /* 32 px */
  --mst-space-7: 3rem;  /* 48 px */
  --mst-space-8: 4rem;  /* 64 px */
  --mst-space-9: 6rem;  /* 96 px */
  --mst-space-10: 8rem;  /* 128 px */
  --mst-section-y: clamp(3.5rem, 2.2rem + 5.3333vw, 7rem);  /* vertical padding of a page section: 56 px mobile, 112 px desktop */
  --mst-dark-gap: var(--mst-space-4);  /* smallest Cream gap between a Burgundy and a Pine area where the boundary must be seen: 16 px on screen */
  /* radii: small, the brand is calm and editorial */
  --mst-radius-none: 0;  /* Default. Photographs, bands, tables, tags on print. */
  --mst-radius-xs: 2px;  /* Buttons, inputs, tags. */
  --mst-radius-sm: 4px;  /* Cards, images inside cards, message boxes. */
  --mst-radius-md: 8px;  /* Largest allowed: dialogs and menus only. */
  --mst-radius-round: 50%;  /* Avatar and seal only. */
  /* border and rule weights */
  --mst-border-hairline: 1px;  /* Decorative hairline (Stone 200) and functional borders (Stone 400). */
  --mst-border-regular: 1.5px;  /* Outline buttons, section rules in Burgundy. */
  --mst-border-strong: 2px;  /* Focus ring, active tab, link hover underline. */
  --mst-border-bar: 4px;  /* Accent bar on a message box or pull quote. */
  /* shadows: minimal, tinted with Ink, never on dark surfaces, never on text */
  --mst-shadow-none: none;  /* Default: separate with space or a 1 px line, not a shadow. */
  --mst-shadow-1: 0 1px 2px rgb(46 26 31 / 0.06), 0 1px 1px rgb(46 26 31 / 0.04);  /* Sticky header, raised card on hover. */
  --mst-shadow-2: 0 6px 20px -6px rgb(46 26 31 / 0.14);  /* Menus and popovers. */
  --mst-shadow-3: 0 16px 40px -12px rgb(46 26 31 / 0.20);  /* Dialogs only. */
  /* grid: redefined at the breakpoints in section 14 */
  --mst-grid-columns: 4; --mst-grid-gutter: 1rem; --mst-grid-margin: 1.25rem;
  --mst-container: 75rem;  /* 1200 px */
  --mst-container-narrow: 45rem;  /* 720 px: articles, forms */
  --mst-measure: 30rem;  /* longest line of body text: about 67 characters at 18 px (measured with Source Sans 3) */
  --mst-target-min: 2.75rem;  /* 44 px: smallest touch target */
  --mst-control-height: 3rem;  /* 48 px: buttons and inputs */

  /* 11. MOTION: calm, no bounce. Every easing stays between 0 and 1, so nothing overshoots. */
  --mst-duration-fast: 120ms;  /* Colour change on hover, focus ring. */
  --mst-duration-base: 200ms;  /* Buttons, links, small reveals. */
  --mst-duration-slow: 320ms;  /* Menus, accordions, panels. */
  --mst-duration-slower: 480ms;  /* Page-level fades, image reveal. The longest allowed. */
  --mst-ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);  /* Things entering. */
  --mst-ease-in: cubic-bezier(0.55, 0.06, 0.68, 0.19);  /* Things leaving. */
  --mst-ease-in-out: cubic-bezier(0.45, 0.05, 0.55, 0.95);  /* Things moving on screen. */
  --mst-motion-distance: 8px;  /* largest slide on enter or leave; fades are preferred */

  /* 12. FOCUS RING (WCAG 2.2, 2.4.11 and 2.4.13): 2 px solid, 2 px offset, 3:1 or better against the ground */
  --mst-focus-width: 2px; --mst-focus-offset: 2px;
}

/* 13. SURFACES. Put data-surface="…" (or the class) on a section; everything inside reads the same token names. */
/* Light surfaces. A light surface inside a dark one (a Cream card on Burgundy) must get every light value back, so the full set is repeated here. */
[data-surface="paper"], [data-surface="cream"], [data-surface="linen"], .mst-surface-paper, .mst-surface-cream, .mst-surface-linen {
  --mst-color-bg: var(--mst-paper);
  --mst-color-surface: var(--mst-cream);
  --mst-color-surface-alt: var(--mst-linen);
  --mst-color-text: var(--mst-ink);
  --mst-color-text-secondary: var(--mst-mulberry);
  --mst-color-text-muted: var(--mst-stone-600);
  --mst-color-heading: var(--mst-burgundy);
  --mst-color-accent: var(--mst-brass-deep);
  --mst-color-border: var(--mst-stone-400);
  --mst-color-rule: var(--mst-stone-200);
  --mst-color-rule-strong: var(--mst-burgundy);
  --mst-color-action: var(--mst-burgundy);
  --mst-color-action-hover: var(--mst-burgundy-900);
  --mst-color-action-active: var(--mst-burgundy-800);
  --mst-color-on-action: var(--mst-cream);
  --mst-color-action-secondary: var(--mst-burgundy);
  --mst-color-action-secondary-hover-bg: var(--mst-linen);
  --mst-color-link: var(--mst-burgundy);
  --mst-color-link-hover: var(--mst-burgundy-900);
  --mst-color-link-visited: var(--mst-visited);
  --mst-color-link-active: var(--mst-ink);
  --mst-color-text-disabled: var(--mst-stone-400);
  --mst-color-text-placeholder: var(--mst-stone-600);
  --mst-color-focus: var(--mst-focus);
  --mst-color-success: var(--mst-success);
  --mst-color-warning: var(--mst-warning);
  --mst-color-error: var(--mst-error);
  --mst-color-info: var(--mst-info);
  --mst-color-text-green: var(--mst-pine);
  --mst-shadow-1: 0 1px 2px rgb(46 26 31 / 0.06), 0 1px 1px rgb(46 26 31 / 0.04);
  --mst-shadow-2: 0 6px 20px -6px rgb(46 26 31 / 0.14);
  --mst-shadow-3: 0 16px 40px -12px rgb(46 26 31 / 0.20);
  background-color: var(--mst-color-bg); color: var(--mst-color-text);
}
[data-surface="cream"], .mst-surface-cream { --mst-color-bg: var(--mst-cream); --mst-color-surface: var(--mst-paper); }
[data-surface="linen"], .mst-surface-linen { --mst-color-bg: var(--mst-linen); --mst-color-surface: var(--mst-paper); --mst-color-surface-alt: var(--mst-cream); --mst-color-action-secondary-hover-bg: var(--mst-cream); }
/* Soft panel. Ink, Burgundy, Mulberry or Pine text only: Stone 600, Sage Deep, Brass Deep and the status colours fail here, so they are remapped. */
[data-surface="blush"], .mst-surface-blush {
  --mst-color-bg: var(--mst-blush);
  --mst-color-surface: var(--mst-paper);
  --mst-color-surface-alt: var(--mst-cream);
  --mst-color-text: var(--mst-ink);  /* 10.21 */
  --mst-color-text-secondary: var(--mst-mulberry);  /* 7.53 */
  --mst-color-text-muted: var(--mst-mulberry);  /* 7.53 */
  --mst-color-heading: var(--mst-burgundy);  /* 7.11 */
  --mst-color-accent: var(--mst-burgundy);  /* 7.11 */
  --mst-color-border: var(--mst-mulberry);  /* 7.53 */
  --mst-color-rule: var(--mst-stone-400);
  --mst-color-rule-strong: var(--mst-burgundy);  /* 7.11 */
  --mst-color-action: var(--mst-burgundy);  /* 7.11 */
  --mst-color-action-hover: var(--mst-burgundy-900);  /* 10.40 */
  --mst-color-action-active: var(--mst-burgundy-800);  /* 8.86 */
  --mst-color-on-action: var(--mst-cream);  /* 10.57 on the fill, 15.47 on hover */
  --mst-color-action-secondary: var(--mst-burgundy);  /* 7.11 */
  --mst-color-action-secondary-hover-bg: var(--mst-cream);
  --mst-color-link: var(--mst-burgundy);  /* 7.11 */
  --mst-color-link-hover: var(--mst-burgundy-900);  /* 10.40 */
  --mst-color-link-visited: var(--mst-visited);  /* 6.65 */
  --mst-color-link-active: var(--mst-ink);  /* 10.21 */
  --mst-color-text-disabled: var(--mst-stone-600);  /* 3.48 */
  --mst-color-text-placeholder: var(--mst-mulberry);  /* 7.53 */
  --mst-color-focus: var(--mst-focus);  /* 4.42 */
  --mst-color-success: var(--mst-ink);  /* 10.21 */
  --mst-color-warning: var(--mst-ink);  /* 10.21 */
  --mst-color-error: var(--mst-ink);  /* 10.21 */
  --mst-color-info: var(--mst-ink);  /* 10.21 */
  --mst-color-text-green: var(--mst-pine);  /* 7.09 */
  --mst-shadow-1: 0 1px 2px rgb(46 26 31 / 0.06), 0 1px 1px rgb(46 26 31 / 0.04);
  --mst-shadow-2: 0 6px 20px -6px rgb(46 26 31 / 0.14);
  --mst-shadow-3: 0 16px 40px -12px rgb(46 26 31 / 0.20);
  background-color: var(--mst-color-bg); color: var(--mst-color-text);
}
/* Dark surface 1. Text is Cream, never pure white. The blue focus ring, Stone, Sage Deep, Mulberry, Ink and Pine are not used here. */
[data-surface="burgundy"], .mst-surface-burgundy {
  --mst-color-bg: var(--mst-burgundy);
  --mst-color-surface: var(--mst-burgundy-800);
  --mst-color-surface-alt: var(--mst-burgundy-900);
  --mst-color-text: var(--mst-cream);  /* 10.57 */
  --mst-color-text-secondary: var(--mst-blush);  /* 7.11 */
  --mst-color-text-muted: var(--mst-rose-grey);  /* 5.05 */
  --mst-color-heading: var(--mst-cream);  /* 10.57 */
  --mst-color-accent: var(--mst-champagne);  /* 6.65 */
  --mst-color-border: var(--mst-champagne);  /* 6.65 */
  --mst-color-rule: var(--mst-brass);
  --mst-color-rule-strong: var(--mst-cream);  /* 10.57 */
  --mst-color-action: var(--mst-cream);  /* 10.57 */
  --mst-color-action-hover: var(--mst-champagne);  /* 6.65 */
  --mst-color-action-active: var(--mst-linen);  /* 9.39 */
  --mst-color-on-action: var(--mst-burgundy);  /* 10.57 on the fill, 6.65 on hover */
  --mst-color-action-secondary: var(--mst-cream);  /* 10.57 */
  --mst-color-action-secondary-hover-bg: var(--mst-burgundy-800);
  --mst-color-link: var(--mst-cream);  /* 10.57 */
  --mst-color-link-hover: var(--mst-champagne);  /* 6.65 */
  --mst-color-link-visited: var(--mst-blush);  /* 7.11 */
  --mst-color-link-active: var(--mst-paper);  /* 11.03 */
  --mst-color-text-disabled: var(--mst-disabled-on-burgundy);  /* 3.33 */
  --mst-color-text-placeholder: var(--mst-rose-grey);  /* 5.05 */
  --mst-color-focus: var(--mst-champagne);  /* 6.65 */
  --mst-color-success: var(--mst-success-on-dark);  /* 6.66 */
  --mst-color-warning: var(--mst-warning-on-dark);  /* 7.05 */
  --mst-color-error: var(--mst-error-on-dark);  /* 6.19 */
  --mst-color-info: var(--mst-info-on-dark);  /* 6.72 */
  --mst-color-text-green: var(--mst-color-text);  /* no green text on a dark ground */
  --mst-shadow-1: none; --mst-shadow-2: none; --mst-shadow-3: none;
  background-color: var(--mst-color-bg); color: var(--mst-color-text);
}
/* Dark surface 2, about 10% of use. Same luminance as Burgundy (1.00:1 between them): the two may sit edge to edge only where the boundary carries no information, and are never the only difference between two meanings. */
[data-surface="pine"], .mst-surface-pine {
  --mst-color-bg: var(--mst-pine);
  --mst-color-surface: var(--mst-pine-900);
  --mst-color-surface-alt: var(--mst-pine-700);
  --mst-color-text: var(--mst-cream);  /* 10.54 */
  --mst-color-text-secondary: var(--mst-linen);  /* 9.36 */
  --mst-color-text-muted: var(--mst-pine-300);  /* 5.84 */
  --mst-color-heading: var(--mst-cream);  /* 10.54 */
  --mst-color-accent: var(--mst-champagne);  /* 6.63 */
  --mst-color-border: var(--mst-champagne);  /* 6.63 */
  --mst-color-rule: var(--mst-brass);
  --mst-color-rule-strong: var(--mst-cream);  /* 10.54 */
  --mst-color-action: var(--mst-cream);  /* 10.54 */
  --mst-color-action-hover: var(--mst-champagne);  /* 6.63 */
  --mst-color-action-active: var(--mst-linen);  /* 9.36 */
  --mst-color-on-action: var(--mst-pine);  /* 10.54 on the fill, 6.63 on hover */
  --mst-color-action-secondary: var(--mst-cream);  /* 10.54 */
  --mst-color-action-secondary-hover-bg: var(--mst-pine-900);
  --mst-color-link: var(--mst-cream);  /* 10.54 */
  --mst-color-link-hover: var(--mst-champagne);  /* 6.63 */
  --mst-color-link-visited: var(--mst-blush);  /* 7.09 */
  --mst-color-link-active: var(--mst-paper);  /* 11.00 */
  --mst-color-text-disabled: var(--mst-pine-400);  /* 3.92 */
  --mst-color-text-placeholder: var(--mst-pine-300);  /* 5.84 */
  --mst-color-focus: var(--mst-champagne);  /* 6.63 */
  --mst-color-success: var(--mst-success-on-dark);  /* 6.65 */
  --mst-color-warning: var(--mst-warning-on-dark);  /* 7.03 */
  --mst-color-error: var(--mst-error-on-dark);  /* 6.18 */
  --mst-color-info: var(--mst-info-on-dark);  /* 6.70 */
  --mst-color-text-green: var(--mst-color-text);  /* no green text on a dark ground */
  --mst-shadow-1: none; --mst-shadow-2: none; --mst-shadow-3: none;
  background-color: var(--mst-color-bg); color: var(--mst-color-text);
}
/* A Burgundy and a Pine surface may sit edge to edge only where the boundary carries no information (decorative grounds, bands, panels; decision 24). Where the boundary must be seen, keep at least var(--mst-dark-gap) of Cream between them (layout gap or margin). Never text, logo or icon of one on the other. */

/* 14. BREAKPOINTS (rem, so they follow the reader's text size). Custom properties cannot be used inside @media;
   the values are sm 30rem (480 px), md 48rem (768 px), lg 64rem (1024 px), xl 80rem (1280 px). */
@media (min-width: 30rem) { :root { --mst-grid-columns: 4; --mst-grid-gutter: 1rem; --mst-grid-margin: 1.5rem; } }
@media (min-width: 48rem) { :root { --mst-grid-columns: 8; --mst-grid-gutter: 1.5rem; --mst-grid-margin: 2rem; } }
@media (min-width: 64rem) { :root { --mst-grid-columns: 12; --mst-grid-gutter: 1.5rem; --mst-grid-margin: 3rem; --mst-lh-display: 1.06; --mst-lh-h1: 1.1; --mst-lh-h2: 1.15; --mst-lh-h3: 1.2; --mst-lh-body: 1.65; --mst-ls-display: -0.01em; --mst-ls-h1: -0.005em; } }
@media (min-width: 80rem) { :root { --mst-grid-columns: 12; --mst-grid-gutter: 2rem; --mst-grid-margin: 4rem; } }

/* 15. PRINT (pt). Derived from the screen scale; not proofed on paper. Body text prints in Ink or black only. */
@media print {
  :root {
    --mst-fs-display: 40pt; --mst-lh-display: 1.05;
    --mst-fs-h1: 26pt; --mst-lh-h1: 1.1;
    --mst-fs-h2: 19pt; --mst-lh-h2: 1.15;
    --mst-fs-h3: 14pt; --mst-lh-h3: 1.2;
    --mst-fs-h4: 11pt; --mst-lh-h4: 1.3;
    --mst-fs-quote: 13pt; --mst-lh-quote: 1.35;
    --mst-fs-lead: 12pt; --mst-lh-lead: 1.45;
    --mst-fs-body: 10pt; --mst-lh-body: 1.5;
    --mst-fs-small: 8pt; --mst-lh-small: 1.45;
    --mst-fs-label: 7.5pt; --mst-lh-label: 1.5;
    --mst-fs-price: 10pt; --mst-lh-price: 1.3;
    --mst-fs-total: 15pt; --mst-lh-total: 1.1;
    --mst-ls-display: 0; --mst-ls-h1: 0;
  }
}

/* 16. BASE RULES that the tokens depend on */
/* Turkish: the page is <html lang="tr">; the brand name and "Every table is a signature." carry lang="en".
   Playfair Display has an "fi" ligature that swallows the dot of the i ("Teklifi" reads like "Teklifı").
   With lang="tr" the font switches it off by itself; this rule switches it off everywhere, tagged or not. */
:where(html) { font-family: var(--mst-font-text); font-size: 100%; font-kerning: normal; font-variant-ligatures: no-common-ligatures; font-variant-numeric: lining-nums tabular-nums; }
:where(body) { background-color: var(--mst-color-bg); color: var(--mst-color-text); font-size: var(--mst-fs-body); line-height: var(--mst-lh-body); }
:where(a) { color: var(--mst-color-link); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color var(--mst-duration-fast) var(--mst-ease-out); }
:where(a:visited) { color: var(--mst-color-link-visited); }
:where(a:hover) { color: var(--mst-color-link-hover); text-decoration-thickness: 2px; }
:where(a:active) { color: var(--mst-color-link-active); }
:where(::placeholder) { color: var(--mst-color-text-placeholder); opacity: 1; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: var(--mst-focus-width) solid var(--mst-color-focus); outline-offset: var(--mst-focus-offset); }
@media (prefers-reduced-motion: reduce) {
  :root { --mst-duration-fast: 0.01ms; --mst-duration-base: 0.01ms; --mst-duration-slow: 0.01ms; --mst-duration-slower: 0.01ms; --mst-motion-distance: 0px; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* 17. TYPE CLASSES. Playfair Display: no ligatures, lining figures, never below 20 px (24 px on dark grounds). */
.mst-display { font-family: var(--mst-font-display); font-size: var(--mst-fs-display); font-weight: var(--mst-fw-display); line-height: var(--mst-lh-display); letter-spacing: var(--mst-ls-display); color: var(--mst-color-heading); font-variant-ligatures: no-common-ligatures; font-feature-settings: "liga" 0, "clig" 0, "lnum" 1; font-variant-numeric: lining-nums; }
.mst-h1 { font-family: var(--mst-font-display); font-size: var(--mst-fs-h1); font-weight: var(--mst-fw-h1); line-height: var(--mst-lh-h1); letter-spacing: var(--mst-ls-h1); color: var(--mst-color-heading); font-variant-ligatures: no-common-ligatures; font-feature-settings: "liga" 0, "clig" 0, "lnum" 1; font-variant-numeric: lining-nums; }
.mst-h2 { font-family: var(--mst-font-display); font-size: var(--mst-fs-h2); font-weight: var(--mst-fw-h2); line-height: var(--mst-lh-h2); letter-spacing: var(--mst-ls-h2); color: var(--mst-color-heading); font-variant-ligatures: no-common-ligatures; font-feature-settings: "liga" 0, "clig" 0, "lnum" 1; font-variant-numeric: lining-nums; }
.mst-h3 { font-family: var(--mst-font-display); font-size: var(--mst-fs-h3); font-weight: var(--mst-fw-h3); line-height: var(--mst-lh-h3); letter-spacing: var(--mst-ls-h3); color: var(--mst-color-heading); font-variant-ligatures: no-common-ligatures; font-feature-settings: "liga" 0, "clig" 0, "lnum" 1; font-variant-numeric: lining-nums; }
.mst-h4 { font-family: var(--mst-font-text); font-size: var(--mst-fs-h4); font-weight: var(--mst-fw-h4); line-height: var(--mst-lh-h4); letter-spacing: var(--mst-ls-h4); color: var(--mst-color-heading); }
.mst-quote { font-family: var(--mst-font-display); font-size: var(--mst-fs-quote); font-weight: var(--mst-fw-quote); line-height: var(--mst-lh-quote); letter-spacing: var(--mst-ls-quote); font-variant-ligatures: no-common-ligatures; font-feature-settings: "liga" 0, "clig" 0, "lnum" 1; font-variant-numeric: lining-nums; font-style: italic; }
.mst-lead { font-family: var(--mst-font-text); font-size: var(--mst-fs-lead); font-weight: var(--mst-fw-lead); line-height: var(--mst-lh-lead); letter-spacing: var(--mst-ls-lead); }
.mst-body { font-family: var(--mst-font-text); font-size: var(--mst-fs-body); font-weight: var(--mst-fw-body); line-height: var(--mst-lh-body); letter-spacing: var(--mst-ls-body); }
.mst-small { font-family: var(--mst-font-text); font-size: var(--mst-fs-small); font-weight: var(--mst-fw-small); line-height: var(--mst-lh-small); letter-spacing: var(--mst-ls-small); }
.mst-label { font-family: var(--mst-font-text); font-size: var(--mst-fs-label); font-weight: var(--mst-fw-label); line-height: var(--mst-lh-label); letter-spacing: var(--mst-ls-label); color: var(--mst-color-accent); text-transform: uppercase;  /* gives İ only inside lang="tr"; typing the capitals is safer */ }
.mst-button { font-family: var(--mst-font-text); font-size: var(--mst-fs-button); font-weight: var(--mst-fw-button); line-height: var(--mst-lh-button); letter-spacing: var(--mst-ls-button); }
.mst-price { font-family: var(--mst-font-text); font-size: var(--mst-fs-price); font-weight: var(--mst-fw-price); line-height: var(--mst-lh-price); letter-spacing: var(--mst-ls-price); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.mst-total { font-family: var(--mst-font-text); font-size: var(--mst-fs-total); font-weight: var(--mst-fw-total); line-height: var(--mst-lh-total); letter-spacing: var(--mst-ls-total); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.mst-display :where(em, i), .mst-h1 :where(em, i), .mst-h2 :where(em, i) { font-style: italic; font-weight: var(--mst-fw-accent-italic); }
.mst-h3 :where(em, i) { font-style: italic; font-weight: 500; }
.mst-body :where(strong, b), .mst-lead :where(strong, b) { font-weight: var(--mst-fw-semibold); }
