/* ============================================================
   VERIONA DESIGN SYSTEM — colors_and_type.css
   Editorial Terracota — warm, human, professional
   ============================================================ */

/* DM Sans — local variable font (uploaded brand files) */
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-VariableFont_opsz_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Italic-VariableFont_opsz_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
/* DM Sans — static fallbacks (for environments without variable font support) */
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-Thin.ttf') format('truetype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-ThinItalic.ttf') format('truetype'); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-ExtraLight.ttf') format('truetype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-ExtraLightItalic.ttf') format('truetype'); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-LightItalic.ttf') format('truetype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-MediumItalic.ttf') format('truetype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-SemiBoldItalic.ttf') format('truetype'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-BoldItalic.ttf') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-ExtraBoldItalic.ttf') format('truetype'); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-Black.ttf') format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-BlackItalic.ttf') format('truetype'); font-weight: 900; font-style: italic; font-display: swap; }

/* DM Mono — Google Fonts (no local file provided) */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&display=swap');

/* ============================================================
   BASE COLOR TOKENS
   ============================================================ */
:root {
  /* Brand core */
  --color-terracotta:      #C26D52;
  --color-terracotta-dark: #B05E44;
  --color-terracotta-dim:  #D4856E;
  --color-terracotta-mute: #EDD5CC;
  --color-terracotta-bg:   #F7EDE8;

  --color-graphite:        #2F3A4A;
  --color-graphite-mid:    #4A5568;
  --color-graphite-light:  #8896A7;
  --color-graphite-muted:  #B8C4CF;
  --color-graphite-bg:     #E8EDF2;

  --color-amber:           #D4A373;
  --color-amber-dark:      #BC8854;
  --color-amber-mute:      #EDD9C0;
  --color-amber-bg:        #FAF1E4;

  /* Neutrals — all warm-toned */
  --color-off-white:       #FAF7F2;
  --color-surface:         #F2EDE6;
  --color-surface-mid:     #E9E2D9;
  --color-border:          #E6DDD3;
  --color-border-strong:   #D4C9BF;

  /* Semantic */
  --color-bg:              #FAF7F2;   /* page background */
  --color-bg-card:         #FFFFFF;   /* card background */
  --color-bg-raised:       #F2EDE6;   /* subtle raised surface */
  --color-bg-overlay:      rgba(47, 58, 74, 0.30);

  --color-fg:              #2F3A4A;   /* primary text */
  --color-fg-secondary:    #4A5568;   /* secondary text */
  --color-fg-muted:        #8896A7;   /* muted / placeholders */
  --color-fg-on-dark:      #FAF7F2;   /* text on dark surfaces */

  --color-accent:          #C26D52;   /* primary CTA / accent */
  --color-accent-hover:    #B05E44;
  --color-accent-pressed:  #9E5239;
  --color-accent-subtle:   #F7EDE8;

  --color-highlight:       #D4A373;   /* secondary highlight */
  --color-highlight-mute:  #EDD9C0;

  --color-divider:         #E6DDD3;

  /* Status */
  --color-success:         #5A8C6E;
  --color-success-bg:      #EAF4EE;
  --color-warning:         #C49A3C;
  --color-warning-bg:      #FDF5E0;
  --color-error:           #B85454;
  --color-error-bg:        #FBEBEB;
  --color-info:            #4A7FA5;
  --color-info-bg:         #E8F2FA;
}

/* ============================================================
   TYPOGRAPHY TOKENS
   ============================================================ */
:root {
  --font-sans:   'DM Sans', 'Instrument Sans', system-ui, sans-serif;
  --font-mono:   'DM Mono', 'Fira Mono', monospace;

  /* Size scale */
  --text-xs:     11px;
  --text-sm:     13px;
  --text-base:   15px;
  --text-md:     16px;
  --text-lg:     18px;
  --text-xl:     20px;
  --text-2xl:    24px;
  --text-3xl:    30px;
  --text-4xl:    36px;
  --text-5xl:    48px;
  --text-6xl:    60px;
  --text-7xl:    72px;

  /* Weight */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* Line height */
  --leading-tight:   1.2;
  --leading-snug:    1.35;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  /* Letter spacing */
  --tracking-tight:   -0.02em;
  --tracking-snug:    -0.01em;
  --tracking-normal:   0em;
  --tracking-wide:     0.04em;
  --tracking-wider:    0.08em;
}

/* ============================================================
   SEMANTIC TYPOGRAPHY RULES
   ============================================================ */
