/* Homepage */
.eh-home {
    --eh-navy: #101b2c;
    --eh-mid: #17263a;
    --eh-gold: #d4b778;
    --eh-ivory: #f4f6fa;
    --eh-ink: #253347;
    --eh-muted: #778497;
    --eh-ease: cubic-bezier(.22, 1, .36, 1);
    color: var(--eh-ink);
    overflow: clip;
}

.eh-home *,
.eh-home *::before,
.eh-home *::after {
    box-sizing: border-box;
}

.eh-home h1,
.eh-home h2,
.eh-home h3 {
    font-family: Georgia, "Times New Roman", serif;
}

.eh-home a {
    text-decoration: none;
}

.eh-home a:focus-visible,
.eh-home button:focus-visible,
.eh-home input:focus-visible {
    outline: 3px solid var(--eh-gold);
    outline-offset: 4px;
}

/* Hero */
.eh-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    height: auto;
    min-height: 420px;
    overflow: hidden;
    background: #101b2c;
    color: #fff;
}

.eh-hero-media,
.eh-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.eh-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.eh-hero-scrim {
    z-index: -1;
    background:
        linear-gradient(90deg,
            rgba(9, 18, 31, .94) 0%,
            rgba(12, 23, 37, .87) 38%,
            rgba(12, 23, 37, .4) 75%,
            rgba(12, 23, 37, .32) 100%),
        linear-gradient(0deg, rgba(11, 20, 34, .45), transparent 40%);
}

.eh-hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-height: 0;
    padding-top: 30px;
    padding-bottom: 24px;
}

.eh-hero-copy {
    max-width: 745px;
    animation: ehRise .9s var(--eh-ease) both;
}

.eh-eyebrow,
.eh-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--eh-gold);
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.7px;
}

.eh-eyebrow-line {
    flex: 0 0 35px;
    height: 1px;
    background: var(--eh-gold);
}

.eh-hero h1 {
    margin: 12px 0;
    color: #fff;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: normal;
    line-height: 1.1;
    letter-spacing: -1px;
}

.eh-hero h1 em,
.eh-section-intro h2 em,
.eh-quote em,
.eh-newsletter h2 em {
    color: var(--eh-gold);
    font-weight: normal;
}

.eh-hero-lead {
    margin: 0 0 12px;
    color: #f0ddba;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.35;
}

.eh-hero-description {
    max-width: 535px;
    margin: 0 0 18px;
    color: #d6deea;
    font-size: 14px;
    line-height: 1.6;
}

.eh-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.eh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1px;
    transition:
        transform .32s var(--eh-ease),
        background .3s,
        color .3s,
        box-shadow .3s;
}

.eh-button:hover {
    transform: translateY(-4px);
}

.eh-button-gold {
    background: var(--eh-gold);
    color: var(--eh-navy);
    box-shadow: 0 10px 30px rgba(212, 183, 120, .15);
}

.eh-button-gold:hover {
    background: #ebd3a0;
    color: var(--eh-navy);
    box-shadow: 0 16px 35px rgba(212, 183, 120, .25);
}

.eh-button-outline {
    border-color: rgba(212, 183, 120, .65);
    background: rgba(14, 27, 43, .27);
    color: #fff;
    backdrop-filter: blur(8px);
}

.eh-button-outline:hover {
    border-color: var(--eh-gold);
    background: rgba(14, 27, 43, .6);
    color: var(--eh-gold);
}

.eh-hero .eh-scroll-cue {
    position: static;
    display: flex;
    align-items: center;
    align-self: center;
    gap: 13px;
    margin-top: 20px;
    color: #e6d0a7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.eh-scroll-cue:hover {
    color: #fff;
}

.eh-scroll-cue i {
    font-size: 18px;
    animation: ehBounce 2s ease-in-out infinite;
}

.eh-hero-sideword {
    position: absolute;
    right: 25px;
    bottom: 35px;
    color: rgba(255, 255, 255, .55);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    writing-mode: vertical-rl;
}

/* Discover navigation */
.eh-discover-strip {
    border-bottom: 1px solid #e9e6df;
    background: #fff;
    box-shadow: 0 10px 34px rgba(16, 27, 44, .045);
}

.eh-discover-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.eh-discover-inner a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 96px;
    padding: 20px 12px;
    border-right: 1px solid #eee9df;
    color: var(--eh-navy);
    font-size: 13px;
    font-weight: 800;
    transition: background .3s, color .3s;
}

.eh-discover-inner a:first-child {
    border-left: 1px solid #eee9df;
}

.eh-discover-inner a i:first-child {
    color: #b19250;
    font-size: 21px;
    transition: transform .3s;
}

