/*
 * Louis Modeste. The colour guide's three colours (docs/BRAND.md): green #043429, cream #f4efe8 and accent green
 * #22dd65, which is only ever used on the green (1.6:1 on cream, so never text or a control there).
 * Mango Grotesque for display, as in his wordmark; Open Sans for text.
 *
 * The page is built in Elementor; its sections and widgets carry the lm-* classes below (Advanced > CSS Classes),
 * which give them the approved design. Colours and fonts are also Elementor's global colours and fonts.
 *
 * Mango Grotesque is served as the designer's original TTF: its licence allows commercial use but not modified
 * files, so it is not subset or converted.
 */

@font-face {
    font-family: 'Mango Grotesque';
    src: url('fonts/MangoGrotesque-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('fonts/open-sans-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('fonts/open-sans-latin-400-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('fonts/open-sans-latin-600-normal.woff2') format('woff2');
    font-weight: 600 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --lm-green: #043429;
    --lm-green-deep: #02261d;
    --lm-green-line: #1d4d40;
    --lm-accent: #22dd65;
    --lm-cream: #f4efe8;
    --lm-line: #d6ccbe;
    --lm-field: #6e8a7f;
    --lm-muted: #3f5c52;
    --lm-mist: #b9c9c1;
    --lm-error: #a3271b;
    --lm-display: 'Mango Grotesque', 'Arial Narrow', sans-serif-condensed, sans-serif;
    --lm-sans: 'Open Sans', ui-sans-serif, system-ui, sans-serif;
    color-scheme: light;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}

html,
body {
    overflow-x: clip;
}

body {
    margin: 0;
    background: var(--lm-cream);
    color: var(--lm-green);
    font-family: var(--lm-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 3px solid var(--lm-green);
    outline-offset: 3px;
    border-radius: 2px;
}

.lm-on-green :focus-visible,
.lm-header :focus-visible,
.lm-footer :focus-visible {
    outline-color: var(--lm-accent);
}

.skip-link.screen-reader-text:focus {
    z-index: 100;
    background: var(--lm-cream);
    color: var(--lm-green);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.lm-wrap {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .lm-wrap {
        padding-inline: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .lm-wrap {
        padding-inline: 2.5rem;
    }
}

/* Buttons: header and footer markup, and Elementor button widgets given lm-btn-accent, lm-btn-outline or lm-btn. */
.lm-btn,
.lm-btn .elementor-button,
.lm-btn-accent .elementor-button,
.lm-btn-outline .elementor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    box-sizing: border-box;
    padding: 0.7rem 1.4rem;
    border: 2px solid var(--lm-green);
    border-radius: 999px;
    background: var(--lm-green);
    color: var(--lm-cream);
    font-family: var(--lm-sans);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms, color 150ms, border-color 150ms;
}

.lm-btn:hover,
.lm-btn .elementor-button:hover {
    background: var(--lm-green-deep);
    border-color: var(--lm-green-deep);
    color: var(--lm-cream);
}

.lm-btn--accent,
.lm-btn-accent .elementor-button {
    background: var(--lm-accent);
    border-color: var(--lm-accent);
    color: var(--lm-green);
}

.lm-btn--accent:hover,
.lm-btn-accent .elementor-button:hover {
    background: var(--lm-cream);
    border-color: var(--lm-cream);
    color: var(--lm-green);
}

.lm-btn--outline,
.lm-btn-outline .elementor-button {
    background: transparent;
    border-color: currentColor;
    color: inherit;
}

.lm-btn--outline:hover {
    background: var(--lm-cream);
    border-color: var(--lm-cream);
    color: var(--lm-green);
}

/* Header */
.lm-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--lm-green);
    color: var(--lm-cream);
    border-bottom: 1px solid var(--lm-green-line);
}

.admin-bar .lm-header {
    top: var(--wp-admin--admin-bar--height, 0);
}

.lm-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 4rem;
}

.lm-header__logo img {
    display: block;
    width: auto;
    height: 2rem;
}

.lm-nav {
    display: none;
}

.lm-nav__list,
.lm-menu__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lm-nav__list {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-weight: 600;
}

.lm-nav__list a {
    display: block;
    padding-block: 0.5rem;
    border-bottom: 2px solid transparent;
    text-decoration: none;
}

.lm-nav__list a:hover {
    border-bottom-color: var(--lm-accent);
}

.lm-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lm-header__cta {
    display: none;
    min-height: 2.75rem;
}

.lm-header__toggle {
    min-height: 2.75rem;
}

.lm-menu {
    border-top: 1px solid var(--lm-green-line);
}

.lm-menu[hidden] {
    display: none;
}

.lm-menu .lm-wrap {
    padding-block: 1rem;
}

.lm-menu__list a,
.lm-menu__connect {
    display: block;
    padding-block: 0.5rem;
    font-family: var(--lm-display);
    font-weight: 600;
    font-size: 2.25rem;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
}

.lm-menu p {
    margin: 0;
}

@media (min-width: 640px) {
    .lm-header__cta {
        display: inline-flex;
    }
}

@media (min-width: 768px) {
    .lm-header__bar {
        height: 4.5rem;
    }

    .lm-header__logo img {
        height: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .lm-nav {
        display: block;
    }

    .lm-header__toggle,
    .lm-menu {
        display: none !important;
    }
}

/* Footer */
.lm-footer {
    background: var(--lm-green-deep);
    color: var(--lm-cream);
}

.lm-footer a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.lm-footer p {
    margin: 0;
}

.lm-footer__top {
    display: grid;
    gap: 2.5rem;
    padding-block: 3.5rem;
}

.lm-footer__logo {
    display: block;
    width: auto;
    height: 7rem;
}

.lm-footer__roles {
    margin-top: 1.5rem !important;
    max-width: 28rem;
    color: var(--lm-mist);
}

.lm-footer__links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
    font-weight: 600;
}

.lm-footer__base {
    border-top: 1px solid var(--lm-green-line);
    color: var(--lm-mist);
    font-size: 0.875rem;
}

.lm-footer__base .lm-wrap {
    display: grid;
    gap: 0.75rem;
    padding-block: 1.5rem;
}

.lm-footer__notice {
    max-width: 56rem;
}

.lm-footer__row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lm-footer__row a {
    margin-left: 0.25rem;
}

.lm-footer .lm-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    margin: 0;
    padding-block: 0.25rem;
    text-decoration: none;
    opacity: 0.9;
}

