/* ========================================
   miris.day - Styles
   Swiss precision meets sepia nostalgia
   ======================================== */

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

:root {
    /* Palette (Sepia Nostalgic) */
    --warm-parchment: #F5EDE0;
    --deep-sepia: #8A7560;
    --aged-cream: #E8DCC8;
    --neon-warm: #E86040;
    --ink-dark: #2A2018;
    --faded-brown: #A89880;
    --gold-accent: #C8A050;

    /* Typography sizes */
    --headline-size: clamp(26px, 3.5vw, 48px);
    --body-size: clamp(14px, 1vw, 17px);
    --label-size: 11px;

    /* Spacing */
    --block-gap: clamp(60px, 8vh, 120px);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--warm-parchment);
    color: var(--ink-dark);
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: var(--body-size);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* --- SVG Filter (hidden) --- */
.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-color: var(--warm-parchment);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-paper-texture {
    position: absolute;
    inset: 0;
    filter: url(#paper-grain);
    background-color: var(--warm-parchment);
    pointer-events: none;
    z-index: 0;
}

/* Neon accent diagonal line */
.neon-accent-line {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 120%;
    height: 2px;
    background: var(--neon-warm);
    transform: rotate(-18deg);
    transform-origin: top right;
    box-shadow:
        0 0 8px rgba(232, 96, 64, 0.4),
        0 0 16px rgba(232, 96, 64, 0.2),
        0 0 32px rgba(232, 96, 64, 0.1);
    opacity: 0;
    z-index: 2;
    transition: opacity 0.6s ease-out;
}

.neon-accent-line.visible {
    opacity: 1;
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 3;
    padding-top: 15vh;
    padding-left: 6vw;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.logotype {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: clamp(42px, 6vw, 96px);
    color: var(--ink-dark);
    letter-spacing: -0.02em;
    line-height: 1;
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.logotype.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Status readout */
.status-readout {
    position: absolute;
    right: 10vw;
    top: 45vh;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
}

.status-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-led.active {
    background: var(--neon-warm);
    box-shadow:
        0 0 4px rgba(232, 96, 64, 0.6),
        0 0 8px rgba(232, 96, 64, 0.3);
}

.status-led.milestone {
    background: var(--gold-accent);
    box-shadow:
        0 0 4px rgba(200, 160, 80, 0.6),
        0 0 8px rgba(200, 160, 80, 0.3);
}

.status-led.archived {
    background: var(--faded-brown);
    box-shadow:
        0 0 4px rgba(168, 152, 128, 0.4);
}

.status-text {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: var(--label-size);
    color: var(--faded-brown);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-text .cursor {
    display: inline-block;
    width: 1px;
    height: 1em;
    background: var(--neon-warm);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Hero meta (bottom area) */
.hero-meta {
    position: absolute;
    bottom: 6vh;
    left: 6vw;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
}

.meta-label {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: var(--label-size);
    color: var(--faded-brown);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.meta-divider {
    color: var(--deep-sepia);
    font-size: 10px;
    opacity: 0.5;
}

/* ========================================
   CONTENT AREA
   ======================================== */
.content-area {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6vw;
    padding-bottom: var(--block-gap);
}

/* Neon dividers */
.neon-divider {
    height: 2px;
    background: var(--neon-warm);
    box-shadow:
        0 0 8px rgba(232, 96, 64, 0.4),
        0 0 16px rgba(232, 96, 64, 0.2);
    margin: var(--block-gap) 0;
    opacity: 0.6;
}

.neon-divider.diagonal {
    transform: rotate(-1.5deg);
    margin-left: -2vw;
    margin-right: -2vw;
}

/* Content blocks */
.content-block {
    margin-bottom: var(--block-gap);
    opacity: 0;
    transform: translateX(var(--slide-dir, -60px));
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.content-block.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Left-aligned blocks */
.left-block {
    width: 60%;
    max-width: 550px;
}

/* Right-aligned blocks */
.right-block {
    width: 65%;
    max-width: 620px;
    margin-left: auto;
}

/* Block panel (the sepia card) */
.block-panel {
    background: var(--aged-cream);
    padding: clamp(24px, 3vw, 40px);
    transform: rotate(var(--rotation, 0deg));
    border: 1px solid rgba(138, 117, 96, 0.2);
    position: relative;
}

.block-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    filter: url(#paper-grain);
    background-color: var(--aged-cream);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.block-panel > * {
    position: relative;
    z-index: 1;
}

/* Block header */
.block-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.block-tag {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: var(--label-size);
    color: var(--faded-brown);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.block-date {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: var(--label-size);
    color: var(--deep-sepia);
    margin-left: auto;
}

/* Block title */
.block-title {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: var(--headline-size);
    color: var(--ink-dark);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

/* Block body */
.block-body {
    color: var(--ink-dark);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Block footer */
.block-footer {
    border-top: 1px solid rgba(138, 117, 96, 0.2);
    padding-top: 12px;
}

.block-status {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: var(--label-size);
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    position: relative;
    background: var(--ink-dark);
    padding: clamp(40px, 6vh, 80px) 6vw;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer .neon-divider {
    margin: 0 0 clamp(30px, 4vh, 50px) 0;
    opacity: 0.4;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: clamp(18px, 2vw, 28px);
    color: var(--warm-parchment);
    letter-spacing: -0.01em;
}

.footer-tagline {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: var(--label-size);
    color: var(--faded-brown);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.footer-meta {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: var(--label-size);
    color: var(--deep-sepia);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .hero-content {
        padding-left: 5vw;
        padding-top: 20vh;
    }

    .status-readout {
        position: relative;
        right: auto;
        top: auto;
        margin-top: 20px;
    }

    .left-block,
    .right-block {
        width: 90%;
        max-width: none;
    }

    .right-block {
        margin-left: auto;
    }

    .neon-accent-line {
        transform: rotate(-25deg);
    }

    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-right {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding-left: 4vw;
    }

    .left-block,
    .right-block {
        width: 95%;
    }

    .block-panel {
        transform: rotate(0deg);
    }

    .content-area {
        padding: 0 4vw;
        padding-bottom: var(--block-gap);
    }
}
