html {
    font-size: 10px;
}

body {
    font-family: var(--font-serif);
    line-height: var(--line-height-base);
    font-weight: var(--font-weight-light);
    color: var(--text-primary);
    font-size: var(--font-size-base);
}

/* Text main style */
a{
    text-decoration:     none;
    color:               inherit;
    background-image:    linear-gradient(0deg,currentColor,currentColor);
    background-repeat:   no-repeat;
    background-size:     100% 1px;
    background-position: right bottom;
    transition: color var(--transition-fast), background var(--transition-base);
    
    &:hover {
        background-size: 0 1px;
    }
}

.no-underline{
    background-image: none;
}

/* Text styles */
p{
    margin-bottom: var(--grid-gap-sm);
    font-size: var(--font-size-base);
    &.text-small{
        font-size: var(--font-size-small);
    }
}

h1, h2, h3, h4, h5, h6{
    margin-bottom: var(--grid-gap-sm);
    font-family: var(--font-serif);
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-tight);
}

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

h1{
    font-size: var(--font-size-xl);
    &.headline{
        font-size: var(--font-size-2xl);
    }
}

h2{
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-regular);
}

h3{
    font-size: var(--font-size-md);
}

h4{
    font-size: var(--font-size-xs);
}

figcaption {
    text-align: center;
    font-size: var(--font-size-xs);
    line-height: var(--line-height-snug);
    font-family: var(--font-serif);
    color: var(--text-secondary);
}    


/* Text styles */
.breadcrumb,
.newsletter-signup__eyebrow {
    font-size: 1.2rem;
    text-transform: uppercase;
    font-family: var(--font-mono);
    font-weight: var(--font-weight-regular);
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    line-height: var(--line-height-snug);
    display: inline-block;
    margin-bottom: 0.8rem;
}

.date {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: var(--font-weight-regular);
    font-variant-numeric: tabular-nums;
    display: block;
}

.newsletter-description {
    font-size: var(--font-size-small);
    line-height: var(--line-height-snug);
    margin-top: var(--space-2);
    color: var(--text-secondary);
}

.newsletter-date {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    text-align: left;
}

/* Text colors */
.text-color-secondary {
    color: var(--text-secondary);
}

/* Text alignment utilities */
.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

/* Text wrap balance */
.text-wrap-balance {
    text-wrap: balance;
}

/* Divider block (Kirby line block) */
.content-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    margin-top: 0;
    margin-bottom: 0;
}

[data-theme="dark"] .content-divider {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
}
