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

:root {
    --bg:       #0d1410;
    --bg2:      #111c15;
    --border:   #1d3326;
    --fg:       #7ab88a;
    --fg-dim:   #4f8a63;
    --fg-dimmer:#3a6a4a;
    --accent:   #9fe0b0;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-mono:  'Share Tech Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-serif);
    font-weight: 300;
    min-height: 100vh;
    line-height: 1.7;
}

/* subtle scanline/noise wash */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 0;
}

#wrap {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    padding: 64px 24px 80px;
}

/* Header */
header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 22px;
    margin-bottom: 40px;
}

header .kicker {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--fg-dimmer);
    display: block;
    margin-bottom: 12px;
}

h1 {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg);
    line-height: 1;
}

.subtitle {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-top: 14px;
}

/* Section header */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--fg-dimmer);
}

.channel-link {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-dim);
    text-decoration: none;
    border-bottom: 1px solid var(--fg-dimmer);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.channel-link:hover { color: var(--accent); border-color: var(--accent); }

/* Video grid (embeds) */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.video {
    margin: 0;
    border: 1px solid var(--border);
    background: var(--bg2);
    padding: 10px;
    transition: border-color 0.2s ease;
}
.video:hover { border-color: var(--fg-dimmer); }

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video figcaption {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-top: 10px;
}

/* matrix chaplet loader */
.more {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 52px;
}
#chaplet-canvas {
    width: 340px;
    max-width: 100%;
    height: 80px;
    display: block;
}
.more-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--fg-dimmer);
    margin-top: 6px;
}

@media (max-width: 620px) {
    .video-grid { grid-template-columns: 1fr; }
}

/* Footer */
footer {
    margin-top: 56px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--fg-dimmer);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
footer a {
    color: var(--bg);
    text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .video { transition: none; }
}
