/* CSS Custom Properties for theming */
/* Option 1: Deep Teal & Warm Coral (Default) */
:root {
    --color-bg: #1A1D21;
    --color-bg-alt: #252831;
    --color-text: #E8F4F8;
    --color-text-muted: #95C5B0;
    --color-accent: #0D4F5C;
    --color-accent-hover: #0A3D47;
    --color-link: #FF6B6B;
    --color-link-hover: #FF5252;
    --color-highlight: #95C5B0;

    --font-family-primary: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
    --font-size-base: 1.125rem;
    --line-height-base: 1.7;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    --max-width: 800px;
    --border-radius: 0.375rem;
    --transition: all 0.2s ease;
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    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;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 2.25rem;
    color: var(--color-text);
}

h3 {
    font-size: 1.5rem;
    color: var(--color-text);
}

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

strong {
    color: var(--color-text);
    font-weight: 600;
    font-style: italic;
}

/* Links */
a {
    color: var(--color-link);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-link-hover);
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(41, 44, 49, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: var(--space-md) 0;
}


.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-link);
}

.nav__links {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav__links a {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
    color: var(--color-link);
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl) 0;
}

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

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__current {
    font-size: 1rem;
    color: var(--color-text);
    opacity: 0.8;
}

/* Story Sections */
.story-section {
    padding: var(--space-3xl) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.story-section--alt {
    background-color: var(--color-bg-alt);
}

.story-content {
    max-width: 700px;
    margin: 0 auto;
}

.story__title {
    text-align: center;
    margin-bottom: var(--space-sm);
}

.story__subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: var(--space-xl);
    font-weight: 400;
}

.story__text p {
    margin-bottom: var(--space-lg);
    font-size: 1.125rem;
    line-height: 1.8;
}

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

/* Through-line Section */
.through-line {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
    text-align: center;
}

.through-line__content {
    max-width: 600px;
    margin: 0 auto;
}

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

.through-line__text {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 0;
}


/* Contact Section */
.contact {
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
}

.contact__content {
    max-width: 500px;
    margin: 0 auto;
}

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

.contact__text {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

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

.contact__link {
    color: var(--color-link);
    font-weight: 500;
    font-size: 1.125rem;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

.contact__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-link);
    transition: width 0.3s ease;
}

.contact__link:hover {
    color: var(--color-link-hover);
}

.contact__link:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --font-size-base: 1rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
        --space-3xl: 4rem;
    }

    .nav .container {
        flex-direction: column;
        gap: var(--space-md);
    }

    .nav__links {
        gap: var(--space-md);
    }

    .nav__links a {
        font-size: 0.8rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    .hero {
        min-height: 80vh;
        padding: var(--space-2xl) 0;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }

    .story__text p {
        font-size: 1rem;
    }

    .through-line__text {
        font-size: 1.125rem;
    }

    .contact__links {
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

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

    .nav__brand {
        font-size: 1.125rem;
    }
}

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

    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .nav {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .story-section,
    .through-line,
    .example,
    .contact {
        break-inside: avoid;
    }
}