/* recycle.studio — CSS */

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

:root {
    --coral: #d4836a;
    --deep-teal: #3a5a6a;
    --darker-teal: #2a4a5a;
    --sand: #c8bca8;
    --sage: #7a9a8a;
    --pale-mint: #d4e4e0;
    --warm-cream: #f4ece0;
    --darkest: #1a3a4a;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--warm-cream);
    color: var(--darkest);
    font-family: 'Lora', serif;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Single Column Layout */
.column {
    max-width: 640px;
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 5vw, 4rem);
    padding-block: 4rem;
}

/* Typography */
h1, h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    line-height: 1.12;
    color: var(--darkest);
}

h1 {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    margin-bottom: 0.5rem;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.subtitle {
    font-family: 'DM Mono', monospace;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--deep-teal);
    opacity: 0.7;
}

.body-text {
    font-family: 'Lora', serif;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.75;
    color: var(--darker-teal);
    margin-bottom: 1.25rem;
}

.body-text:last-child {
    margin-bottom: 0;
}

.mono-label {
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--sage);
    display: block;
    margin-bottom: 0.75rem;
}

.accent-text {
    color: var(--coral);
    font-style: italic;
}

/* Sections */
.section {
    margin-bottom: clamp(4rem, 10vw, 8rem);
    position: relative;
}

.section--hero {
    padding-top: clamp(4rem, 15vw, 10rem);
    padding-bottom: 2rem;
}

.section--footer {
    margin-bottom: 0;
    padding-top: 2rem;
    border-top: 1px solid var(--sand);
}

/* Leather Card */
.leather-card {
    background: linear-gradient(135deg, var(--warm-cream) 0%, #efe5d6 100%);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(200, 188, 168, 0.08) 2px,
        rgba(200, 188, 168, 0.08) 4px
    );
    border: 1px solid var(--sand);
    border-radius: 3px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow:
        0 1px 3px rgba(26, 58, 74, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    filter: contrast(1.02) brightness(0.98);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.leather-card:hover {
    box-shadow:
        0 4px 12px rgba(26, 58, 74, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Fish SVG */
.fish-svg {
    width: 160px;
    height: 64px;
    display: block;
    margin: 0 auto;
    opacity: 0.7;
}

.fish-body, .fish-tail, .fish-fin, .fish-stripe {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 1.5s ease;
}

.section--divider.revealed .fish-body,
.section--divider.revealed .fish-tail,
.section--divider.revealed .fish-fin,
.section--divider.revealed .fish-stripe {
    stroke-dashoffset: 0;
}

.fish-eye {
    opacity: 0;
    transition: opacity 0.8s ease 1.2s;
}

.section--divider.revealed .fish-eye {
    opacity: 1;
}

/* Skeleton Loading States */
.skeleton-block {
    background: linear-gradient(90deg, var(--sand) 25%, var(--pale-mint) 50%, var(--sand) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s ease-in-out infinite;
    border-radius: 3px;
    margin-bottom: 1rem;
}

.skeleton-title {
    height: 3.5rem;
    width: 70%;
}

.skeleton-title.short {
    width: 50%;
}

.skeleton-paragraph {
    height: 4.5rem;
    width: 100%;
}

.skeleton-paragraph.short {
    height: 2.5rem;
    width: 80%;
}

.skeleton-card {
    height: 7rem;
    width: 100%;
}

.skeleton-fish {
    height: 64px;
    width: 160px;
    margin: 0 auto;
    border-radius: 50%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Reveal Transitions */
.section .content {
    display: none;
    opacity: 0;
}

.section.revealed .skeleton-block {
    animation: dissolve 0.6s ease forwards;
}

.section.revealed .content {
    display: block;
    animation: materialize 0.8s ease 0.4s forwards;
    opacity: 0;
}

@keyframes dissolve {
    0% { opacity: 1; transform: scaleY(1); }
    100% { opacity: 0; transform: scaleY(0.8); height: 0; margin: 0; padding: 0; overflow: hidden; }
}

@keyframes materialize {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Caustic light overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80px 60px at 30% 20%, rgba(122, 154, 138, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 120px 80px at 70% 60%, rgba(212, 228, 224, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 60px 90px at 50% 80%, rgba(122, 154, 138, 0.03) 0%, transparent 70%);
    animation: caustics 8s ease-in-out infinite alternate;
    z-index: 1000;
}

@keyframes caustics {
    0% { opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { opacity: 0.4; }
}

/* Work items */
.work-item {
    margin-bottom: 2rem;
}

.work-item:last-child {
    margin-bottom: 0;
}
