/* tokens/fonts.css */
/* CoFo Weather — the real brand typeface, as shipped on skpmk.ru (Tilda CDN export). One family, three cuts:
   400 = Normal Regular (body), 700 = Normal Bold (nav, buttons, values), 900 = Wide Black (headlines). */
@font-face{font-family:"CoFoWeather";src:url("assets/fonts/CoFoWeather-NormalRegular.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"CoFoWeather";src:url("assets/fonts/CoFoWeather-NormalBold.woff") format("woff");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"CoFoWeather";src:url("assets/fonts/CoFoWeather-WideBlack.woff") format("woff");font-weight:900;font-style:normal;font-display:swap}

/* tokens/colors.css */
:root {
  /* Base palette — digital values from skpmk.ru site code */
  --pmk-red: #E60004;          /* site red (buttons, accents, bullets, hover) */
  --pmk-red-alt: #E60003;      /* used interchangeably on site for index labels / rules */
  --pmk-red-print: #E30613;    /* brand book print value · Pantone 1788 C · RAL 3024 */
  --pmk-ink: #303030;          /* primary text + footer background */
  --pmk-ink-deep: #1B1C20;     /* hairline strokes (at 30%) */
  --pmk-black: #000000;
  --pmk-white: #FFFFFF;
  --pmk-plate: #E6E6E6;        /* grey chamfered button plate on white */
  --pmk-field-border: #BBBBBC; /* form inputs */
  --pmk-grey: #9D9D9C;         /* brand book Cool Gray 7 C */
  --pmk-grey-dark: #7C7C7B;    /* brand book Cool Gray 9 C */
  --pmk-grey-100: #F4F4F4;
  --pmk-grey-200: #E8E8E7;
  --pmk-graphite: #323130;
  /* Semantic aliases */
  --brand: var(--pmk-red);
  --text-body: var(--pmk-ink);
  --text-secondary: rgba(48,48,48,.7);   /* site: #303030 @ 0.7 for lead paragraphs */
  --text-muted: rgba(48,48,48,.5);       /* site: #303030 @ 0.5 for eyebrows + body copy */
  --text-inverse: var(--pmk-white);
  --text-inverse-muted: rgba(255,255,255,.5);
  --text-accent: var(--pmk-red);
  --surface-page: var(--pmk-white);
  --surface-card: var(--pmk-white);
  --surface-plate: var(--pmk-plate);
  --surface-subtle: var(--pmk-grey-100);
  --surface-inverse: var(--pmk-ink);     /* footer */
  --surface-accent: var(--pmk-red);
  --border-hairline: rgba(27,28,32,.3);  /* card outlines, isometric dividers */
  --border-rule: rgba(48,48,48,.3);      /* 1px section rules */
  --border-field: var(--pmk-field-border);
  --border-strong: var(--pmk-black);
  --border-subtle: var(--pmk-grey-200);
  --divider: var(--border-rule);
  --overlay-photo: rgba(0,0,0,.4);       /* hero photo dim */
  --overlay-tile: linear-gradient(0turn, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 100%); /* @kind color */
}

/* tokens/typography.css */
:root {
  /* Site uses one family for everything (--t-headline-font: CoFoWeather) */
  --font-display: "CoFoWeather", Arial, sans-serif;  /* weight 900 = Wide Black */
  --font-body: "CoFoWeather", Arial, sans-serif;     /* 400 Normal Regular / 700 Normal Bold */
  --display-weight: 900;
  --display-transform: uppercase; /* @kind other */
  --weight-regular: 400;
  --weight-bold: 700;
  --weight-black: 900;
  /* Desktop scale (1200 artboard) — exact site values */
  --text-hero: 40px;        /* hero H1, lh 1.1 */
  --text-h2: 34px;          /* section titles, lh 1 */
  --text-h3: 22px;          /* card / stage titles, lh 1 */
  --text-tile: 20px;        /* service tile titles, lh 1 */
  --text-lead: 18px;        /* hero service list, lh 1.3, ls -0.3px */
  --text-body-size: 16px;   /* body, lh 1.3 */
  --text-ui: 14px;          /* nav, buttons (700 caps), eyebrows (400 @50%) */
  --text-small: 12px;       /* index labels "[ 01 - 07 ]", legal */
  --text-micro: 10px;       /* "Back to top", ls 2px caps */
  /* legacy aliases */
  --text-display-1: var(--text-hero);
  --text-display-2: var(--text-h2);
  --text-title: var(--text-h3);
  --text-kicker: var(--text-ui);
  --leading-tight: 1;
  --leading-hero: 1.1;
  --leading-list: 1.2;
  --leading-body: 1.3;
  --tracking-lead: -0.3px;
  --tracking-tight: -0.5px;
  --tracking-micro: 2px;
  --display-stretch: 100%;  /* Wide Black is natively wide — no synthetic stretch */
  --display-spacing: 0;
  --kicker-spacing: 0;
  --text-display: var(--text-hero);
  --leading-display: 1.1;
}

/* tokens/spacing.css */
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 40px; --space-9: 64px;
  /* Layout — Tilda zero-block grid */
  --container: 1200px;
  --gutter: 20px;          /* side padding inside the 1200 artboard */
  --col-gap: 20px;         /* service tiles: 275px + 20px */
  /* Corners: 3px everywhere; signature = isometric chamfer on two opposite corners */
  --radius: 3px;
  --radius-pill: 40px;     /* news feed filter pills */
  --chamfer-x: 21px;       /* 30° isometric cut: 21 wide × 12 high */
  --chamfer-y: 12px;
  --control-height: 45px;  /* plate button */
  --control-height-sm: 40px; /* form field */
  --btn-square: 28px;      /* red icon square inside plate buttons */
}

/* tokens/effects.css */
:root {
  /* Flat site: no drop shadows. Depth via photo overlays and hairline isometric outlines. */
  --shadow-none: none;
  --shadow-popup: 0 0 7px 0 rgba(0,0,0,.2); /* menu/submenu only */
  --offset-frame: 6px 6px 0 0 var(--pmk-black); /* print deck photo plates */
  --offset-frame-red: 6px 6px 0 0 var(--pmk-red);
  --border-line: 1px solid var(--border-hairline);
  --divider-rule: 1px solid var(--border-rule);
  /* Chamfered plate (cut top-right + bottom-left, 30°) — use as clip-path */
  --clip-plate: polygon(0 0, calc(100% - var(--chamfer-x)) 0, 100% var(--chamfer-y), 100% 100%, var(--chamfer-x) 100%, 0 calc(100% - var(--chamfer-y))); /* @kind other */
  --clip-plate-alt: polygon(var(--chamfer-x) 0, 100% 0, 100% calc(100% - var(--chamfer-y)), calc(100% - var(--chamfer-x)) 100%, 0 100%, 0 var(--chamfer-y)); /* @kind other */
  --clip-hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); /* @kind other */
  --transition-fast: .2s ease-in-out; /* @kind other */
}
