/* miris.day - A Day with MiRiS */

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #FFF8F0;
    color: #3D2B1F;
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.7vw, 1.1rem);
    line-height: 1.75;
    overflow-x: hidden;
}

/* === Good Morning === */
.good-morning {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg, #FFDAB3 0%, #FFF8F0 100%);
    overflow: hidden;
}

.watercolor-spot {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.spot-hero {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 15%;
    background: #E8A0B0;
    opacity: 0.15;
}

.morning-content {
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
    animation: morningReveal 1.2s ease-out 0.3s forwards;
}

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

.day-title {
    font-family: 'Kalam', cursive;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #3D2B1F;
    line-height: 1.2;
}

.brush-underline {
    display: block;
    margin: 4px auto 12px;
}

.day-date {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    color: rgba(61, 43, 31, 0.6);
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

/* === Sun Doodle === */
.sun-doodle {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    opacity: 0.3;
}

.sun-body {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #3D2B1F;
    position: absolute;
    top: 12px;
    left: 12px;
}

.sun-ray {
    position: absolute;
    width: 2px;
    height: 8px;
    background: #3D2B1F;
    left: 19px;
    border-radius: 1px;
}

.ray-1 { top: 0; transform: rotate(0deg); }
.ray-2 { top: 0; left: 19px; transform: rotate(45deg); transform-origin: center 20px; }
.ray-3 { top: 0; left: 19px; transform: rotate(90deg); transform-origin: center 20px; }
.ray-4 { top: 0; left: 19px; transform: rotate(135deg); transform-origin: center 20px; }

.day-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: rgba(61, 43, 31, 0.5);
}

/* === The Day's Pages === */
.day-pages {
    padding: 80px 24px 100px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.journal-entry {
    background: #FFFFFF;
    max-width: 540px;
    padding: 32px;
    margin-bottom: 60px;
    box-shadow: 0 2px 12px rgba(61, 43, 31, 0.06);
    clip-path: var(--tear);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.journal-entry.revealed {
    opacity: 1;
    transform: translateY(0);
}

.entry-left {
    margin-left: 10%;
}

.entry-right {
    margin-left: 25%;
}

.entry-tag {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    background: rgba(168, 197, 160, 0.2);
    color: #3D2B1F;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.entry-title {
    font-family: 'Kalam', cursive;
    font-weight: 400;
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    color: #3D2B1F;
    line-height: 1.3;
}

.brush-underline-sm {
    display: block;
    margin: 2px 0 12px;
}

.entry-body {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: rgba(61, 43, 31, 0.85);
    line-height: 1.75;
}

/* === Watercolor Dots === */
.watercolor-dot {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
}

.dot-blue {
    background: #7EB8D0;
    opacity: 0.2;
    bottom: -10px;
    right: 20px;
}

.dot-peach {
    background: #FFDAB3;
    opacity: 0.25;
    bottom: -5px;
    left: 30px;
}

/* === Ink Splatters === */
.ink-splatter {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3D2B1F;
    opacity: 0.12;
    margin: 10px auto;
    box-shadow:
        8px 3px 0 0 rgba(61, 43, 31, 0.08),
        -4px 6px 0 0 rgba(61, 43, 31, 0.06),
        12px -2px 0 0 rgba(61, 43, 31, 0.05);
}

.splatter-2 {
    margin-left: 35%;
}

/* === The Pinboard === */
.pinboard {
    padding: 80px 24px 100px;
    background-color: #C4A882;
    background-image:
        repeating-conic-gradient(rgba(0,0,0,0.02) 0% 25%, transparent 0% 50%);
    background-size: 4px 4px;
}

.pinboard-title {
    font-family: 'Kalam', cursive;
    font-weight: 400;
    font-size: 1.5rem;
    color: #3D2B1F;
    text-align: center;
    margin-bottom: 40px;
}

.pinboard-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.pin-card {
    background: #FFFFFF;
    padding: 24px 16px 16px;
    width: 180px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.pin-card.revealed {
    opacity: 1;
}

.pushpin {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #E8A0B0, #C07080);
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pin-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #3D2B1F;
    line-height: 1.5;
}

/* === Good Night === */
.good-night {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #FFF8F0 0%, #B8C8D8 60%, #4A5568 100%);
    position: relative;
    padding: 80px 24px;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.good-night.revealed {
    opacity: 1;
}

/* === Moon Doodle === */
.moon-doodle {
    position: relative;
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    opacity: 0.4;
}

.moon-body {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #3D2B1F;
    position: absolute;
    top: 5px;
    left: 5px;
}

.moon-mask {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #B8C8D8;
    position: absolute;
    top: 2px;
    left: 15px;
}

.night-title {
    font-family: 'Kalam', cursive;
    font-weight: 400;
    font-size: 2rem;
    color: rgba(61, 43, 31, 0.7);
    margin-bottom: 8px;
}

.night-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: rgba(61, 43, 31, 0.5);
}

/* === Responsive === */
@media (max-width: 600px) {
    .entry-left,
    .entry-right {
        margin-left: 0;
        max-width: 100%;
    }

    .pin-card {
        width: 160px;
    }

    .journal-entry {
        padding: 24px 20px;
    }
}
