/* tanso.tech - Carbon Technology Field Notebook */
/* Colors: #B8956A, #FAF6EF, #F2E8D5, #2A1F1A, #D4A95A, #4A5568, #6B3A2A, #5C4033 */

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

:root {
    --parchment: #FAF6EF;
    --parchment-dark: #F2E8D5;
    --walnut-ink: #2A1F1A;
    --burnt-sienna: #B8956A;
    --gold-ochre: #D4A95A;
    --slate: #4A5568;
    --deep-umber: #6B3A2A;
    --sepia: #5C4033;
    --tea-stain: #C4A882;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background: var(--parchment);
    color: var(--walnut-ink);
    overflow-x: hidden;
}

.paper-texture {
    position: absolute;
    width: 0;
    height: 0;
}

/* Notebook Container */
.notebook {
    width: 100%;
    position: relative;
}

/* Notebook Pages */
.notebook-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

/* Wash Zones - Watercolor backgrounds */
.wash-zone {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.wash-sienna {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(184, 149, 106, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(212, 169, 90, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(107, 58, 42, 0.05) 0%, transparent 70%),
        linear-gradient(180deg, var(--parchment) 0%, var(--parchment-dark) 100%);
}

.wash-umber {
    background:
        radial-gradient(ellipse at 70% 20%, rgba(107, 58, 42, 0.15) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 80%, rgba(184, 149, 106, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, var(--parchment-dark) 0%, var(--parchment) 100%);
}

.wash-gold {
    background:
        radial-gradient(ellipse at 40% 40%, rgba(212, 169, 90, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 60%, rgba(184, 149, 106, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--parchment) 0%, var(--parchment-dark) 100%);
}

.wash-deep {
    background:
        radial-gradient(ellipse at 50% 30%, rgba(92, 64, 51, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 70%, rgba(212, 169, 90, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--parchment-dark) 0%, var(--parchment) 100%);
}

.wash-warm {
    background:
        radial-gradient(ellipse at 60% 50%, rgba(196, 168, 130, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 30%, rgba(184, 149, 106, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--parchment) 0%, var(--parchment-dark) 50%, var(--parchment) 100%);
}

/* Page Content */
.page-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* Typography */
.main-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4.5rem);
    color: var(--deep-umber);
    letter-spacing: -0.01em;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.main-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.subtitle-annotation {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--burnt-sienna);
    margin-top: 8px;
    opacity: 0;
    transition: opacity 1s ease 0.3s;
}

.subtitle-annotation.visible {
    opacity: 0.8;
}

.section-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    color: var(--deep-umber);
    letter-spacing: -0.01em;
}

.annotation-text {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: var(--burnt-sienna);
    font-style: italic;
    margin-top: 4px;
    opacity: 0.8;
}

.body-text {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    line-height: 1.75;
    color: var(--walnut-ink);
    margin-top: 20px;
    max-width: 650px;
}

.entry-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    color: var(--sepia);
    margin-bottom: 6px;
}

.entry-body {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(0.8rem, 1vw, 0.92rem);
    line-height: 1.7;
    color: var(--walnut-ink);
}

.entry-note {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.7rem;
    color: var(--burnt-sienna);
    letter-spacing: 0.05em;
    display: block;
    margin-top: 8px;
    opacity: 0.7;
}

/* Ink Line Separator */
.ink-line {
    width: 60px;
    height: 1px;
    background: var(--deep-umber);
    opacity: 0.4;
    margin: 16px 0 24px;
}

/* Margin Notes */
.margin-note {
    position: absolute;
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--burnt-sienna);
    opacity: 0.6;
    line-height: 1.4;
    max-width: 120px;
    transform: rotate(-2deg);
}

/* Watercolor Swatches */
.watercolor-swatch {
    width: 60px;
    height: 40px;
    border-radius: 50% 40% 50% 40%;
    margin-bottom: 10px;
    opacity: 0.7;
}

.swatch-diamond {
    background: radial-gradient(ellipse at 40% 40%, rgba(250, 246, 239, 0.9), rgba(212, 169, 90, 0.3));
    border: 1px solid rgba(184, 149, 106, 0.3);
}

.swatch-graphite {
    background: radial-gradient(ellipse at 40% 40%, rgba(74, 85, 104, 0.6), rgba(42, 31, 26, 0.3));
}

.swatch-fullerene {
    background: radial-gradient(ellipse at 40% 40%, rgba(212, 169, 90, 0.5), rgba(184, 149, 106, 0.3));
}

.swatch-nanotube {
    background: radial-gradient(ellipse at 40% 40%, rgba(107, 58, 42, 0.4), rgba(92, 64, 51, 0.2));
}

/* Watercolor Diagrams */
.watercolor-diagram {
    margin: 30px auto;
    max-width: 300px;
    opacity: 0.85;
}

.watercolor-diagram svg {
    width: 100%;
    height: auto;
}

/* Allotrope Grid */
.allotrope-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.allotrope-entry {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.allotrope-entry.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tech Entries */
.tech-entries {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.tech-entry {
    padding-left: 20px;
    border-left: 2px solid rgba(184, 149, 106, 0.3);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.tech-entry.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Cycle Diagram */
.cycle-diagram {
    max-width: 400px;
    margin: 30px auto;
}

.cycle-svg {
    width: 100%;
    height: auto;
}

/* Closing Mark */
.closing-mark {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--deep-umber);
    text-align: center;
    margin-top: 60px;
    opacity: 0.6;
}

/* Tea Stain Effects */
.notebook-page::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(196, 168, 130, 0.12), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.page-element::after { top: 10%; right: 8%; }
.page-allotropes::after { bottom: 15%; left: 5%; }
.page-technology::after { top: 20%; right: 10%; }
.page-cycle::after { bottom: 10%; right: 15%; }
.page-future::after { top: 30%; left: 8%; }

/* Paper Noise Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 10000;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 640px) {
    .page-content {
        padding: 60px 24px;
    }

    .allotrope-grid {
        grid-template-columns: 1fr;
    }

    .margin-note {
        position: relative;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        transform: none;
        margin: 20px 0;
        max-width: 100%;
        opacity: 0.5;
    }
}
