/* archetype.moe - styles.css */
/* Palette: Unbleached Silk #FAF6F0, Warm Parchment #F5EDE4, Linen Thread #D8CFC4,
   Clay Dust #C4B8AC, Stone Path #A09890, Charcoal Earth #5C5650,
   Kiln Brown #7A6E64, Shell Pink #EDE3D8, Sakura Breath #F0E0D6 */

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

html {
    scroll-behavior: smooth;
    cursor: none;
}

@media (hover: none) {
    html {
        cursor: auto;
    }
}

body {
    background-color: #FAF6F0;
    color: #5C5650;
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9375rem, 1vw + 0.5rem, 1.0625rem);
    line-height: 1.75;
    overflow-x: hidden;
    position: relative;
    cursor: none;
}

@media (hover: none) {
    body {
        cursor: auto;
    }
}

/* ===== Paper Texture Overlay ===== */
#paper-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ===== Custom Cursor ===== */
#custom-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    border: 1px solid #C4B8AC;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    will-change: left, top;
    opacity: 0;
}

#custom-cursor.visible {
    opacity: 1;
}

#custom-cursor.hovering {
    width: 40px;
    height: 40px;
    border-color: #7A6E64;
}

@media (hover: none) {
    #custom-cursor {
        display: none;
    }
}

/* ===== Scroll Progress ===== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background-color: #C4B8AC;
    z-index: 10001;
    transition: none;
}

/* ===== Navigation ===== */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background-color: rgba(250, 246, 240, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #D8CFC4;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    cursor: none;
}

#main-nav.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-link {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.15em;
    color: #A09890;
    text-decoration: none;
    text-transform: lowercase;
    position: relative;
    transition: color 0.3s ease;
    cursor: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #D8CFC4;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: #7A6E64;
}

.nav-link.active {
    color: #5C5650;
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    position: relative;
}

.hero-circle {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: linear-gradient(180deg, #F5EDE4, #EDE3D8);
    margin-bottom: 48px;
    opacity: 0;
    animation: heroCircleFadeIn 0.6s ease forwards;
    position: relative;
    top: -10%;
}

.hero-title {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    letter-spacing: 0.12em;
    color: #8A8178;
    text-transform: lowercase;
    opacity: 0;
    animation: heroTitleFadeIn 0.6s ease 0.4s forwards;
    position: relative;
    top: -10%;
}

@keyframes heroCircleFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroTitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Content Sections ===== */
.content-section {
    padding: 80px 24px;
}

.content-section + .interstitial {
    /* spacing handled by interstitial */
}

.section-column {
    max-width: 680px;
    margin: 0 auto;
}

.section-heading {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: 0.2em;
    color: #A09890;
    text-transform: lowercase;
    margin-bottom: 40px;
}

.content-section p {
    margin-bottom: 24px;
    color: #5C5650;
}

.content-section p:last-child {
    margin-bottom: 0;
}

/* ===== Interstitials ===== */
.interstitial {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
}

.interstitial-line {
    width: 120px;
    height: 1px;
    background-color: #D8CFC4;
}

.interstitial-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #C4B8AC;
    background: transparent;
}

.interstitial-square {
    width: 8px;
    height: 8px;
    background-color: #E8DED4;
}

/* ===== Reveal Animation ===== */
.reveal-element {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Forms Display ===== */
.forms-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    padding: 60px 0;
}

.form-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.form-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid #C4B8AC;
    background: transparent;
}

.form-line {
    width: 60px;
    height: 1px;
    background-color: #C4B8AC;
    margin: 29.5px 0;
}

.form-square {
    width: 40px;
    height: 40px;
    background-color: #E8DED4;
    margin: 10px 0;
}

.form-label {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.15em;
    color: #A09890;
    text-transform: lowercase;
}

/* ===== Photo Frames ===== */
.photo-frame {
    margin: 80px 0;
    position: relative;
}

.photo-placeholder {
    width: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    transition: border-color 0.6s ease;
}

.photo-placeholder svg {
    display: block;
    width: 100%;
    height: auto;
    filter: saturate(0.2) brightness(1.04) contrast(0.96);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 237, 228, 0.15);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.photo-placeholder:hover {
    border-color: #D8CFC4;
}

/* ===== Principle List ===== */
.principle-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.principle-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    color: #5C5650;
    line-height: 1.75;
}

.list-circle {
    display: inline-block;
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #C4B8AC;
    margin-top: 10px;
}

/* ===== Footer ===== */
#footer {
    padding: 80px 24px 120px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(180deg, #F5EDE4, #EDE3D8);
}

.footer-text {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    color: #A09890;
    text-transform: lowercase;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-inner {
        gap: 24px;
        padding: 12px 16px;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .hero-circle {
        width: 160px;
        height: 160px;
    }

    .section-column {
        padding: 0 8px;
    }

    .forms-display {
        gap: 40px;
    }

    .form-circle {
        width: 40px;
        height: 40px;
    }

    .form-square {
        width: 28px;
        height: 28px;
    }

    .form-line {
        width: 40px;
    }

    .photo-frame {
        margin: 48px 0;
    }
}

@media (max-width: 480px) {
    .nav-inner {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-circle {
        width: 120px;
        height: 120px;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .forms-display {
        gap: 28px;
    }
}

/* ===== Selection ===== */
::selection {
    background-color: #EDE3D8;
    color: #5C5650;
}

/* ===== Links in body ===== */
a {
    cursor: none;
}

@media (hover: none) {
    a {
        cursor: auto;
    }
}
