/*
=========================================
Syaima Levantine Typography
Version: 1.0
Status: LOCKED
=========================================
*/

/* =====================================
   Base
===================================== */

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;

  font-family: var(--font-family);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);

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

  color: var(--color-text-primary);
  background-color: var(--color-background);

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =====================================
   Headings
===================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--color-text-primary);
}

/* Homepage Hero Title */

h1 {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-regular);

  letter-spacing: .28em;
  text-transform: uppercase;

  line-height: 1.4;
}

/* Article Section Title */

h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);

  line-height: 1.6;
}

/* Article Subheading */

h3 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);

  line-height: 1.6;
}

/* =====================================
   Paragraph
===================================== */

p {
  margin: 0 0 var(--space-md);

  font-size: var(--font-size-body);

  font-weight: var(--font-weight-regular);

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

  color: var(--color-text-primary);
}

/* =====================================
   Lists
===================================== */

ul,
ol {
  margin: 0 0 var(--space-md);
  padding-left: var(--space-lg);
}

li {
  margin-bottom: var(--space-xs);
  line-height: var(--line-height);
}

/* =====================================
   Links
===================================== */

a {
  color: var(--color-primary);

  text-decoration: none;

  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

/* =====================================
   Strong
===================================== */

strong {
  font-weight: var(--font-weight-bold);
}

/* =====================================
   Small Text
===================================== */

small {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
}

/* =====================================
   Selection
===================================== */

::selection {
  background: var(--color-bone);
  color: var(--color-charcoal);
}
