/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.8;
    color: #1a1a1a;
    background-color: #fefefe;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 200;
    margin-bottom: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.8rem;
    line-height: 1.05;
    font-weight: 100;
    letter-spacing: -0.025em;
    margin-bottom: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #111;
    text-rendering: optimizeLegibility;
}

h2 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 2.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #111;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-rendering: optimizeLegibility;
}

h3 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: normal;
}

p {
    margin-bottom: 1.8rem;
    max-width: 72ch;
    line-height: 1.65;
    font-weight: 350;
    font-size: 1.05rem;
    color: #2a2a2a;
    text-rendering: optimizeLegibility;
}

a {
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: #dc2626;
    transform: translateY(-1px);
}

/* Header and Navigation */
header {
    border-bottom: 1px solid rgba(240, 240, 240, 0.6);
    padding: 3rem 0;
    position: sticky;
    top: 0;
    background-color: rgba(254, 254, 254, 0.92);
    backdrop-filter: blur(25px) saturate(180%);
    z-index: 100;
    animation: fadeInUp 0.6s ease 0s both;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #111;
    transition: all 0.3s ease;
}

.logo:hover {
    color: #dc2626;
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-menu a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 1px solid transparent;
    padding: 6px 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 400;
    position: relative;
    top: 0;
}

.nav-menu a:hover {
    border-bottom-color: #dc2626;
    color: #dc2626;
    top: -3px;
    text-shadow: 0 1px 3px rgba(220, 38, 38, 0.2);
}

/* Main content */
main {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Hero section */
.hero {
    padding: 3rem 0 1rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 5rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-image img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.06);
}

