/* Custom styles for Pacmin Story */

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===========================================
   Utility Classes (replacing Tailwind CDN)
   =========================================== */

/* Layout */
.container {
    width: 100%;
    max-width: 1280px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .px-4 {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .px-4 {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Flexbox */
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

/* Width */
.w-full {
    width: 100%;
}

/* Spacing */
.m-0 {
    margin: 0;
}

.mb-12 {
    margin-bottom: 3rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Typography */
.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.leading-relaxed {
    line-height: 1.625;
}

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

.underline {
    text-decoration: underline;
}

/* Colors */
.text-white {
    color: #ffffff;
}

.text-inherit {
    color: inherit;
}

.bg-text-dark {
    background-color: #2c3e50;
}

/* Font family */
.font-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.text-text-dark {
    color: #2c3e50;
}

/* Hover states */
.hover\:text-white:hover {
    color: #ffffff;
}

/* Responsive - Large screens (1024px+) */
@media (min-width: 1024px) {
    .lg\:w-1\/2 {
        width: 50%;
    }

    .lg\:order-1 {
        order: 1;
    }

    .lg\:order-2 {
        order: 2;
    }

    .lg\:mb-0 {
        margin-bottom: 0;
    }

    .lg\:pl-8 {
        padding-left: 2rem;
    }

    .lg\:pr-8 {
        padding-right: 2rem;
    }
}

/* Image utilities */
.max-w-full {
    max-width: 100%;
}

.h-auto {
    height: auto;
}

/* ===========================================
   Component Styles
   =========================================== */

/* Headings */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #1a4d7a;
}

h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #0d2f4a;
    text-transform: uppercase;
    font-style: normal;
    transform: skew(-12deg, 0);
    -webkit-text-stroke: 1px #0d2f4a;
    text-stroke: 1px #0d2f4a;
    text-shadow: 2px 2px 0 #0d2f4a,
                 3px 3px 0 rgba(26, 77, 122, 0.1),
                 6px 6px 12px rgba(0, 0, 0, 0.15),
                 0 0 20px rgba(26, 77, 122, 0.1);
    position: relative;
    word-break: keep-all;
    max-width: 100%;
    overflow-wrap: break-word;
}

h1 .pacmin-bold {
    font-weight: 700;
    -webkit-text-stroke: 1.5px #0d2f4a;
    text-stroke: 1.5px #0d2f4a;
    text-shadow: 2px 2px 0 #0d2f4a,
                 3px 3px 0 rgba(26, 77, 122, 0.1),
                 6px 6px 12px rgba(0, 0, 0, 0.15),
                 0 0 20px rgba(26, 77, 122, 0.1);
}

@media (min-width: 992px) {
    h1 {
        font-size: clamp(2.5rem, 4vw, 4.5rem);
    }
}

@media (max-width: 991px) {
    h1 {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        letter-spacing: -0.015em;
    }
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #1a4d7a, #c8102e);
    border-radius: 2px;
}

/* Hero logo image inside h1 */
.hero-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Space after h1 to account for decorative line */
.intro-text {
    margin-top: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

@media (max-width: 991px) {
    .hero-section {
        align-items: flex-start;
        padding-top: 2rem;
    }
}

/* Book Cover */
.book-cover-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.book-cover-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-cover-container img:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

/* Text Styles */
/* AAA 1.4.8: Limit line width to ~75 characters for readability */
.intro-text,
.hero-content,
.closing-statement {
    max-width: 75ch;
}

.intro-text {
    font-size: 1.1rem;
    color: #595959;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-content {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.hero-content p {
    margin-bottom: 1.25rem;
}

.closing-statement {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a4d7a;
    font-style: italic;
    margin-top: 2rem;
    margin-bottom: 0;
    text-align: center;
    letter-spacing: 0.01em;
}

/* Footer Credit */
.footer-credit {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #ffffff;
}

/* AAA: Ensure footer links meet 44x44px target size */
.footer-credit a {
    display: inline-block;
    padding: 10px 4px;
    min-height: 44px;
    line-height: 24px;
}

/* Visually hidden text for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        letter-spacing: -0.01em;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 2rem 0;
        min-height: 100vh;
    }

    .intro-text {
        font-size: 1rem;
    }

    .hero-content {
        font-size: 0.95rem;
    }

    .closing-statement {
        font-size: 1.15rem;
        margin-top: 1.5rem;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 3px solid #c8102e;
    outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-link {
    position: absolute;
    top: -60px;
    left: 0;
    background: #1a4d7a;
    color: white;
    padding: 12px 16px;
    min-height: 44px;
    min-width: 44px;
    text-decoration: none;
    z-index: 100;
    display: inline-flex;
    align-items: center;
}

.skip-link:focus {
    top: 0;
}

/* Coming Soon Badge */
.coming-soon-badge {
    background: linear-gradient(135deg, #1a4d7a 0%, #2c5f8d 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    box-shadow: 0 4px 15px rgba(26, 77, 122, 0.3);
    transform: skew(-12deg, 0);
}

.coming-soon-badge-lg {
    display: block;
    margin-bottom: 1.5rem;
    text-align: left;
}

.coming-soon-badge-sm {
    display: none;
}

@media (max-width: 991px) {
    .coming-soon-badge-lg {
        display: none;
    }

    .coming-soon-badge-sm {
        display: block;
        text-align: center;
        margin: 1.5rem auto;
    }
}
