/* ===================================================
   midori.day — Cottagecore Hacked by a Circuit Witch
   Colors: #e8e0d0, #1a2e1e, #f2ede4, #0e1210,
           #c47a5a, #d4a44c, #8aab8c, #7fff9e
   Fonts: Cormorant Garamond, Space Grotesk,
          JetBrains Mono, Lora
   =================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: #0e1210;
    color: #e8e0d0;
    font-family: 'Lora', Georgia, serif;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---------- CSS Custom Properties ---------- */
:root {
    --cream:         #e8e0d0;
    --forest:        #1a2e1e;
    --linen:         #f2ede4;
    --deep-black:    #0e1210;
    --terracotta:    #c47a5a;
    --amber:         #d4a44c;
    --sage:          #8aab8c;
    --phosphor:      #7fff9e;
    --font-display:  'Cormorant Garamond', Georgia, serif;
    --font-ui:       'Space Grotesk', Arial, sans-serif;
    --font-mono:     'JetBrains Mono', 'Courier New', monospace;
    --font-prose:    'Lora', Georgia, serif;
}

/* ---------- PCB Trace Tile Pattern (dark bg) ---------- */
.pcb-bg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M10,10 L60,10 L60,40 L90,40 L90,10 L110,10 M30,60 L30,90 L70,90 L70,60 L110,60 M60,10 L60,0 M90,40 L90,0 M30,60 L0,60 M70,90 L70,120' stroke='rgba(127,255,158,0.08)' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='60' cy='10' r='3' fill='none' stroke='rgba(127,255,158,0.1)' stroke-width='1'/%3E%3Ccircle cx='90' cy='40' r='3' fill='none' stroke='rgba(127,255,158,0.1)' stroke-width='1'/%3E%3Ccircle cx='30' cy='60' r='3' fill='none' stroke='rgba(127,255,158,0.1)' stroke-width='1'/%3E%3Ccircle cx='70' cy='90' r='3' fill='none' stroke='rgba(127,255,158,0.1)' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ---------- Floating Nav ---------- */
#floating-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2.5rem;
    background: rgba(14, 18, 16, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(127, 255, 158, 0.08);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

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

.nav-logo {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--phosphor);
    text-shadow: 0 0 12px rgba(127, 255, 158, 0.4);
    letter-spacing: -0.02em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--phosphor);
}

/* ---------- Hero Section ---------- */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

/* Diagonal split via clip-path */
.hero-upper {
    position: absolute;
    inset: 0;
    background-color: var(--forest);
    clip-path: polygon(0 0, 100% 0, 100% 40%, 0 70%);
}

.hero-lower {
    position: absolute;
    inset: 0;
    background-color: var(--deep-black);
    clip-path: polygon(0 70%, 100% 40%, 100% 100%, 0 100%);
}

/* PCB tile on lower zone */
.hero-lower {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M10,10 L60,10 L60,40 L90,40 L90,10 L110,10 M30,60 L30,90 L70,90 L70,60 L110,60 M60,10 L60,0 M90,40 L90,0 M30,60 L0,60 M70,90 L70,120' stroke='rgba(127,255,158,0.12)' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='60' cy='10' r='3' fill='none' stroke='rgba(127,255,158,0.12)' stroke-width='1'/%3E%3Ccircle cx='90' cy='40' r='3' fill='none' stroke='rgba(127,255,158,0.12)' stroke-width='1'/%3E%3Ccircle cx='30' cy='60' r='3' fill='none' stroke='rgba(127,255,158,0.12)' stroke-width='1'/%3E%3Ccircle cx='70' cy='90' r='3' fill='none' stroke='rgba(127,255,158,0.12)' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* The diagonal divider line */
.hero-diagonal-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-diagonal-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        transparent calc(50% - 1px),
        rgba(127,255,158,0.3) calc(50% - 1px),
        rgba(212,164,76,0.3) calc(50% + 1px),
        transparent calc(50% + 1px)
    );
    transform: skewY(-18deg);
    transform-origin: center;
}

/* Botanical in upper zone */
.botanical-silhouette {
    position: absolute;
}

.fern-large {
    top: -60px;
    left: -30px;
    width: 380px;
    height: auto;
    opacity: 1;
}

