/*
  Mavensoft Furniture — design tokens
  Ported from design-system/tokens/*.css, with the type-scale values that
  IMPLEMENTATION.md specifies as authoritative for these pages (hero, section
  H2, piece names, eyebrow, micro label, button) overriding the design
  system's own generic tokens where the two differ.
*/

/* Fonts — both served by Google Fonts, matching design-system/tokens/fonts.css */
@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;1,6..96,400&family=Jost:wght@300;400;500;600&display=swap");

:root {
  --ms-font-display: "Bodoni Moda", Didot, "Times New Roman", Georgia, serif;
  --ms-font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;

  /* Base palette — Charcoal & Camel (design-system/tokens/colors.css) */
  --ms-charcoal: #242424;
  --ms-near-black: #1A1A1A;
  --ms-chalk: #F0EDE7;
  --ms-camel: #B07F4D;
  --ms-camel-deep: #8F6538;
  --ms-camel-light: #C99A62;
  --ms-tobacco: #5E3A28;
  --ms-ash: #8E8880;
  --ms-paper: #F8F6F2;

  /* Semantic — light (default, and only theme these pages ship) */
  --ms-bg: var(--ms-chalk);
  --ms-surface: var(--ms-paper);
  --ms-surface-raised: #FFFDF9;
  --ms-ground-dark: var(--ms-charcoal);
  --ms-ground-darker: var(--ms-near-black);

  --ms-text: var(--ms-charcoal);
  --ms-text-muted: #5C574F;
  --ms-text-subtle: #5C574F;
  --ms-text-on-dark: var(--ms-chalk);
  --ms-text-muted-dark: #B3ADA4;

  --ms-accent: var(--ms-camel);
  --ms-accent-text: var(--ms-camel-deep);
  --ms-accent-on-dark: var(--ms-camel-light);

  --ms-line: #DDD8CF;
  --ms-line-strong: #C4BDB1;
  --ms-line-dark: #333331;

  --ms-focus: var(--ms-camel);
  --ms-error: #8A2F1E;
  --ms-success: #4A5D3A;

  /* Distribution target per page: chalk 60 · charcoal 22 · ash 12 · camel 6 */

  /* Shape & motion (design-system/tokens/shape-motion.css) */
  --ms-radius: 0;
  --ms-radius-round: 50%;
  --ms-border: 1px;
  --ms-border-accent: 2px;
  --ms-ease: cubic-bezier(0.2, 0, 0.2, 1);
  --ms-duration: 240ms;
  --ms-transition: all var(--ms-duration) var(--ms-ease);
  --ms-scrim: linear-gradient(180deg, rgba(36, 36, 36, 0) 0%, rgba(36, 36, 36, 0.68) 100%);
  --ms-scrim-flat: rgba(36, 36, 36, 0.46);

  /* Entrance easing — IMPLEMENTATION.md motion table (homepage + story reveals) */
  --ms-ease-entrance: cubic-bezier(.16, 1, .3, 1);
  --ms-ease-dramatic: cubic-bezier(0.19, 1, 0.22, 1);

  /* Spacing (design-system/tokens/spacing.css) */
  --ms-space-1: 4px;
  --ms-space-2: 8px;
  --ms-space-3: 16px;
  --ms-space-4: 24px;
  --ms-space-5: 32px;
  --ms-space-6: 48px;
  --ms-space-7: 64px;
  --ms-space-8: 96px;
  --ms-space-9: 128px;
  --ms-container: 1160px;
  --ms-gutter: 26px;
  --ms-section-y: var(--ms-space-8);
  --ms-block-y: var(--ms-space-6);
  --ms-rule-width: 44px;

  /* Type — IMPLEMENTATION.md is authoritative for these six */
  --ms-hero-size: clamp(38px, 6.4vw, 84px);
  --ms-hero-leading: 1.04;
  --ms-hero-tracking: -0.018em;

  --ms-h2-size: clamp(30px, 3.6vw, 50px);
  --ms-h2-leading: 1.1;
  --ms-h2-tracking: -0.012em;

  --ms-piece-name-size: clamp(38px, 6.2vw, 72px);
  --ms-piece-name-leading: 1.08;

  --ms-body-size: 17px;
  --ms-body-leading: 1.7;
  --ms-measure: 66ch;

  --ms-eyebrow-size: 18px;
  --ms-eyebrow-tracking: 0.26em;

  --ms-micro-size: 11px;
  --ms-micro-tracking: 0.22em;

  --ms-button-size: 13px;
  --ms-button-tracking: 0.14em;

  /* Remaining scale, from design-system/tokens/typography.css (not contradicted) */
  --ms-h1-size: clamp(34px, 5vw, 56px);
  --ms-h1-leading: 1.1;
  --ms-h3-size: 22px;
  --ms-h3-leading: 1.3;
  --ms-body-lg-size: 19px;
  --ms-body-lg-leading: 1.6;
  --ms-caption-size: 13.5px;
  --ms-caption-leading: 1.5;
  --ms-input-size: 16px; /* never below 16px — iOS zooms on focus */
  --ms-weight-display: 400;
  --ms-weight-display-medium: 500;
  --ms-weight-body: 300;
  --ms-weight-label: 400;
  --ms-weight-strong: 500;
  --ms-wordmark-tracking: 0.30em;
}

@media (prefers-reduced-motion: reduce) {
  :root { --ms-duration: 1ms; }
}
