
/* =========================================================
   TYPOPGRAPHY
   Kieran Burr / Magma Studio
========================================================= */



/* =========================
   FONT FACE
========================= */


@font-face {
  font-family: "PP Montreal";
  src: url("../../fonts/PPNeueMontrealMono-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}



@font-face {
  font-family: "Tiny";
  src: url("../../fonts/Tiny-Medium.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: "PP Editorial";
  src: url("../../fonts/PPEditorialNew-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Haas Display";
  src: url("../../fonts/NeueHaasDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Haas Display";
  src: url("../../fonts/NeueHaasDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* =========================
   TYPO VARIABLES
========================= */

:root {

  --font-primary: "NeueHaasDisplay", sans-serif;
  --font-secondary: "PP Editorial", serif;
  --font-third: "Tiny", serif;
  --font-fourth: "PP Montreal", sans-serif;

  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 20px;
  --fs-xl: 32px;
  --fs-xxl: 56px; 
  --fs-3xl: 80px; 
  --fs-4xl: 120px;
  --fs-5xl: 180px;



  --lh-tight: 0.9;
  --lh-base: 1.2;
  --lh-copy: 1.5;

  --ls-tight: -0.06em;
  --ls-base: 0;
  --ls-wide: 0.05em;

}

/* =========================
   GLOBAL TYPO
========================= */

html {
  font-size: 100%;
}

body {

  font-family: var(--font-primary);

  font-size: var(--fs-lg);

  line-height: var(--lh-base);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  text-rendering: optimizeLegibility;
}

/* =========================
   HEADINGS
========================= */

h1,
h2,
h3,
h4,
h5,
h6 {

  font-weight: 500;

  line-height: var(--lh-tight);

  letter-spacing: var(--ls-tight);
}

/* =========================
   TEXT
========================= */

p {

  line-height: var(--lh-copy);

  text-wrap: pretty;
}

.sub-small {
  display: inline-block;
  padding-bottom: var(--fs-xl); 
  /*border: 1px solid red;*/
}

/* =========================
   LINKS
========================= */

a {

  color: var(--text);

  text-decoration: none;

  transition:
    opacity 0.3s ease,
    color 0.3s ease;
}

a:hover {
  opacity: 0.6;
}




/* =========================
   HELPERS
========================= */

.text-muted {
  opacity: 0.6;
}

.text-center {
  text-align: center;
}

.text-balance {
  text-wrap: balance;
}

/* =========================
   SELECTION
========================= */

::selection {
  background: white;
  color: black;
}

body.light ::selection {
  background: black;
  color: white;
}