/* oning.stream - Honeyed Neutral Retro-Futuristic */

/* CSS Custom Properties */
:root {
    --parchment-cream: #f5edd6;
    --buckwheat-honey: #e8d9b8;
    --deep-umber: #3d2e1a;
    --warm-walnut: #5c4a35;
    --aged-brass: #a08b6d;
    --amber-signal: #c9a96e;
    --tarnished-copper: #7a6548;
    --espresso-veil: #2a1f14;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
    font-weight: 380;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.72;
    letter-spacing: 0.01em;
    color: var(--warm-walnut);
    background-color: var(--parchment-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Channel Sections */
.channel {
    position: relative;
    min-height: 90vh;
    width: 100%;
    overflow: hidden;
}

.channel-odd {
    background-color: var(--parchment-cream);
}

.channel-even {
    background-color: var(--buckwheat-honey);
}

#channel-01 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background SVG Patterns */
.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Channel Content Layout */
.channel-content {
    position: relative;
    z-index: 1;
    width: 55%;
    margin-left: 15%;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

#channel-01 .channel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
}

/* Channel Divider */
.channel-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--amber-signal);
    opacity: 0.4;
    z-index: 2;
}

/* Readout Badges */
.readout-badge {
    position: sticky;
    top: 1rem;
    float: right;
    width: auto;
    min-width: 120px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--aged-brass);
    border-radius: 4px;
    background-color: rgba(232, 217, 184, 0.9);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
    margin-bottom: 1rem;
}

.readout-text {
    font-family: "Inconsolata", monospace;
    font-weight: 400;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--aged-brass);
    white-space: nowrap;
}

/* Typography */
.site-title {
    font-family: "Outfit", sans-serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--deep-umber);
    letter-spacing: -0.02em;
    line-height: 1.05;
    transition: font-variation-settings 0.3s ease;
    font-variation-settings: "wght" 300;
}

.site-title:hover {
    font-variation-settings: "wght" 800;
}

.site-tagline {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 380;
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: var(--warm-walnut);
    margin-top: 1rem;
    font-style: italic;
}

.channel-title {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: clamp(2.2rem, 5.5vw, 4.8rem);
    color: var(--deep-umber);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 1rem;
    transition: font-variation-settings 0.3s ease;
    font-variation-settings: "wght" 600;
}

.channel-title:hover {
    font-variation-settings: "wght" 800;
}

.channel-intro {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 380;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.72;
    color: var(--warm-walnut);
    max-width: 38em;
    margin-bottom: 2rem;
}

.channel-body {
    clear: both;
}

.channel-hero {
    clear: both;
}

/* Progressive Disclosure - Details/Summary */
.channel-details {
    margin-top: 0.5rem;
}

.channel-toggle {
    font-family: "Inconsolata", monospace;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--aged-brass);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.5rem 0;
    list-style: none;
    transition: color 0.2s ease;
    user-select: none;
}

.channel-toggle::-webkit-details-marker {
    display: none;
}

.channel-toggle::marker {
    content: none;
}

.channel-toggle:hover {
    color: var(--amber-signal);
}

.toggle-arrow {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1.0);
    font-size: 0.9em;
}

details[open] .toggle-arrow {
    transform: rotate(90deg);
}

/* Channel Reveal Content */
.channel-reveal {
    max-width: 38em;
    overflow: hidden;
}

.channel-reveal p {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 380;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.72;
    letter-spacing: 0.01em;
    color: var(--warm-walnut);
    margin-top: 1.5rem;
}

.channel-reveal p:first-child {
    margin-top: 1rem;
}

/* Responsive - Single breakpoint */
@media (max-width: 768px) {
    .channel-content {
        width: 85%;
        margin-left: 7.5%;
    }

    .readout-badge {
        float: none;
        margin-bottom: 1.5rem;
    }

    .channel {
        min-height: auto;
        padding: 0;
    }

    #channel-01 {
        min-height: 100vh;
    }
}

/* Selection styling */
::selection {
    background-color: var(--amber-signal);
    color: var(--deep-umber);
}

::-moz-selection {
    background-color: var(--amber-signal);
    color: var(--deep-umber);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--parchment-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--aged-brass);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--amber-signal);
}
