/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Design System - Color Palette */
:root {
    /* Warm neutrals - earth and ocean tones */
    --color-bg: #FAF8F5;
    --color-bg-subtle: #F5F2ED;
    --color-text: #2A2825;
    --color-text-medium: #4A4640;
    --color-text-light: #6B6560;
    --color-accent: #6B8E91;
    --color-accent-hover: #547276;
    --color-accent-light: rgba(107, 142, 145, 0.08);
    --color-border: rgba(107, 142, 145, 0.15);

    /* Spacing scale - refined for better rhythm */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-xxl: 8rem;
    --space-xxxl: 10rem;

    /* Typography - refined hierarchy */
    --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Helvetica Neue', sans-serif;
    --font-size-base: 18px;
    --font-size-lg: 21px;
    --font-size-xl: 26px;
    --font-size-h1: 52px;
    --font-size-h2: 36px;
    --line-height-base: 1.75;
    --line-height-relaxed: 1.65;
    --line-height-tight: 1.25;
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: -0.01em;
    --letter-spacing-wide: 0.01em;

    /* Layout */
    --max-width: 680px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Section Spacing */
.section {
    padding: var(--space-xl) 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }
.section:nth-child(6) { animation-delay: 0.6s; }

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

/* Typography */
h1, h2 {
    font-weight: 350;
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--space-lg);
    letter-spacing: var(--letter-spacing-normal);
    position: relative;
    padding-bottom: var(--space-md);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--color-accent), transparent);
    opacity: 0.4;
}

p {
    margin-bottom: var(--space-md);
    letter-spacing: var(--letter-spacing-wide);
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 550;
    color: var(--color-text);
    letter-spacing: var(--letter-spacing-normal);
}

/* Hero Section */
.hero {
    padding-top: var(--space-xxxl);
    padding-bottom: var(--space-xxl);
    border-bottom: 1px solid var(--color-border);
}

.name {
    font-size: var(--font-size-h1);
    font-weight: 300;
    margin-bottom: var(--space-sm);
    letter-spacing: var(--letter-spacing-tight);
}

.descriptor {
    font-size: var(--font-size-xl);
    color: var(--color-text-medium);
    margin-bottom: var(--space-xl);
    font-weight: 300;
    letter-spacing: var(--letter-spacing-wide);
    line-height: var(--line-height-relaxed);
}

.intro {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-medium);
}

.intro p {
    margin-bottom: var(--space-lg);
}

.hero-quote {
    margin: var(--space-xl) 0;
    padding: var(--space-lg) var(--space-md);
    border-left: 3px solid var(--color-accent);
    background: var(--color-accent-light);
    font-style: normal;
}

.hero-quote p {
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: var(--color-text);
    margin: 0;
    line-height: var(--line-height-relaxed);
}

/* Life Experience Section */
.life-experience {
    position: relative;
}

.life-experience p {
    margin-bottom: var(--space-lg);
}

.life-experience p:last-child {
    margin-bottom: 0;
}

/* Building Now Section */
.building-now {
    background: linear-gradient(to bottom, var(--color-accent-light), transparent);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-xl) 0;
    position: relative;
}

.building-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-accent), transparent);
    opacity: 0.2;
}

/* Lists */
ul.work-list,
ul.daily-list,
ul.belief-list {
    list-style: none;
    margin: var(--space-lg) 0;
    padding: 0;
}

ul.work-list li,
ul.daily-list li,
ul.belief-list li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-sm);
    color: var(--color-text-medium);
}

ul.work-list li::before,
ul.daily-list li::before,
ul.belief-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
}

/* How I Work Section */
.how-i-work {
    position: relative;
}

.how-i-work p {
    margin-bottom: var(--space-md);
}

.how-i-work p:last-child {
    margin-bottom: 0;
}

/* Where I Am Section */
.where-i-am {
    background-color: var(--color-bg-subtle);
    padding: var(--space-xl) 0;
    margin: var(--space-xl) 0;
    border-radius: 2px;
}

.where-i-am p {
    margin-bottom: var(--space-lg);
}

.where-i-am p:last-child {
    margin-bottom: 0;
}

/* Image Section */
.image-section {
    padding: var(--space-xxl) 0;
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 4px 20px rgba(42, 40, 37, 0.08);
}