/* Circuit diagram in lower zone */
.circuit-diagram {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 480px;
    height: auto;
    opacity: 0.8;
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(64px, 10vw, 120px);
    color: var(--phosphor);
    letter-spacing: -0.02em;
    line-height: 1;
    text-shadow:
        0 0 20px rgba(127,255,158,0.6),
        0 0 60px rgba(127,255,158,0.2),
        0 0 100px rgba(127,255,158,0.1);
    animation: phosphorPulse 4s ease-in-out infinite;
}

.hero-subtitle {
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream);
    margin-top: 1.25rem;
    opacity: 0.8;
}

.hero-cta {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 0.75rem 2.25rem;
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--phosphor);
    text-decoration: none;
    border: 1px solid rgba(127, 255, 158, 0.4);
    box-shadow:
        0 0 0 1px rgba(127,255,158,0.1),
        0 0 12px rgba(127,255,158,0.15);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: rgba(127,255,158,0.08);
    box-shadow:
        0 0 0 1px rgba(127,255,158,0.6),
        0 0 20px rgba(127,255,158,0.25);
}

/* ---------- Phosphor Pulse Animation ---------- */
@keyframes phosphorPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.82; }
}

/* ---------- Reveal Animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Section: Linen ---------- */
.section-linen {
    background-color: var(--linen);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Botanical silhouette background for linen sections */
.section-linen::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 400'%3E%3Cpath d='M100,380 C100,380 96,320 82,275 C68,230 44,195 28,158 C12,121 4,81 18,44' stroke='rgba(138,171,140,0.15)' stroke-width='2' fill='none'/%3E%3Cpath d='M82,275 C82,275 64,262 50,240 C36,218 30,190 38,164' stroke='rgba(138,171,140,0.12)' stroke-width='1.5' fill='none'/%3E%3Cpath d='M82,275 C82,275 100,260 110,238 C120,216 120,188 112,163' stroke='rgba(138,171,140,0.12)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right top;
    pointer-events: none;
    opacity: 0.6;
}

/* ---------- Asymmetric Container (Act II) ---------- */
.container-asymmetric {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 3rem;
    align-items: start;
}

.main-col {
    min-width: 0;
}

.sidebar-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

/* ---------- Featured Card (Act II) ---------- */
.featured-card {
    background: var(--cream);
    border-top: 1px solid rgba(212,164,76,0.4);
    box-shadow: 4px 8px 24px rgba(14,18,16,0.15);
    transform: perspective(800px) rotateX(3deg) rotateY(-2deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: perspective(800px) rotateX(0deg) rotateY(0deg);
    box-shadow: 2px 4px 12px rgba(14,18,16,0.1);
}

.card-inner {
    padding: 2.5rem;
}

.card-category {
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber);
    display: block;
    margin-bottom: 1rem;
}

.article-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 3.5vw, 42px);
    color: var(--deep-black);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.circuit-divider {
    margin: 1.25rem 0;
    max-width: 200px;
}

.circuit-divider svg {
    width: 100%;
    height: auto;
}

.article-body {
    font-family: var(--font-prose);
    font-size: 1.0625rem;
    color: var(--deep-black);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.article-meta {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--terracotta);
}

.meta-item {
    font-weight: 500;
}

.meta-sep {
    opacity: 0.5;
}

/* ---------- Sidebar ---------- */
.sidebar-botanical {
    width: 100%;
}

.sidebar-botanical svg {
    width: 100%;
    height: auto;
    max-width: 180px;
}

.marginalia-note {
    transform: rotate(var(--rot, -4deg));
    display: inline-block;
}

.marginalia-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.8125rem;
    color: var(--sage);
    line-height: 1.5;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--terracotta);
    border: 1px solid rgba(196,122,90,0.35);
    padding: 0.2rem 0.6rem;
}

/* ---------- Tutorial Stripes (Act III) ---------- */
.tutorial-stripe {
    padding: 4rem 2rem;
}

.tutorial-stripe--light {
    background-color: var(--linen);
}

