* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Header */
header {
    padding: 20px 40px;
}

.logo {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: #1a1a1a;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
}

/* Hero Section
   Source order matches the mobile layout (heading, image, titles, links);
   on desktop the grid areas move the image to the left column. */
.hero {
    display: grid;
    grid-template-columns: 45% 1fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
        "image heading"
        "image titles"
        "image links";
    column-gap: 60px;
    margin-bottom: 80px;
}

.hero-heading {
    grid-area: heading;
    padding-top: 20px;
}

.hero-image {
    grid-area: image;
    align-self: center;
}

.hero-image img {
    width: 100%;
    aspect-ratio: 622 / 465;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.hero-titles {
    grid-area: titles;
}

.hero h1,
.interstitial h1 {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 51px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 10px;
    text-align: center;
}

/* Interstitial pages (/resume, /bookme): heading + titles, then redirect */
.interstitial {
    padding-top: 80px;
    padding-bottom: 120px;
}

.interstitial h1 {
    margin-bottom: 30px;
}

.interstitial-icon {
    display: block;
    margin: 30px auto;
}

.footer-center {
    text-align: center;
}

.divider {
    width: 40px;
    height: 2px;
    background-color: #1a1a1a;
    margin: 15px auto 20px;
}

.title {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 5px;
}

/* Links Section */
.links {
    grid-area: links;
    margin-top: 30px;
}

.link-row {
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.icon {
    width: 39px;
    height: 39px;
    object-fit: cover;
    justify-self: center;
}

.icon-lg {
    width: 50px;
    height: 50px;
}

.link-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.link-button:hover {
    background-color: #1a1a1a;
    color: #fff;
}

.link-button.filled {
    background-color: #1a1a1a;
    color: #fff;
    border: 2px solid #000;
}

.link-button.filled:hover {
    background-color: #333;
}

/* Contact Section */
.contact {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 40px 0;
}

.contact h2 {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 14px;
    border: none;
    border-bottom: 1px solid #1a1a1a;
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #666;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group textarea::placeholder {
    color: #999;
    font-style: italic;
}

.submit-btn {
    display: inline-block;
    padding: 12px 40px;
    background-color: #1a1a1a;
    color: #fff;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #333;
}

.submit-btn:disabled {
    background-color: #999;
    cursor: default;
}

/* Honeypot field: hidden from humans, bots fill it and get rejected */
.gotcha {
    display: none;
}

.form-status {
    margin-top: 15px;
    font-size: 14px;
}

.form-status.error {
    color: #b00020;
}

/* Footer */
footer {
    text-align: right;
    padding: 20px 40px;
    margin-top: 40px;
}

footer p {
    font-size: 14px;
    color: #666;
}

/* Responsive Design — mirrors the live site's mobile layout:
   heading, then circular photo, then titles, then links. */
@media (max-width: 750px) {
    header {
        display: none;
    }

    main {
        padding: 24px 20px;
    }

    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-template-areas:
            "heading"
            "image"
            "titles"
            "links";
        row-gap: 28px;
        margin-bottom: 60px;
    }

    .hero-heading {
        padding-top: 16px;
    }

    .hero h1,
    .interstitial h1 {
        font-size: 36px;
    }

    .hero-image {
        justify-self: center;
        width: min(47%, 220px);
    }

    .hero-image img {
        aspect-ratio: 1 / 1;
        border-radius: 50%;
    }

    .title {
        font-size: 22px;
    }

    .links {
        margin-top: 4px;
    }

    .link-row {
        margin-bottom: 20px;
    }

    .submit-btn {
        display: block;
        margin: 0 auto;
    }

    footer {
        padding: 20px;
        text-align: center;
    }
}
