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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: #ffffff;
    background-color: #000000;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility - Screen reader only content */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container for consistent max-width and centering */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
.header {
    padding: 8rem 0 6rem;
    text-align: center;
}

.brand-name {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: scale(0.95);
    animation: brandFadeIn 2s ease-out forwards;
}

.tagline {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* Brand name animation */
@keyframes brandFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Main Content */
.main {
    padding: 4rem 0;
}

/* Story Section */
.story-section {
    text-align: center;
}

.story-paragraph {
    font-size: clamp(1.125rem, 3vw, 1.25rem);
    line-height: 1.7;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.story-paragraph.emphasis {
    font-weight: 400;
    font-size: clamp(1.25rem, 3.5vw, 1.375rem);
    margin-bottom: 2rem;
}

.story-paragraph.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Brand Mark */
.brand-mark {
    text-align: center;
    margin: 4rem 0 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.brand-mark.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.c-mark {
    width: 60px;
    height: 60px;
    filter: brightness(1);
    transition: filter 0.3s ease;
}

.c-mark:hover {
    filter: brightness(1.1);
}

/* Footer Styles */
.footer {
    padding: 4rem 0 4rem;
    text-align: center;
}

/* Email Section */
.email-section {
    margin-bottom: 4rem;
}

.email-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-align: center;
}

.email-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.email-input-wrapper {
    width: 100%;
}

.email-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    color: #ffffff;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.05);
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.notify-button {
    padding: 1rem 2.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notify-button:hover,
.notify-button:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
    outline: none;
}

.notify-button:active {
    transform: translateY(0);
}

/* Social Media Icons */
.social-section {
    margin-bottom: 3rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover,
.social-icon:focus {
    color: #ffffff;
    transform: translateY(-2px);
    outline: none;
}

.social-icon i {
    font-size: 1.25rem;
}

/* Footer Text */
.footer-text {
    opacity: 0.6;
    font-size: 0.875rem;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .header {
        padding: 6rem 0 4rem;
    }
    
    .story-paragraph {
        margin-bottom: 2.5rem;
        font-size: 1.125rem;
        line-height: 1.6;
    }
    
    .email-form {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .social-icons {
        gap: 1.5rem;
    }
    
    .footer {
        padding: 6rem 0 3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .header {
        padding: 4rem 0 3rem;
    }
    
    .story-paragraph {
        margin-bottom: 2rem;
    }
    
    .social-icons {
        gap: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .email-input,
    .notify-button {
        border-color: #ffffff;
    }
    
    .story-paragraph,
    .tagline,
    .footer-text {
        opacity: 1;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .story-paragraph {
        opacity: 1;
        transform: none;
    }
}

/* Focus indicators for keyboard navigation */
.email-input:focus,
.notify-button:focus,
.social-icon:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}
