/* ════════════════════════════════════════════════════════════════════════
   FK SUBDOMAIN TEMPLATE — shared stylesheet for all curation mini-sites
   (thegift, digital3mpire, thewrong, transprivacy, localnons,
   automaticdreams) · floriankuhlmann.com design system
   Fonts: Work Sans (everything) + Major Mono Display (wordmark only)
   ════════════════════════════════════════════════════════════════════════ */

:root {
    --fk-black:      #000000;
    --fk-black-2:    #0a0a0a;
    --fk-white:      #ffffff;
    --fk-accent:     #01e375;
    --fk-text-body:  rgba(255, 255, 255, 0.8);
    --fk-text-muted: rgba(255, 255, 255, 0.6);
    --fk-text-dark:  rgba(0, 0, 0, 0.8);
    --fk-border:     rgba(255, 255, 255, 0.12);
    --fk-font-body:  'Work Sans', sans-serif;
    --fk-font-display: 'Major Mono Display', monospace;
    --fk-max-w:      1100px;
    --fk-pad-x:      24px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--fk-black);
    color: var(--fk-text-body);
    font-family: var(--fk-font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--fk-white);
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0;
    line-height: 1.1;
}

a { color: var(--fk-white); }
a:hover { color: var(--fk-accent); }

img { max-width: 100%; height: auto; display: block; }

.fk-wrap { max-width: var(--fk-max-w); margin: 0 auto; padding: 0 var(--fk-pad-x); }

/* ── Header / Nav ────────────────────────────────────────────────────────── */

.fk-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px var(--fk-pad-x);
    max-width: var(--fk-max-w);
    margin: 0 auto;
}

.fk-top__brand {
    font-family: var(--fk-font-display);
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--fk-accent);
    text-decoration: none;
}
.fk-top__brand:hover { color: var(--fk-white); }

.fk-top__back {
    font-size: 13px;
    color: var(--fk-text-muted);
    text-decoration: none;
}
.fk-top__back:hover { color: var(--fk-accent); }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.fk-hero {
    padding: 10vh var(--fk-pad-x) 12vh;
    max-width: var(--fk-max-w);
    margin: 0 auto;
}

.fk-hero__years {
    font-size: 14px;
    letter-spacing: 0.14em;
    color: var(--fk-accent);
    margin-bottom: 1.2rem;
}

.fk-hero__title {
    font-size: clamp(3rem, 10vw, 7.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    word-break: break-word;
}

.fk-hero__sub {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    color: var(--fk-text-muted);
    max-width: 44ch;
    line-height: 1.5;
}

/* ── Full-bleed teaser (one per site — breaks the 1100px wrap) ───────────── */

.fk-bleed {
    position: relative;
    width: 100%;
    margin: 0;
    background: var(--fk-black-2);
    overflow: hidden;
}
.fk-bleed img {
    width: 100%;
    height: clamp(340px, 72vh, 760px);
    object-fit: cover;
    object-position: var(--fk-bleed-pos, center);
    display: block;
    cursor: zoom-in;
}
.fk-bleed__cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 4rem var(--fk-pad-x) 1.4rem;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
    pointer-events: none;
}
.fk-bleed__cap span {
    display: block;
    max-width: var(--fk-max-w);
    margin: 0 auto;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.92);
    line-height: 1.5;
}
.fk-bleed__cap em { font-style: normal; color: var(--fk-accent); }

/* ── Sections ────────────────────────────────────────────────────────────── */

.fk-section { padding: 5rem 0; }
.fk-section--anim { color: var(--fk-text-dark); }
.fk-section--anim h2, .fk-section--anim h3 { color: #000; }
.fk-section--anim a { color: #000; }
.fk-section--anim a:hover { color: #000; text-decoration: underline; }

.fk-label {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fk-text-muted);
    margin-bottom: 1.5rem;
}
.fk-section--anim .fk-label { color: rgba(0,0,0,0.5); }

.fk-section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.5rem; }
.fk-section h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }

.fk-prose { max-width: 68ch; }
.fk-prose p { margin-bottom: 1.2rem; }
.fk-prose em { color: var(--fk-text-muted); }
.fk-section--anim .fk-prose em { color: rgba(0,0,0,0.6); }

/* ── Galleries ───────────────────────────────────────────────────────────── */

.fk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.fk-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .fk-grid, .fk-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fk-grid, .fk-grid--2 { grid-template-columns: 1fr; } }

figure { margin: 0; }
figcaption {
    font-size: 13px;
    font-style: italic;
    color: var(--fk-text-muted);
    margin-top: 0.5rem;
    line-height: 1.5;
}
.fk-section--anim figcaption { color: rgba(0,0,0,0.55); }

.fk-full-img { margin: 2.5rem 0; }

/* ── Cards (e.g. collages) ───────────────────────────────────────────────── */

.fk-card { display: block; }
.fk-card__media {
    overflow: hidden;
    background: var(--fk-black-2);
    border: 1px solid var(--fk-border);
}
.fk-card__media img { transition: transform 0.3s ease; }
.fk-card:hover .fk-card__media img { transform: scale(1.04); }
.fk-card__title {
    font-size: 15px;
    font-weight: 500;
    color: var(--fk-white);
    text-transform: lowercase;
    margin-top: 0.7rem;
}
.fk-card__links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.3rem;
    font-size: 12.5px;
    letter-spacing: 0.06em;
}
.fk-card__links a { color: var(--fk-text-muted); text-decoration: none; border-bottom: 1px solid var(--fk-border); }
.fk-card__links a:hover { color: var(--fk-accent); border-bottom-color: var(--fk-accent); }

/* ── Timeline (index rows — like the matrix index on the main site) ─────── */

.fk-index { margin-top: 1.5rem; }