.eh-discover-inner a i:last-child {
    opacity: .5;
    font-size: 13px;
    transition: transform .3s;
}

.eh-discover-inner a:hover {
    background: #f8f3e8;
    color: #8b6d33;
}

.eh-discover-inner a:hover i:first-child {
    transform: rotate(-8deg) scale(1.14);
}

.eh-discover-inner a:hover i:last-child {
    transform: translate(3px, -3px);
}

/* Section headings */
.eh-section-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 39px;
}

.eh-tiny-star {
    font-size: 19px;
    line-height: 1;
}

.eh-section-intro h2 {
    margin: 13px 0 10px;
    color: var(--eh-navy);
    font-size: clamp(35px, 4.5vw, 60px);
    font-weight: normal;
    letter-spacing: -1.8px;
}

.eh-section-intro h2 em {
    color: #a78442;
}

.eh-section-intro p {
    margin: 0;
    color: #6c798c;
    font-size: 15px;
    line-height: 1.7;
}

.eh-text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid #b79a60;
    color: #8b6d33;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    transition: gap .3s, color .3s;
}

.eh-text-link:hover {
    gap: 18px;
    color: var(--eh-navy);
}

/* Books */
.eh-books-section {
    padding: 105px 0 112px;
    background: #f7f8fb;
}

.eh-books-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 23px;
}

.eh-book-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8e9ed;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(16, 27, 44, .045);
    transition:
        transform .45s var(--eh-ease),
        box-shadow .4s,
        border-color .4s;
}

.eh-book-card:hover {
    transform: translateY(-9px);
    border-color: #d9bf8a;
    box-shadow: 0 23px 46px rgba(16, 27, 44, .11);
}

.eh-book-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    aspect-ratio: 4 / 5;
    padding: 23px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 40%, #fff 0%, #eee9dd 80%);
}

.eh-book-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 12px rgba(15, 24, 37, .15));
    transition: transform .5s var(--eh-ease);
}

.eh-book-card:hover .eh-book-visual img {
    transform: scale(1.05) translateY(-3px);
}

.eh-book-tag {
    position: absolute;
    top: 15px;
    left: 13px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--eh-navy);
    color: var(--eh-gold);
    font: 800 9px Arial, sans-serif;
    letter-spacing: 1px;
    pointer-events: none;
}

.eh-book-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-height: 190px;
    padding: 23px 21px 25px;
}

.eh-book-info h3 {
    margin: 0 0 8px;
    color: var(--eh-navy);
    font-size: 24px;
    line-height: 1.25;
}

.eh-book-info p {
    margin: 0 0 17px;
    color: #778497;
    font-size: 12px;
    line-height: 1.7;
}

.eh-book-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    color: #95733a;
    font-size: 12px;
    font-weight: 800;
}

.eh-book-link:hover {
    color: var(--eh-navy);
}

.eh-coming-label {
    margin-bottom: 10px;
    color: #9d7e40;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.eh-book-soon .eh-book-visual {
    background: linear-gradient(135deg, #f0eee8, #e4e4e6);
}

/* Quote */
.eh-quote {
    position: relative;
    overflow: hidden;
    padding: 83px 0;
    background: #101b2c;
    color: #fff;
    text-align: center;
}

.eh-quote::before,
.eh-quote::after {
    content: "";
    position: absolute;
    top: -150px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(212, 183, 120, .16);
    border-radius: 50%;
}

.eh-quote::before {
    left: -120px;
}

.eh-quote::after {
    right: -120px;
}

.eh-quote-mark {
    display: block;
    height: 38px;
    color: var(--eh-gold);
    font: 70px / 1 Georgia, serif;
}

.eh-quote p {
    margin: 24px auto 21px;
    font: normal clamp(26px, 3vw, 43px) / 1.4 Georgia, serif;
    letter-spacing: -.5px;
}

.eh-quote-rule {
    display: block;
    width: 55px;
    height: 2px;
    margin: auto;
    background: var(--eh-gold);
}

/* Worlds */
.eh-worlds-section {
    padding: 105px 0 115px;
    background: #f4f6fa;
}

.eh-section-intro-centered {
    flex-direction: column;
    align-items: center;
    margin-bottom: 42px;
    text-align: center;
}

.eh-world-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.eh-world-card {
    position: relative;
    isolation: isolate;
    min-height: 460px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--eh-navy);
    color: #fff;
    box-shadow: 0 16px 35px rgba(16, 27, 44, .1);
    transition: transform .4s var(--eh-ease), box-shadow .4s;
}

.eh-world-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 45px rgba(16, 27, 44, .17);
}

.eh-world-card>img,
.eh-world-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.eh-world-card>img {
    z-index: -2;
    object-fit: cover;
    transition: transform .8s var(--eh-ease);
}