.lm-footer .lm-credit:hover {
    opacity: 1;
}

.lm-credit img {
    width: auto;
    height: 0.875rem;
}

@media (min-width: 768px) {
    .lm-footer__top {
        grid-template-columns: 1.2fr 1fr;
        align-items: end;
    }

    .lm-footer__links {
        justify-self: end;
        text-align: right;
    }

    .lm-footer__links ul {
        justify-content: flex-end;
    }

    .lm-footer__logo {
        height: 8rem;
    }

    .lm-footer__row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .lm-footer .lm-credit {
        align-self: auto;
    }
}

/* The page: Elementor sections and widgets with lm-* classes. */
.lm-on-green {
    background: var(--lm-green);
    color: var(--lm-cream);
}

/* Section spacing is set on each Elementor container (Layout > Padding), not here. */

.elementor-widget p:last-child {
    margin-bottom: 0;
}

.lm-section-title .elementor-heading-title {
    font-family: var(--lm-display);
    font-weight: 600;
    font-size: clamp(3.25rem, 9vw, 7.5rem);
    line-height: 0.88;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    text-wrap: balance;
    color: inherit;
}

.lm-display .elementor-heading-title {
    font-family: var(--lm-display);
    font-weight: 600;
    font-size: clamp(2.25rem, 5vw, 3rem);
    line-height: 0.95;
    text-transform: uppercase;
    color: inherit;
}

.lm-lede {
    max-width: 38rem;
    font-size: 1.1875rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .lm-lede {
        font-size: 1.3125rem;
    }
}

.lm-mist {
    color: var(--lm-mist);
}

.lm-muted {
    color: var(--lm-muted);
}

.lm-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: var(--lm-green-line);
}

/* Hero: his name as wide as the page, his portrait standing in front of MODESTE. */
.lm-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.lm-hero__roles {
    position: relative;
    z-index: 2;
    font-weight: 600;
    color: var(--lm-mist);
}

.lm-hero__name .elementor-heading-title {
    position: relative;
    z-index: 0;
    margin: 0;
    font-family: var(--lm-display);
    font-weight: 600;
    font-size: 39vw;
    line-height: 0.8;
    letter-spacing: -0.005em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--lm-cream);
}

.lm-hero__name .elementor-heading-title span {
    display: block;
}

.lm-hero__name .elementor-heading-title span:first-child {
    color: var(--lm-accent);
}

.lm-hero__photo {
    position: relative;
    z-index: 1;
}

.lm-hero__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: var(--lm-green-line);
}

.lm-hero__lines {
    position: relative;
    z-index: 2;
    max-width: 36rem;
}

.lm-hero__lines p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.35;
}

.lm-hero__lines p.lm-mist {
    margin-top: 1rem;
    font-size: 1.125rem;
    font-weight: 400;
}

