/* cura: dark, burnt sienna, hand-drawn. Archivo + Courier Prime, after amartinez.design */
:root {
  --bg: #151312; --bg2: #1f1b19; --fg: #f0ebe6; --fg2: #d6cec6; --mu: #a39a92; --line: #5a524b; --line2: #6b625b; --ar: #8a8078;
  --ac: #e0704d; --acf: #d9623f;
  --f: Archivo, "Helvetica Neue", Arial, sans-serif; --m: "Courier Prime", "Courier New", monospace;
  --gut: 40px; --sw: 13px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.55 var(--f); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.w { position: relative; min-height: 100vh; overflow-x: clip; }
.z { position: relative; z-index: 1; }
.wrap { max-width: 1280px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) max(var(--gut), env(safe-area-inset-right)) 48px max(var(--gut), env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 56px; }
.wrap.full { min-height: 100vh; }
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; }
.col { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.grow { flex: 1; }

/* type */
.h { font-family: var(--f); font-weight: 500; letter-spacing: -.025em; line-height: 1.04; margin: 0; text-wrap: balance; }
.huge { font-size: clamp(56px, 9vw, 112px); }
.t-xxl { font-size: clamp(42px, 6.6vw, 88px); }
.t-xl { font-size: clamp(34px, 4.4vw, 56px); }
.t-l { font-size: clamp(26px, 2.8vw, 34px); }
.t-m { font-size: 24px; } .t-s { font-size: 21px; }
.lb { font: 400 12px/1.5 var(--m); letter-spacing: .04em; text-transform: uppercase; color: var(--mu); }
.cd { font: 700 12px/1.5 var(--m); letter-spacing: .06em; color: var(--ac); white-space: nowrap; }
.ac { color: var(--ac); }
.sub { margin: 0; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; color: var(--fg2); max-width: 680px; }
.cmt { font-size: 16px; color: var(--fg2); }
.cmt-l { margin: 4px 0 0; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; max-width: 680px; }
.cmt-xl { margin: 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.4; max-width: 720px; }

/* marks and lines */
.mk { flex: none; fill: none; stroke: var(--ac); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; overflow: visible; display: block; transition: stroke .25s; }
.mk.lt { stroke: var(--fg); }
.ar { flex: none; fill: none; stroke: var(--ar); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; display: block; }
.rule { display: block; width: 100%; height: 8px; fill: none; stroke: #4a443f; stroke-width: 1.4; }
.bgm { position: fixed; z-index: 0; pointer-events: none; opacity: .2; width: min(92vw, 1080px); height: min(92vw, 1080px); left: 50%; top: 40px; transform: translateX(-50%); stroke-width: 1.3; }
#fx:checked ~ .bgm { display: none; }

/* hand-drawn boxes and pills */
.bx { position: relative; }
.bx:before { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--line); border-radius: 20px 26px 18px 28px / 26px 18px 28px 20px; filter: url(#rough); pointer-events: none; }
.pill { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; font: 500 14px var(--f); color: var(--fg); white-space: nowrap; background: none; border: 0; cursor: pointer; }
.ol:before { content: ""; position: absolute; inset: 3px 0; border: 1.5px solid var(--line2); border-radius: 999px; filter: url(#rough); pointer-events: none; z-index: -1; }
.on:after, .fpl:after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 5 C30 1 70 9 98 3 C70 8 35 4 8 8' fill='none' stroke='%23d9623f' stroke-width='2' vector-effect='non-scaling-stroke' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.fpl:after { opacity: 0; transition: opacity .2s; }
.pill:hover { color: var(--ac); }
.tag { position: relative; isolation: isolate; display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px; font: 500 12px var(--f); color: var(--fg2); white-space: nowrap; }
.tag:before { content: ""; position: absolute; inset: 0; border: 1.2px solid var(--line); border-radius: 999px; filter: url(#rough); z-index: -1; }
.tags { flex-wrap: wrap; gap: 8px; }
.meta { gap: 10px; flex-wrap: wrap; }
a:focus-visible, button:focus-visible, label:focus-visible { outline: 2px solid var(--ac); outline-offset: 4px; border-radius: 6px; }

/* header */
.hd { display: flex; flex-direction: column; gap: 14px; }
.hd-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.logo { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: 36px; transition: color .2s; }
.logo svg { position: absolute; left: -16px; top: -2px; width: calc(100% + 32px); height: calc(100% + 6px); fill: none; stroke: var(--ac); stroke-width: 1.8; stroke-linecap: round; overflow: visible; pointer-events: none; }
.logo svg path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .45s ease-out; }
.logo:hover, .logo:focus-visible { color: var(--ac); }
.logo:hover svg path, .logo:focus-visible svg path { stroke-dashoffset: 0; }
.fts { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.fts-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* images */
.im { position: relative; display: block; overflow: hidden; border-radius: 5px; background: #2a2522; }
.im img { display: block; width: 100%; height: auto; }
.im.paper { background: #e9e2d4; }
.im.round { border-radius: 50%; aspect-ratio: 1; width: 128px; }
.im.round img { height: 100%; object-fit: cover; }
.im.contain { background: #24201c; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; }
.im.contain img { width: 60%; height: 70%; object-fit: contain; }
.play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); }
.play circle { fill: rgba(21, 19, 18, .6); stroke: var(--fg); stroke-width: 1.4; }
.play path { fill: var(--fg); }

/* home */
.home { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 56px; padding: 32px 0 120px; min-height: 62vh; }
.home-line { margin: 0; font-size: 21px; text-align: center; max-width: 600px; color: var(--fg2); }
.dia { display: grid; grid-template-columns: 240px minmax(0, 520px) 240px; justify-content: center; align-items: start; width: 100%; }
.v { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.vm { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.big { width: 150px; height: 150px; }
.word, .cw { font-size: 44px; }
.cw { color: var(--mu); }
.word { transition: opacity .2s, transform .2s; }
.cnl { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.line { width: calc(100% + 110px); height: 150px; margin: 0 -55px; }
.line path { stroke-width: var(--sw); }
.pv { position: absolute; left: 50%; top: 168px; width: 250px; transform: translate(-50%, 10px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.pv .im { width: 100%; max-height: 170px; } .pv .im img { height: 170px; object-fit: cover; }
.pv .tt { font-size: 18px; text-decoration: underline; text-decoration-color: var(--ac); text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.v:hover .word, .v:focus-within .word { opacity: 0; transform: translateY(-6px); }
.v:hover .pv, .v:focus-within .pv { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.v:hover .mk, .v:focus-within .mk { stroke: var(--ac); }
.home-latest { display: none; }

/* lists */
.list-top { gap: 18px; padding-top: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 2px; }
.fpl { cursor: pointer; }
.year { gap: 18px; margin: 6px 0 26px; } .year .cd { font-size: 18px; }
.yr + .yr { margin-top: 20px; }
.mas { columns: 3; column-gap: 28px; }
.mas > * { break-inside: avoid; margin-bottom: 40px; width: 100%; }
.card { display: flex; gap: 10px; }
.card.bx { padding: 18px; background: var(--bg); }
.io { position: relative; display: block; }
.io .ov { position: absolute; left: 10px; bottom: 10px; opacity: 0; transition: opacity .2s; background: var(--bg); padding: 2px 9px; border-radius: 999px; }
.io:hover .ov, .io:focus-visible .ov { opacity: 1; }
.series { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.series img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.lift { transition: transform .25s; } .lift:hover { transform: translateY(-3px); } .lift:hover .tt { color: var(--ac); }
.tt { transition: color .2s; }

/* item pages */
.fs { position: sticky; top: 24px; height: 0; z-index: 5; display: flex; justify-content: flex-end; margin-bottom: -56px; }
.fb { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; font: 700 13px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--ac); cursor: pointer; transition: color .2s; user-select: none; }
.fb:before { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--acf); border-radius: 5px 3px 6px 4px; background: var(--bg); filter: url(#rough); z-index: -1; transition: background .2s, border-color .2s; }
.fb .row { gap: 10px; }
.fi { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.fb:hover { color: var(--bg); } .fb:hover:before { background: var(--acf); }
.fb .tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); opacity: 0; transition: opacity .2s, transform .2s; font: 400 13px/1.4 var(--m); letter-spacing: .02em; text-transform: none; color: var(--fg2); background: var(--bg); padding: 4px 8px; white-space: nowrap; pointer-events: none; }
.fb:hover .tip { opacity: 1; transform: translate(0, -50%); }
.fb .on-t { display: none; }
#fx:checked ~ .z .fb .off-t { display: none; }
#fx:checked ~ .z .fb .on-t { display: flex; }
#fx:checked ~ .z .fb { color: var(--bg); }
#fx:checked ~ .z .fb:before { background: var(--acf); }
#fx:checked ~ .z .fb:hover:before { background: var(--fg); border-color: var(--fg); }
#fx:focus-visible ~ .z .fb { outline: 2px solid var(--ac); outline-offset: 4px; }
#fx:checked ~ .z .nf { display: none !important; }
#fx:checked ~ .z .ft { padding-top: 24px; }
.art-top { gap: 22px; max-width: 900px; padding-right: 140px; }
.info { gap: 14px; max-width: 900px; width: 100%; margin: 0 auto; }
.fig { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fig .im img { max-height: 86vh; object-fit: contain; }
.lead .im img { max-height: none; }
.hero { display: flex; justify-content: center; padding-top: 8px; }
.hero .im { max-width: 1000px; } .hero.drawing .im { max-width: 560px; }
.hero .im img { max-height: 86vh; width: auto; max-width: 100%; margin: 0 auto; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.vid { position: relative; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; background: #000; }
.vid iframe, .vid video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid.poster { background: none; aspect-ratio: auto; } .vid.poster .im img { aspect-ratio: 16 / 9; object-fit: cover; }
.cu-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 12px; }
.cu-grid.solo { grid-template-columns: minmax(0, 1fr); }
.cu-grid .info { padding-top: 64px; margin: 0; }
.kept { padding: 16px; gap: 12px; background: var(--bg); }
.kept .im.contain.big { aspect-ratio: 4 / 3; }
.portrait { display: flex; justify-content: center; padding: 30px 0; } .portrait .im.round { width: min(420px, 80%); }
.src { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-left: 6px; }

/* writing, as it comes from Notion */
.prose { display: flex; flex-direction: column; gap: 26px; max-width: 680px; width: 100%; margin: 0 auto; }
.prose.left { margin: 10px 0 0; gap: 18px; }
.lede { font-size: clamp(21px, 2vw, 25px); line-height: 1.5; margin: 0; color: var(--fg); }
.bt { font-size: 19px; line-height: 1.75; color: var(--fg2); margin: 0; }
.bt a, .lede a { text-decoration: underline; text-decoration-color: var(--ac); text-underline-offset: 4px; }
.hx1 { font-size: clamp(28px, 3vw, 36px); margin-top: 14px; }
.hx2 { font: 600 23px/1.3 var(--f); letter-spacing: -.01em; margin-top: 8px; }
.hx3 { font: 600 19px/1.3 var(--f); letter-spacing: 0; margin-top: 4px; }
.ul { margin: 0; padding-left: 24px; color: var(--fg2); font-size: 19px; line-height: 1.75; }
.ul li::marker { color: var(--ac); }
.qt { font: 500 clamp(28px, 3.2vw, 40px)/1.18 var(--f); letter-spacing: -.02em; color: var(--ac); margin: 12px 0; text-wrap: balance; }
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; background: var(--bg2); border-radius: 8px; font-size: 17px; line-height: 1.6; color: var(--fg2); }
.callout .ci { width: 22px; height: 22px; margin-top: 2px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 16px; align-items: start; }
.colm { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.divider { border: 0; border-top: 1.4px solid #4a443f; margin: 8px 0; }
.bm { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1.2px solid var(--line); border-radius: 8px; }
.bm:hover { border-color: var(--ac); }
.tg summary { cursor: pointer; font-weight: 500; }
.code { margin: 0; padding: 16px; background: var(--bg2); border-radius: 6px; overflow-x: auto; font: 14px/1.6 var(--m); }
.tbl { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
td, th { text-align: left; padding: 8px 14px 8px 0; font: 400 14px/1.4 var(--f); color: var(--fg2); border-bottom: 1px solid #2e2926; }
th { font: 400 12px var(--m); text-transform: uppercase; letter-spacing: .06em; color: var(--mu); }

/* connections */
.conn { padding: 32px; gap: 26px; background: var(--bg); }
.conn-h { font-size: 30px; display: flex; align-items: center; gap: 14px; }
.cg { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr) 80px minmax(0, 1fr); gap: 16px; align-items: center; }
.cc { gap: 26px; } .cc > .lb:first-child { margin-bottom: -14px; }
.fc, .fc-here { padding-top: 22px; }
.fc .down { display: none; }
.none { padding: 16px 0; }
.nd { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.nd:hover .tt { color: var(--ac); }
.lone { height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 14px; background: radial-gradient(#3a3430 1.2px, transparent 1.6px) 0 0 / 22px 22px; }
.lone .cd { margin-top: 6px; }

/* connect map */
.legend { flex-wrap: wrap; gap: 10px 24px; } .legend .lb { gap: 8px; }
.mapbox { overflow-x: auto; padding: 24px; }
.map { position: relative; margin: 0 auto; }
.mn { position: absolute; width: 150px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; font-size: 13px; }
.mn .cd { margin-top: 4px; }
.mn:hover .mt { color: var(--ac); }
.crow { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 120px; gap: 16px; align-items: center; padding: 8px 0; }
.cdt { text-align: right; }
.only-phone { display: none; }

/* about */
.about-lead { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.18; max-width: 980px; }
.arow { display: grid; grid-template-columns: 88px 220px minmax(0, 1fr); gap: 0 24px; align-items: center; padding: 28px 0; }
.arow p { margin: 0; font-size: 20px; line-height: 1.55; color: var(--fg2); max-width: 640px; }

/* not found */
.nf-main { flex: 1; align-items: center; justify-content: center; gap: 52px; text-align: center; padding: 80px 0; }
.nf-draw { width: min(580px, 100%); height: auto; overflow: visible; }

/* below this the text reaches the edge, so Focus floats in the bottom corner instead */
@media (max-width: 1100px) {
  .fs { position: fixed; top: auto; bottom: max(18px, env(safe-area-inset-bottom)); right: max(18px, env(safe-area-inset-right)); height: auto; margin: 0; }
  .fb { box-shadow: 0 6px 24px rgba(0, 0, 0, .5); border-radius: 6px; }
  .wrap:has(.fs) { padding-bottom: 96px; }
}

/* tablets */
@media (max-width: 1000px) {
  .mas { columns: 2; }
  .cu-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cu-grid .info { padding-top: 0; }
  .art-top { padding-right: 0; }
  .arow { grid-template-columns: 72px 160px minmax(0, 1fr); }
}

/* phones */
@media (max-width: 760px) {
  :root { --gut: 20px; --sw: 7.3px; }
  body { font-size: 16px; }
  .wrap { gap: 34px; padding-top: max(18px, env(safe-area-inset-top)); }
  .hd { gap: 6px; }
  .hd-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .logo { font-size: 30px; }
  .nav { width: 100%; flex-wrap: nowrap; gap: 0; }
  .nav .pill { flex: 1 1 auto; padding: 0 7px; gap: 6px; }
  .home { padding: 12px 0 0; gap: 36px; min-height: 0; }
  .home-line { font-size: 18px; }
  .dia { grid-template-columns: 1fr 1.1fr 1fr; }
  .big { width: 84px; height: 84px; }
  .word, .cw { font-size: 22px; }
  .vm, .cnl { gap: 10px; }
  .line { height: 84px; width: calc(100% + 40px); margin: 0 -20px; }
  .pv { display: none; }
  .home-latest { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
  .home-latest .col { gap: 8px; min-width: 0; }
  .home-latest .im img { height: 130px; object-fit: cover; }
  .home-latest .tt { font-size: 15px; line-height: 1.35; }
  .list-top { padding-top: 16px; gap: 14px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--gut)); }
  .mas { columns: 1; } .mas.cu { columns: 2; column-gap: 14px; }
  .mas > * { margin-bottom: 26px; }
  .mas.cu .card.bx { padding: 12px; }
  .mas.cu .t-s { font-size: 17px; }
  .mas.cu .cmt { font-size: 14px; }
  .im.round { width: 96px; }
  .bgm { width: 400px; height: 400px; left: -5px; top: 150px; transform: none; stroke-width: 1.5; }
  .fb .tip { display: none !important; }
  .art-top { padding-top: 0; gap: 16px; }
  .wrap:has(.fs) { padding-bottom: 96px; }
  .gallery { grid-template-columns: 1fr; gap: 12px; }
  .hero.drawing .im { max-width: 100%; }
  .kept { padding: 12px; }
  .portrait { padding: 10px 0; } .portrait .im.round { width: 240px; }
  .conn { padding: 22px; gap: 18px; }
  .conn-h { font-size: 24px; }
  .cg { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .cc { gap: 4px; } .cc > .lb:first-child { margin-bottom: 0; }
  .fc, .fc-here { padding-top: 0; }
  .fc .fan { display: none; } .fc .down { display: block; width: 20px; height: 34px; margin: 4px 0 4px 10px; }
  .lone { height: 220px; }
  .mapbox { padding: 8px; }
  .only-phone { display: block; }
  .crow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .crow .ca { padding-left: 10px; transform: rotate(90deg); width: 22px; }
  .cdt { text-align: left; padding-bottom: 6px; }
  .arow { grid-template-columns: 64px minmax(0, 1fr); gap: 6px 0; padding: 18px 0; }
  .arow p { grid-column: 1 / -1; font-size: 17px; }
  .nf-main { padding: 60px 0; gap: 36px; }
}

@media (hover: none) {
  .pv { display: none; } .io .ov { opacity: 1; }
  .home-latest { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 640px; }
  .home-latest .im img { height: 160px; object-fit: cover; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { transition: none !important; } }
