/* marc-tricarico.css */

/* =========================
   Reset / base
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
        "Segoe UI Emoji";
    background: #ffffff;
    color: #6f6f6f;
}

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

/* =========================
   Shared layout values
   (IE-friendly container)
   ========================= */
.page,
.content__inner,
.top-rule {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 28px;
    padding-right: 28px;
}

/* TOP RULE */
.top-rule {
    margin-top: 18px;

}

/* =========================
   HERO / HEADER
   (Flex fallback first)
   ========================= */
.hero {
    /* fallback layout */
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-align: start;
    align-items: flex-start;

    padding: 26px 0 30px;
}

/* photo column */
.hero__photo {
    width: 360px;
    height: 360px;
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
    border: 6px solid #d6d6d6;

    /* spacing between photo and content (replaces gap) */
    margin-right: 44px;

    /* needed for IE "cover" image technique */
    position: relative;
}

/* IE11-safe "cover" replacement (no object-fit) */
.hero__photo-img {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
}

/* content column */
.hero__content {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
}

.hero__title {
    margin: 0 0 14px;
    font-size: 40px;
    /* fallback */
    line-height: 1.12;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.02em;
}

/* replace clamp() with responsive breakpoints */
@media (max-width: 1200px) {
    .hero__title {
        font-size: 36px;
    }
}

@media (max-width: 900px) {
    .hero__title {
        font-size: 30px;
    }
}

.hero__content p {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.7;
}

/* =========================
   BODY SECTION
   ========================= */
.content {
    background: #f3f3f3;
    padding: 28px 0 36px;
}

.content__inner p {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.7;
}

.content__figure {
    margin: 26px auto 24px;
    max-width: 820px;
}

.content__figure img {
    width: 100%;
    border-radius: 2px;
}

/* =========================
   FOOTER
   ========================= */
.footer {
    background: #f3f3f3;
    color: #9a9a9a;
    text-align: center;
    font-size: 12px;
    padding: 18px 28px 22px;
}

/* =========================
   RESPONSIVE (IE-friendly)
   ========================= */
@media (max-width: 900px) {
    .hero {
        -ms-flex-direction: column;
        flex-direction: column;
        -ms-flex-align: center;
        align-items: center;

        padding-bottom: 22px;
    }

    .hero__photo {
        /* replace min() with max-width + % */
        width: 86vw;
        height: 86vw;
        max-width: 340px;
        max-height: 340px;

        margin-right: 0;
        margin-bottom: 22px;
    }

    .hero__content {
        width: 100%;
    }
}

/* =========================
   Modern enhancement:
   Use Grid when supported
   ========================= */
@supports (display: grid) {
    .hero {
        display: grid;
        grid-template-columns: 360px 1fr;
        /* keep your original spacing */
        column-gap: 44px;
        row-gap: 0;
        align-items: start;
    }

    .hero__photo {
        margin-right: 0;
        /* grid handles spacing */
    }
}