/* haskeller.net - Art-Deco Arcade meets Desert Canyon */

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

:root {
    --canyon-dark: #1A0E08;
    --terracotta-copper: #C27B3A;
    --warm-cream: #F0E6D6;
    --sand-text: #C4A88C;
    --warm-brown: #8B6B4E;
    --dark-umber: #3A2218;
    --burnished-copper: #A65E28;
    --amber-highlight: #E89F4A;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--canyon-dark);
    color: var(--sand-text);
    font-family: 'Literata', Georgia, serif;
    font-size: 17px;
    line-height: 1.8;
    font-optical-sizing: auto;
    overflow-x: hidden;
    cursor: none;
}

/* Cursor Follow */
.cursor-circle {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--terracotta-copper);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) scale(0);
    transition: none;
    will-change: transform;
}

.cursor-circle.trail {
    z-index: 9998;
}

.cursor-circle.active {
    transform: translate(-50%, -50%) scale(1);
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
}

/* The Portico */
.section-portico {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.arch-svg {
    position: absolute;
    width: 80%;
    max-width: 800px;
}

.arch-top {
    top: 40px;
}

.arch-bottom {
    bottom: 40px;
}

.arch-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.arch-path.animate {
    animation: drawArch 1.2s ease-out forwards;
}

@keyframes drawArch {
    to {
        stroke-dashoffset: 0;
    }
}

.portico-content {
    text-align: center;
    z-index: 2;
}

.site-title {
    font-family: 'Poiret One', sans-serif;
    font-size: 56px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.12em;
    color: var(--warm-cream);
    opacity: 0;
}

.site-title.visible {
    opacity: 1;
}

.site-title .char {
    display: inline-block;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 150ms ease-out, transform 150ms ease-out;
}

.site-title .char.reveal {
    opacity: 1;
    transform: scale(1);
}

.tagline {
    font-family: 'Literata', Georgia, serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--sand-text);
    margin-top: 24px;
    opacity: 0;
    transition: opacity 300ms ease;
}

.tagline.visible {
    opacity: 1;
}

/* The Gallery */
.section-gallery {
    padding: 120px 160px 120px 80px;
    position: relative;
}

.gallery-content {
    max-width: 900px;
}

.gallery-block {
    margin-bottom: 100px;
}

.section-ornament {
    display: block;
    margin-bottom: 24px;
}

.ornament-draw path,
.ornament-draw polygon,
.ornament-draw circle,
.ornament-draw rect,
.ornament-draw line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 800ms ease-out;
}

.ornament-draw.drawn path,
.ornament-draw.drawn polygon,
.ornament-draw.drawn circle,
.ornament-draw.drawn rect,
.ornament-draw.drawn line {
    stroke-dashoffset: 0;
}

.gallery-heading {
    font-family: 'Poiret One', sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--warm-cream);
    margin-bottom: 20px;
}

.gallery-text {
    font-family: 'Literata', Georgia, serif;
    font-size: 17px;
    line-height: 1.8;
    color: var(--sand-text);
    margin-bottom: 32px;
    max-width: 700px;
}

.code-inline {
    font-family: 'Fira Code', monospace;
    font-size: 15px;
    color: var(--terracotta-copper);
    background: rgba(194, 123, 58, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

/* The Waveform Hall */
.section-waveform {
    min-height: 200vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave-svg {
    position: absolute;
    width: 200%;
    height: 200px;
    left: -50%;
    will-change: transform;
}

.wave-1 {
    top: 20%;
    z-index: 1;
}

.wave-2 {
    top: 45%;
    z-index: 2;
}

.wave-3 {
    top: 70%;
    z-index: 3;
}

.wave-svg.animating {
    animation: waveScroll 8s linear infinite;
}

@keyframes waveScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}

.waveform-content {
    position: relative;
    z-index: 4;
    max-width: 700px;
    padding: 80px 160px 80px 80px;
}

.waveform-heading {
    font-family: 'Poiret One', sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--warm-cream);
    margin-bottom: 32px;
}

.waveform-text {
    font-family: 'Literata', Georgia, serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--sand-text);
    margin-bottom: 32px;
}

/* The Terrace */
.section-terrace {
    padding: 120px 160px 80px 80px;
    position: relative;
}

.terrace-content {
    max-width: 900px;
    margin-bottom: 80px;
}

.closing-arch {
    position: relative;
    display: block;
    margin: 0 auto;
    width: 80%;
    max-width: 800px;
}

/* Margin Garden */
.margin-garden {
    position: fixed;
    right: 40px;
    top: 0;
    height: 100vh;
    width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.margin-gem {
    opacity: 0.2;
    transition: opacity 0.3s ease;
    will-change: transform, opacity;
}

/* Pull-quote style */
.pull-quote {
    font-family: 'Poiret One', sans-serif;
    font-size: 28px;
    line-height: 1.25;
    color: var(--warm-cream);
    border-left: 2px solid var(--terracotta-copper);
    padding-left: 24px;
    margin: 48px 0;
}

/* Captions */
.caption {
    font-family: 'Literata', Georgia, serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--warm-brown);
}

/* Touch device - floating ornament */
.touch-ornament {
    position: fixed;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .section-gallery,
    .section-terrace {
        padding: 60px 24px;
    }

    .waveform-content {
        padding: 40px 24px;
    }

    .site-title {
        font-size: 36px;
    }

    .gallery-heading,
    .waveform-heading {
        font-size: 28px;
    }

    .margin-garden {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 28px;
        letter-spacing: 0.06em;
    }
}
