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

body {
    background-color: #2a2a2a;
    color: #f5f5f0;
    font-family: 'Crimson Pro', 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    min-height: 100vh;
    padding: 4rem 0;
}

header {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 4rem;
    text-align: center;
    margin-bottom: 4rem;
}

header h1 {
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.2;
    font-family: 'Crimson Pro', 'Georgia', 'Times New Roman', serif;
}

header h2 {
    font-size: 1.9rem;
    font-weight: 100;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    padding-bottom: 3rem;
    padding-left: 2.75rem;
    padding-right: 2.75rem;
    font-style: italic;
    color: #ffffff;
    line-height: 1.2;
    font-family: 'Crimson Pro', 'Georgia', 'Times New Roman', serif;
}

header p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #d4d4d4;
    max-width: 900px;
    margin: 0;
    text-align: left;
}

header p em {
    color: #f5f5f0;
}

.floatRight {   
    float: right;
    margin-left: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}   

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 4rem;
    clear: both;
}

main p {
    font-size: 1.4rem;
    line-height: 1.4;
    color: #e8e8e3;
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    body {
        padding: 2rem 0;
    }
    
    header {
        padding: 0 2rem;
        margin-bottom: 3rem;
    }
    
    header h1 {
        font-size: 3.375rem;
    }
    
    header h2 {
        font-size: 1.6875rem;
    }
    
    header p {
        font-size: 1.2375rem;
    }
    
    main {
        padding: 0 2rem;
    }
    
    main p {
        font-size: 1.29375rem;
        text-align: left;
    }
}

/* Landing Page Styles */
body.landing-page {
    background-color: #8a8a8a;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: max(100vh, 600px);
}

.landing-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.left-page {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    padding: 5%;
    width: 40%;
    z-index: 10;
}

.left-page p {
    font-family: 'Crimson Pro', 'Georgia', 'Times New Roman', serif;
    font-size: clamp(0.65rem, 1.2vw, 1rem);
    line-height: 1.5;
    color: #2a2a2a;
    text-align: justify;
    margin-bottom: 1em;
}

.left-page .attribution {
    text-align: right;
    font-style: italic;
    margin-bottom: 0;
}

.image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.book-image {
    position: relative;
    display: inline-block;
}

.title-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
}

.black-circle {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 120px;
    height: 120px;
    background-color: #000000;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.black-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.black-circle:active {
    transform: scale(0.98);
}

.circle-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    font-family: 'Crimson Pro', 'Georgia', 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    transform: rotate(-12deg);
}

.full-text-button {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Crimson Pro', 'Georgia', 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.full-text-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.full-text-button:active {
    transform: scale(0.98);
}

/* Responsive styles for landing page */

/* Phone Landscape - text to left of image */
@media (max-width: 900px) and (orientation: landscape) {
    /* Debug: blue border for landscape */
    body.landing-page {
        outline: 3px solid blue; /* DEBUG - remove later */
        padding: 0.5rem;
    }
    
    .landing-container {
        padding: 0.5rem 2rem;
    }
    
    .image-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }
    
    .left-page {
        position: static;
        transform: none;
        width: auto;
        max-width: 35%;
        padding: 1rem;
        flex-shrink: 0;
        order: 1;
    }
    
    .left-page p {
        font-size: 0.75rem;
        line-height: 1.4;
        color: white !important;
    }
    
    .book-image {
        order: 2;
    }
    
    .title-image {
        max-height: 80vh;
        max-width: 55vw;
    }
    
    .black-circle {
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
        width: 140px;
        height: 140px;
    }
    
    .circle-text {
        font-size: 1.5rem;
    }
}

/* Phone Portrait - text below image */
@media (max-width: 900px) and (orientation: portrait) {
    /* Debug: red border for portrait */
    body.landing-page {
        outline: 3px solid red; /* DEBUG - remove later */
        padding: 1rem;
    }
    
    .landing-container {
        padding: 1rem;
    }
    
    .image-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .left-page {
        position: static;
        transform: none;
        width: 90%;
        max-width: 400px;
        padding: 1.5rem;
        order: 2;
    }
    
    .left-page p {
        font-size: 0.9rem;
        line-height: 1.5;
        color: white !important;
    }
    
    .book-image {
        order: 1;
    }
    
    .title-image {
        max-height: 50vh;
    }
    
    .black-circle {
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
        width: 140px;
        height: 140px;
    }
    
    .circle-text {
        font-size: 1.5rem;
    }
}

/* Small screens - keep 180px circle size from portrait/landscape rules */
