/* Use the same body and heading fonts as the Ghost theme settings. */
:root {
    --aa-heading-font: var(--gh-font-heading, var(--font-sans));
    --aa-body-font: var(--gh-font-body, var(--font-sans));
    --aa-section-gap: clamp(48px, 5vw, 72px);
}

.is-font-serif {
    --aa-heading-font: var(--gh-font-heading, var(--font-serif));
    --aa-body-font: var(--gh-font-body, var(--font-serif));
}

/* Atlantic Ambience homepage buttons. */
.is-head-stacked .gh-head-actions {
    justify-content: flex-end;
}

.aa-guide-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 28px auto 0;
}

.aa-guide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 28px;
    border: 1px solid #263c4e;
    border-radius: 6px;
    background: #263c4e;
    color: #fff;
    font-family: var(--aa-body-font);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    text-align: center;
}

.aa-guide-button:hover {
    background: #192b39;
    color: #fff;
}

.aa-guide-button--secondary {
    background: transparent;
    color: #263c4e;
}

.aa-guide-button--secondary:hover {
    background: #263c4e;
    color: #fff;
}

.aa-guide-button:focus-visible {
    outline: 3px solid #94784b;
    outline-offset: 4px;
}

/* Homepage tag navigation: keep the guide actions visually dominant. */
.home-template .gh-header:not(.has-background-image) {
    padding-top: clamp(32px, 4vw, 56px);
    padding-bottom: clamp(28px, 3vw, 44px);
    margin-bottom: 28px;
}

.aa-home-categories {
    width: 100%;
    margin: 28px auto 0;
    color: inherit;
    text-align: center;
}

.aa-home-categories-label {
    margin: 0 0 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.7;
}

.aa-home-categories-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.aa-home-categories-list > li {
    margin: 0;
    padding: 0;
}

.aa-category-link {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid currentColor;
    border-color: color-mix(in srgb, currentColor 22%, transparent);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-family: var(--aa-body-font);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.aa-category-icon {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.aa-category-link:hover,
.aa-category-link:focus-visible {
    border-color: #263c4e;
    background: #263c4e;
    color: #fff;
    text-decoration: none;
}

.aa-category-link:focus-visible {
    outline: 3px solid #94784b;
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .aa-home-categories {
        margin-top: 28px;
    }

    .aa-home-categories-label {
        margin-bottom: 14px;
    }

    .aa-home-categories-list {
        gap: 9px;
    }

    .aa-category-link {
        gap: 7px;
        min-height: 44px;
        padding: 9px 13px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aa-category-link {
        transition: none;
    }
}

/* Premium Guide feature, between the lead articles and topic sections. */
.aa-premium-feature {
    margin: var(--aa-section-gap) 0;
}

.aa-premium-guide-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
    padding: clamp(28px, 3vw, 40px) 0;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    border-color: color-mix(in srgb, currentColor 16%, transparent);
}

.aa-premium-guide-image-link {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 12px;
}

.aa-premium-guide-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    border-radius: 12px;
}

.aa-premium-guide-content {
    min-width: 0;
    text-align: left;
}

.aa-premium-guide-eyebrow {
    margin: 0 0 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.7;
}

.aa-premium-guide-title {
    margin: 0 0 18px;
    color: inherit;
    font-family: var(--aa-heading-font);
    font-size: clamp(32px, 3.4vw, 46px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.aa-premium-guide-intro {
    margin: 0 0 16px;
    font-size: 23px;
    line-height: 1.4;
}

.aa-premium-guide-description {
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
}

.aa-premium-guide-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin: 24px 0 18px;
    padding: 0;
    list-style: none;
}

.aa-premium-guide-features > li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 17px;
    line-height: 1.4;
}

.aa-premium-guide-note {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
}

.aa-premium-guide-button {
    gap: 12px;
    margin-top: 24px;
}

.aa-premium-guide-image-link:focus-visible {
    outline: 3px solid #94784b;
    outline-offset: 4px;
}

@media (max-width: 767px) {
    .aa-premium-guide-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 30px 0;
    }

    .aa-premium-guide-image-link {
        max-width: 360px;
    }

    .aa-premium-guide-intro {
        font-size: 22px;
    }

    .aa-premium-guide-description {
        font-size: 19px;
    }

    .aa-premium-guide-features {
        gap: 12px 18px;
    }
}

@media (max-width: 600px) {
    .aa-guide-actions {
        width: 100%;
        flex-direction: column;
        max-width: 340px;
        gap: 12px;
    }

    .aa-guide-button {
        box-sizing: border-box;
        width: 100%;
        font-size: 18px;
    }
}

/* Keep the homepage rhythm consistent between articles, promotions and signup. */
.home-template .gh-list + .gh-list {
    margin-top: var(--aa-section-gap);
}

.home-template .gh-cta {
    margin-top: var(--aa-section-gap);
}

.home-template .gh-cta-inner {
    padding-top: clamp(32px, 4vw, 56px);
    padding-bottom: clamp(32px, 4vw, 56px);
}

.aa-experiences {
    margin-top: var(--aa-section-gap);
}

.aa-experiences-header {
    margin-bottom: 24px;
}

.aa-experiences-title {
    margin: 0 0 12px;
    color: var(--ghost-accent-color);
    font-family: var(--aa-heading-font);
    font-size: 38px;
    font-weight: 600;
    line-height: 1.2;
}

.aa-experiences-description {
    max-width: 640px;
    margin: 0;
    font-family: var(--aa-body-font);
    font-size: 20px;
    line-height: 1.5;
}

.aa-experiences-widget {
    min-width: 0;
    width: 100%;
}

@media (max-width: 600px) {
    .aa-experiences-title {
        font-size: 32px;
    }

    .home-template .gh-header-secondary {
        font-size: 22px;
        line-height: 1.45;
    }

    .home-template .gh-header:not(.has-background-image) {
        margin-bottom: 20px;
    }

    .aa-guide-actions {
        margin-top: 24px;
    }
}

/* Browse the full free guide archive from the lead article selection. */
.aa-all-guides {
    display: flex;
    justify-content: center;
}

.aa-all-guides-button {
    gap: 12px;
    min-width: 200px;
    max-width: 340px;
}
