@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── SUVA Font-face declarations ── */
@font-face {
    font-family: "Mehhanism";
    src: url("fondid/mehhanism.woff");
}

@font-face {
    font-family: "O Fortuna";
    src: url("fondid/ofortuna.woff");
}

@font-face {
    font-family: "Sigella";
    src: url("fondid/sigella.woff");
}

@font-face {
    font-family: "KalliGro Kalli";
    src: url("fondid/kalligrokalli.woff");
}

@font-face {
    font-family: "Rein Grotesk";
    src: url("fondid/reingrotesk.woff");
}

@font-face {
    font-family: "ERKI 30";
    src: url("fondid/erki30.woff");
}

@font-face {
    font-family: "Rammus";
    src: url("fondid/rammus.woff");
}

@font-face {
    font-family: "Kevad";
    src: url("fondid/kevad.woff");
}

@font-face {
    font-family: "Ketchup Addict";
    src: url("fondid/ketchupaddict.woff");
}

@font-face {
    font-family: "Lambiseim";
    src: url("fondid/lambiseim.woff");
}

@font-face {
    font-family: "Vaksal";
    src: url("fondid/vaksal.woff");
}

@font-face {
    font-family: "Villowplex";
    src: url("fondid/villowplex.woff");
}

@font-face {
    font-family: "Tortura";
    src: url("fondid/tortura.woff");
}

@font-face {
    font-family: "Ornamental";
    src: url("fondid/ornamental.woff");
}

@font-face {
    font-family: "Esimene";
    src: url("fondid/esimene.woff");
}

@font-face {
    font-family: "Imogen";
    src: url("fondid/imogen.woff");
}

@font-face {
    font-family: "Lopsakas";
    src: url("fondid/lopsakas-regular.woff");
}

@font-face {
    font-family: "Naps";
    src: url("fondid/naps.woff");
}

@font-face {
    font-family: "Pakkonen";
    src: url("fondid/pakkonen.woff");
}

@font-face {
    font-family: "Vorsik";
    src: url("fondid/vorsik.woff");
}

@font-face {
    font-family: "New Poetic";
    src: url("fondid/newpoetic.woff");
}

@font-face {
    font-family: "Flowstate";
    src: url("fondid/flowstate.woff");
}

@font-face {
    font-family: "KalliGro Gro";
    src: url("fondid/kalligrogro.woff");
}

@font-face {
    font-family: "Owl Cave";
    src: url("fondid/owlcave.woff");
}

@font-face {
    font-family: "The Times Apex";
    src: url("fondid/thetimesapex.woff");
}

@font-face {
    font-family: "Mozzarella";
    src: url("fondid/mozzarella.woff");
}

@font-face {
    font-family: "Napulo";
    src: url("fondid/napulo.woff");
}

@font-face {
    font-family: "Coffee Time";
    src: url("fondid/coffeetime.woff");
}

@font-face {
    font-family: "Libre Office Sans";
    src: url("fondid/libreofficesans.woff");
}

@font-face {
    font-family: "Sirkel";
    src: url("fondid/sirkel.woff");
}

@font-face {
    font-family: "LEONE";
    src: url("fondid/leone.woff");
}

@font-face {
    font-family: "Kiwi";
    src: url("fondid/kiwi.woff");
}

@font-face {
    font-family: "Sensible Senseless";
    src: url("fondid/sensiblesenseless.woff");
}

@font-face {
    font-family: "Igor Rounded";
    src: url("fondid/igorrounded.woff");
}

@font-face {
    font-family: "Crystal";
    src: url("fondid/crystal.woff");
}

@font-face {
    font-family: "Sens";
    src: url("fondid/sens.woff");
}

@font-face {
    font-family: "MS Curvy";
    src: url("fondid/mscurvy.woff");
}

@font-face {
    font-family: "Fairytype";
    src: url("fondid/fairytype.woff");
}

@font-face {
    font-family: "Fontenstein";
    src: url("fondid/fontenstein-regular.woff");
}

@font-face {
    font-family: "Cap Sizun";
    src: url("fondid/capsizun.woff");
}

@font-face {
    font-family: "Jaan";
    src: url("fondid/jaan.woff");
}

@font-face {
    font-family: "Nocturnal";
    src: url("fondid/nocturnal.woff");
}

@font-face {
    font-family: "Shattered";
    src: url("fondid/shattered.woff");
}

@font-face {
    font-family: "BRNO2016";
    src: url("fondid/brno2016.woff");
}

@font-face {
    font-family: "Zak";
    src: url("fondid/zak.woff");
}

