/* ================================
   GENERAL PAGE STYLING
   ================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;

    background: #596fff;
    color: white;

    font-family: Rockwell, "Roboto Slab", Georgia, serif;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;

    line-height: 1.5;
}


/* ================================
   HEADINGS
   ================================ */

h1 {
    font-size: clamp(2.2rem, 7vw, 4rem);
    margin: 20px 0 10px;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.7rem, 5vw, 2.5rem);
    margin: 15px 0 10px;
    line-height: 1.2;
}

p {
    font-size: clamp(1.1rem, 3.5vw, 2rem);
    max-width: 800px;
    margin: 10px auto 20px;
}


/* ================================
   IMAGES
   ================================ */

img {
    width: min(250px, 65vw);
    height: min(250px, 65vw);

    object-fit: cover;

    border-radius: 50%;
    border: 8px solid white;

    display: block;
    margin: 20px auto;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}


/* ================================
   LINKS / BUTTONS
   ================================ */

a {
    display: block;

    width: min(100%, 600px);
    min-height: 55px;

    margin: 12px auto;
    padding: 13px 20px;

    background-color: white;
    color: #020530;

    border-radius: 14px;

    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: bold;

    text-decoration: none;

    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}


/* Desktop / mouse hover */

a:hover {
    background-color: #eef1ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}


/* Phone touch feedback */

a:active {
    transform: scale(0.97);
}


/* Keyboard accessibility */

a:focus-visible {
    outline: 4px solid #020530;
    outline-offset: 4px;
}


/* ================================
   SMALL PHONES
   ================================ */

@media (max-width: 480px) {

    body {
        padding: 15px;
    }

    h1 {
        margin-top: 10px;
    }

    h2 {
        margin-top: 10px;
    }

    img {
        border-width: 6px;
        margin: 15px auto;
    }

    a {
        width: 100%;
        min-height: 52px;
        padding: 12px 15px;
        border-radius: 12px;
    }
}


/* ================================
   LARGER SCREENS
   ================================ */

@media (min-width: 900px) {

    body {
        padding: 40px 20px;
    }

    a {
        width: 600px;
    }
}


/* ================================
   REDUCE ANIMATIONS IF REQUESTED
   ================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    a {
        transition: none;
    }
}
