/*
Theme Name: Centered Photo
Author: OpenAI
Description: A minimal responsive WordPress theme with a large centered site title and one large photo beneath it.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: centered-photo
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --page-padding: clamp(1rem, 3vw, 3rem);
    --content-width: 90rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    margin: 0;
    min-width: 20rem;
    background: #ffffff;
    color: #111111;
    font-family: Arial, Helvetica, sans-serif;
}

.site-main {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--page-padding);
}

.hero {
    width: min(100%, var(--content-width));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}

.hero__title {
    margin: 0;
    max-width: 18ch;
    text-align: center;
    font-size: clamp(3rem, 9vw, 8.5rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
    overflow-wrap: anywhere;
}

.hero__image {
    display: block;
    width: 100%;
    height: clamp(18rem, 58vh, 48rem);
    object-fit: cover;
}

@media (max-width: 37.5rem) {
    .site-main {
        align-items: flex-start;
        padding-top: clamp(3rem, 12vh, 6rem);
        padding-bottom: 1rem;
    }

    .hero {
        gap: 1.75rem;
    }

    .hero__title {
        font-size: clamp(3rem, 17vw, 5.5rem);
    }

    .hero__image {
        height: min(62vh, 32rem);
    }
}
