.numerology-entry {
    --entry-ink: #342431;
    --entry-plum: #522b45;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    align-items: stretch;
    isolation: isolate;
    border: 1px solid #e4d8c9;
    border-radius: 5px;
    background: #f5ede2;
    color: var(--entry-ink);
    overflow: hidden;
}

.numerology-entry__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: clamp(34px, 4.2vw, 64px);
}

.numerology-entry h1 {
    margin: 0;
    color: var(--entry-ink);
    font: 400 clamp(44px, 4.1vw, 60px)/1.04 Georgia, "Times New Roman", serif;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.numerology-entry__lead {
    max-width: 43ch;
    margin: 20px 0 0;
    color: #54484b;
    font-size: clamp(16px, 1.27vw, 18px);
    line-height: 1.55;
}

.numerology-entry__actions {
    margin-top: 30px;
}

.numerology-entry__action,
.numerology-entry .numerology-entry__form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 48px;
    padding: 12px 21px;
    border: 1px solid var(--entry-plum);
    border-radius: 5px;
    background: var(--entry-plum);
    color: #fffaf3;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
}

.numerology-entry__action span {
    font-size: 21px;
    line-height: 1;
}

.numerology-entry__action:hover,
.numerology-entry .numerology-entry__form button:hover {
    background: #412037;
    color: white;
}

.numerology-entry .numerology-entry__action:focus-visible,
.numerology-entry .numerology-entry__form button:focus-visible {
    outline: 3px solid #854b71;
    outline-offset: 3px;
}

.numerology-entry__actions p {
    margin: 10px 0 0;
    color: #625457;
    font-size: 14px;
    line-height: 1.4;
}

.numerology-entry__image {
    position: relative;
    min-height: 390px;
    margin: 0;
    background: #aa8a66;
}

.numerology-entry__image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 49% 60%;
}

.numerology-entry .numerology-entry__form {
    width: 100%;
    margin-top: 24px;
    padding: 22px 0 0;
    border: 0;
    border-top: 1px solid #d8c9ba;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.numerology-entry__form .numerology-page__calculator-note {
    margin: 0;
    padding: 0;
    border: 0;
}

@media (max-width: 1000px) and (min-width: 761px) {
    .numerology-entry { grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr); }
    .numerology-entry__content { padding: 30px; }
    .numerology-entry h1 { font-size: clamp(34px, 4.25vw, 44px); }
}

@media (max-width: 760px) {
    .numerology-entry { grid-template-columns: minmax(0, 1fr); margin-inline: -10px; }
    .numerology-entry__content { padding: 28px 22px; }
    .numerology-entry h1 { font-size: clamp(29px, 9vw, 39px); }
    .numerology-entry__lead { margin-top: 15px; font-size: 16px; }
    .numerology-entry__actions { margin-top: 20px; }
    .numerology-entry__image { min-height: 0; aspect-ratio: 1.85; }
    .numerology-entry__image img { object-position: 50% 62%; }
}

@media (max-width: 360px) {
    .numerology-entry__content { padding-inline: 16px; }
}

/* The shared desktop header reserves a fixed width for the shorter account label. */
@media (min-width: 1021px) {
    body:has(.numerology-entry) .site-header .site-header-secondary { width: auto; min-width: max-content; padding-inline: 14px; }
}

@media (min-width: 761px) {
    .numerology-entry--form {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr);
        grid-template-rows: auto minmax(200px, 1fr);
        grid-template-areas: "intro form" "photo form";
    }

    .numerology-entry--form .numerology-entry__content { display: contents; }
    .numerology-entry--form .numerology-entry__intro { grid-area: intro; padding: 34px 36px 28px; }
    .numerology-entry--form h1 { font-size: clamp(34px, 3.2vw, 46px); }
    .numerology-entry--form .numerology-entry__lead { margin-top: 14px; font-size: 16px; }
    .numerology-entry--form .numerology-entry__image { grid-area: photo; min-height: 200px; }
    .numerology-entry--form .numerology-entry__form {
        grid-area: form;
        align-self: stretch;
        align-content: center;
        gap: 14px;
        margin: 0;
        padding: 32px clamp(26px, 3.1vw, 44px);
        border: 0;
        border-left: 1px solid #e4d8c9;
        background: #fbf6ee;
    }
}

@media (max-width: 760px) {
    .numerology-entry--form .numerology-entry__content { padding-block: 22px; }
    .numerology-entry--form .numerology-entry__form { margin-top: 18px; padding-top: 18px; gap: 12px; }
}