.tutorial-stripe--dark {
    background-color: var(--forest);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M10,10 L60,10 L60,40 L90,40 L90,10 L110,10 M30,60 L30,90 L70,90 L70,60 L110,60 M60,10 L60,0 M90,40 L90,0 M30,60 L0,60 M70,90 L70,120' stroke='rgba(127,255,158,0.06)' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='60' cy='10' r='3' fill='none' stroke='rgba(127,255,158,0.08)' stroke-width='1'/%3E%3Ccircle cx='90' cy='40' r='3' fill='none' stroke='rgba(127,255,158,0.08)' stroke-width='1'/%3E%3Ccircle cx='30' cy='60' r='3' fill='none' stroke='rgba(127,255,158,0.08)' stroke-width='1'/%3E%3Ccircle cx='70' cy='90' r='3' fill='none' stroke='rgba(127,255,158,0.08)' stroke-width='1'/%3E%3C/svg%3E");
}

.stripe-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(32px, 4vw, 48px);
    color: var(--deep-black);
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.section-heading--centered {
    text-align: center;
    color: var(--deep-black);
}

.section-divider {
    max-width: 300px;
    margin: 0 auto;
}

.section-divider svg {
    width: 100%;
    height: auto;
}

.tutorial-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ---------- Tutorial Cards ---------- */
.tutorial-card {
    background: var(--cream);
    border-top: 1px solid rgba(212,164,76,0.4);
    box-shadow: 4px 8px 24px rgba(14,18,16,0.12);
    padding: 1.75rem;
    transform: perspective(800px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tutorial-card:hover {
    transform: perspective(800px) rotateX(0deg) rotateY(0deg);
    box-shadow: 2px 4px 12px rgba(14,18,16,0.08);
}

.tutorial-card--dark {
    background: var(--deep-black);
    border-top: 1px solid rgba(127,255,158,0.3);
    box-shadow:
        0 0 0 1px #7fff9e,
        0 0 12px rgba(127,255,158,0.3),
        inset 0 0 8px rgba(127,255,158,0.05),
        4px 8px 24px rgba(14,18,16,0.4);
}

.tutorial-card--dark:hover {
    box-shadow:
        0 0 0 1px rgba(127,255,158,0.6),
        0 0 20px rgba(127,255,158,0.4),
        inset 0 0 12px rgba(127,255,158,0.08),
        2px 4px 12px rgba(14,18,16,0.3);
}

.card-category-strip {
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber);
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(212,164,76,0.2);
}

.card-category-strip--dark {
    color: var(--phosphor);
    border-bottom-color: rgba(127,255,158,0.2);
}

.card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.375rem;
    color: var(--deep-black);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-top: 0.25rem;
}

.card-title--dark {
    color: var(--cream);
}

.card-desc {
    font-family: var(--font-prose);
    font-size: 0.9375rem;
    color: #5a4e42;
    line-height: 1.65;
    flex: 1;
}

.card-desc--dark {
    color: var(--sage);
}

.card-circuit-divider {
    margin: 0.5rem 0;
}

.card-circuit-divider svg {
    width: 100%;
    height: auto;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.card-meta {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--terracotta);
}

.card-meta--dark {
    color: var(--sage);
}

.card-meta-sep {
    opacity: 0.4;
    color: var(--sage);
}

.card-meta-sep--dark {
    color: var(--sage);
}

/* ---------- Component Reference Panel (Act IV) ---------- */
.section-dark-panel {
    background-color: var(--deep-black);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M10,10 L60,10 L60,40 L90,40 L90,10 L110,10 M30,60 L30,90 L70,90 L70,60 L110,60 M60,10 L60,0 M90,40 L90,0 M30,60 L0,60 M70,90 L70,120' stroke='rgba(127,255,158,0.05)' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='60' cy='10' r='3' fill='none' stroke='rgba(127,255,158,0.07)' stroke-width='1'/%3E%3Ccircle cx='90' cy='40' r='3' fill='none' stroke='rgba(127,255,158,0.07)' stroke-width='1'/%3E%3Ccircle cx='30' cy='60' r='3' fill='none' stroke='rgba(127,255,158,0.07)' stroke-width='1'/%3E%3Ccircle cx='70' cy='90' r='3' fill='none' stroke='rgba(127,255,158,0.07)' stroke-width='1'/%3E%3C/svg%3E");
    padding: 5rem 2rem;
}

.reference-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.reference-heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(28px, 3.5vw, 40px);
    color: var(--cream);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

