/* Direct paperback purchase — aligned with newsletter-landing.css */

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

html {
    scroll-behavior: smooth;
}

:root {
    --dark-charcoal: #1a1a1a;
    --mist-gray: #f5f5f5;
    --blood-red: #8B0000;
    --shadow-gray: #666;
    --text-light: #888;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--dark-charcoal);
    background: white;
}

.skip-nav {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--blood-red);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    clip: rect(0, 0, 0, 0);
}

.skip-nav:focus {
    top: 0;
    clip: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    background:
        linear-gradient(
            180deg,
            rgba(26, 26, 26, 0.25) 0%,
            rgba(26, 26, 26, 0.15) 50%,
            rgba(26, 26, 26, 0.35) 100%
        ),
        url('../images/shropshire-hills-dark.png') center/cover no-repeat;
    background:
        linear-gradient(
            180deg,
            rgba(26, 26, 26, 0.25) 0%,
            rgba(26, 26, 26, 0.15) 50%,
            rgba(26, 26, 26, 0.35) 100%
        ),
        image-set(
            url('../images/shropshire-hills-dark.webp') type('image/webp'),
            url('../images/shropshire-hills-dark.png') type('image/png')
        ) center/cover no-repeat;
    background-attachment: fixed;
    background-position: center center;
    color: white;
    padding: 120px 0 100px;
    min-height: 500px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 3px;
    position: relative;
    z-index: 2;
    text-shadow:
        3px 3px 12px rgba(0, 0, 0, 1),
        1px 1px 4px rgba(0, 0, 0, 1),
        0px 0px 20px rgba(0, 0, 0, 0.9);
}

.hero .tagline {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #f0f0f0;
    font-style: italic;
    position: relative;
    z-index: 2;
    text-shadow:
        2px 2px 10px rgba(0, 0, 0, 1),
        1px 1px 4px rgba(0, 0, 0, 1),
        0px 0px 15px rgba(0, 0, 0, 0.9);
}

nav[role='navigation'] {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav.nav-minimal ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav.nav-minimal a {
    color: var(--dark-charcoal);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav.nav-minimal a:hover,
nav.nav-minimal a:focus {
    color: var(--blood-red);
}

.purchase-section {
    padding: 60px 0 80px;
    background: var(--mist-gray);
}

.purchase-content {
    max-width: 560px;
    margin: 0 auto;
}

.purchase-book-hero {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.purchase-book-hero img {
    width: 100px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.purchase-book-hero-text h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--dark-charcoal);
}

.purchase-book-hero-text .purchase-subtitle {
    color: var(--shadow-gray);
    font-size: 0.95rem;
}

.purchase-steps {
    margin-bottom: 24px;
    padding: 16px 18px;
    background: white;
    border-radius: 3px;
    border-left: 3px solid var(--blood-red);
}

.purchase-steps ol {
    margin: 0;
    padding-left: 1.25rem;
}

.purchase-steps li {
    margin-bottom: 8px;
}

.purchase-steps li:last-child {
    margin-bottom: 0;
}

#order-summary {
    margin-bottom: 24px;
    padding: 16px 18px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 1.05rem;
    line-height: 1.5;
}

#order-summary strong {
    color: var(--dark-charcoal);
}

.purchase-form-wrap h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--dark-charcoal);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--shadow-gray);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: 'Georgia', serif;
    font-size: 1rem;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--blood-red);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-submit {
    width: 100%;
    background: var(--blood-red);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-family: 'Georgia', serif;
    transition: background 0.3s;
    min-height: 48px;
    margin-top: 8px;
}

.form-submit:hover:not(:disabled) {
    background: #6B0000;
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-group.is-invalid input {
    border-color: #c44;
}

.field-error {
    display: none;
    font-size: 0.9rem;
    color: #8B0000;
    margin-top: 4px;
}

.field-error.is-visible {
    display: block;
}

.form-error {
    display: none;
    margin-top: 16px;
    padding: 12px 14px;
    background: #fff5f5;
    border: 1px solid #c44;
    border-radius: 3px;
    color: #8B0000;
    font-size: 0.95rem;
}

.form-error.is-visible {
    display: block;
}

.purchase-privacy {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--shadow-gray);
}

.purchase-privacy a {
    color: var(--blood-red);
}

.purchase-error-state {
    text-align: center;
    padding: 40px 20px;
}

.purchase-error-state h2 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 16px;
}

.purchase-error-state p {
    margin-bottom: 24px;
    color: var(--shadow-gray);
}

.purchase-error-state a {
    display: inline-block;
    background: var(--blood-red);
    color: white;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.purchase-error-state a:hover {
    background: #6B0000;
}

.is-hidden {
    display: none !important;
}

footer[role='contentinfo'] {
    background: var(--dark-charcoal);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    color: white;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--blood-red);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a,
.footer-link-button {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
}

.footer-links a:hover,
.footer-link-button:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: var(--text-light);
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .purchase-book-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 80px 0 60px;
        min-height: 360px;
    }
}
