/*
  Nikali design tokens.
  The single source of colour, type, and spacing for nikali.org.
  The Repository (WordPress) theme should load this same file so both feel like one building.
*/

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
  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: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
  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: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  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: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Colour: the five brand colours, plus the working shades each one needs. */
  --forest: #173a32;
  --forest-deep: #0e221d;      /* the entrance hall at night */
  --forest-lift: #1f4b41;
  --ivory: #f3ede1;
  --ivory-shade: #e9e0cf;      /* older paper */
  --brass: #b49a63;
  --brass-light: #dcc695;
  --brass-ink: #6d5a2d;        /* brass that passes contrast on ivory */
  --charcoal: #20211e;
  --sage: #829487;
  --sage-light: #b5c2b8;

  --text: var(--charcoal);
  --text-soft: #52574e;
  --on-dark: var(--ivory);
  --on-dark-soft: #c2c8bd;
  --rule: rgba(32, 33, 30, 0.16);
  --rule-dark: rgba(243, 237, 225, 0.16);

  /* Type */
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --t-meta: 0.75rem;
  --t-small: 0.9375rem;
  --t-body: 1.0625rem;
  --t-lede: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --t-h3: clamp(1.625rem, 1.35rem + 1.3vw, 2.375rem);
  --t-h2: clamp(2.25rem, 1.45rem + 3.6vw, 4.25rem);
  --t-h1: clamp(2.75rem, 1.5rem + 5.6vw, 6.25rem);

  /* Space */
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section: clamp(4.5rem, 3rem + 8vw, 10.5rem);
  --max: 82.5rem;
  --head-h: 4.25rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (min-width: 76em) {
  :root { --head-h: 5.25rem; }
}