.feature-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.95;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.feature-image:hover {
    opacity: 1;
}

/* Why This Matters Section */
.why-matters {
    position: relative;
}

.why-matters p {
    margin-bottom: var(--space-lg);
}

.section-quote {
    margin: var(--space-xl) 0;
    padding: var(--space-lg) var(--space-md);
    border-left: 3px solid var(--color-accent);
    background: var(--color-accent-light);
    font-style: normal;
}

.section-quote p {
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: var(--color-text);
    margin: 0;
    line-height: var(--line-height-relaxed);
}

/* If You're Here From Miracale Section */
.from-miracale {
    background: linear-gradient(to bottom, transparent, var(--color-accent-light));
    border-top: 1px solid var(--color-border);
    padding: var(--space-xl) 0;
    position: relative;
}

.from-miracale p {
    margin-bottom: var(--space-lg);
}

.from-miracale p:last-of-type {
    margin-bottom: 0;
}

/* Closing Section */
.closing {
    padding-top: var(--space-xxl);
    padding-bottom: var(--space-xxxl);
    text-align: center;
    position: relative;
}

.statement {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-xxl);
    font-weight: 350;
    letter-spacing: var(--letter-spacing-normal);
    color: var(--color-text);
}

.links {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.link {
    position: relative;
    color: var(--color-accent);
    text-decoration: none;
    padding: 12px 28px;
    border: 1.5px solid var(--color-accent);
    border-radius: 3px;
    transition: all var(--transition-base);
    font-size: var(--font-size-base);
    font-weight: 450;
    letter-spacing: var(--letter-spacing-wide);
    overflow: hidden;
}

.link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--color-accent);
    transition: width var(--transition-base);
    z-index: -1;
}

.link:hover::before,
.link:focus::before {
    width: 100%;
}

.link:hover,
.link:focus {
    color: var(--color-bg);
    border-color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(107, 142, 145, 0.15);
    outline: none;
}

.link:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(107, 142, 145, 0.1);
}

.link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --font-size-base: 17px;
        --font-size-lg: 19px;
        --font-size-xl: 23px;
        --font-size-h1: 40px;
        --font-size-h2: 30px;
        --space-lg: 2.5rem;
        --space-xl: 4rem;
        --space-xxl: 5rem;
        --space-xxxl: 6rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-lg) 0;
    }

    .hero {
        padding-top: var(--space-xxl);
        padding-bottom: var(--space-xl);
    }

    .closing {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-xxl);
    }

    .links {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }

    .link {
        text-align: center;
    }

    h2::after {
        width: 30px;
    }

    .image-wrapper {
        border-radius: 2px;
    }

    .image-section {
        padding: var(--space-xl) 0;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 16px;
        --font-size-lg: 18px;
        --font-size-xl: 21px;
        --font-size-h1: 34px;
        --font-size-h2: 26px;
        --space-md: 1.25rem;
        --space-lg: 2rem;
        --space-xl: 3rem;
        --space-xxl: 4rem;
        --space-xxxl: 5rem;
    }

    .container {
        padding: 0 var(--space-sm);
    }

    .hero {
        padding-top: var(--space-xl);
    }

    .descriptor {
        margin-bottom: var(--space-lg);
    }

    .where-i-am {
        margin: var(--space-lg) calc(-1 * var(--space-sm));
        padding: var(--space-lg) var(--space-sm);
    }

    .image-wrapper {
        border-radius: 0;
        box-shadow: none;
    }

    .image-section {
        padding: var(--space-lg) 0;
    }

    .footer-logos {
        gap: 32px;
    }

    .footer-logos img {
        height: 28px !important;
        max-width: 100px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .section {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .link,
    .link::before,
    .feature-image {
        transition: none;
    }

    .link:hover,
    .link:focus {
        transform: none;
    }

    .feature-image:hover {
        transform: none;
    }
}

/* Footer */
.site-footer {
    padding: 80px 0 60px;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-logos img {
    height: 32px !important;
    width: auto !important;
    max-width: 120px;
    opacity: 0.55;
    filter: grayscale(100%);
    object-fit: contain;
    display: block;
}

/* Print Styles */
@media print {
    .section {
        page-break-inside: avoid;
        opacity: 1;
        transform: none;
    }

    .link {
        color: var(--color-text);
        border: none;
    }
}