@font-face {
    font-family: "Lumberjack";
    src: url("fondid/lumberjack.woff");
}

@font-face {
    font-family: "Skeleton";
    src: url("fondid/skeleton.woff");
}

@font-face {
    font-family: "Volask";
    src: url("fondid/volask.woff");
}

@font-face {
    font-family: "Kykeon";
    src: url("fondid/kykeon.woff");
}

@font-face {
    font-family: "Helipleumon";
    src: url("fondid/helipleumon.woff");
}

@font-face {
    font-family: "Kulm";
    src: url("fondid/kulm.woff");
}

@font-face {
    font-family: "Fiato";
    src: url("fondid/fiato.woff");
}

@font-face {
    font-family: "Escapist Diaries";
    src: url("fondid/escapistdiaries.woff");
}

@font-face {
    font-family: "Akijo";
    src: url("fondid/akijo.woff");
}

@font-face {
    font-family: "Exquisite Corpse";
    src: url("fondid/exquisitecorpsetypeface.woff");
}

@font-face {
    font-family: "SafariTraveller";
    src: url("fondid/safaritraveller.woff");
}

@font-face {
    font-family: "Lazy Glamour";
    src: url("fondid/lazyglamour.woff");
}

@font-face {
    font-family: "Frisbee";
    src: url("fondid/frisbee.woff");
}

@font-face {
    font-family: "Work Sans TASE";
    src: url("fondid/worksanstase.woff");
}

@font-face {
    font-family: "Maurizio";
    src: url("fondid/maurizio.woff");
}

@font-face {
    font-family: "Madis-Igor";
    src: url("fondid/madis-igor.woff");
}

@font-face {
    font-family: "Teibifont";
    src: url("fondid/teibifont.woff");
}

@font-face {
    font-family: "Gog";
    src: url("fondid/gog-regular.woff");
}

@font-face {
    font-family: "Radio";
    src: url("fondid/radio.woff");
}

@font-face {
    font-family: "Susle";
    src: url("fondid/susle.woff");
}

@font-face {
    font-family: "Varenyky";
    src: url("fondid/varenyky.woff");
}

@font-face {
    font-family: "DEWY";
    src: url("fondid/dewy.woff");
}

@font-face {
    font-family: "Gary";
    src: url("fondid/gary.woff");
}

@font-face {
    font-family: "Fallengum";
    src: url("fondid/fallengum.woff");
}

@font-face {
    font-family: "Franz";
    src: url("fondid/franz.woff");
}

@font-face {
    font-family: "Chaos";
    src: url("fondid/chaos.woff");
}

@font-face {
    font-family: "Dap";
    src: url("fondid/dap.woff");
}

@font-face {
    font-family: "Hellplague";
    src: url("fondid/hellplague.woff");
}

@font-face {
    font-family: "Stereo Sans";
    src: url("fondid/stereosans.woff");
}

@font-face {
    font-family: "Double Bubble";
    src: url("fondid/doublebubble.woff");
}

@font-face {
    font-family: "Bomber Fraktur";
    src: url("fondid/bomberfraktur.woff");
}

@font-face {
    font-family: "Dahlia";
    src: url("fondid/dahlia.woff");
}

@font-face {
    font-family: "Faktory";
    src: url("fondid/faktory.woff");
}

@font-face {
    font-family: "I Dream of Letters";
    src: url("fondid/idreamofletters.woff");
}

@font-face {
    font-family: "Barbara";
    src: url("fondid/barbara.woff");
}

@font-face {
    font-family: "Broadnibber";
    src: url("fondid/broadnibber.woff");
}

@font-face {
    font-family: "Cofe Sans";
    src: url("fondid/cofesans.woff");
}

@font-face {
    font-family: "Dematerialized";
    src: url("fondid/dematerialized.woff");
}

@font-face {
    font-family: "Flora and Fauna";
    src: url("fondid/floraandfauna.woff");
}

@font-face {
    font-family: "Fontanne";
    src: url("fondid/fontanne.woff");
}

@font-face {
    font-family: "Heavy";
    src: url("fondid/heavy.woff");
}

@font-face {
    font-family: "Kalevgrotesk 2";
    src: url("fondid/kalevgrotesk2.woff");
}

@font-face {
    font-family: "Kandi 3";
    src: url("fondid/kandi3.woff");
}

@font-face {
    font-family: "Keynote Sans";
    src: url("fondid/keynotesans.woff");
}

@font-face {
    font-family: "Kollektiiv Collective";
    src: url("fondid/kollektiivcollective.woff");
}

@font-face {
    font-family: "Molot";
    src: url("fondid/molot.woff");
}