.eh-world-card:hover>img {
    transform: scale(1.07);
}

.eh-world-shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(9, 19, 33, .91), rgba(12, 24, 40, .62)),
        linear-gradient(0deg, rgba(8, 17, 29, .6), transparent 75%);
}

.eh-world-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: inherit;
    padding: 36px 39px;
}

.eh-world-number {
    margin-bottom: 24px;
    color: #e0c388;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.eh-world-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    margin-bottom: 18px;
    border: 1px solid rgba(212, 183, 120, .35);
    border-radius: 13px;
    background: rgba(212, 183, 120, .16);
    color: var(--eh-gold);
    font-size: 22px;
}

.eh-world-content h3 {
    max-width: 425px;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: normal;
    line-height: 1.12;
}

.eh-world-content p {
    margin: 0 0 15px;
    color: #d7deea;
    font-size: 14px;
    line-height: 1.7;
}

.eh-world-list {
    display: grid;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.eh-world-list li {
    position: relative;
    padding-left: 18px;
    color: #e0e4eb;
    font-size: 13px;
    line-height: 1.45;
}

.eh-world-list li::before {
    content: "✦";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--eh-gold);
    font-size: 9px;
}

.eh-world-link,
.eh-world-coming {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding: 12px 0 6px;
    border-bottom: 1px solid var(--eh-gold);
    color: #efd9aa;
    font-size: 13px;
    font-weight: 800;
    transition: gap .3s;
}

.eh-world-link:hover {
    gap: 18px;
    color: #fff;
}

.eh-world-coming {
    border-color: rgba(212, 183, 120, .4);
    color: #e0c388;
}

/* Newsletter */
.eh-newsletter {
    padding: 95px 0 105px;
    background: #fff;
}

.eh-newsletter-box {
    position: relative;
    isolation: isolate;
    max-width: 1040px;
    margin: auto;
    padding: 74px 40px 75px;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(130deg, #17263a, #101b2c);
    box-shadow: 0 22px 50px rgba(16, 27, 44, .12);
    text-align: center;
}

.eh-newsletter-box::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto -150px -290px auto;
    width: 580px;
    height: 580px;
    border: 1px solid rgba(212, 183, 120, .2);
    border-radius: 50%;
    box-shadow:
        0 0 0 62px rgba(212, 183, 120, .035),
        0 0 0 120px rgba(212, 183, 120, .025);
}

.eh-newsletter-ornament {
    margin-bottom: 12px;
    color: var(--eh-gold);
    font-size: 25px;
}

.eh-newsletter .eh-kicker {
    justify-content: center;
}

.eh-newsletter h2 {
    margin: 17px 0;
    color: #fff;
    font: normal clamp(39px, 5vw, 62px) / 1.14 Georgia, serif;
    letter-spacing: -1px;
}

.eh-newsletter p {
    margin: 0 0 30px;
    color: #d1dae7;
    font-size: 15px;
}

.eh-subscribe-form {
    display: flex;
    align-items: stretch;
    gap: 8px;
    max-width: 580px;
    margin: auto;
    padding: 7px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}

.eh-subscribe-form input {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding: 10px 14px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--eh-navy);
    font-size: 14px;
}

.eh-subscribe-form input:focus-visible {
    outline: 2px solid var(--eh-gold);
    border-radius: 8px;
}

.eh-subscribe-form button {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 12px 22px;
    border: 0;
    border-radius: 10px;
    background: var(--eh-gold);
    color: var(--eh-navy);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .25s, transform .25s;
}

.eh-subscribe-form button:hover {
    transform: translateY(-2px);
    background: #edcf90;
}

.eh-subscribe-error {
    color: #ffd1c4 !important;
    margin: 14px 0 0 !important;
}

.eh-newsletter-caption {
    margin-top: 18px;
    color: #b0bbcb;
    font-size: 11px;
}

/* Cover modal */
.eh-cover-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.eh-cover-trigger:focus-visible,
.eh-cover-close:focus-visible {
    outline: 3px solid #d4b778;
    outline-offset: 4px;
}

.eh-cover-modal {
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 14px;
    border: 0;
    border-radius: 14px;
    background: #101b2c;
    color: #fff;
}

.eh-cover-modal::backdrop {
    background: rgba(9, 15, 24, .85);
}

.eh-cover-modal form {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px;
}

.eh-cover-close {
    padding: 6px 14px;
    border: 0;
    border-radius: 6px;
    background: #d4b778;
    color: #101b2c;
    cursor: pointer;
}

.eh-cover-modal img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(85vw, 900px);
    max-height: 78dvh;
    margin: 0 auto;
    object-fit: contain;
}

