/* tanso.market - Editorial Gallery Catalogue */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --ice-white: #F8FAFC;
    --sky-wash: #A8C8E8;
    --ocean-ink: #5888B8;
    --morning-mist: #D8E8F8;
    --text-primary: #1A2A38;
    --text-secondary: #4A6A78;
    --text-annotation: #6A8A98;
    --parchment: #E8C8A0;
    --rule-color: rgba(168,184,200,0.2);
}
body {
    background: var(--ice-white);
    color: var(--text-primary);
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    line-height: 1.85;
    font-weight: 400;
    overflow-x: hidden;
}

/* Skeleton Loading */
.skeleton-overlay {
    position: fixed;
    inset: 0;
    background: var(--ice-white);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: opacity 0.5s ease;
}
.skeleton-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.skeleton-bar {
    width: 300px;
    height: 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, #F0F4F8 25%, #E0E8F0 50%, #F0F4F8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.skeleton-bar.short { width: 180px; }
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hero */
#hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
}
.hero-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    animation: blobIn 1.2s ease-out 1s forwards;
}
@keyframes blobIn {
    to { transform: translate(-50%, -50%) scale(1); opacity: 0.12; }
}
.hero-title {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 0.8s ease 1s forwards;
}
.hero-meta {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    color: var(--text-annotation);
    margin-top: 0.75rem;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 0.8s ease 1.3s forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Watercolor Blobs */
.watercolor-blob {
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}
.sidebar-blob-1 {
    width: 180px;
    height: 180px;
    background: var(--sky-wash);
    opacity: 0.12;
    margin-top: 3rem;
}
.sidebar-blob-2 {
    width: 140px;
    height: 140px;
    background: var(--morning-mist);
    opacity: 0.15;
    margin-top: 2rem;
    margin-left: 2rem;
}
.margin-blob {
    width: 160px;
    height: 160px;
    background: var(--ocean-ink);
    opacity: 0.08;
    margin-top: 3rem;
}

/* Editorial Layout */
.editorial-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    gap: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: layoutIn 0.8s ease 2s forwards;
}
@keyframes layoutIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.sidebar-label {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-annotation);
    margin-bottom: 0.5rem;
}
.sidebar-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.sidebar-link:hover {
    color: var(--ocean-ink);
}

/* Main Column */
.editorial-section {
    margin-bottom: 3rem;
}
.section-title {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}
.section-body {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1rem;
}
.section-rule {
    border: none;
    border-top: 1px solid var(--rule-color);
    margin-top: 2rem;
}

/* Margin Column */
.margin-column {
    position: relative;
}
.margin-note {
    margin-bottom: 3rem;
    padding: 0.75rem 0;
}
.urban-icon {
    width: 20px;
    height: 20px;
    color: var(--text-annotation);
    margin-bottom: 0.5rem;
}
.margin-text {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    color: var(--text-annotation);
    line-height: 1.5;
}
.pull-aside {
    border-left: 3px solid var(--sky-wash);
    padding: 0.75rem 1rem;
    margin-bottom: 3rem;
    transition: border-color 0.3s ease;
}
.pull-aside:hover {
    border-color: var(--ocean-ink);
}
.pull-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
    font-style: italic;
}

/* Section Animation */
.section {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
#footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--rule-color);
}
.footer-text {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    color: var(--text-annotation);
    letter-spacing: 0.03em;
}

/* Responsive */
@media (max-width: 900px) {
    .editorial-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: center;
    }
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .sidebar-blob-1, .sidebar-blob-2 { display: none; }
    .margin-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .margin-blob { display: none; }
}
@media (max-width: 500px) {
    .margin-column { grid-template-columns: 1fr; }
}
