/* ==========================================================
   ONEETSAKO MAIN STYLES — MAIN.CSS
   FULL FLUID / PHONE-FIRST READABILITY
   Desktop remains the visual standard.
   No responsive layout media queries.
   ========================================================== */

/* ==========================================================
   1. FLUID DESIGN VARIABLES
   ========================================================== */
:root {
    /* GLOBAL TYPOGRAPHY */
    --font-size-base: clamp(1rem, 1.15vw, 1.08rem);
    --font-size-small: clamp(0.78rem, 0.9vw, 0.92rem);
    --font-size-button: clamp(0.78rem, 0.95vw, 0.95rem);

    /* FLUID SPACING */
    --space-xs: clamp(6px, 0.7vw, 10px);
    --space-sm: clamp(10px, 1vw, 16px);
    --space-md: clamp(18px, 2vw, 28px);
    --space-lg: clamp(24px, 4vw, 48px);
    --space-xl: clamp(55px, 9vw, 120px);

    /* FLUID SECTION WIDTH */
    --content-width: min(92vw, 1100px);

    /* FLUID RADIUS */
    --radius-card: clamp(10px, 1.2vw, 18px);

    /* FLUID LETTER SPACING */
    --letter-spacing: clamp(0.8px, 0.18vw, 2px);
}

/* ==========================================================
   2. RESET
   ========================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================
   3. ROOT DOCUMENT
   ========================================================== */
html {
    width: 100%;
    min-width: 280px;
    font-size: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-width: 280px;
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    line-height: 1.8;
    font-weight: 300;
    color: var(--soft-white);
    overflow-x: hidden;
    background: radial-gradient(circle at top, var(--bg-secondary), var(--bg-primary));
    opacity: 0;
    filter: blur(10px);
}

/* ==========================================================
   4. GLOBAL TEXT
   ========================================================== */
p {
    max-width: 100%;
    font-size: var(--font-size-base);
    line-height: 1.8;
    letter-spacing: clamp(0.25px, 0.08vw, 1px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.78);
}

p, h1, h2, h3, h4, h5, h6, a, span {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ==========================================================
   5. HEADINGS
   ========================================================== */
h1, h2, h3, h4, h5, h6 {
    max-width: 100%;
    line-height: 1.2;
    font-weight: 300;
}

h2 {
    font-size: clamp(1.05rem, 1.3vw, 1.25rem);
    letter-spacing: var(--letter-spacing);
    margin-bottom: var(--space-md);
    color: var(--white);
    text-shadow: var(--glow-gold);
}

h3 {
    font-size: clamp(1rem, 1.45vw, 1.7rem);
    line-height: 1.3;
    letter-spacing: clamp(0.5px, 0.12vw, 1.5px);
}

/* ==========================================================
   6. LINKS
   ========================================================== */
a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: break-word;
}

/* ==========================================================
   7. IMAGES
   ========================================================== */
img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* ==========================================================
   8. SECTIONS BASE
   ========================================================== */
.section {
    position: relative;
    width: 100%;
    padding: var(--space-xl) clamp(16px, 4vw, 48px);
    z-index: 2;
    overflow: visible;
}

/* ==========================================================
   9. SECTION CONTAINER
   ========================================================== */
.section-container {
    width: var(--content-width);
    max-width: 1100px;
    margin: 0 auto;
}

/* ==========================================================
   10. SECTION TEXT WIDTH
   ========================================================== */
.section-container p {
    width: min(100%, 760px);
    font-size: clamp(1rem, 1.15vw, 1.08rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.78);
}

/* ==========================================================
   11. GLASS CARD BASE
   ========================================================== */
.card {
    position: relative;
    width: 100%;
    min-width: 0;
    background: var(--glass);
    backdrop-filter: blur(var(--blur-md));
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--normal), background var(--normal);
}

.card:hover {
    transform: translateY(-6px);
    background: var(--glass-strong);
}

/* ==========================================================
   12. FLUID GRID FOUNDATION
   ========================================================== */
.grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: clamp(20px, 2.5vw, 36px);
}

/* ==========================================================
   14. BUTTONS
   ========================================================== */
button {
    min-height: clamp(40px, 4vw, 50px);
    padding: clamp(10px, 1vw, 14px) clamp(20px, 2.2vw, 28px);
    border: none;
    border-radius: 30px;
    background: var(--glass-strong);
    color: var(--white);
    font-family: inherit;
    font-size: var(--font-size-button);
    line-height: 1.2;
    letter-spacing: clamp(0.5px, 0.12vw, 1.5px);
    cursor: pointer;
    backdrop-filter: blur(var(--blur-md));
    transition: transform var(--normal), box-shadow var(--normal);
}

button:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-gold);
}

/* ==========================================================
   15. TOUCH TARGETS
   ========================================================== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================================
   16. RAIN CANVAS
   ========================================================== */
.etsako-hero #rainCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

/* ==========================================================
   17. GLOBAL CONTENT SAFETY
   ========================================================== */
.section,
.section-container,
.card,
.grid {
    min-width: 0;
    max-width: 100%;
}

/* ==========================================================
   18. SCROLLBAR
   ========================================================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--soft-gold);
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

/* ==========================================================
   19. REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