@media (min-width: 768px) {
    .lm-hero__lines p {
        font-size: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .lm-hero > .e-con-inner {
        position: relative;
        min-height: 44rem;
    }

    .lm-hero__name .elementor-heading-title {
        font-size: clamp(5.5rem, 29vw, 27rem);
    }

    .lm-hero__roles {
        max-width: 60%;
    }

    .elementor-element.lm-hero__photo {
        position: absolute;
        top: 4rem;
        right: 2.5rem;
        width: 30%;
        max-width: 26rem;
    }

    .lm-hero__photo img {
        aspect-ratio: 3 / 5;
    }

    .lm-hero__lines {
        max-width: 55%;
    }
}

/* About: his own words, with photographs beside them. */
.lm-prose {
    max-width: 40rem;
    font-size: 1.125rem;
}

.lm-prose h3 {
    margin: 2em 0 0.6em;
    font-family: var(--lm-display);
    font-weight: 600;
    font-size: 2.25rem;
    line-height: 0.92;
    text-transform: uppercase;
}

.lm-prose blockquote {
    margin: 1.6em 0;
    padding-left: 1.1rem;
    border-left: 4px solid currentColor;
    font-family: var(--lm-display);
    font-weight: 600;
    font-size: 2.4rem;
    line-height: 1;
    text-transform: uppercase;
}

.lm-prose blockquote p {
    margin: 0;
}

@media (min-width: 1024px) {
    .lm-about__photos .lm-photo:first-child {
        position: sticky;
        top: 7rem;
    }

    .lm-small-only {
        display: none;
    }
}

/* The Journey: each milestone, figure first. */
.lm-milestone {
    border-top: 1px solid var(--lm-green-line);
}

.lm-milestone:last-child {
    border-bottom: 1px solid var(--lm-green-line);
}

.lm-milestone__figure .elementor-heading-title {
    font-family: var(--lm-display);
    font-weight: 600;
    font-size: 4.5rem;
    line-height: 0.85;
    color: var(--lm-accent);
}

@media (min-width: 768px) {
    .lm-milestone__figure .elementor-heading-title {
        font-size: 6.5rem;
    }
}

.lm-item-title .elementor-heading-title {
    font-family: var(--lm-sans);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.35;
    color: inherit;
}

@media (min-width: 768px) {
    .lm-item-title .elementor-heading-title {
        font-size: 1.5rem;
    }
}

/* Press & Media */
.lm-press-item {
    border-top: 1px solid var(--lm-line);
}

.lm-press-item:last-child {
    border-bottom: 1px solid var(--lm-line);
}

.lm-publication .elementor-heading-title {
    font-family: var(--lm-display);
    font-weight: 600;
    font-size: 2.25rem;
    line-height: 1;
    text-transform: uppercase;
    color: inherit;
}

.lm-media-panel {
    border-radius: 1rem;
}

/* Awards */
.lm-award {
    border: 1px solid var(--lm-green-line);
    border-radius: 1rem;
    background: var(--lm-green-deep);
}

.lm-award__year .elementor-heading-title {
    font-family: var(--lm-display);
    font-weight: 600;
    font-size: 3.75rem;
    line-height: 1;
    color: var(--lm-accent);
}

.lm-award-status {
    display: inline-block;
    padding: 0.15rem 0.75rem;
    border-radius: 999px;
    background: var(--lm-accent);
    color: var(--lm-green);
    font-weight: 600;
    font-size: 0.9375rem;
}

/* Forms (Elementor Pro form): labelled fields with a clear border and focus. */
.lm-form .elementor-field-group .elementor-field-label {
    font-weight: 600;
}

.lm-form .elementor-field-textual,
.lm-form select.elementor-field {
    min-height: 3.1rem;
    border: 2px solid var(--lm-field) !important;
    border-radius: 0.5rem !important;
    background: #fff !important;
    color: var(--lm-green) !important;
    font-family: var(--lm-sans);
}

.lm-form .elementor-message-danger,
.lm-form .elementor-error {
    color: var(--lm-error);
    font-weight: 600;
}

/* Legal pages without Elementor (the privacy policy). */
.page-content,
.page-header {
    max-width: 40rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

.page-header .entry-title {
    margin: 4rem 0 1.5rem;
    font-family: var(--lm-display);
    font-weight: 600;
    font-size: clamp(3rem, 9vw, 6rem);
    line-height: 0.9;
    text-transform: uppercase;
}

.page-content {
    padding-bottom: 5rem;
}

.page-content > * + * {
    margin-top: 1.1em;
}

.page-content ul {
    padding-left: 1.25rem;
}

.page-content li + li {
    margin-top: 0.4em;
}

.page-content a:not(.lm-btn) {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.page-content .lm-btn {
    color: var(--lm-cream);
}

.page-content h2 {
    margin: 2.2em 0 0.6em;
    font-family: var(--lm-display);
    font-weight: 600;
    font-size: 2.6rem;
    line-height: 0.95;
    text-transform: uppercase;
}