:root {
  /* Display */
  --display-font:     var(--font-sans);
  --display-size:     var(--text-6xl);
  --display-weight:   var(--weight-semibold);
  --display-leading:  var(--leading-tight);
  --display-tracking: var(--tracking-tight);

  /* Headings */
  --h1-font:     var(--font-sans);
  --h1-size:     var(--text-5xl);
  --h1-weight:   var(--weight-semibold);
  --h1-leading:  var(--leading-tight);
  --h1-tracking: var(--tracking-tight);

  --h2-size:     var(--text-3xl);
  --h2-weight:   var(--weight-semibold);
  --h2-leading:  var(--leading-snug);
  --h2-tracking: var(--tracking-snug);

  --h3-size:     var(--text-2xl);
  --h3-weight:   var(--weight-medium);
  --h3-leading:  var(--leading-snug);

  --h4-size:     var(--text-xl);
  --h4-weight:   var(--weight-medium);

  --h5-size:     var(--text-lg);
  --h5-weight:   var(--weight-semibold);

  --h6-size:     var(--text-base);
  --h6-weight:   var(--weight-semibold);
  --h6-tracking: var(--tracking-wide);

  /* Body */
  --body-font:    var(--font-sans);
  --body-size:    var(--text-base);
  --body-weight:  var(--weight-regular);
  --body-leading: var(--leading-relaxed);

  --body-sm-size:    var(--text-sm);
  --body-sm-leading: var(--leading-normal);

  /* UI labels */
  --label-size:    var(--text-sm);
  --label-weight:  var(--weight-medium);
  --label-tracking: var(--tracking-wide);

  --caption-size:  var(--text-xs);
  --caption-weight: var(--weight-regular);
  --caption-tracking: var(--tracking-wide);

  /* Code */
  --code-font:   var(--font-mono);
  --code-size:   var(--text-sm);
}

/* ============================================================
   SPACING TOKENS
   ============================================================ */
:root {
  --space-0:   0px;
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;
  --space-24:  96px;
  --space-32:  128px;
}

/* ============================================================
   RADIUS TOKENS
   ============================================================ */
:root {
  --radius-sm:   4px;   /* tags, chips, badges */
  --radius-md:   6px;   /* inputs, small buttons */
  --radius-base: 8px;   /* standard buttons, list items */
  --radius-lg:   12px;  /* cards, modals, dropdowns */
  --radius-xl:   16px;  /* large hero cards */
  --radius-full: 9999px; /* pills */
}

/* ============================================================
   SHADOW / ELEVATION TOKENS
   ============================================================ */
:root {
  --shadow-xs:  0 1px 2px rgba(47, 58, 74, 0.06);
  --shadow-sm:  0 1px 3px rgba(47, 58, 74, 0.08), 0 2px 6px rgba(47, 58, 74, 0.05);
  --shadow-md:  0 2px 6px rgba(47, 58, 74, 0.08), 0 6px 16px rgba(47, 58, 74, 0.07);
  --shadow-lg:  0 4px 12px rgba(47, 58, 74, 0.10), 0 16px 32px rgba(47, 58, 74, 0.08);
  --shadow-xl:  0 8px 24px rgba(47, 58, 74, 0.12), 0 24px 48px rgba(47, 58, 74, 0.10);
  --shadow-inset: inset 0 1px 3px rgba(47, 58, 74, 0.10);
}

/* ============================================================
   TRANSITION TOKENS
   ============================================================ */
:root {
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --ease-inout: cubic-bezier(0.4, 0, 0.2, 1);

  --duration-fast:   100ms;
  --duration-base:   150ms;
  --duration-slow:   250ms;
  --duration-slower: 350ms;
}

/* ============================================================
   BASE RESETS + GLOBALS
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
}

h1 { font-size: var(--h1-size); font-weight: var(--h1-weight); line-height: var(--h1-leading); letter-spacing: var(--h1-tracking); }
h2 { font-size: var(--h2-size); font-weight: var(--h2-weight); line-height: var(--h2-leading); letter-spacing: var(--h2-tracking); }
h3 { font-size: var(--h3-size); font-weight: var(--h3-weight); line-height: var(--h3-leading); }
h4 { font-size: var(--h4-size); font-weight: var(--h4-weight); }
h5 { font-size: var(--h5-size); font-weight: var(--h5-weight); }
h6 { font-size: var(--h6-size); font-weight: var(--h6-weight); letter-spacing: var(--h6-tracking); }

p { font-size: var(--body-size); line-height: var(--body-leading); color: var(--color-fg-secondary); }

code, pre { font-family: var(--font-mono); font-size: var(--code-size); }

a { color: var(--color-accent); text-decoration: none; transition: opacity var(--duration-base) var(--ease-out); }
a:hover { opacity: 0.75; }