/* Animations */
@keyframes ehRise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ehBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* Tablet */
@media (max-width: 1199px) {
    .eh-books-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eh-book-visual {
        aspect-ratio: 5 / 4;
    }

    .eh-book-info {
        min-height: 155px;
    }

    .eh-world-content {
        padding: 31px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .eh-hero {
        min-height: 380px;
    }

    .eh-hero-inner {
        padding-top: 28px;
        padding-bottom: 24px;
    }

    .eh-hero-scrim {
        background:
            linear-gradient(90deg, rgba(9, 18, 31, .92), rgba(9, 18, 31, .68)),
            linear-gradient(0deg, rgba(9, 18, 31, .45), transparent);
    }

    .eh-hero h1 {
        font-size: clamp(32px, 7vw, 42px);
        letter-spacing: -.8px;
    }

    .eh-hero-lead {
        font-size: 20px;
    }

    .eh-hero-sideword {
        display: none;
    }

    .eh-discover-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eh-discover-inner a {
        min-height: 75px;
    }

    .eh-discover-inner a:nth-child(3) {
        border-left: 1px solid #eee9df;
        border-top: 1px solid #eee9df;
    }

    .eh-discover-inner a:nth-child(4) {
        border-top: 1px solid #eee9df;
    }

    .eh-books-section,
    .eh-worlds-section {
        padding: 70px 0;
    }

    .eh-section-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .eh-section-intro-centered {
        align-items: center;
    }

    .eh-books-grid {
        gap: 15px;
    }

    .eh-world-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .eh-world-card {
        min-height: 425px;
    }

    .eh-world-content {
        padding: 30px;
    }

    .eh-quote {
        padding: 65px 0;
    }

    .eh-newsletter {
        padding: 70px 0;
    }

    .eh-newsletter-box {
        padding: 60px 23px;
        border-radius: 22px;
    }
}

@media (max-width: 480px) {
    .eh-hero-buttons {
        width: 100%;
        gap: 10px;
    }

    .eh-hero-buttons .eh-button {
        flex: 1 1 150px;
    }

    .eh-eyebrow,
    .eh-kicker {
        font-size: 9px;
        letter-spacing: 1.8px;
    }

    .eh-books-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .eh-book-info {
        min-height: unset;
    }

    .eh-world-card {
        min-height: 450px;
    }

    .eh-world-content {
        padding: 26px;
    }

    .eh-subscribe-form {
        flex-direction: column;
        padding: 8px;
    }

    .eh-subscribe-form button {
        justify-content: center;
    }

    .eh-subscribe-form input {
        min-height: 48px;
    }

    .eh-discover-inner a {
        gap: 8px;
        font-size: 12px;
    }


@media (prefers-reduced-motion: reduce) {

    .eh-home *,
    .eh-home *::before,
    .eh-home *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
}

/* Center homepage hero content */
.eh-home .eh-hero-inner {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.eh-home .eh-hero-copy {
    width: 100%;
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
}

.eh-home .eh-hero .eh-eyebrow,
.eh-home .eh-hero-buttons {
    justify-content: center;
}

.eh-home .eh-hero-description {
    margin-inline: auto;
}

/* Remove the blue overlay */
.eh-home .eh-hero-scrim {
    display: none;
}

/* Keep the background image clear */
.eh-home .eh-hero-media img {
    filter: none;
}

/* Improve text readability without an overlay */
.eh-home .eh-hero h1,
.eh-home .eh-hero-lead,
.eh-home .eh-hero-description,
.eh-home .eh-hero .eh-eyebrow,
.eh-home .eh-scroll-cue {
    text-shadow: 0 2px 8px rgba(0, 0, 0, .65);
}

/* Remove blur from the outlined button */
.eh-home .eh-hero .eh-button-outline {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.eh-home .eh-hero {
    display: grid;
    min-height: 0;
    height: auto;
}

.eh-home .eh-hero-media {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    z-index: 0;
}

.eh-home .eh-hero-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: none;
}

.eh-home .eh-hero-inner {
    grid-area: 1 / 1;
    z-index: 1;
    align-self: center;
    align-items: center;
    width: 100%;
    padding-block: 30px;
    text-align: center;
}

.eh-home .eh-hero-scrim {
    display: none;
}

.eh-hero-copy {
    background: rgba(0, 0, 0, 0.35) !important;
    box-shadow: 0 0 60px 40px rgba(0, 0, 0, 0.35) !important;
    border-radius: 20px;
}

.eh-hero-media picture,
.eh-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .eh-hero {
        min-height: 600px !important;
    }

    .eh-hero-media img {
        object-fit: cover !important;
        object-position: center !important;
    }
}