@font-face {
    font-family: "My Maps Sans Albers";
    src: url("fondid/mymapssansalbersequalareaconic.woff");
}

@font-face {
    font-family: "My Maps Sans Azimuthal";
    src: url("fondid/mymapssansazimuthalequidistant.woff");
}

@font-face {
    font-family: "My Maps Sans Bonne";
    src: url("fondid/mymapssansbonne.woff");
}

@font-face {
    font-family: "My Maps Sans Cylindrical";
    src: url("fondid/mymapssanscylindricalequalarea.woff");
}

@font-face {
    font-family: "My Maps Sans Lambert";
    src: url("fondid/mymapssanslambertconformalconic.woff");
}

@font-face {
    font-family: "My Maps Sans Mercator";
    src: url("fondid/mymapssansmercator.woff");
}

@font-face {
    font-family: "My Maps Sans Orthographic";
    src: url("fondid/mymapssansorthographic.woff");
}

@font-face {
    font-family: "My Maps Sans Polyconic";
    src: url("fondid/mymapssanspolyconic.woff");
}

@font-face {
    font-family: "My Maps Sans Robinson";
    src: url("fondid/mymapssansrobinson.woff");
}

@font-face {
    font-family: "My Maps Sans Sinusoidal";
    src: url("fondid/mymapssanssinusoidal.woff");
}

@font-face {
    font-family: "My Maps Sans Stereographic";
    src: url("fondid/mymapssansstereographic.woff");
}

@font-face {
    font-family: "My Maps Sans Transverse";
    src: url("fondid/mymapssanstransversemercator.woff");
}

@font-face {
    font-family: "My Maps Sans Winkel Tripel";
    src: url("fondid/mymapssanswinkeltripel.woff");
}

@font-face {
    font-family: "Sato";
    src: url("fondid/sato.woff");
}

@font-face {
    font-family: "Soy";
    src: url("fondid/soy.woff");
}

@font-face {
    font-family: "Substanta";
    src: url("fondid/substanta.woff");
}

@font-face {
    font-family: "Tirnot Mono";
    src: url("fondid/tirnotmono.woff");
}

@font-face {
    font-family: "Toilet Paper Type";
    src: url("fondid/toiletpapertype.woff");
}

@font-face {
    font-family: "Tontfont";
    src: url("fondid/tontfont.woff");
}

@font-face {
    font-family: "Velodromatic";
    src: url("fondid/velodromatic.woff");
}

@font-face {
    font-family: "Yoga";
    src: url("fondid/yoga.woff");
}

:root {
    --text-color: #1d1d1d;
    --bg-color: #f6f6f4;
    /* off-white, paper-like neutral as approved */
    --img-placeholder: #eaeaea;
    --green: #8EB0AF;
    /* vibrant popping KASK colors */
    --orange: #90d154;
    --blue: #9C3754;
    --pink: #2A90FF;
    --red: #5f7221;
    --black: #0b0c10;
    --font-sans: "Inter", sans-serif;
}

body.dark-theme {
    --text-color: #e4e4e2;
    --bg-color: #161616;
    --img-placeholder: #222222;
    --black: #e4e4e2;
    /* So the 'black' items show up in dark mode */
}


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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.4;
    overflow-x: hidden;
}

/* MASSIVE HEADER - PIN-UP EDITORIAL STYLE */
.main-header {
    width: 100%;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.header-top {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: calc(100% - 80px);
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px;
    z-index: 500;
    pointer-events: none; /* Allow clicking grid items through the header space if needed, though the text itself is huge */
}

.header-logo-link {
    text-decoration: none;
    color: inherit;
    pointer-events: auto; /* Make the link clickable */
}

.header-top h1 {
    pointer-events: none; /* Let clicks pass through the huge text stroke to the link wrapper */
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
    transition: opacity 0.2s;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    pointer-events: auto;
}

.theme-toggle:hover {
    opacity: 0.6;
}

.main-header h1 {
    font-size: 9.6vw;
    /* Fills screen width */
    line-height: 0.8;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: -0.05em;
    /* Extremely tight kerning */
    color: var(--bg-color);
    margin: 0;
    text-align: left;
    -webkit-text-stroke: 8.8pt var(--bg-color);
}

/* EDITORIAL GRID */
.editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
    gap: 15px 15px;
    /* Masonry style staggered gaps */
    padding: 20px 15px 100px 15px;
    max-width: 1800px;
    margin: 0 auto;
}

.grid-item {
    display: flex;
    flex-direction: column;
}

