/*
Theme Name: Kessler
Theme URI: https://www.mathiaskessler.com
Author: Mathias Kessler
Description: Block theme for mathiaskessler.com. Dark, stark ground; a floating-keyword splash on the front page; a "Work" post type in five media (Photography, Painting, Film/Video, Installation, Performance); About and CV & Press pages. Built 17 Sep 2026 from the layout in _docs/Splash_Crosslink_Strategy.md and splash/ v4.
Version: 1.2.4
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: All rights reserved
Text Domain: kessler
*/

/* ---------- global ---------- */
:root { --k-font: "Avenir Next", "Avenir", "Nunito Sans", system-ui, -apple-system, sans-serif; }
body { font-family: var(--k-font); }
/* sticky footer: footer sits at the bottom even on short pages */
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; }
.wp-site-blocks > main { flex: 1 0 auto; }
.wp-site-blocks > footer { flex-shrink: 0; margin-top: auto; }
html { -webkit-text-size-adjust: 100%; }
body { background: #0b0b0b; color: #F0F0EC; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
::selection { background: #FFE500; color: #0b0b0b; }
img { height: auto; max-width: 100%; }

/* ---------- masthead ---------- */
.k-masthead { position: sticky; top: 0; z-index: 50; background: #0b0b0b; }
.k-sig { display: block; width: clamp(250px, 28vw, 400px); color: #F0F0EC; line-height: 0; }
.k-sig svg { width: 100%; height: auto; display: block; }
.k-sig:hover { text-decoration: none; opacity: .85; }
.k-masthead .wp-block-navigation { font-family: var(--k-font); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.k-masthead .wp-block-navigation__responsive-container-open,
.k-masthead .wp-block-navigation__responsive-container-close { color: #F0F0EC; }
.k-masthead .wp-block-navigation__responsive-container-open svg,
.k-masthead .wp-block-navigation__responsive-container-close svg { width: 40px; height: 40px; }
.k-masthead .wp-block-navigation__responsive-container-open { padding: 4px; }
.k-masthead .wp-block-navigation__responsive-container.is-menu-open { background: #0b0b0b; color: #F0F0EC; }
.k-masthead .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 6vh; }
.k-masthead .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: clamp(22px, 3.2vw, 34px); letter-spacing: .08em; }
.k-masthead .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item { font-size: clamp(15px, 1.6vw, 18px); text-transform: none; letter-spacing: .04em; opacity: .8; }

/* front page: masthead and footer float over the word field */
.k-front .k-masthead { position: fixed; left: 0; right: 0; background: transparent; }
.k-front .k-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; background: transparent; padding-top: 0; padding-bottom: 18px; }
.k-front { overflow: hidden; }
/* protected gallery style: small, no zoom, no drag (Disasters of Climate Change) */
.wp-block-gallery.is-style-protected figure.wp-block-image img { max-width: 360px; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.wp-block-gallery.is-style-protected { gap: 12px; }

/* ---------- typography ---------- */
.k-meta { font-family: var(--k-font); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.k-eyebrow { font-family: var(--k-font); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.wp-block-post-title, h1, h2, h3 { font-family: var(--k-font); font-weight: 500; letter-spacing: -.005em; }
.entry-content > p, .k-statement p { max-width: 68ch; }
.k-rule { border: 0; border-top: 1px solid rgba(240,240,236,.18); margin: 0; }

/* ---------- work grid ---------- */
.k-grid .wp-block-post-template { gap: 2.5rem 2rem; }
.k-grid .wp-block-post-featured-image img { aspect-ratio: 4/3; object-fit: cover; width: 100%; filter: saturate(.92); transition: filter .25s; }
.k-grid .wp-block-post:hover .wp-block-post-featured-image img { filter: saturate(1.05); }
.k-grid .wp-block-post-title { font-size: 1.05rem; margin: .7rem 0 .15rem; }
.k-grid .wp-block-post-title a:hover { text-decoration: underline; }
.k-grid .wp-block-post-excerpt__excerpt { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; margin: 0; }

/* ---------- single work ---------- */
.k-work-header { padding-top: 6vh; }
.k-terms a { border: 1px solid rgba(240,240,236,.35); border-radius: 999px; padding: .2em .8em; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-right: .5em; }
.k-terms a:hover { background: #F0F0EC; color: #0b0b0b; text-decoration: none; }
.wp-block-gallery figcaption { font-size: .8rem; opacity: .7; }
.k-worknav { display: flex; justify-content: space-between; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }

/* ---------- press ---------- */
.k-press-list a { display: block; padding: .8em 0; border-bottom: 1px solid rgba(240,240,236,.14); }
.k-press-list a:hover { text-decoration: none; padding-left: .4em; }

/* ---------- footer ---------- */
.k-footer { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .55; }

@media (max-width: 600px) {
  .k-grid .wp-block-post-template { gap: 2rem 1rem; }
}

/* logged-in admin bar */
.admin-bar .k-front .k-masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar .k-front .k-masthead { top: 46px; } }

/* sales: inquire link */
.k-inquire { margin: 1.2rem 0 0; }
.k-inquire-link { font-family: var(--k-font); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #F0F0EC; text-decoration: none; border-bottom: 1px solid rgba(240,240,236,.45); padding-bottom: 2px; }
.k-inquire-link:hover { border-bottom-color: #F0F0EC; }
.k-inquire-link::after { content: " \2192"; }
.entry-content .k-inquire, .wp-block-post-content .k-inquire { margin-top: 3rem; }
