/* Design tokens for «Пісенька з іменем».
   The site reads everything from here; the email templates copy the hex values
   (paper, surface, ink, muted, accent, accent-ink, sun, leaf) because mail clients
   do not understand custom properties. */

@font-face {
  font-family: "Kurale";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/kurale-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Kurale";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/kurale-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nunito-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/nunito-cyrillic-800-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* colour: warm paper, brown ink, one terracotta accent for the main action */
  --c-paper: #FFF8EC;        /* page background (emails: background) */
  --c-paper-deep: #FCEFD8;   /* alternate sections */
  --c-surface: #FFFFFF;      /* cards (emails: surface) */
  --c-ink: #2B2118;          /* text (emails: ink) */
  --c-ink-soft: #4A3C30;
  --c-muted: #6B5A4C;        /* secondary text, 6.2:1 on paper (emails: muted #7A6A5C is fine too) */
  --c-line: #EADBC4;
  --c-line-strong: #D9C3A3;

  --c-accent: #C9461F;       /* main action, 4.8:1 with white (emails: accent) */
  --c-accent-hover: #B03B17;
  --c-accent-ink: #FFFFFF;   /* text on accent (emails: accent-ink) */
  --c-accent-text: #B03B17;  /* accent-coloured text on paper */
  --c-coral: #F2603C;        /* decorative only, never behind text */
  --c-accent-soft: #FDE4D8;

  --c-sun: #FFC93C;          /* record labels, highlights (emails: sun) */
  --c-sun-soft: #FFF0C4;
  --c-leaf: #3E9B6B;         /* success, decorative (emails: leaf) */
  --c-leaf-ink: #2A6E4B;
  --c-leaf-soft: #E3F3E9;
  --c-sky: #DDEEF5;
  --c-sky-ink: #2D5D73;

  --c-vinyl: #2B2118;
  --c-vinyl-groove: #4A3B2E;

  --c-error: #B3261E;
  --c-error-soft: #FCE8E5;
  --c-focus: #1E5FB4;

  /* type */
  --font-display: "Kurale", "Georgia", "Times New Roman", serif;
  --font-text: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-md: 1.0625rem;   /* 17: body */
  --fs-lg: 1.1875rem;   /* 19 */
  --fs-xl: clamp(1.375rem, 1.1rem + 1.2vw, 1.625rem);
  --fs-2xl: clamp(1.625rem, 1.25rem + 1.8vw, 2.25rem);
  --fs-3xl: clamp(2rem, 1.4rem + 3vw, 3.25rem);

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-body: 1.55;

  /* space (4 px rhythm) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-7: 2rem;
  --s-8: 2.5rem;
  --s-9: 3rem;
  --s-10: 4rem;
  --s-11: 5rem;
  --s-12: 6.5rem;

  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --measure: 38rem;
  --page-max: 72rem;

  /* shape */
  --r-sm: 0.5rem;
  --r-md: 0.875rem;
  --r-lg: 1.375rem;
  --r-xl: 2rem;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(74, 48, 24, 0.08), 0 2px 6px rgba(74, 48, 24, 0.06);
  --shadow-md: 0 2px 4px rgba(74, 48, 24, 0.06), 0 10px 24px -6px rgba(74, 48, 24, 0.16);
  --shadow-lg: 0 4px 8px rgba(74, 48, 24, 0.06), 0 24px 48px -12px rgba(74, 48, 24, 0.24);
  --shadow-btn: 0 2px 0 #8E2F12, 0 8px 18px -6px rgba(201, 70, 31, 0.55);

  --tap: 3rem; /* 48 px minimum target */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 140ms;
  --t-med: 260ms;
}
