:root {
    --cream: #FAF8F3;
    --ink: #1A1614;
    --charcoal: #3A3632;
    --sage: #8B9D83;
    --sage-light: #B5C4AD;
    --sage-dark: #5F6E57;
    --parchment: #F5F1E8;
    --gold: #C9A961;
    --gold-dark: #9C7D3F;
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Crimson Text', serif;
    
    --shadow-sm: 0 2px 8px rgba(26, 22, 20, 0.08);
    --shadow-md: 0 4px 16px rgba(26, 22, 20, 0.12);
    --shadow-lg: 0 8px 32px rgba(26, 22, 20, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--cream);
    overflow-x: hidden;
}

/* Noise texture overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 248, 243, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(26, 22, 20, 0.1);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--sage-dark);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 1rem;
    color: var(--charcoal);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sage);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--sage-dark);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.ink-stain {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--sage-light), transparent 70%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.15;
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.ink-stain-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--gold), transparent 70%);
    opacity: 0.08;
    bottom: -300px;
    left: -200px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--ink);
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease-out both;
}

.title-line:nth-child(1) {
    animation-delay: 0.3s;
}

.title-line:nth-child(2) {
    animation-delay: 0.5s;
}

.title-line:nth-child(3) {
    animation-delay: 0.7s;
}

.title-line-emphasis {
    font-style: italic;
    color: var(--sage-dark);
    position: relative;
    display: inline-block;
}

.title-line-emphasis::after {
    content: '';
    position: absolute;
    bottom: 0.2em;
    left: -0.1em;
    right: -0.1em;
    height: 0.15em;
    background: var(--gold);
    opacity: 0.3;
    z-index: -1;
    transform: skewY(-1deg);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 3rem;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 1.1s both;
}

.btn {
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--sage-dark);
    color: var(--cream);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--sage);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--sage-dark);
    border: 2px solid var(--sage-dark);
}

.btn-secondary:hover {
    background: var(--sage-dark);
    color: var(--cream);
    transform: translateY(-2px);
}

.hero-image-container {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.author-photo-placeholder {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.photo-frame {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--parchment);
    border: 1px solid rgba(26, 22, 20, 0.1);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.photo-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--sage-light);
    opacity: 0.3;
    pointer-events: none;
}

.photo-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--parchment) 0%, var(--cream) 100%);
}

.photo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--sage);
    opacity: 0.5;
}

/* Section Styles */
section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--ink);
    margin-bottom: 1rem;
}

.section-ornament {
    width: 80px;
    height: 3px;
    background: var(--sage);
    margin: 0 auto;
    position: relative;
}

.section-ornament::before,
.section-ornament::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background: var(--gold);
    top: 0;
}

.section-ornament::before {
    left: -30px;
}

.section-ornament::after {
    right: -30px;
}

/* Books Section */
.books-section {
    background: linear-gradient(180deg, var(--cream) 0%, var(--parchment) 100%);
    margin: 0;
    max-width: 100%;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.book-card {
    background: var(--cream);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.book-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--sage-light) 0%, var(--sage) 100%);
    overflow: hidden;
}

.book-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, transparent 100%);
}

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

.book-placeholder {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--cream);
    opacity: 0.7;
}

.book-info {
    padding: 2rem;
}

.book-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--ink);
}

.book-description {
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.book-link {
    color: var(--sage-dark);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.book-link:hover {
    color: var(--sage);
    transform: translateX(4px);
}

/* About Section */
.about-section {
    background: var(--cream);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    padding-right: 2rem;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.about-paragraphs p {
    margin-bottom: 1.5rem;
    color: var(--charcoal);
}

.author-quote {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--sage-dark);
    margin-top: 3rem;
    padding-left: 2rem;
    border-left: 4px solid var(--gold);
    line-height: 1.6;
}

.about-credentials {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.credential-card {
    background: var(--parchment);
    padding: 2.5rem;
    border-radius: 4px;
    border-left: 4px solid var(--sage);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.credential-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.credential-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--sage-dark);
    margin-bottom: 0.5rem;
}

.credential-label {
    font-size: 1.1rem;
    color: var(--charcoal);
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(180deg, var(--cream) 0%, var(--parchment) 100%);
    margin: 0;
    max-width: 100%;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 1.2rem;
    color: var(--charcoal);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--cream);
    padding: 3rem 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--sage-light);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-label {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.contact-detail {
    color: var(--charcoal);
}

/* Footer */
.footer {
    background: var(--ink);
    color: var(--cream);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-text {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--cream);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.author-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-text {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    section {
        padding: 4rem 1.5rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
