/* ==================================================
   Typography
   schwimm einfach Theme
================================================== */


/* ==================================================
   Base typography
================================================== */

html {
  font-size: 100%;
}

body {
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ==================================================
   Headings
================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: var(--space-24);

  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-heading);
  color: var(--color-secondary);
}

h1 {
  font-size: var(--font-size-heading-home);
}

h2 {
  font-size: var(--font-size-heading-section);
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-lg);
}

h5 {
  font-size: var(--font-size-md);
}

h6 {
  font-size: var(--font-size-sm);
}


/* ==================================================
   Text elements
================================================== */

p {
  margin-top: 0;
  margin-bottom: var(--space-24);
}

p:last-child {
  margin-bottom: 0;
}

strong,
b {
  font-weight: var(--font-weight-bold);
}

em,
i {
  font-style: italic;
}

small {
  font-size: var(--font-size-sm);
}


/* ==================================================
   Links
================================================== */

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--color-primary-dark);
}


/* ==================================================
   Lists
================================================== */

ul,
ol {
  margin-top: 0;
  margin-bottom: var(--space-24);
  padding-left: var(--space-24);
}

li + li {
  margin-top: var(--space-8);
}


/* ==================================================
   Buttons and form controls
================================================== */

button,
input,
select,
textarea {
  font: inherit;
}

button,
.btn,
.wp-block-button__link {
  font-family: var(--font-family-ui);
  font-size: var(--font-size-button);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-button);
}


/* ==================================================
   Legal and utility text
================================================== */

.legal-link,
.footer-legal,
.footer-legal a {
  font-family: var(--font-family-ui);
  font-size: var(--font-size-legal);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-legal);
}


/* ==================================================
   Text selection
================================================== */

::selection {
  color: var(--color-white);
  background-color: var(--color-primary);
}