/* ==========================================
   freedom.study - The Dojo of Competing Liberties
   Color Palette:
   #8B7355 - Aged Ochre
   #D4C4A8 - Warm Sand
   #3D2B1F - Burnt Umber
   #0A0604 - Near Black
   #F5E6D3 - Warm Parchment
   #A0522D - Sienna
   #2C1810 - Deep Brown
   #C75B39 - Terracotta Blaze
   ========================================== */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Space Mono', monospace;
    background-color: #F5E6D3;
    color: #3D2B1F;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   Ring Sections (Full-Viewport)
   Ma (間) negative space: content 30-40% of viewport
   ========================================== */

.ring {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ring-content {
    max-width: 600px;
    width: 90%;
    position: relative;
    z-index: 2;
}

/* Alternating ring backgrounds for contrast */
.ring-1 {
    background-color: #F5E6D3;
}

.ring-2 {
    background-color: #0A0604;
}

.ring-3 {
    background-color: #F5E6D3;
}

.ring-4 {
    background-color: #2C1810;
}

.ring-5 {
    background-color: #0A0604;
}

/* ==========================================
   Typography
   ========================================== */

/* Display / Ring Titles: Bungee Shade */
.ring-title {
    font-family: 'Bungee Shade', system-ui;
    font-size: clamp(56px, 10vw, 120px);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 0.95;
    color: #3D2B1F;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Light titles on dark rings */
.ring-2 .ring-title,
.ring-4 .ring-title,
.ring-5 .ring-title {
    color: #F5E6D3;
}

/* Ring Descriptors: Zen Kaku Gothic New */
.ring-descriptor {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: clamp(14px, 2vw, 20px);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8B7355;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.ring-2 .ring-descriptor,
.ring-4 .ring-descriptor,
.ring-5 .ring-descriptor {
    color: #D4C4A8;
}

/* Body Text: Space Mono */
.ring-body {
    font-family: 'Space Mono', monospace;
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.75;
    color: #3D2B1F;
}

.ring-2 .ring-body,
.ring-4 .ring-body,
.ring-5 .ring-body {
    color: #D4C4A8;
}

/* Reveal text elements */
.reveal-text {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    margin-bottom: 20px;
}

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

/* Revealed state */
.ring.revealed .ring-title {
    opacity: 1;
    transform: translateY(0);
}

.ring.revealed .ring-descriptor {
    opacity: 1;
    transform: translateY(0);
}

.ring.revealed .reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Chevron Quotes
   ========================================== */

.chevron-quote {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 28px 0;
    padding-left: 8px;
}

.chevron-mark {
    font-family: 'Bungee Shade', system-ui;
    font-size: 36px;
    line-height: 1;
    color: #C75B39;
    flex-shrink: 0;
    margin-top: -4px;
}

.chevron-quote blockquote {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-style: italic;
    font-size: clamp(15px, 1.6vw, 19px);
    line-height: 1.65;
    border-left: 3px solid #C75B39;
    padding-left: 16px;
    color: inherit;
}

/* ==========================================
   Freedom Glyphs (Angular SVG decorations)
   ========================================== */

.freedom-glyph {
    position: absolute;
    opacity: 0.12;
    z-index: 1;
    transition: opacity 0.8s ease;
}

.angular-glyph {
    width: 100%;
    height: 100%;
}

.glyph-1 {
    top: 10%;
    right: -5%;
    width: 200px;
    height: 200px;
}

.glyph-2 {
    bottom: 8%;
    left: -3%;
    width: 180px;
    height: 180px;
}

.glyph-3 {
    top: 15%;
    right: -8%;
    width: 220px;
    height: 220px;
}

.glyph-4 {
    bottom: 12%;
    right: -4%;
    width: 190px;
    height: 190px;
}

.glyph-5 {
    top: 8%;
    left: -6%;
    width: 210px;
    height: 210px;
}

.ring.revealed .freedom-glyph {
    opacity: 0.18;
}

/* ==========================================
   Slash Dividers
   ========================================== */

.slash-divider {
    width: 100%;
    height: 200px;
    position: relative;
    z-index: 3;
    background: transparent;
    overflow: hidden;
}

.slash-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

.slash-final {
    height: 100px;
}

/* Parallax-style offset for dividers */
.slash-divider {
    transform: translateY(0);
    transition: transform 0.1s linear;
}

/* ==========================================
   Slash divider background blending
   ========================================== */

#slash-1 {
    background: linear-gradient(to bottom, #F5E6D3, #0A0604);
}

#slash-2 {
    background: linear-gradient(to bottom, #0A0604, #F5E6D3);
}

#slash-3 {
    background: linear-gradient(to bottom, #F5E6D3, #2C1810);
}

#slash-4 {
    background: linear-gradient(to bottom, #2C1810, #0A0604);
}

#slash-final {
    background: linear-gradient(to bottom, #0A0604, #2C1810);
}

/* ==========================================
   Footer
   ========================================== */

.site-footer {
    background-color: #2C1810;
    padding: 80px 20px;
    text-align: center;
}

.footer-text {
    font-family: 'Bungee Shade', system-ui;
    font-size: clamp(24px, 4vw, 48px);
    color: #F5E6D3;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.footer-sub {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: clamp(12px, 1.5vw, 16px);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8B7355;
}

/* ==========================================
   Slash accent lines on rings
   Decorative diagonal lines behind content
   ========================================== */

.ring::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ring-1::before {
    background:
        linear-gradient(75deg, transparent 48%, rgba(199, 91, 57, 0.06) 48%, rgba(199, 91, 57, 0.06) 48.3%, transparent 48.3%),
        linear-gradient(15deg, transparent 65%, rgba(160, 82, 45, 0.04) 65%, rgba(160, 82, 45, 0.04) 65.2%, transparent 65.2%);
}

.ring-2::before {
    background:
        linear-gradient(65deg, transparent 30%, rgba(199, 91, 57, 0.08) 30%, rgba(199, 91, 57, 0.08) 30.3%, transparent 30.3%),
        linear-gradient(25deg, transparent 70%, rgba(139, 115, 85, 0.06) 70%, rgba(139, 115, 85, 0.06) 70.2%, transparent 70.2%);
}

.ring-3::before {
    background:
        linear-gradient(55deg, transparent 55%, rgba(199, 91, 57, 0.05) 55%, rgba(199, 91, 57, 0.05) 55.3%, transparent 55.3%),
        linear-gradient(35deg, transparent 40%, rgba(160, 82, 45, 0.04) 40%, rgba(160, 82, 45, 0.04) 40.2%, transparent 40.2%);
}

.ring-4::before {
    background:
        linear-gradient(70deg, transparent 25%, rgba(199, 91, 57, 0.07) 25%, rgba(199, 91, 57, 0.07) 25.3%, transparent 25.3%),
        linear-gradient(20deg, transparent 60%, rgba(212, 196, 168, 0.04) 60%, rgba(212, 196, 168, 0.04) 60.2%, transparent 60.2%);
}

.ring-5::before {
    background:
        linear-gradient(45deg, transparent 50%, rgba(199, 91, 57, 0.06) 50%, rgba(199, 91, 57, 0.06) 50.3%, transparent 50.3%),
        linear-gradient(75deg, transparent 35%, rgba(139, 115, 85, 0.05) 35%, rgba(139, 115, 85, 0.05) 35.2%, transparent 35.2%);
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 768px) {
    .ring-content {
        width: 85%;
        max-width: 100%;
    }

    .freedom-glyph {
        display: none;
    }

    .chevron-quote {
        flex-direction: column;
        gap: 8px;
    }

    .chevron-mark {
        font-size: 28px;
    }

    .slash-divider {
        height: 120px;
    }

    .slash-final {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .ring-title {
        font-size: clamp(36px, 12vw, 56px);
    }

    .ring-body {
        font-size: 14px;
    }
}

/* ==========================================
   Selection styling
   ========================================== */

::selection {
    background: #C75B39;
    color: #F5E6D3;
}

/* ==========================================
   Scrollbar (sharp-angular theme)
   ========================================== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #2C1810;
}

::-webkit-scrollbar-thumb {
    background: #C75B39;
}

::-webkit-scrollbar-thumb:hover {
    background: #A0522D;
}