.fk-row {
    position: relative;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1.5rem;
    padding: 1.4rem 0.25rem;
}
.fk-row::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.3) 60%, transparent 95%);
}
.fk-row:nth-child(n+2)::before { opacity: 0.55; }
.fk-row:nth-child(n+5)::before { opacity: 0.3; }

.fk-section--anim .fk-row::before {
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, transparent 95%);
}

.fk-row__marker {
    font-size: 14px;
    color: var(--fk-text-muted);
    padding-top: 0.2rem;
}
.fk-section--anim .fk-row__marker { color: rgba(0,0,0,0.5); }

.fk-row__title { font-size: 1.15rem; font-weight: 500; color: var(--fk-white); text-transform: lowercase; }
.fk-section--anim .fk-row__title { color: #000; }
.fk-row__meta { font-size: 14px; color: var(--fk-text-muted); margin-top: 0.15rem; }
.fk-section--anim .fk-row__meta { color: rgba(0,0,0,0.6); }
.fk-row__body { margin-top: 0.6rem; }
.fk-row__body .fk-grid { margin-top: 1rem; }

@media (max-width: 560px) {
    .fk-row { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ── Cross-reference badge ("part of the wrong biennale" etc.) ──────────── */

.fk-badge {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 10px;
    border: 1px solid var(--fk-accent);
    color: var(--fk-accent);
    text-decoration: none;
    margin-left: 0.5rem;
    vertical-align: middle;
}
.fk-badge:hover { background: var(--fk-accent); color: #000; }

/* ── Footer + Curation nav ──────────────────────────────────────────────── */

.fk-footer {
    padding: 4rem 0 3rem;
    border-top: 1px solid var(--fk-border);
    margin-top: 4rem;
}

.fk-curation-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.75rem;
    margin: 1rem 0 2.5rem;
}
.fk-curation-nav a {
    font-size: 14px;
    color: var(--fk-text-muted);
    text-decoration: none;
    text-transform: lowercase;
}
.fk-curation-nav a:hover { color: var(--fk-accent); }
.fk-curation-nav a[aria-current="page"] { color: var(--fk-white); border-bottom: 1px solid var(--fk-accent); }

.fk-footer__meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 13px;
    color: var(--fk-text-muted);
}
.fk-footer__meta a { color: var(--fk-text-muted); text-decoration: none; }
.fk-footer__meta a:hover { color: var(--fk-accent); }

/* ── Deep-Link-Anker (springbare Projekte/Shows/Events) ─────────────────── */

.fk-anchor {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    font-size: 0.75em;
    line-height: 1;
    color: var(--fk-text-muted);
    opacity: 0;
    transition: opacity 0.15s ease, color 0.15s ease;
    vertical-align: middle;
    position: relative;
}
.fk-row:hover .fk-anchor,
.fk-section h2:hover .fk-anchor,
.fk-anchor:focus { opacity: 1; }
.fk-anchor:hover { color: var(--fk-accent); }
.fk-section--anim .fk-anchor { color: rgba(0,0,0,0.4); }
.fk-section--anim .fk-anchor:hover { color: #000; }

/* Touch: Anker immer sichtbar (kein hover) */
@media (hover: none) {
    .fk-anchor { opacity: 0.5; }
}

.fk-anchor[data-copied]::after {
    content: 'link copied';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--fk-accent);
    color: #000;
    padding: 3px 8px;
    border-radius: 2px;
    pointer-events: none;
}

/* Sprungziel kurz hervorheben */
@keyframes fk-target-flash {
    0%, 100% { background: transparent; }
    15%, 55% { background: rgba(1, 227, 117, 0.14); }
}
.fk-section--anim :target,
.fk-target-flash { animation: fk-target-flash 1.8s ease; }
:target { scroll-margin-top: 1.5rem; }

/* ── Ausklappbare Galerie (volle Ausstellungs-Doku) ─────────────────────── */

.fk-gallery { margin-top: 1rem; }
.fk-gallery summary {
    display: inline-block;
    cursor: pointer;
    list-style: none;
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fk-text-muted);
    border-bottom: 1px solid var(--fk-border);
    padding-bottom: 2px;
}
.fk-gallery summary::-webkit-details-marker { display: none; }
.fk-gallery summary::before { content: '+ '; }
.fk-gallery[open] summary::before { content: '\2212 '; }
.fk-gallery summary:hover { color: var(--fk-accent); border-bottom-color: var(--fk-accent); }
.fk-section--anim .fk-gallery summary { color: rgba(0,0,0,0.55); border-bottom-color: rgba(0,0,0,0.3); }
.fk-section--anim .fk-gallery summary:hover { color: #000; border-bottom-color: #000; }

.fk-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 1.2rem;
}
@media (max-width: 900px) { .fk-gallery__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .fk-gallery__grid { grid-template-columns: repeat(2, 1fr); } }
.fk-gallery__grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ── Lightbox ───────────────────────────────────────────────────────────── */

img[data-fk-lightbox] { cursor: zoom-in; }

.fk-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 24px;
    background: rgba(0, 0, 0, 0.94);
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.fk-lightbox.is-open { opacity: 1; visibility: visible; }

.fk-lightbox img {
    max-width: 94vw;
    max-height: 86vh;
    width: auto;
    height: auto;
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.8);
}

.fk-lightbox__caption {
    font-size: 13px;
    font-style: italic;
    color: var(--fk-text-muted);
    max-width: 80ch;
    text-align: center;
    line-height: 1.5;
}

.fk-lightbox__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--fk-white);
    font-family: var(--fk-font-body);
    font-size: 28px;
    line-height: 1;
}
.fk-lightbox__close:hover { color: var(--fk-accent); }

/* ── Reduced motion ─────────────────────────────────────────────────────── */

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