/* ==========================================================
   Herbert Wulf Website 2.0
   Design System
   base.css
   ========================================================== */

/* ==========================================================
   RESET
   ========================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================
   ROOT
   ========================================================== */

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

/* ==========================================================
   BODY
   ========================================================== */

body {
    font-family: var(--font-body);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-body);

    color: var(--color-text);
    background: var(--color-background);

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================
   IMAGES
   ========================================================== */

img,
picture {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ==========================================================
   LINKS
   ========================================================== */

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover,
a:focus-visible {
    color: var(--color-link-hover);
}

/* ==========================================================
   LISTS
   ========================================================== */

ul,
ol {
    list-style: none;
}

/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {

    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);

    color: var(--color-heading);

    margin-bottom: var(--space-md);
}

h1 {
    font-size: var(--font-size-hero);
}

h2 {
    font-size: var(--font-size-xl);
}

h3 {
    font-size: var(--font-size-lg);
}

h4,
h5,
h6 {
    font-size: var(--font-size-md);
}

p {
    margin-bottom: var(--space-md);
}

strong {
    font-weight: var(--font-weight-semibold);
}

em {
    font-style: italic;
}

/* ==========================================================
   QUOTES
   ========================================================== */

blockquote {
    margin: 0;
}

blockquote p {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-style: italic;
    line-height: 1.5;
}

blockquote footer {
    margin-top: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

/* ==========================================================
   TABLES
   ========================================================== */

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
}

th {
    font-weight: var(--font-weight-semibold);
    color: var(--color-heading);
}

/* ==========================================================
   FORM ELEMENTS
   ========================================================== */

button,
input,
textarea,
select {
    font: inherit;
}

/* ==========================================================
   SELECTION
   ========================================================== */

::selection {
    background: var(--color-primary);
    color: #ffffff;
}

/* ==========================================================
   HORIZONTAL RULE
   ========================================================== */

hr {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: var(--space-xl) 0;
}

/* ==========================================================
   FOCUS
   ========================================================== */

:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 3px;
}