:root {
    --font: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    transition: opacity 0.6s ease;
}

body.loaded {
    opacity: 1;
}

/* Title */
.site-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 2rem;
    text-align: center;
}

.hero {
    padding-top: 8rem;
}

.site-subtitle {
    font-size: 1.4rem;
    color: #aaa;
    text-align: center;
    margin-top: -1.5rem;
    margin-bottom: 2.5rem;
}

.hero .container {
    padding: 0 3rem;
}

.tube-caption {
    font-size: clamp(0.7rem, 1.1vw, 1rem);
    color: #aaa;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.manifesto-container {
    padding: 0 3rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Hero banner (GIF) */
.hero-banner {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scroll-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    animation: arrow-bounce 2s ease-in-out infinite;
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* Post images */
.post-img {
    width: 100%;
    display: block;
    border-radius: 4px;
    margin: 2rem 0;
}

/* Project map */
#map {
    margin-bottom: 0.5rem;
    width: 100%;
}

.map-svg {
    display: block;
    width: 100%;
    overflow: visible;
}

.map-edge {
}

.map-node circle.vis {
    fill: #fff;
    transition: fill 0.15s ease;
}

.map-node circle.dot {
    fill: #000;
    stroke: none;
    pointer-events: none;
}

.map-node circle.hit {
    fill: transparent;
    stroke: none;
}

.map-node--linked {
    cursor: pointer;
}

.map-node--linked:hover circle.vis {
    fill: #e3a000;
}

/* Labels hidden by default, shown on hover */
.map-label {
    fill: #000;
    font-family: var(--font);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.map-node:hover .map-label {
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-banner {
        height: auto;
    }

    .hero-gif {
        height: auto;
        object-fit: fill;
    }
}

@media (max-width: 500px) {
    #map {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #map .map-svg {
        min-width: 640px;
    }

    .map-label {
        opacity: 1;
    }
}

/* Footer */
footer {
    padding: 5rem 0 3rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 2rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    text-decoration: underline;
}

footer p {
    font-size: 0.85rem;
    color: #888;
}

/* Shared page header */
.page-header {
    padding: 1.5rem 2rem;
}

/* Back link (subpages) */
.back-link {
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* Paragraphs and headings */
p {
    line-height: 1.7;
}

p + p {
    margin-top: 1.5rem;
}

h2 {
    margin-top: 3rem;
}

h2 + p {
    margin-top: 1rem;
}

/* Post / blog page */
.post-content {
    padding: 8rem 0 6rem;
}

.post-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 2rem;
}

.post-lead {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.post-header {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.post-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 3rem 0;
}

.post-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin: 2rem 0;
}

.post-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.post-list {
    padding-left: 1.25rem;
    margin-top: 1rem;
}

.post-list li {
    line-height: 1.7;
    margin-top: 0.75rem;
}

.post-ascii {
    font-family: monospace;
    font-size: 1rem;
    line-height: 1.4;
    color: #888;
    margin-top: 2rem;
}
