/* ==========================================================
   СВФ — Сибирская вышивальная фабрика
   Colors + Type foundations (source: SVF_Guide, 2019)
   ========================================================== */

/* Calibri is the brand body/heading font. Carlito is the
   metric-compatible open substitute (flagged). Comfortaa is the
   rounded geometric face used for the wordmark / descriptor. */
@font-face { font-family: "Carlito"; src: url("fonts/Carlito-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("fonts/Carlito-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("fonts/Carlito-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("fonts/Carlito-BoldItalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Comfortaa"; src: url("fonts/Comfortaa-VariableFont_wght.ttf") format("truetype"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  /* ---------- Core brand palette (from guide p.7) ---------- */
  --svf-blue:   #4682b4;  /* первичный цвет — primary (steel blue) */
  --svf-gold:   #d9b15d;  /* вторичный цвет — secondary (mustard gold) */
  --svf-gray:   #e6e6e6;  /* фоновый цвет — background */
  --svf-ink:    #636363;  /* descriptor / wordmark gray */

  /* print-tint variants seen on letterhead/business card pattern fills */
  --svf-blue-print: #4b8dc2;
  --svf-gold-print: #e6bb62;

  /* dark ground for reversed logo (guide p.3) */
  --svf-dark:   #21211f;
  --svf-black:  #000000;
  --svf-white:  #ffffff;

  /* ---------- Sub-brand colors ("другие направления") ---------- */
  --svf-eco:    #9dbf52;  /* СВФ eco   — leaves pattern */
  --svf-team:   #e87272;  /* СВФ team  — puzzle pattern */
  --svf-kids:   #eb905b;  /* СВФ kids  — balloon pattern */
  --svf-form:   #2db377;  /* СВФ form  — t-shirt pattern */
  --svf-lazer:  #c9355b;  /* СВФ lazer — spark pattern */
  --svf-lime:   #c8d68d;  /* solid-color logo ground sample */

  /* ---------- Semantic ---------- */
  --bg:         var(--svf-white);
  --bg-soft:    var(--svf-gray);
  --bg-inverse: var(--svf-dark);
  --fg1:        #1a1a1a;          /* headings (guide uses near-black Calibri Bold) */
  --fg2:        #3a3a3a;          /* body copy */
  --fg3:        var(--svf-ink);   /* captions, descriptors, labels */
  --fg-inverse: var(--svf-white);
  --accent:     var(--svf-blue);
  --accent-2:   var(--svf-gold);
  --border:     #d4d4d4;
  --focus:      var(--svf-blue);

  /* ---------- Type families ---------- */
  --font-sans:    "Calibri", "Carlito", "Segoe UI", sans-serif;   /* everything */
  --font-rounded: "Comfortaa", "Calibri", sans-serif;             /* wordmark-style only */

  /* ---------- Type scale (px) ---------- */
  --fs-display: 56px;
  --fs-h1: 40px;
  --fs-h2: 30px;
  --fs-h3: 22px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-caption: 12px;

  /* ---------- Radii — "минимум углов" ---------- */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 32px;
  --r-pill: 999px;   /* default for containers: capsule / stadium */

  /* ---------- Spacing (4-pt) ---------- */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* ---------- Elevation (mockups use soft drop shadow only) ---------- */
  --shadow-1: 0 2px 6px rgba(0,0,0,.08);
  --shadow-2: 0 12px 30px rgba(0,0,0,.14);

  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------- Semantic element styles ---------- */
.svf, .svf body { font-family: var(--font-sans); color: var(--fg2); background: var(--bg); }

.svf-display { font-family: var(--font-rounded); font-weight: 400; font-size: var(--fs-display); line-height: 1.05; color: var(--svf-ink); letter-spacing: 0; }
.svf h1, .svf-h1 { font-family: var(--font-sans); font-weight: 700; font-size: var(--fs-h1); line-height: 1.15; color: var(--fg1); margin: 0; }
.svf h2, .svf-h2 { font-family: var(--font-sans); font-weight: 700; font-size: var(--fs-h2); line-height: 1.2; color: var(--fg1); margin: 0; }
.svf h3, .svf-h3 { font-family: var(--font-sans); font-weight: 700; font-size: var(--fs-h3); line-height: 1.25; color: var(--fg1); margin: 0; }
.svf p,  .svf-p  { font-family: var(--font-sans); font-weight: 400; font-size: var(--fs-body); line-height: 1.45; color: var(--fg2); margin: 0; text-align: justify; hyphens: auto; }
.svf-caption     { font-family: var(--font-sans); font-style: italic; font-weight: 300; font-size: var(--fs-small); line-height: 1.4; color: var(--fg3); }
.svf-label       { font-family: var(--font-sans); font-style: italic; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; color: var(--fg3); }
.svf-hex         { font-family: var(--font-sans); font-style: italic; font-size: var(--fs-small); color: var(--fg3); }
