/* perso.news - Muji Marble Morning Scroll */
/* Palette: #FAF7F2, #FFFDF8, #3A3632, #B0A89A, #8FA3B0, #D4B5A0, #5C6B73, #E8E2DA */

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

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

body {
    background: #FAF7F2;
    color: #3A3632;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    line-height: 1.72;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #FAF7F2;
}

::-webkit-scrollbar-thumb {
    background: #E8E2DA;
    border-radius: 2px;
}

/* Marble Background */
.marble-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Content Column */
.content-column {
    max-width: 620px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    background: #FAF7F2;
}

@media (min-width: 1200px) {
    .content-column {
        background: transparent;
    }
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 34px;
}

.site-title {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    color: #3A3632;
}

.compass-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.compass-btn:hover {
    transform: rotate(45deg);
}

.compass-btn:hover .compass-icon polygon {
    fill: #D4B5A0;
}

.compass-btn:hover .compass-icon circle {
    stroke: #D4B5A0;
}

.compass-icon polygon,
.compass-icon circle {
    transition: fill 0.4s ease, stroke 0.4s ease;
}

/* Navigation Drawer */
.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-drawer.open {
    pointer-events: auto;
    opacity: 1;
}

.nav-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 54, 50, 0.15);
}

.nav-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80vw;
    height: 100%;
    background: #FFFDF8;
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-drawer.open .nav-drawer-content {
    transform: translateX(0);
}

.nav-drawer-title {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #B0A89A;
    margin-bottom: 16px;
}

.nav-link {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: #3A3632;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.4s ease;
    position: relative;
    display: inline-block;
}

.nav-link:hover {
    color: #D4B5A0;
}

/* Hero */
.hero {
    padding-top: 55px;
    text-align: center;
}

.hero-title {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.25;
    letter-spacing: 0.03em;
    color: #3A3632;
    max-width: 100%;
}

.hero-meta {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #B0A89A;
    margin-top: 24px;
}

/* Spacers - Fibonacci rhythm */
.spacer-34 {
    height: 34px;
    position: relative;
}

.spacer-55 {
    height: 55px;
    position: relative;
}

.spacer-89 {
    height: 89px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spacer-144 {
    height: 144px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Watermarks */
.watermark {
    pointer-events: none;
    position: absolute;
}

/* Separators */
.separator {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.separator svg {
    display: block;
}

.draw-path {
    stroke-dasharray: var(--path-length, 1000);
    stroke-dashoffset: var(--path-length, 1000);
    transition: stroke-dashoffset 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.draw-path.drawn {
    stroke-dashoffset: 0;
}

/* Article Cards */
.card {
    background: #FFFDF8;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(180, 170, 155, 0.12);
    padding: 40px 36px;
    margin: 34px 0;
}

.card-meta {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #B0A89A;
    display: block;
    margin-bottom: 16px;
}

.card-title {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    line-height: 1.25;
    letter-spacing: 0.03em;
    margin-bottom: 24px;
}

.card-title a {
    color: #3A3632;
    text-decoration: none;
    transition: color 0.4s ease;
    position: relative;
    display: inline;
    background-image: linear-gradient(#D4B5A0, #D4B5A0);
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: color 0.4s ease, background-size 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-title a:hover {
    color: #D4B5A0;
    background-size: 100% 1px;
}

.card-body {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.1vw, 1.08rem);
    line-height: 1.72;
    letter-spacing: 0.01em;
    color: #3A3632;
    max-width: 58ch;
    margin-bottom: 16px;
}

.card-body:last-child {
    margin-bottom: 0;
}

.card-body em {
    font-style: italic;
}

/* Pull Quote */
.pull-quote {
    padding: 0 24px;
    text-align: center;
    margin: 34px 0;
}

.pull-quote p {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    line-height: 1.5;
    color: #5C6B73;
    max-width: 48ch;
    margin: 0 auto;
}

/* Fade-up animation */
.fade-up {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.site-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-mark {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    color: #B0A89A;
}

.footer-year {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: #E8E2DA;
}

/* Responsive */
@media (max-width: 680px) {
    .content-column {
        padding: 0 16px;
    }

    .card {
        padding: 28px 24px;
    }

    .site-header {
        padding-top: 32px;
    }

    .spacer-144 {
        height: 89px;
    }

    .spacer-89 {
        height: 55px;
    }
}
