/* ============================================================
   quietjoon.net - Styles
   Swiss + Sepia Timeline Design
   ============================================================ */

/* Color Palette */
:root {
    --color-primary-dark: #3B2F20;
    --color-primary-mid: #6B5B45;
    --color-primary-mid-light: #8B7355;
    --color-primary-light: #A0845C;
    --color-accent-light: #C9A868;
    --color-accent-pale: #D4C4A0;
    --color-bg-light: #F5ECD7;
    --color-grain: #2A2015;
    --color-accent-pale2: #E8DABA;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Serif 4', serif;
    background-color: var(--color-bg-light);
    color: var(--color-primary-dark);
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
}

/* Grain Overlay - Photographic Paper Texture */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.06;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAACXBIWXMAACE4AAAhOAFp5Z5BAAACiUlEQVR4nO3WMQrDMBBF0eRd3V27cBk7c+FOPYGXyCl6h45QoMDCQl4h8P/88MMPP/zwww8//PDDD7/4+PiIx+Px+Hw+4/P5jM/nM4bDYQyHw/h6vWI8HscYDofx8XHx+/vL7/dbv98vn8/n+P1+8/v9xvf7Hf/+/Yuvr6/4+vri8/Mzvr6+Yrvdxnq9jvV6HVutVqzX69hsNrHZbGK73cZms4nVahXr9TqWy2Usl8tYrVaxXq9jsVjEYrGI5XIZy+UyFotFLJfL+Pv7i7+/v/j7+4v5fB7z+Tzm83nM5/OYz+cxn89jPp/HfD6P+Xwe8/k85vN5zOdzeDye8Hg84/F4wuPxhNfrFZ7PR3j9frxeL/H/+/3+iUajEXU6narVajWq1WpUKpWoVqtRrVajVqtRrVajVqtRrVajWq1GtVqNarUa1Wo1CoVCoVAoFAqFQqFQKBQKhUKhUCgU7o0VCoVCoVAoFAqFQqFQKBQKhUKhUCgUCoVCoVAoFAqFQqFQKBQKhUKhUCgUCoVCoVAoFAqFQqFQKBQKhUKhUCgUCoVCoVAoFAqFQqFQKBQKhUKhUCgUCoVCoVAoFAqFQqFQKBQKhUKhUCgUCoVCoVAoFAqFQqFQKBQKhUKhUCgUCoVCoVAoFAqFQqFQKBQKhUKhUCgUCoVCoVAoFAqFQqFQKBQKhUKhUCgUCoVCoVAoFAqFQqFQKBQKhUKhUCgUCoVCoVAoFAqFQqFQKBQKhUKhUCgUCoVCoVAoFAqFQqFQKBQKhUKhUCgUCoVCoVAoFAqFQqFQKBQKhUKhUCgUCoVCoVAoFAqFQqFQKBQKhUKhUCgUCoVCoVAoFAqFQqFQKBQKhUKhUCgUCoVCoVAoFAqFQqFQKBQKhUKhUCgUCoVCoVAoFAqFQqFQKBQKhUKhUCgUCoVCoVAoFAqFQqFQKBQKhUKhUCgUCoVCoVAoFAr/fPDDDz/88MMPP/zwww+/+PfjBxO8OUlh3+YaAAAAAElFTkSuQmCC');
    background-repeat: repeat;
    background-size: 200px 200px;
    z-index: 9999;
}

/* Timeline Container */
.timeline-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Header Moment */
.header-moment {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: var(--color-bg-light);
    text-align: center;
    position: relative;
}

.header-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    line-height: 1.1;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
}

.header-subtitle {
    font-family: 'IBM Plex Sans Condensed', sans-serif;
    font-size: clamp(0.75rem, 2vw, 1.125rem);
    letter-spacing: 0.1em;
    color: var(--color-primary-mid);
    text-transform: uppercase;
    margin-top: 2rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Timeline Spine */
.timeline-spine {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    top: 100vh;
    bottom: 0;
    background-color: var(--color-primary-mid);
    z-index: 1;
}

/* Timeline Entries */
.timeline-entry {
    display: flex;
    margin-bottom: 6rem;
    position: relative;
    animation: slideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.timeline-entry:nth-child(2) {
    animation-delay: 0.1s;
}

.timeline-entry:nth-child(3) {
    animation-delay: 0.2s;
}

.timeline-entry:nth-child(4) {
    animation-delay: 0.3s;
}

.timeline-entry:nth-child(5) {
    animation-delay: 0.4s;
}

.timeline-entry:nth-child(6) {
    animation-delay: 0.5s;
}

.timeline-entry:nth-child(7) {
    animation-delay: 0.6s;
}

.timeline-entry:nth-child(8) {
    animation-delay: 0.7s;
}

.timeline-entry:nth-child(9) {
    animation-delay: 0.8s;
}

/* Left-aligned entries */
.timeline-entry-left {
    flex-direction: row;
    padding-right: 50%;
    padding-left: 2rem;
}

.timeline-entry-left .timeline-node {
    right: -2rem;
    left: auto;
}

.timeline-entry-left .entry-content {
    text-align: right;
}

/* Right-aligned entries */
.timeline-entry-right {
    flex-direction: row-reverse;
    padding-left: 50%;
    padding-right: 2rem;
}

.timeline-entry-right .timeline-node {
    left: -2rem;
    right: auto;
}

.timeline-entry-right .entry-content {
    text-align: left;
}

/* Timeline Node */
.timeline-node {
    position: absolute;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background-color: var(--color-primary-mid-light);
    border: 3px solid var(--color-bg-light);
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
}

.timeline-entry:hover .timeline-node {
    width: 16px;
    height: 16px;
    background-color: var(--color-accent-light);
    box-shadow: 0 0 8px rgba(160, 132, 92, 0.3);
}

/* Entry Content */
.entry-content {
    flex: 1;
    padding: 1.5rem 2rem;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--color-accent-pale);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-entry:hover .entry-content {
    background-color: rgba(232, 218, 186, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(58, 47, 32, 0.1);
}

.entry-date {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.entry-text {
    font-family: 'Source Serif 4', serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-primary-mid);
}

/* Footer Moment */
.footer-moment {
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: var(--color-bg-light);
    text-align: center;
    position: relative;
}

.footer-text {
    font-family: 'IBM Plex Sans Condensed', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    color: var(--color-primary-mid-light);
    text-transform: uppercase;
    opacity: 0.7;
    animation: fadeIn 1s ease-out 0.5s both;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-entry-right {
    animation-name: slideInRight;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-entry-left,
    .timeline-entry-right {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .timeline-entry-left {
        flex-direction: row-reverse;
    }

    .timeline-entry-right {
        flex-direction: row;
    }

    .timeline-entry-left .timeline-node,
    .timeline-entry-right .timeline-node {
        left: -20px !important;
        right: auto !important;
    }

    .timeline-entry-left .entry-content,
    .timeline-entry-right .entry-content {
        text-align: left !important;
    }

    .timeline-spine {
        left: 0;
        transform: translateX(-50%);
    }

    .header-title {
        font-size: clamp(2rem, 6vw, 4rem);
    }

    .header-subtitle {
        font-size: 0.875rem;
    }

    .entry-date {
        font-size: 1.25rem;
    }

    .entry-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .entry-content {
        padding: 1rem 1.5rem;
    }

    .timeline-entry {
        margin-bottom: 4rem;
    }

    .entry-date {
        font-size: 1rem;
    }

    .entry-text {
        font-size: 0.875rem;
        line-height: 1.6;
    }
}
