/* Explain: Base reset, typography, and general styling for the publication card. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background-color);
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    background: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.005em;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

p {
    margin: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--secondary-color);
    color: var(--text-color);
}