/* Escenario — hugosolis.net (Kirby 5) */
:root {
  --bg: #0b0b0d;
  --fg: #f2f2f2;
  --soft: #cfcfd6;
  --mute: #8a8a93;
  --card: #16161a;
  --line: #2a2a30;
  --accent: #6f7dff;
  --pad: clamp(16px, 3vw, 32px);
  --font: "Space Grotesk", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--fg); font: 16px/1.6 var(--font); }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px var(--pad); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.site-header.over { position: fixed; inset: 0 0 auto; background: none; backdrop-filter: none; mix-blend-mode: difference; }
.logo { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.menu { display: flex; gap: 26px; font-size: 14px; align-items: center; }
.menu a { opacity: .8; } .menu a:hover, .menu a[aria-current] { opacity: 1; color: var(--accent); }
.site-header.over .menu a[aria-current] { color: inherit; text-decoration: underline; text-underline-offset: 6px; }
.lang { border: 1px solid currentColor; border-radius: 99px; padding: 2px 10px; font-size: 12px; letter-spacing: .08em; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }

/* type */
.tag { display: inline-block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid currentColor; padding: 4px 10px; border-radius: 99px; color: var(--accent); margin-bottom: 18px; }
.kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.display { font-size: clamp(40px, 6.4vw, 104px); line-height: .94; font-weight: 500; letter-spacing: -.03em; }
.page-title { padding: 80px var(--pad) 40px; }
.page-title .display { max-width: 14ch; }
.page-title p { margin-top: 20px; color: var(--soft); max-width: 640px; font-size: 18px; }

/* hero */
.hero { position: relative; height: 100vh; min-height: 560px; max-height: 1100px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0000 35%, var(--bg) 100%); }
.hero .cap { position: absolute; left: var(--pad); right: var(--pad); bottom: 56px; z-index: 2; max-width: 960px; }
.hero .cap p { margin-top: 20px; max-width: 560px; color: var(--soft); }
.hero .cap .more { display: inline-block; margin-top: 24px; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

/* sections */
.wrap { padding: 96px var(--pad) 0; }
.sec-h { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.sec-h h2 { font-size: clamp(28px, 3.4vw, 48px); font-weight: 400; letter-spacing: -.02em; }
.sec-h a { color: var(--mute); font-size: 14px; white-space: nowrap; } .sec-h a:hover { color: var(--fg); }

/* grid of cards */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; padding: 0 var(--pad); }
.wrap .grid { padding: 0; }
.card { position: relative; overflow: hidden; border-radius: 6px; background: var(--card); grid-column: span 4; aspect-ratio: 4 / 5; }
.card.wide { grid-column: span 8; aspect-ratio: auto; min-height: 100%; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s; filter: grayscale(.35) brightness(.82); }
.card:hover img { transform: scale(1.04); filter: none; }
.card .t { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; background: linear-gradient(0deg, #000d, #0000); }
.card .t small { display: block; color: var(--soft); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.card .t h3 { font-weight: 500; font-size: 22px; line-height: 1.2; }
.card.noimg { display: flex; align-items: end; border: 1px solid var(--line); }
.card.noimg .t { position: static; background: none; }

/* row list (concerts, talks, publications, links) */
.rows { border-top: 1px solid var(--line); }
.wrap > .rows, main > .rows { margin: 0 var(--pad); }
.wrap > .rows { margin: 0; }
.row { display: grid; grid-template-columns: 100px 1fr minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 20px; align-items: baseline; }
.row .y { color: var(--accent); font-size: 16px; }
.row .s { color: var(--mute); text-align: right; font-size: 15px; }
a.row:hover .m { color: var(--accent); }
.row .m small { display: block; color: var(--mute); font-size: 14px; margin-top: 4px; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--pad) 28px; }
.filters a { border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px; font-size: 14px; color: var(--soft); }
.filters a:hover { border-color: var(--fg); color: var(--fg); }
.filters a[aria-current] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* bio teaser */
.bio-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 120px var(--pad); }
.bio-teaser p { font-size: clamp(20px, 2vw, 28px); line-height: 1.35; font-weight: 300; }
.bio-teaser aside { color: var(--mute); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.bio-teaser aside a { color: var(--fg); border-bottom: 1px solid var(--accent); align-self: start; }

/* entry (project and generic pages) */
.entry-head { padding: 80px var(--pad) 48px; display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; }
.entry-head dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 14px; }
.entry-head dt { color: var(--mute); }
.entry-cover { padding: 0 var(--pad); }
.entry-cover img { width: 100%; max-height: 82vh; object-fit: cover; border-radius: 6px; }
.entry-body { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; padding: 56px var(--pad) 0; }
.entry-body.solo { grid-template-columns: minmax(0, 760px); }
.pics { display: flex; flex-direction: column; gap: 12px; }
.pics a { display: block; } .pics img { width: 100%; border-radius: 4px; }

/* long-form text */
.text { color: var(--soft); font-size: 17px; line-height: 1.7; }
.text > * + * { margin-top: 1em; }
.text h2 { color: var(--fg); font-size: 28px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; margin-top: 1.6em; }
.text h3 { color: var(--fg); font-size: 20px; font-weight: 500; margin-top: 1.6em; }
.text h2:first-child, .text h3:first-child { margin-top: 0; }
.text strong { color: var(--fg); font-weight: 500; }
.text a { color: var(--fg); border-bottom: 1px solid var(--accent); }
.text ul, .text ol { padding-left: 1.2em; } .text li + li { margin-top: .4em; }
.text blockquote { border-left: 2px solid var(--accent); padding-left: 20px; color: var(--fg); }
.text img, .text figure { border-radius: 4px; }
.text iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.text .video video { width: 100%; display: block; border-radius: 4px; background: #000; }
.text .video figcaption { color: var(--mute); font-size: 14px; margin-top: 8px; }

/* media blocks */
.media { padding: 56px var(--pad) 0; display: grid; gap: 24px; }
.media video { width: 100%; border-radius: 6px; background: #000; }
.media audio { width: 100%; }
.media h2 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-weight: 400; }
.docs { border-top: 1px solid var(--line); }
.docs a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.docs a:hover { color: var(--accent); }
.docs span { color: var(--mute); font-size: 14px; white-space: nowrap; }

.pager { display: flex; justify-content: space-between; gap: 24px; padding: 96px var(--pad) 0; }
.pager a { max-width: 45%; } .pager a small { display: block; color: var(--mute); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.pager a:last-child { text-align: right; margin-left: auto; }
.pager a:hover { color: var(--accent); }

/* footer */
.site-footer { margin-top: 120px; padding: 40px var(--pad); color: var(--mute); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; border-top: 1px solid var(--line); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a:hover { color: var(--fg); }

@media (max-width: 860px) {
  .card, .card.wide { grid-column: span 12; aspect-ratio: 4 / 3; min-height: 0; }
  .bio-teaser, .entry-head, .entry-body { grid-template-columns: 1fr; gap: 32px; }
  .row { grid-template-columns: 64px 1fr; font-size: 17px; } .row .s { display: none; }
  .menu-toggle { display: block; }
  .menu { display: none; position: fixed; inset: 60px 0 auto; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px var(--pad) 32px; background: var(--bg); font-size: 20px; border-bottom: 1px solid var(--line); }
  .menu.open { display: flex; }
  .site-header.over:has(.menu.open) { mix-blend-mode: normal; background: var(--bg); }
  .hero .cap { bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) { .card img { transition: none; } .card:hover img { transform: none; } }
