:root {
    color-scheme: light;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.essence-standalone {
    min-width: 320px;
    overflow-x: hidden;
}

.essence-standalone button,
.essence-standalone input,
.essence-standalone select,
.essence-standalone textarea {
    font: inherit;
}

.essence-standalone figure {
    margin: 0;
}

.essence-standalone img {
    height: auto;
}

.ess-generic-page,
.ess-index-page {
    min-height: 60vh;
    background: var(--ess-paper);
}

.ess-generic-header,
.ess-index-header {
    padding-top: clamp(96px, 12vw, 170px);
    padding-bottom: clamp(60px, 8vw, 110px);
    border-bottom: 1px solid var(--ess-line);
}

.ess-generic-header h1,
.ess-index-header h1 {
    max-width: 1080px;
    margin: 24px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 7vw, 104px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.ess-index-header > p:last-child {
    max-width: 680px;
    margin: 30px 0 0;
    font-size: 16px;
    line-height: 1.8;
    color: #585a53;
}

.ess-generic-content {
    width: min(100%, 1280px);
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.85;
}

.ess-generic-content > * {
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
}

.ess-generic-content > .vc_row,
.ess-generic-content > .wpb-content-wrapper,
.ess-generic-content > .full_width,
.ess-generic-content > .full_width_inner {
    max-width: none;
}

.ess-generic-content h2,
.ess-generic-content h3 {
    margin-top: 1.8em;
    margin-bottom: .7em;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.12;
}

.ess-generic-content h2 {
    font-size: clamp(36px, 4.5vw, 64px);
}

.ess-generic-content h3 {
    font-size: clamp(26px, 3vw, 40px);
}

.ess-generic-content a:not(.ess-button) {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.ess-generic-content ul,
.ess-generic-content ol {
    padding-left: 1.25em;
}

.ess-generic-content blockquote {
    padding: 0 0 0 28px;
    border-left: 1px solid var(--ess-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 2.5vw, 34px);
    line-height: 1.4;
}

.ess-index-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 48px);
}

.ess-index-card {
    min-width: 0;
    border-top: 1px solid var(--ess-line);
}

.ess-index-card a {
    display: block;
    padding-top: 18px;
}

.ess-index-card figure {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ess-soft);
}

.ess-index-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.ess-index-card a:hover img,
.ess-index-card a:focus-visible img {
    transform: scale(1.018);
}

.ess-index-card h2 {
    margin: 22px 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 2.4vw, 38px);
    line-height: 1.08;
}

.ess-index-card div > p:not(.ess-label) {
    color: #5d5f58;
    font-size: 13px;
    line-height: 1.75;
}

.ess-index-card span {
    display: inline-block;
    margin-top: 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid;
    font-size: 9px;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ess-index-empty {
    grid-column: 1 / -1;
    padding: 80px 0;
}

.ess-index-empty h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
}

.ess-index-pagination {
    padding-top: 0;
}

.ess-index-pagination .nav-links {
    display: flex;
    gap: 10px;
}

.ess-index-pagination .page-numbers {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--ess-line);
    font-size: 11px;
}

.ess-index-pagination .current {
    background: var(--ess-ink);
    color: #fff;
}

@media (max-width: 900px) {
    .ess-index-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ess-generic-header,
    .ess-index-header {
        padding-top: 82px;
    }

    .ess-index-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ess-index-card img {
        transition: none;
    }
}