/* Monospace table */
.mono-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(127,255,158,0.15);
}

.mono-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--phosphor);
}

.mono-table th {
    background: rgba(127,255,158,0.06);
    color: var(--amber);
    font-weight: 500;
    padding: 0.6rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(127,255,158,0.2);
    letter-spacing: 0.05em;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.mono-table td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(127,255,158,0.06);
    color: var(--phosphor);
}

.mono-table tr:last-child td {
    border-bottom: none;
}

.mono-table tr:hover td {
    background: rgba(127,255,158,0.04);
}

.reference-note {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(127,255,158,0.35);
    display: block;
}

/* Component diagram */
.reference-right {
    position: relative;
}

.component-diagram {
    position: relative;
    background: rgba(127,255,158,0.02);
    border: 1px solid rgba(127,255,158,0.1);
    padding: 2rem;
}

.component-diagram svg {
    width: 100%;
    height: auto;
    display: block;
}

.diagram-label {
    position: absolute;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.8125rem;
    color: var(--amber);
    line-height: 1.3;
    white-space: nowrap;
}

.diagram-label--tl {
    top: 28%;
    left: 2rem;
}

.diagram-label--tr {
    top: 28%;
    right: 2rem;
    text-align: right;
}

.diagram-label--tc {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.diagram-label--bc {
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
}

/* ---------- Archive Masonry (Act V) ---------- */
.archive-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem 0;
}

.archive-container .section-heading {
    margin-bottom: 2.5rem;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.archive-card {
    background: var(--cream);
    border-top: 1px solid rgba(212,164,76,0.4);
    padding: 1.25rem 1.5rem;
    box-shadow: 3px 6px 18px rgba(14,18,16,0.1);
    transform: rotate(calc(-2deg + var(--i, 0) * 1.5deg));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-card:hover {
    transform: rotate(0deg);
    box-shadow: 2px 4px 10px rgba(14,18,16,0.08);
}

.archive-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--terracotta);
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.archive-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--deep-black);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.archive-excerpt {
    font-family: var(--font-prose);
    font-style: italic;
    font-size: 0.8125rem;
    color: #6b5c4f;
    line-height: 1.55;
}

/* ---------- Footer (Act VI) ---------- */
#greenhouse {
    background-color: var(--forest);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M10,10 L60,10 L60,40 L90,40 L90,10 L110,10 M30,60 L30,90 L70,90 L70,60 L110,60 M60,10 L60,0 M90,40 L90,0 M30,60 L0,60 M70,90 L70,120' stroke='rgba(127,255,158,0.05)' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='60' cy='10' r='3' fill='none' stroke='rgba(127,255,158,0.08)' stroke-width='1'/%3E%3Ccircle cx='90' cy='40' r='3' fill='none' stroke='rgba(127,255,158,0.08)' stroke-width='1'/%3E%3Ccircle cx='30' cy='60' r='3' fill='none' stroke='rgba(127,255,158,0.08)' stroke-width='1'/%3E%3Ccircle cx='70' cy='90' r='3' fill='none' stroke='rgba(127,255,158,0.08)' stroke-width='1'/%3E%3C/svg%3E");
    position: relative;
    overflow: hidden;
}

.footer-botanical-top {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.footer-botanical-top svg {
    width: 100%;
    height: 80px;
    display: block;
}

.footer-content {
    padding: 3rem 2rem 3.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 48px);
    color: var(--cream);
    letter-spacing: -0.01em;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--phosphor);
}

.footer-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(138,171,140,0.5);
    letter-spacing: 0.04em;
}

.footer-vias {
    margin-top: 0.5rem;
}

.footer-vias svg {
    width: 200px;
    height: auto;
}

/* ---------- Reveal delays ---------- */
.reveal[style*="--delay"] {
    transition-delay: var(--delay, 0s);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .container-asymmetric {
        grid-template-columns: 1fr;
    }
    .sidebar-col {
        display: none;
    }
    .tutorial-grid {
        grid-template-columns: 1fr 1fr;
    }
    .reference-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .reference-right {
        display: none;
    }
}

@media (max-width: 600px) {
    .tutorial-grid {
        grid-template-columns: 1fr;
    }
    .archive-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nav-links {
        display: none;
    }
}