.photo-credit {
    font-size: 0.75rem;
    color: #888;
    margin-top: 1rem;
    font-style: italic;
    letter-spacing: 0.08em;
    font-weight: 350;
    animation: fadeIn 1s ease 0.8s both;
    text-transform: uppercase;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    font-weight: normal;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-text p {
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Content sections */
.content-section {
    margin: 6rem 0;
}

.content-section h2 {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    position: relative;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #dc2626 0%, #991b1b 100%);
    border-radius: 1px;
}

/* Book pages */
.book-hero {
    padding: 6rem 0;
    border-bottom: none;
    margin-bottom: 8rem;
    position: relative;
    background: linear-gradient(135deg, #fff 0%, rgba(248, 248, 248, 0.4) 100%);
}

/* Book cover image */
.book-cover {
    text-align: center;
    margin-bottom: 4rem;
}

.book-cover img {
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.book-cover img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 25px rgba(220, 38, 38, 0.1);
}

.book-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px; /* Shorter divider line */
    height: 1px;
    background-color: #eee;
}

.book-title {
    font-size: 3.2rem;
    font-weight: 200;
    margin-bottom: 1rem;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: #111;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-rendering: optimizeLegibility;
}

.book-subtitle {
    font-size: 0.9rem;
    color: #dc2626;
    font-style: normal;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 400;
}

/* Praise and interviews sections - minimal style */
.praise-item, .interview-item {
    margin-bottom: 1.5rem;
    padding: 0;
    border: none;
}

/* Compact markdown-style list for writing page */
.writing-page .content-section {
    margin: 2rem 0;
}

.writing-page .content-section h2 {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.writing-page .interview-item {
    margin-bottom: 0.3rem;
    padding: 0;
    border: none;
    line-height: 1.3;
}

.writing-page .interview-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    display: inline;
}

.writing-page .interview-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.writing-page .interview-title a:hover {
    color: #dc2626;
    transform: none;
}

.writing-page .interview-publication {
    margin: 0;
    font-size: 0.85rem;
    color: #dc2626;
    font-style: normal;
    font-weight: 600;
    display: inline;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.writing-page .interview-publication::before {
    content: " — ";
    color: #dc2626;
    font-weight: 700;
}

/* Purchase buttons styling */
.purchase-links {
    margin: 2rem 0;
}

.purchase-links p {
    margin-bottom: 1rem;
}

.purchase-links a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    text-decoration: none;
    margin: 0 0.5rem 0.5rem 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.purchase-links a:hover {
    background-color: #1a1a1a;
    color: #fff;
    transform: none;
}

.praise-item:last-child, .interview-item:last-child {
    border-bottom: none;
}

.praise-quote {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
    font-style: italic;
    font-weight: 400;
    color: #2a2a2a;
    font-family: 'Georgia', serif;
    border-left: 2px solid rgba(220, 38, 38, 0.8);
    padding-left: 1.2rem;
    margin-left: 0;
    position: relative;
    max-width: 90ch;
}

.praise-attribution {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #dc2626;
    font-style: normal;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.interview-title {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
    color: #1a1a1a;
    display: inline;
}

.interview-publication {
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-style: normal;
    display: inline;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.interview-publication::before {
    content: " — ";
    color: #dc2626;
    font-weight: 700;
}

/* Contact form */
.contact-form {
    max-width: 600px;
    margin-top: 2rem;
}

.editing-form-sidebar .contact-form {
    max-width: none;
}

.casual-contact {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: none;
}

/* Editing page layout */
body:has(.editing-layout) main {
    max-width: 1200px;
}

.editing-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 5rem;
    align-items: start;
    margin-top: 2rem;
}

.editing-content {
    /* Left side content */
}

.editing-form-sidebar {
    /* Right side form */
    padding-left: 2rem;
    padding-top: 0;
    position: relative; /* For absolute positioning of portrait */
}

/* Portrait image styling */
.editing-form-sidebar .editing-portrait {
    position: absolute;
    top: -25rem; /* Higher positioning */
    left: 1rem;
    right: 0;
}

.editing-portrait img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 2px;
    transition: transform 0.3s ease;
    filter: grayscale(20%);
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.editing-portrait img:hover {
    transform: scale(1.02);
    filter: grayscale(0%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.editing-form-sidebar .content-section {
    margin: 6rem 0 !important; /* Match Experience section margin exactly */
}

.editing-form-sidebar h2::after {
    width: 30px !important; /* Shorter divider line to avoid overlap with image */
}

.editing-form-sidebar .contact-form {
    margin-top: 0;
}

/* Responsive editing layout */
@media (max-width: 968px) {
    .editing-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .editing-form-sidebar {
        padding-left: 0;
        padding-top: 0;
        order: 2;
    }
    
    .editing-content {
        order: 1;
    }
    
    /* Reset portrait positioning for mobile */
    .editing-form-sidebar .editing-portrait {
        position: static;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .editing-portrait img {
        max-width: 200px;
        margin: 0 auto;
        display: block;
    }
    
    /* Adjust content section margins for mobile */
    .editing-form-sidebar .content-section {
        margin: 2rem 0 !important;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fff;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: #1a1a1a;
    color: #fff;
    padding: 1rem 2.5rem;
    border: 1px solid #333;
    border-radius: 0;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 300;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.submit-btn:hover {
    background-color: #fff;
    color: #1a1a1a;
    border-color: #1a1a1a;
    transform: none;
    box-shadow: none;
}

.submit-btn:active {
    background-color: #f5f5f5;
}

/* Footer */
footer {
    border-top: 1px solid #f0f0f0;
    padding: 2rem 0;
    margin-top: 1rem;
    text-align: center;
    color: #666;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    margin: 0 0.8rem;
    color: #1a1a1a;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 12px 18px;
    border: 1px solid #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 300;
    border-radius: 0;
}

.social-links a:hover {
    background-color: #dc2626;
    color: #fff;
    border-color: #dc2626;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

/* Email link styling */
.email-link {
    color: #0066cc !important;
    text-decoration: underline;
}

.email-link:hover {
    color: #0052a3 !important;
}

/* Modern enhancements */
.hero-image img {
    transition: transform 0.3s ease;
    filter: grayscale(15%);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-image img:hover {
    transform: scale(1.02) translateY(-4px);
    filter: grayscale(0%);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.15), 0 12px 32px rgba(0, 0, 0, 0.1);
}

.praise-item, .interview-item {
    transition: none;
    padding: 0;
    margin: 1.5rem 0;
    border: none;
}

.praise-item:hover, .interview-item:hover {
    transform: none;
    border: none;
}

/* Premium hover effects */
.praise-item:hover, .interview-item:hover {
    transform: translateX(6px);
    border-bottom-color: rgba(220, 38, 38, 0.4);
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.01) 0%, transparent 60%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* Welcome and scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.content-section {
    animation: fadeInUp 0.6s ease forwards;
}

/* Enhanced form styling */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Enhanced mobile optimization for editing page */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        padding-bottom: 2px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    h1 {
        font-size: 2.5rem;
        letter-spacing: -0.02em;
    }
    
    .book-title {
        font-size: 2.2rem;
        letter-spacing: -0.02em;
        margin-bottom: 1rem;
    }
    
    .book-subtitle {
        font-size: 0.8rem;
        margin-bottom: 2rem;
    }
    
    .book-hero {
        padding: 3rem 0 4rem;
        margin-bottom: 4rem;
    }
    
    .book-cover {
        margin-bottom: 2rem;
    }
    
    .book-cover img {
        max-width: 200px;
    }
    
    .hero {
        padding: 4rem 0 5rem;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    main {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 2rem 0 3rem;
    }
    
    /* Enhanced editing page mobile styles */
    .editing-layout {
        gap: 2rem;
        margin-top: 1rem;
    }
    
    .casual-contact {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Mobile-optimized form styling */
    .contact-form {
        margin-top: 1rem;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 4px;
        -webkit-appearance: none;
    }
    
    .form-group textarea {
        height: 120px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 1.2rem 2rem;
        font-size: 1rem;
        margin-top: 0.5rem;
    }
    
    /* Content section adjustments for mobile */
    .content-section {
        margin: 3rem 0;
    }
    
    .content-section h2 {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .praise-item, .interview-item {
        padding: 0;
        margin: 1.2rem 0;
    }
    
    .praise-quote {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    /* Footer mobile optimization */
    .social-links a {
        margin: 0 0.4rem;
        padding: 10px 14px;
        font-size: 0.7rem;
    }
}

/* Extra small mobile devices optimization */
@media (max-width: 480px) {
    header {
        padding: 1.5rem 0;
    }
    
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .logo {
        font-size: 1rem;
        letter-spacing: 0.15em;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-menu a {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }
    
    main {
        padding: 0 0.5rem;
    }
    
    .book-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .book-hero {
        padding: 2rem 0 3rem;
        margin-bottom: 3rem;
    }
    
    /* Extra compact editing layout */
    .editing-layout {
        gap: 1.5rem;
    }
    
    .content-section {
        margin: 2rem 0;
    }
    
    .content-section h2 {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .editing-portrait img {
        max-width: 160px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.9rem;
        font-size: 0.9rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .praise-quote {
        font-size: 1rem;
    }
    
    .social-links a {
        margin: 0 0.2rem 0.5rem;
        padding: 8px 12px;
        font-size: 0.65rem;
        display: inline-block;
    }
    
    footer {
        padding: 3rem 0;
    }
}
/* Landing page intro: nudged down and slightly larger (Oct 2026) */
.hero-text {
    padding-top: 3rem;
}

.hero-text p {
    font-size: 1.15rem;
}

@media (max-width: 768px) {
    .hero-text {
        padding-top: 0;
    }
}

/* Parenthetical note after a praise attribution: same font and color, not all caps */
.attribution-note {
    text-transform: none;
}

/* Journalism page: portrait on the left, heading on the right (echoes landing page) */
.journalism-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5rem;
    align-items: start;
}

.journalism-hero-image {
    justify-self: start;
}

.journalism-hero-image img {
    max-width: 540px;
    display: block;
}

@media (max-width: 768px) {
    .journalism-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .journalism-hero-image {
        justify-self: center;
    }

    .journalism-hero-image img {
        max-width: 100%;
    }
}

/* Site design credit in the footer */
.site-credit {
    font-size: 0.7rem;
    color: #888;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 350;
    margin: 0.5rem auto 0;
    max-width: none;
    text-align: center;
}
