:root {
    --bg-color: #f0f4f1;
    --text-main: #14291d;
    --text-muted: #5b7064;
    --border-color: #c4d4ca;
    --pitch-lines: #14291d;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: "Plus Jakarta Sans", sans-serif;
    text-align: center;
    isolation: isolate;
}

img,
svg {
    display: block;
}

.pitch-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--pitch-lines);
    opacity: 0.06;
    pointer-events: none;
}

.pitch-background svg {
    width: 1200px;
    max-width: none;
    height: auto;
}

.football-pitch {
    animation: fadeFootball 12s infinite ease-in-out;
    transform-origin: center;
}

.cricket-pitch {
    animation: fadeCricket 12s infinite ease-in-out;
    transform-origin: center;
}

@keyframes fadeFootball {
    0%,
    40% {
        opacity: 1;
        transform: scale(1);
    }

    50%,
    90% {
        opacity: 0;
        transform: scale(0.98);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeCricket {
    0%,
    40% {
        opacity: 0;
        transform: scale(1.02);
    }

    50%,
    90% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.02);
    }
}

header,
main,
footer {
    position: relative;
    z-index: 1;
    width: 100%;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1.5rem 1rem;
}

.logo-container {
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

main {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    justify-items: center;
}

h1 {
    max-width: 12ch;
    margin: 0 0 0.75rem;
    color: var(--text-main);
    font-family: "Outfit", sans-serif;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0;
    text-transform: uppercase;
    text-wrap: balance;
}

.tagline {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.intro {
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.contact-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.email-link {
    max-width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 56px;
    padding: 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: transparent;
    color: var(--text-main);
    font-family: "Outfit", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.email-link:hover,
.email-link:focus-visible {
    border-color: var(--text-main);
    background-color: var(--text-main);
    color: #ffffff;
}

.email-link:focus-visible {
    outline: 3px solid var(--border-color);
    outline-offset: 3px;
}

footer {
    padding: 2rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

footer p {
    margin: 0;
}

@media (max-width: 768px) {
    header {
        padding-top: 2rem;
        padding-bottom: 0.5rem;
    }

    .logo-container {
        width: 110px;
        height: 110px;
    }

    main {
        padding-top: 1.5rem;
        padding-bottom: 2.5rem;
    }

    h1 {
        font-size: 3.5rem;
    }

    .tagline {
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }

    .email-link {
        width: min(100%, 420px);
        padding: 0.85rem 1.25rem;
        font-size: 1rem;
    }
}

@media (max-width: 420px) {
    h1 {
        font-size: 2.75rem;
    }

    .tagline,
    .contact-label {
        letter-spacing: 1px;
    }
}
