/* 
 *   Lapis CV  /  Author - YiNN (BingyanStudio)
 *   https://github.com/BingyanStudio/LapisCV
 */

/* Text */

a,
a span {
    font-family: var(--link-font);
}

code {
    font-family: var(--code-font);
}

p,
li {
    font-family: "LapisCV Icon", var(--text-font);
    font-size: var(--text-size);
    line-height: var(--line-height);
    color: var(--text-normal);
}

/* Title */

h1,
h2,
h3 {
    font-weight: bold;
    font-family: "LapisCV Icon", var(--title-font);
}

h1 {
    font-size: var(--h1-size);
    color: var(--h1-color);
    line-height: 1.5;
    border-bottom: 0;
}

h1,
blockquote p {
    text-align: center;
}

h2 {
    color: var(--h2-color);
    font-size: var(--h2-size);
    border-bottom: 1px solid color-mix(in srgb, var(--color-accent), rgb(0 0 0 / 0) 60%);
    margin-top: 2.4mm !important;
    margin-bottom: 1.9mm !important;
    line-height: 1;
    padding: 1mm 0;
}

h3,
h4,
h5,
h6 {
    color: var(--h3-color);
    line-height: 1.8;
    font-size: var(--h3-size);
}

h3 a,
h4 a,
h5 a,
h6 a {
    font-weight: normal;
    font-size: var(--h3-size) - 0.5pt;
}

.md-math-block,
.md-rawblock,
h1,
h3,
h4,
h5,
h6,
blockquote,
p,
li p {
    margin-top: 0;
    margin-bottom: 0;
}

@media print {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid;
    }
}

strong {
    color: var(--text-strong);
}

/* List */

ul {
    list-style-type: '\2022';
    padding-inline-start: 3mm;
    padding-inline-end: 1mm;
}

ol {
    padding-inline-start: 5mm;
    padding-inline-end: 1mm;
}

ol li {
    padding-left: 0;
}

ol,
ul {
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

li {
    padding-left: 1.5mm;
}

ul ::marker {
    font-weight: bolder;
}

ol ::marker {
    font-weight: normal;
}

/* Avatar */

.avatar,
img[alt="avatar"] {
    display: block;
    position: relative;
    top: 1mm;
    right: 0;
    z-index: 9999;
    float: right;
    object-fit: cover;
    overflow: hidden;

    width: var(--avatar-width);
    height: var(--avatar-width);
    border-radius: 50%;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 0 3mm var(--background-primary);
    margin: 0 0 0 6mm;
}

p:has(.avatar, img[alt="avatar"]) {
    height: 0;
    text-align: center;
    padding: 0;
    margin: 0;
}

/* Link */

a {
    color: var(--link-color);
    filter: brightness(1.3) hue-rotate(-10deg);
    text-decoration: none;
    font-weight: normal;
}

/* Code */

code {
    background-color: var(--background-primary);
    color: var(--text-normal) !important;
    font-size: var(--text-size);
}

/* Block Quote */

blockquote,
blockquote * {
    line-height: 1.6;
    padding: 0;
    border-inline-start: none !important;
    font-size: var(--blockquote-size);
}

blockquote a {
    color: var(--text-normal) !important;
}

/* Custom Class */

.entry-title,
div[alt="entry-title"] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.icon,
span[alt="icon"] {
    color: var(--color-accent);
}

/* Horizontal Line */

hr {
    border-top: 2px solid #dae3eac9;
    border-bottom: none;
    margin: 15mm 0 12mm 0;
}

@media print {
    hr {
        page-break-after: always;
        margin: 0;
        visibility: hidden;
    }
}