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

:root {
    --bg: #FAF7F2;
    --card: #FFFDFC;
    --text: #2F2A26;
    --text-secondary: #6E655E;
    --text-muted: #A09889;
    --accent-peach: #F2A97F;
    --accent-blue: #7E9BB7;
    --border: #E8DED5;
    --border-light: #F0EAE2;
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--accent-peach);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ===== Nav ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 247, 242, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
}

.nav-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 56px;
}

.hero-portrait {
    flex-shrink: 0;
}

.hero-portrait img {
    width: 220px;
    height: 220px;
    border-radius: 50% 50% 50% 20%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--border);
}

.hero-text {
    flex: 1;
}

.hero-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-peach);
    margin-bottom: 16px;
}

.hero-name {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-story {
    font-family: 'DM Serif Display', serif;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 440px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
}

.btn-primary:hover {
    background: #1a1714;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--text);
    transform: translateY(-1px);
}

/* ===== Journey / Timeline ===== */
.journey {
    padding: 120px 24px 120px;
}

.section-heading {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
}

.section-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 56px;
}

.path {
    position: relative;
    padding: 40px 0;
}

/* Vertical connecting line */
.path::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--border) 8%,
        var(--accent-peach) 30%,
        var(--accent-blue) 70%,
        var(--border) 92%,
        transparent
    );
    transform: translateX(-50%);
}

.chapter {
    position: relative;
    display: flex;
    margin-bottom: 64px;
    align-items: flex-start;
}

.chapter:last-child {
    margin-bottom: 0;
}

.chapter-dot {
    position: absolute;
    left: 50%;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent-peach);
    transform: translateX(-50%);
    z-index: 2;
    transition: var(--transition);
}

.chapter-right .chapter-dot {
    border-color: var(--accent-blue);
}

.chapter-card {
    width: 44%;
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}

.chapter-card:hover {
    box-shadow: 0 8px 32px rgba(47, 42, 38, 0.06);
    transform: translateY(-2px);
}

.chapter-left .chapter-card {
    margin-right: auto;
}

.chapter-right .chapter-card {
    margin-left: auto;
}

.chapter-number {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    color: var(--border);
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.chapter-left .chapter-number { color: rgba(242, 169, 127, 0.25); }
.chapter-right .chapter-number { color: rgba(126, 155, 183, 0.25); }

.chapter-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--text);
}

.chapter-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.chapter-card p:last-child {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ===== Featured Work ===== */
.work {
    padding: 100px 24px;
    background: var(--card);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.work-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}

.work-card:hover {
    box-shadow: 0 8px 32px rgba(47, 42, 38, 0.06);
    transform: translateY(-3px);
}

.work-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-peach);
    margin-bottom: 12px;
    display: inline-block;
}

.work-card:nth-child(2) .work-label {
    color: var(--accent-blue);
}

.work-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text);
}

.work-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

a.work-card {
    display: block;
    cursor: pointer;
}

.work-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--accent-peach);
    letter-spacing: 0.02em;
    transition: color var(--transition);
}

.work-card:hover .work-link {
    color: var(--text);
}

/* ===== Reading ===== */
.reading {
    padding: 100px 24px;
}

.books-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.book-card {
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    transition: all var(--transition);
}

.book-card:hover {
    box-shadow: 0 8px 28px rgba(47, 42, 38, 0.06);
    transform: translateY(-3px);
}

.book-accent {
    width: 5px;
    flex-shrink: 0;
    background: linear-gradient(to bottom, var(--accent-peach), rgba(242, 169, 127, 0.3));
    border-radius: var(--radius) 0 0 var(--radius);
}

.book-accent-blue {
    background: linear-gradient(to bottom, var(--accent-blue), rgba(126, 155, 183, 0.3));
}

.book-body {
    padding: 24px 28px;
    flex: 1;
}

.book-body h4 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.book-author {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.book-quote {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
    font-style: italic;
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Last book spans full width when odd count */
.books-grid .book-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
}

/* ===== Values ===== */
.values {
    padding: 80px 24px;
    text-align: center;
}

.values-quote {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--text);
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    font-style: italic;
}

.values-quote::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--accent-peach);
    opacity: 0.4;
    position: absolute;
    top: -28px;
    left: -16px;
    font-style: normal;
    line-height: 1;
}

/* ===== Contact ===== */
.contact {
    padding: 100px 24px;
    background: var(--card);
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    transition: all var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
}

.contact-link:hover {
    border-color: var(--accent-peach);
    background: rgba(242, 169, 127, 0.06);
    transform: translateY(-1px);
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 32px 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
}

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.chapter-left.reveal {
    transform: translateX(-32px);
    opacity: 0;
}

.chapter-right.reveal {
    transform: translateX(32px);
    opacity: 0;
}

.chapter-left.reveal.visible,
.chapter-right.reveal.visible {
    transform: translateX(0);
    opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        padding: 100px 24px 60px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .hero-story {
        max-width: 100%;
    }

    .hero-portrait img {
        width: 180px;
        height: 180px;
    }

    /* Timeline goes single column on mobile */
    .path::before {
        left: 20px;
    }

    .chapter {
        flex-direction: column;
    }

    .chapter-dot {
        left: 20px;
        top: 0;
    }

    .chapter-left .chapter-card,
    .chapter-right .chapter-card {
        width: 100%;
        margin-left: 48px;
        margin-right: 0;
    }

    .chapter-left.reveal,
    .chapter-right.reveal {
        transform: translateY(28px);
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .nav-name {
        font-size: 1rem;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .books-grid .book-card:last-child:nth-child(odd) {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .chapter-left .chapter-card,
    .chapter-right .chapter-card {
        margin-left: 40px;
        padding: 24px;
    }

    .nav-links {
        gap: 12px;
    }
}