.span-1 {
    grid-column: span 1;
}

.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}

/* Image Wrappers */
.img-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 5px;
    /* Tight caption spacing */
    position: relative;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background-color: var(--img-placeholder);
}

/* ── Download button ── */
.download-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    background: #1d1d1d;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1.2;
    text-decoration: none;
    mix-blend-mode: normal;
    opacity: 0;
    transform: translate(0, 6px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.download-btn:hover {
    background: #000000;
    opacity: 1 !important;
}

.grid-item:hover .download-btn {
    opacity: 1;
    transform: translate(0, 0);
    pointer-events: auto;
}

/* ── Filter system ── */
.kask-menu a {
    cursor: pointer;
    transition: opacity 0.2s, letter-spacing 0.2s;
}

.kask-menu a.filter-active {
    letter-spacing: 0.08em;
    font-weight: 700;
}

.kask-menu a.filter-active::after {
    content: ' ✕';
    font-size: 0.7em;
    opacity: 0.6;
}

.grid-item[data-category] {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.grid-item.filter-hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

/* Specific aspect ratios */
.portrait {
    aspect-ratio: 3/4;
}

.square {
    aspect-ratio: 1/1;
}

.landscape {
    aspect-ratio: 21/9;
}

/* Caption blocks */
.caption-block {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    font-size: 0.70rem;
    /* Tiny, editorial captions */
    text-transform: lowercase;
    /* Calling back to KASK */
    font-weight: 700;
    /* Blocky, dense typographic feel */
    letter-spacing: 0.01em;
    line-height: 1.25;
    position: relative;
    z-index: 2;
    color: var(--text-color);
    padding-top: 4px;
}

.caption-text {
    max-width: 85%;
    /* left aligned cluster of dense text */
}

.caption-block.spread {
    justify-content: space-between;
}

/* Text blocks for KASK style Menus */
.text-block {
    padding-right: 20px;
}

.focus-block {
    padding-top: 40px;
}

.about-block {
    margin-top: 60px;
}

.menu-title {
    font-size: 0.9rem;
    text-transform: lowercase;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1;
}

.small-text {
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 600;
    text-transform: lowercase;
    text-align: justify;
    /* editorial vibe */
}

ul.kask-menu,
ul.in-focus-list {
    list-style: none;
    font-size: 1.15rem;
    /* Slightly larger menu items for contrast */
    font-weight: normal;
    text-transform: lowercase;
}

.kask-menu li,
.in-focus-list li {
    margin-bottom: 2px;
}

/* Links */
a {
    text-decoration: none;
    transition: opacity 0.2s;
    color: inherit;
}

a:hover {
    opacity: 0.6;
}

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

/* KASK Colors */
.item-green {
    color: var(--green);
}

.item-orange {
    color: var(--orange);
}

.item-blue {
    color: var(--blue);
}

.item-pink {
    color: var(--pink);
}

.item-red {
    color: var(--red);
}

.item-black {
    color: var(--black);
}

/* KASK Dots integrated */
.dot {
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    background-color: currentColor;
    border-radius: 50%;
    margin-left: 0.2em;
    vertical-align: baseline;
    position: relative;
    top: -1px;
    transition: transform 0.2s;
}

a:hover .dot {
    transform: scale(1.4);
}

.dot-green {
    color: var(--green);
}

.dot-orange {
    color: var(--orange);
}

.dot-blue {
    color: var(--blue);
}

.dot-pink {
    color: var(--pink);
}

.dot-red {
    color: var(--red);
}

.dot-black {
    color: var(--black);
}

/* Editorial Pills */
.pill {
    display: inline-flex;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 0 0.5em 0.1em;
    font-size: 0.70rem;
    vertical-align: middle;
    background: transparent;
    cursor: pointer;
    text-transform: lowercase;
    font-weight: 600;
    white-space: nowrap;
}

.pill-pink {
    color: var(--pink);
    border-color: var(--pink);
}

.pill-green {
    color: var(--green);
    border-color: var(--green);
}

.pill-orange {
    color: var(--orange);
    border-color: var(--orange);
}

/* Utilities to break standard grid shapes */
.obj-right {
    align-items: flex-end;
}

.obj-right .img-wrapper {
    width: 85%;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .editorial-grid {
        grid-template-columns: 1fr 1fr;
    }

    .span-3 {
        grid-column: span 2;
    }

    .main-header h1 {
        font-size: 20vw;
        padding-top: 2vh;
    }
}

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

    .span-2,
    .span-3 {
        grid-column: span 1;
    }

    .obj-right .img-wrapper {
        width: 100%;
    }
}