@font-face {
  font-family: Kommuna;
  src: url('../fonts/KommunaNormal1.10.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Google Sans Code';
  src: url('../fonts/google-sans-code.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Yrsa;
  src: url('../fonts/yrsa-variable.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --ink: #080808;
  --purple: #b683db;
  --gutter: clamp(22px, 6.8vw, 56px);
  --mono: 'Google Sans Code', 'Courier New', monospace;
  --nav-font: Yrsa, Georgia, serif;
  --paper: #f4eff7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #fff; color: var(--ink); scrollbar-gutter: stable; }
body { margin: 0; font: 13px/1.5 var(--mono); -webkit-font-smoothing: antialiased; }
a,button,input,textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button,input,textarea { border-radius: 0; }
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible { outline: 2px solid var(--purple); outline-offset: 5px; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
img,svg { display: block; width: 100%; height: auto; }
figure,h1,h2,p { margin: 0; }
h1,h2 { font: inherit; font-weight: 700; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 12px; top: -70px; z-index: 100; background: #080808; color: #fff; padding: 12px; }
.skip-link:focus { top: 12px; }
#site { min-height: 100svh; display: flex; flex-direction: column; }
.site-header { height: 116px; display: grid; place-items: center; }
.home-link { width: 161px; display: block; }
.mascot { aspect-ratio: 141.2 / 69.12; }
.wordmark { aspect-ratio: 157.79 / 45.19; }
.main-nav { border-block: 1.5px solid var(--ink); }
.nav-inner { display: grid; grid-template-columns: 1fr 1.5fr 1fr 1.15fr 1fr; max-width: 1100px; margin: auto; }
.main-nav a { min-height: 44px; display: flex; align-items: center; justify-content: center; font: clamp(18px, 5.2vw, 27px)/1 var(--nav-font); padding: 4px 0 6px; }
.main-nav a[aria-current=page] { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.main-nav a:hover { color: #8652a5; }
.shop-arrow { font-size: 18px; }
main { width: 100%; flex: 1; outline: none; }
.content { max-width: 1100px; margin: auto; padding-inline: var(--gutter); }
.home-content { max-width: 810px; padding-top: 21px; }
.section-heading { display: flex; justify-content: center; margin-bottom: 23px; }
.page-title { font-size: 16px; line-height: 1.45; font-weight: 700; text-transform: uppercase; text-align: center; text-wrap: balance; }
.signature-wrap { width: 100%; max-width: 1080px; margin: 28px auto 15px; padding: 0 clamp(17px,4.7vw,45px); }
.signature-link { display: block; width: 100%; }
.gallery-content { padding-top: 10px; padding-bottom: 36px; }
.filter-bar { display: flex; flex-wrap: wrap; row-gap: 0; justify-content: center; gap: clamp(13px,4vw,29px); margin: 0 0 12px; padding: 0; border: 0; }
.filter-bar legend,.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.filter-label { display: flex; gap: 7px; min-height: 44px; align-items: center; font-size: 11px; font-weight: 700; cursor: pointer; }
.filter-label input { appearance: none; margin: 0; width: 14px; height: 14px; border: 1px solid; display: grid; place-content: center; cursor: pointer; background: white; }
.filter-label input:checked::after { content: ''; height: 8px; width: 8px; background: var(--ink); }
.gallery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 14px; row-gap: 24px; }
.art-card { min-width: 0; }
.art-card button { display: block; text-align: left; padding: 0; width: 100%; }
.thumbnail { aspect-ratio: 1; overflow: hidden; background: #f7f7f7; margin-bottom: 8px; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.art-card button:hover .thumbnail img { transform: scale(1.035); }
.art-card button:hover .card-title { text-decoration: underline; text-underline-offset: 3px; }
.card-title { font-size: 10px; font-weight: 700; line-height: 1.4; overflow-wrap: break-word; }
.card-meta { font-size: 9px; line-height: 1.4; margin-top: 4px; color: #555; }
.text-page { max-width: 790px; padding-top: 40px; padding-bottom: 64px; min-height: 63svh; font-size: 12px; line-height: 1.6; }
.text-page .section-heading { justify-content: flex-start; margin-bottom: 30px; }
.exhibitions { display: grid; gap: 24px; }
.exhibitions h2 { font-weight: 400; }
.exhibitions strong { font-weight: 700; }
.text-page p+p { margin-top: 16px; }
.text-page h2:not(.exhibitions h2) { margin: 24px 0 8px; }
.text-page a { text-decoration: underline; text-underline-offset: 3px; }
.shop-page { text-align: center; display: flex; min-height: 55svh; flex-direction: column; align-items: center; justify-content: center; padding-block: 50px; }
.shop-page p { max-width: 310px; }
.shop-page .simple-link { margin-top: 28px; min-height: 44px; display: flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
/* Footer: outlined links, the supplied rat and a typeset identity card. */
.footer-dark { background: var(--ink); color: var(--paper); padding: 35px var(--gutter) calc(23px + env(safe-area-inset-bottom)); }
.footer-inner { max-width: 980px; margin: auto; }
.footer-actions { display: flex; gap: 10px; align-items: center; }
.footer-actions .frame-link { flex: 1; min-width: 0; font-size: 10px; gap: 5px; padding-left: 8px; min-height: 44px; }
.footer-actions .arrow-box { width: 21px; height: 25px; font-size: 20px; }
.frame-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 9px; border: 1px solid currentColor; padding: 5px 5px 5px 10px; min-height: 39px; font-size: 12px; text-transform: uppercase; line-height: 1; transition: background 180ms,color 180ms; }
.frame-link:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.arrow-box { display: grid; place-items: center; width: 25px; height: 25px; font-size: 22px; line-height: 1; background: var(--paper); color: var(--ink); flex-shrink: 0; }
.frame-link:hover .arrow-box { background: var(--ink); color: var(--paper); }
.footer-stamp { margin-top: 47px; display: grid; grid-template-columns: .7fr 1fr; gap: 18px; align-items: end; }
.footer-rat { width: 100%; max-width: 230px; aspect-ratio: 147.66 / 137; }
.identity-ticket { border: 1px solid var(--paper); text-align: center; text-transform: uppercase; font-size: 9px; }
.identity-ticket p { padding: 10px 8px; }
.identity-ticket p+p { border-top: 1px solid; }
.identity-ticket p:nth-child(2) { padding-block: 17px; }
.identity-ticket .ticket-signature { background: var(--paper); color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin-top: 28px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 16px; font-size: 9px; }
.footer-bottom nav a { display: flex; min-height: 35px; align-items: center; }
.replay-intro { font-size: 9px; min-height: 33px; padding: 4px 4px 4px 7px; gap: 8px; }
.replay-intro .arrow-box { width: 21px; height: 21px; font-size: 17px; }
.project-content { max-width: 900px; margin: auto; padding: 24px var(--gutter) 0; }
.project-hero img { max-height: calc(100svh - 160px); object-fit: contain; width: 100%; }
.project-intro { margin: 25px 0 40px; }
.project-intro h1 { font-size: clamp(19px, 4.5vw, 28px); line-height: 1.35; max-width: 690px; text-wrap: balance; }
.project-details { font-size: 11px; margin-top: 14px; line-height: 1.7; }
.project-description { font-size: 12px; line-height: 1.8; max-width: 630px; margin-top: 20px; white-space: pre-line; }
.project-images { display: grid; gap: 34px; }
.project-image img { width: 100%; height: auto; }
.project-image figcaption { font-size: 10px; color: #555; margin-top: 10px; }
/* Still entrance artwork. The animation is started only by the enter button. */
.intro-pending #site { visibility: hidden; }
.intro-layer { position: fixed; inset: 0; z-index: 80; }
.intro-backdrop { position: absolute; inset: 0; background: #fff; }
.intro-enter { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 35px; padding: 0 0 6svh; }
.intro-enter:disabled { cursor: default; }
.intro-enter:focus { outline: none; }
.intro-layer[data-keyboard=true] .intro-enter:focus-visible .intro-caption { outline: 2px solid var(--purple); outline-offset: 6px; }
.intro-assembly { position: relative; display: block; width: min(89vw,660px); aspect-ratio: 1.78; }
.intro-wordmark { position: absolute; left: 0; bottom: 0; width: 100%; }
.intro-mascot { position: absolute; left: 9%; top: 0; width: 82%; z-index: 2; }
.intro-caption { display: inline-flex; align-items: center; gap: 13px; font-size: 10px; text-transform: uppercase; border: 1px solid; padding: 4px 4px 4px 12px; }
.intro-caption .arrow-box { background: var(--ink); color: #fff; }
.no-script { padding: 24px; text-align: center; }
@media(min-width:700px) {
  .site-header { height: 150px; }
  .home-link { width: 205px; }
  .main-nav a { font-size: 32px; min-height: 48px; }
  .home-content { padding-top: 28px; }
  .section-heading { margin-bottom: 30px; }
  .page-title { font-size: 19px; }
  .signature-wrap { margin-top: 44px; margin-bottom: 22px; }
  .gallery-content { padding-top: 17px; padding-bottom: 55px; }
  .gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 30px; row-gap: 38px; }
  .filter-label { font-size: 13px; gap: 9px; min-height: 48px; }
  .filter-label input { width: 16px; height: 16px; }
  .filter-label input:checked::after { width: 10px; height: 10px; }
  .card-title { font-size: 12px; }
  .card-meta { font-size: 11px; }
  .thumbnail { margin-bottom: 12px; }
  .text-page { padding-top: 60px; font-size: 14px; }
  .text-page .section-heading { margin-bottom: 39px; }
  .exhibitions { gap: 27px; }
  .footer-dark { padding-block: 49px 29px; }
  .footer-actions { gap: 18px; }
  .footer-actions .frame-link { flex: none; min-width: 145px; font-size: 14px; padding-left: 12px; gap: 20px; }
  .footer-actions .arrow-box { width: 25px; }
  .frame-link { font-size: 14px; }
  .footer-stamp { margin-top: 56px; grid-template-columns: 1.4fr 1fr; gap: 40px; }
  .identity-ticket { font-size: 12px; }
  .identity-ticket p { padding: 12px; }
  .identity-ticket p:nth-child(2) { padding-block: 22px; }
  .footer-bottom { margin-top: 35px; }
  .footer-bottom nav { gap: 27px; font-size: 11px; }
  .replay-intro { font-size: 10px; }
  .project-content { padding-top: 35px; }
  .project-intro { margin-block: 32px 55px; }
  .project-details { font-size: 12px; }
  .project-description { font-size: 14px; }
  .project-images { gap: 50px; }
  .project-image figcaption { font-size: 11px; }
}
@media(min-width:1100px) {
  :root { --gutter: 40px; }
  .nav-inner { max-width: 1060px; }
  .home-content { max-width: 780px; }
  .gallery-content { max-width: 1060px; }
  .text-page { max-width: 800px; }
  .signature-wrap { max-width: 850px; margin-top: 62px; margin-bottom: 30px; }
  .footer-inner { max-width: 980px; }
}
@media(max-width:350px) {
  :root { --gutter: 19px; }
  .gallery-grid { gap: 20px 10px; }
  .card-title { font-size: 9px; }
  .filter-bar { gap: 13px; }
  .filter-label { font-size: 10px; }
  .footer-stamp { grid-template-columns: .6fr 1fr; gap: 14px; }
  .footer-actions { gap: 7px; }
  .footer-actions .frame-link { font-size: 9px; padding-left: 6px; gap: 3px; }
}
@media(max-width:699px) {
  .site-header { height: 88px; }
  .home-link { width: 145px; }
  body[data-page=home] main { flex: none; height: calc(100svh - 88px - 47px - (100vw - 34px) * .2864 - 24px - env(safe-area-inset-bottom)); min-height: 150px; }
  .home-content { height: 100%; padding-top: 12px; }
  .home-content figure { height: 100%; display: grid; grid-template-rows: minmax(0,1fr); }
  body[data-page=home] .signature-wrap { padding-inline: 17px; margin-block: 12px; max-width: none; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition: none !important; animation: none !important; }
}

/* Native Publii pages: five links, blank grids and optional future projects. */
.main-nav a { white-space: nowrap; min-width: 0; }
.gallery-content { min-height: 35svh; }
.intro-open { overflow: hidden; }
.art-card > a { display: block; }
.art-card > a:hover .thumbnail img { transform: scale(1.035); }
.missing-image { display: grid; place-items: center; height: 100%; min-height: 120px; padding: 20px; font-size: 11px; color: #555; }
.project-close { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 10px var(--gutter); background: #fff; border-bottom: 1px solid; }
.project-close .frame-link { gap: 18px; }
.project-body { line-height: 1.8; overflow-wrap: anywhere; }
.project-body img { height: auto; }
.project-body > * + * { margin-top: 24px; }
.project-body .gallery { display: grid; gap: 24px; }
.home-featured a, .home-featured img { height: 100%; width: 100%; object-fit: contain; }
.home-featured[hidden] { display: none; }
@media (max-width: 350px) { .main-nav a { font-size: 17px; } .shop-arrow { font-size: 15px; } }

.tag-description { margin-bottom: 24px; }

/* Project pages display only the editor content; the featured image belongs to cards/home. */
body[data-page="project"] main { min-height: 100svh; }
body[data-page="project"] .project-body > :first-child { margin-top: 0; }
body[data-page="project"] .project-body { padding-bottom: 24px; }
@media (max-width: 699px) {
  body[data-page="project"] .site-header,
  body[data-page="project"] .main-nav,
  body[data-page="project"] .site-footer { display: none; }
  body[data-page="project"] .project-close { padding: calc(8px + env(safe-area-inset-top)) 16px 8px; }
  body[data-page="project"] .project-content { width: 100%; max-width: none; padding: 12px 0 calc(16px + env(safe-area-inset-bottom)); }
  body[data-page="project"] .project-body > :is(p,h1,h2,h3,h4,h5,h6,blockquote,ul,ol) { margin-inline: 18px; }
  body[data-page="project"] .project-body figure { margin-inline: 0; }
  body[data-page="project"] .project-body figcaption { padding-inline: 18px; }
}

/* REJUZ 1.3 — centered navigation and project reading layout. */
:root { --nav-font: Kommuna, Yrsa, Georgia, serif; }
.nav-inner { grid-template-columns: minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr); align-items: stretch; }
.main-nav a,
.main-nav a:hover,
.main-nav a[aria-current=page] { color: var(--ink); text-decoration: none; }
.main-nav a { padding-block: 5px; gap: 2px; }
.main-nav a:active { text-decoration: underline; text-underline-offset: 3px; }
.main-nav a:focus-visible { outline-offset: -4px; }
.main-nav a[data-page=shop] { background: var(--ink); color: white; }
.main-nav a[data-page=shop]:active { background: var(--purple); color: var(--ink); }
.shop-arrow { font-family: var(--mono); font-size: .65em; }
.project-close { align-items: center; gap: 16px; }
.project-identification { display: flex; align-items: baseline; min-width: 0; flex: 1; gap: 0; font-size: clamp(10px,1.1vw,13px); line-height: 1.5; }
.project-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-counter { flex-shrink: 0; white-space: nowrap; }
.project-close .frame-link { flex-shrink: 0; min-height: 44px; }
.project-navigation { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--ink); margin-top: 32px; padding-block: 20px 32px; }
.project-navigation .frame-link { min-height: 44px; gap: 16px; padding: 10px 12px; }
.project-navigation .frame-link:active { background: var(--purple); }
@media (max-width: 699px) {
  .main-nav a { font-size: clamp(16px,4.65vw,27px); }
  body[data-page="project"] .project-content { padding-inline: 16px; }
  body[data-page="project"] .project-body > :is(p,h1,h2,h3,h4,h5,h6,blockquote,ul,ol) { margin-inline: 0; }
  body[data-page="project"] .project-body figcaption { padding-inline: 0; }
  .project-close { gap: 10px; }
  .project-close .frame-link { gap: 9px; padding-inline: 8px; }
  .project-navigation { margin-top: 20px; padding-bottom: 16px; }
}

/* Equally large project titles on mobile and desktop. */
body[data-page="project"] .project-body :is(h1,h2) {
  font-size: 28px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
  margin-block: 28px 18px;
}
