/* GENERATED by scripts/sync-footer.js — extracted from the Footer
   section of css/main.css on every generate. Never hand-edit; change
   main.css and regenerate instead. */

:root {
  --container-max: 1440px;
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --gold: #D4AF37;
  --gold-bright: #E8C547;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --text-dim: #555555;
  --text-secondary: #A0A0A0;
  --void: #050505;
}

/* ─── Footer ─── */
.site-footer {
    position: relative;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    background:
        radial-gradient(ellipse at 20% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(65, 105, 225, 0.04) 0%, transparent 50%),
        var(--void);
    padding: var(--space-7) 0 var(--space-4);
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 0 480px;
}

.site-footer .container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold-bright) 50%, var(--gold) 80%, transparent 100%);
    opacity: 0.6;
}

.site-footer::after {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 240px;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-5);
    position: relative;
    z-index: 1;
}

.footer-wordmark {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.06em;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.25);
    width: fit-content;
}

.footer-wordmark img {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
}

.footer-tagline {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 300px;
}

/* The Archē entry — the footer's door into the first principles. */
.footer-begin {
    margin-left: auto;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    padding: 4px 1px 3px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    transition: color var(--duration-fast) var(--ease-smooth);
}

.footer-begin:hover {
    color: var(--gold-bright, var(--gold));
}

/* Hub-mirror footer: six columns, one per hub from nav-tree.js. */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 1;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    text-align: center;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
}

.footer-heading a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-smooth);
}

.footer-heading a:hover {
    color: var(--gold-bright, var(--gold));
}

.footer-role {
    font-size: 11px;
    line-height: 1.5;
    font-style: italic;
    color: var(--text-dim);
    margin: 0 0 var(--space-2);
}

.footer-column a {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 7px 0;
    transition: color var(--duration-fast) var(--ease-smooth), transform var(--duration-fast) var(--ease-smooth);
    position: relative;
    width: fit-content;
    margin-inline: auto;
}

.footer-column a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--duration-normal) var(--ease-smooth);
}

.footer-column a:hover {
    color: var(--gold);
    transform: translateX(4px);
}

.footer-column a:hover::after {
    width: 100%;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}

.footer-bottom p {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-legal {
    display: flex;
    gap: var(--space-3);
}

.footer-legal a {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--gold);
}

.hekaweb-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 11px;
    letter-spacing: 0.08em;
    transition: color 0.25s ease, transform 0.25s ease;
}

.hekaweb-credit:hover {
    color: var(--gold);
    transform: translateY(-1px);
}

.hekaweb-by {
    text-transform: uppercase;
}

.hekaweb-name {
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(90deg, #bfa030, #f0d878, #bfa030);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hekaweb-shimmer 3.5s linear infinite;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.25));
}

.hekaweb-credit:hover .hekaweb-name {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.55));
}

@keyframes hekaweb-shimmer {
    to { background-position: 200% center; }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-5);
    }

    .footer-begin {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 24px 0 12px;
    }

    .site-footer .container {
        padding: 0 var(--space-3);
    }

    /* Six short hub columns fit two tidy rows of three on phones. */
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }

    .footer-brand {
        flex-direction: row;
        align-items: center;
        gap: var(--space-3);
        text-align: left;
    }

    .footer-wordmark img {
        width: 150px;
    }

    .footer-tagline {
        font-size: 13px;
        max-width: 220px;
        margin: 0;
    }

    /* The role lines retire on small screens — the hub names speak. */
    .footer-role {
        display: none;
    }

    .footer-column a {
        padding: 2px 0;
        font-size: 13px;
        line-height: 1.55;
    }

    .footer-column a:hover {
        transform: none;
    }

    .footer-column a::after {
        left: 0;
        transform: none;
    }

    .footer-column a:hover::after {
        width: 100%;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .hekaweb-credit {
        flex-direction: column;
        gap: 0.15rem;
    }
}

@media (max-width: 400px) {
    /* Very narrow screens: fall back to 2-up so the longest labels breathe. */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
