@font-face {
  font-family: Fraunces; src: url("/font/Fraunces.ttf") format("truetype");
  font-style: normal; font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: Barlow; src: url("/font/Barlow-SemiBold.ttf") format("truetype");
  font-style: normal; font-weight: 600; font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fcfbf7;
  --gallery: #f0f3ee;
  --ink: #1d3136;
  --quiet: #495c5e;
  --line: #cdd4ce;
  --accent: #855033;
  --pigment: #285d68;
  --serif: Fraunces, "Iowan Old Style", Georgia, serif;
  --sans: Barlow, "Segoe UI", sans-serif;
  --edge: clamp(1.25rem, 5.7vw, 6.25rem);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font: 1.03rem/1.65 "Segoe UI", system-ui, sans-serif; }
::selection { color: #172f30; background: #e7c7a2; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ul { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 460; line-height: 1.05; letter-spacing: -.052em; text-wrap: balance; }
h1 { font-size: clamp(3.55rem, 7vw, 6.9rem); }
h2 { font-size: clamp(2.35rem, 4vw, 4.1rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 2.55rem); }
a { color: inherit; text-underline-offset: .26em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--pigment); outline-offset: 4px; }
.wrap { width: min(calc(100% - var(--edge) * 2), 82rem); margin-inline: auto; }
.skip:not(:focus), .desk-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 20; top: .7rem; left: 1rem; padding: .6rem 1rem; background: var(--paper); }
.mast { position: relative; z-index: 2; background: var(--paper); }
.mast > .wrap, .colophon > .wrap { display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; }
.mast > .wrap { min-height: clamp(4.4rem, 6vw, 5.9rem); border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; flex: none; align-items: center; }
.wordmark img { width: auto; height: clamp(2rem, 3.25vw, 2.8rem); max-width: 11.6rem; }
.mast nav, .colophon nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(1rem, 2.8vw, 2.9rem); }
.mast nav a, .colophon nav a { position: relative; padding-block: .7rem; font: 600 1rem/1.4 var(--sans); text-decoration: none; }
.mast nav a:hover, .mast nav a[aria-current] { color: var(--pigment); }
.mast nav a:hover::after, .mast nav a[aria-current]::after {
  position: absolute; content: ""; left: 1px; bottom: .28rem; width: 94%; height: 2px; background: currentColor;
  clip-path: polygon(0 60%, 46% 0, 100% 32%, 91% 61%, 33% 100%, 0 96%);
}
.stamp-link, .plain-link, .crumb a, .return-link { font: 600 1rem/1.4 var(--sans); }
.stamp-link { display: inline-flex; align-items: center; justify-content: center; padding: .79rem 1.65rem; border-radius: 80% 6% 75% 4% / 10% 12% 10% 6%; color: #fff; background: var(--ink); text-decoration: none; }
.stamp-link:hover { background: var(--pigment); }
.plain-link, .crumb a, .return-link { color: var(--pigment); text-decoration-thickness: 1px; }
.pencil { color: var(--accent); font: 600 .97rem/1.35 var(--sans); letter-spacing: .025em; }
.desk { isolation: isolate; overflow: hidden; background: var(--paper); }
.desk-stage { position: relative; isolation: isolate; width: min(100%, 105rem); margin-inline: auto; touch-action: pan-y pinch-zoom; }
.desk-stage::before, .page-title::before, .letter::after, .sketch-section::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; background-color: var(--pigment);
  -webkit-mask: url("/obrazy/smuga-piora.webp") center / 100% 100% no-repeat;
  mask: url("/obrazy/smuga-piora.webp") center / 100% 100% no-repeat;
}
.desk-stage::before { width: min(80vw, 68rem); height: 66%; top: -3%; right: -14%; transform: rotate(-6deg); opacity: .14; }
.desk-column { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: clamp(30rem, 40vw, 41rem); padding-block: 4rem 3rem; pointer-events: none; }
.desk-column a { pointer-events: auto; }
.desk h1 { font-weight: 410; font-size: clamp(4.15rem, 6.85vw, 7.6rem); letter-spacing: -.065em; line-height: .96; }
.desk h1 em { font: italic 1.14em/.87 Georgia, "Times New Roman", serif; letter-spacing: -.08em; }
.desk h1 span { color: var(--accent); }
.desk p { max-width: min(35%, 21rem); color: var(--quiet); font-size: clamp(1.04rem, 1.35vw, 1.22rem); line-height: 1.55; margin: 1.5rem 0 1.5rem; }
.desk-art { position: absolute; z-index: -1; right: 2%; top: 1%; display: block; width: 61%; height: 98%; mix-blend-mode: multiply; }
.desk-art img { width: 100%; height: 100%; object-fit: contain; }

.desk-art[data-arriving], .desk-art[data-outgoing] {
  mask-size: 300% 100%; mask-repeat: no-repeat;
  animation: ink-sweep .9s cubic-bezier(.27,.12,.43,.98) both;
}
.desk-art[data-arriving] { mask-image: url("/obrazy/naplyw-tuszu.webp"); }
.desk-art[data-outgoing] { pointer-events: none; mask-image: url("/obrazy/odplyw-tuszu.webp"); }
@keyframes ink-sweep { from { mask-position: 100% 50%; } to { mask-position: 0% 50%; } }
.desk-rail { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; padding-block: .24rem .9rem; }
.desk-credit { display: inline-flex; gap: .7rem; align-items: center; color: var(--ink); font: italic clamp(1.05rem, 1.45vw, 1.3rem)/1.4 Georgia, serif; text-decoration-thickness: 1px; text-decoration-color: #9caaa8; }
.desk-credit::before { content: ""; display: block; width: 2.2rem; height: .58rem; background: var(--pigment); opacity: .8; mask: url("/obrazy/smuga-piora.webp") center / 100% 100% no-repeat; }
.desk-controls { display: flex; gap: .1rem; align-items: center; color: var(--ink); }
.desk-controls[hidden] { display: none; }
.desk-controls button { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; cursor: pointer; color: inherit; background: transparent; padding: 0; border: 0; }
.desk-controls button:hover, .desk-controls button:focus-visible { background: #e7efec; border-radius: 50%; }
.desk-step { font: 1.5rem/1 Georgia, serif; }
.desk-count { font: 600 .95rem/1 var(--sans); color: var(--quiet); font-variant-numeric: tabular-nums; white-space: nowrap; }
.desk-toggle span { width: 9px; height: 12px; border-inline: 2px solid currentColor; }
.desk-toggle[data-paused] span { width: 0; height: 0; border: 0; border-left: 9px solid currentColor; border-block: 6px solid transparent; }
.prints-section, .work-section, .media-gallery, .reference, .sketch-section { padding-block: clamp(3.5rem, 6vw, 6.5rem); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: clamp(1.6rem, 3vw, 2.8rem); }
.section-heading .plain-link { flex: none; }
.active-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4.3vw, 4.4rem); }
.print-card { color: var(--ink); text-decoration: none; min-width: 0; }
.print-card:hover h3 { text-decoration: underline; text-decoration-color: #adc2bf; text-decoration-thickness: 1px; }
.print-frame { overflow: hidden; position: relative; }
.game-art, .preview-art { position: relative; }
.game-art > img:first-child { width: 100%; height: auto; }
.game-art .cover-title { position: absolute; width: 50%; height: auto; left: 3%; top: 20%; }
.active-grid .game-art, .work-print .preview-art { aspect-ratio: 1.9; background: #e4e9e2; overflow: hidden; }
.active-grid .game-art > img:first-child, .preview-art > img { width: 100%; height: 100%; object-fit: cover; }
.print-caption { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .8rem 0; }
.print-caption h3 { font-size: clamp(1.6rem, 2.8vw, 2.8rem); }
.print-caption .pencil { display: block; margin-top: .35rem; }
.pencil-sample { width: clamp(4.9rem,8vw,7.8rem); height: 5rem; object-fit: contain; mix-blend-mode: multiply; }
.work-section, .reference { background: var(--gallery); }
.work-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: clamp(1.7rem,3.8vw,4rem) clamp(1.1rem,3vw,3rem); }
.work-print { grid-column: span 2; display: block; }
.work-print:first-child, .work-print:nth-child(2) { grid-column: span 3; }
.work-print h3 { padding-top: .85rem; }
.page-title { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(3.3rem, 6.5vw, 7rem) clamp(2.5rem, 4.3vw, 5rem); }
.page-title::before { width: 43%; height: 95%; right: 0; bottom: 0; opacity: .18; }
.page-title .crumb { margin: 0 0 1.1rem; }
.in-catalog, .all-work { padding-bottom: clamp(3rem,6vw,6.5rem); }
.folio-head { padding-block: 1.8rem clamp(3rem,6vw,6.5rem); }
.crumb { font: 600 .98rem/1.4 var(--sans); }
.folio { display: grid; grid-template-columns: .87fr 1.13fr; gap: clamp(1.8rem,5vw,5.5rem); align-items: center; margin-top: clamp(2rem,4vw,4.2rem); }
.folio-copy, .folio-cover { min-width: 0; }
.folio-copy .pencil { margin-bottom: .85rem; }
.folio h1 { font-size: clamp(3rem,5.4vw,6.2rem); }
.synopsis { font-size: clamp(1.07rem,1.42vw,1.35rem); line-height: 1.65; color: var(--quiet); text-wrap: pretty; }
.folio .synopsis { margin-top: 1.4rem; }
.folio .stamp-link, .about-copy .stamp-link { margin-top: 1.5rem; }
.film-panel { padding-block: clamp(3rem,5.5vw,5.5rem); background: #19333a; color: #fcfbf7; }
.film-panel .section-heading { margin-bottom: 1.7rem; }
.film-panel video { display: block; width: 100%; height: auto; max-height: 76vh; background: #10232b; object-fit: contain; }
.video-caption, .gallery-print figcaption, .landscape-stack figcaption, .sketch-layout figure figcaption { font-size: clamp(.98rem,1.3vw,1.09rem); line-height: 1.6; }
.video-caption { margin-top: 1rem; max-width: 72ch; color: #e2ebe6; }
.film-credits { margin-top: 1.1rem; font-size: .95rem; }
.film-credits h3 { margin-bottom: .25rem; font: 600 1rem/1.4 var(--sans); letter-spacing: 0; }
.sketch-section { position: relative; isolation: isolate; overflow: hidden; background: #f4f4ed; }
.sketch-section::before { opacity: .1; width: 66%; height: 85%; left: -12%; top: 15%; }
.sketch-layout { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: clamp(1.3rem,4.2vw,4.2rem); }
.sketch-layout .pencil { margin-bottom: .7rem; }
.sketch-layout .section-heading { margin: 0; }
.sketch-layout figure img { width: 100%; height: auto; max-height: 29rem; object-fit: contain; mix-blend-mode: multiply; }
.sketch-layout figure a, .gallery-print a { display: block; cursor: zoom-in; }
.sketch-layout figcaption { padding: .75rem .4rem 0; color: var(--quiet); max-width: 60ch; margin-inline: auto; }
.gallery { display: grid; align-items: start; gap: clamp(1rem,2.7vw,2.9rem); }
.gallery.three { grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 59rem; margin-inline: auto; }
.gallery.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.gallery-print { min-width: 0; }
.gallery-print img { width: 100%; height: auto; }
.gallery-print figcaption { margin-top: .75rem; color: var(--quiet); }
.return-link { display: inline-block; margin-top: 2.4rem; }
.reference-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.reference-links h3 { font-size: clamp(1.45rem,2.6vw,2.3rem); margin-bottom: .7rem; }
.reference-links a { display: inline-block; margin: .25rem 1.4rem .3rem 0; font: 600 1.05rem/1.5 var(--sans); color: var(--pigment); }
.about, .letter { margin-block: clamp(3.8rem,7vw,7.5rem); display: grid; align-items: center; gap: clamp(2.5rem,6vw,6rem); }
.about { grid-template-columns: 1fr 1.05fr; }
.about-copy > p, .letter-copy > p { margin-top: 1.15rem; }
.landscape-stack { position: relative; min-width: 0; display: grid; grid-template-columns: repeat(10,1fr); align-items: center; padding: 1rem .5rem; }
.landscape-stack figure { grid-row: 1; grid-column: 1/span 6; transform: translateY(-9%); }
.landscape-stack figure + figure { grid-column: 5/span 6; transform: translateY(11%); padding: .55rem 0 0 .55rem; background: var(--paper); }
.landscape-stack figure img { width: 100%; height: auto; }
.landscape-stack figcaption { padding-top: .35rem; color: var(--quiet); }
.letter { position: relative; isolation: isolate; overflow: hidden; grid-template-columns: 1fr 1fr; padding: clamp(2rem,5vw,5rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.letter::after { width: 47%; height: 75%; right: -12%; bottom: -8%; opacity: .13; }
.address { border-left: 1px solid var(--line); padding-left: 12%; min-height: 12rem; display: flex; gap: .7rem; flex-direction: column; align-items: flex-start; justify-content: center; }
.address img { width: 3.6rem; height: auto; margin-bottom: .6rem; }
.address a { color: var(--pigment); font: 600 clamp(1.1rem,1.9vw,1.65rem)/1.3 var(--sans); overflow-wrap: anywhere; }
.colophon { padding-block: clamp(2.4rem,4vw,4rem); background: #19333a; color: #f7f8f2; }
.colophon .wordmark img { filter: brightness(0) invert(1); opacity: .95; }
.colophon a:focus-visible, .film-panel a:focus-visible { outline-color: #eac99e; }
.colophon .mail { color: #e5e9d8; font: 600 .99rem/1.5 var(--sans); }
.print-dialog { margin: auto; width: max-content; max-width: min(94vw,76rem); max-height: 95vh; padding: clamp(.65rem,1.2vw,1.1rem); border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
.print-dialog::backdrop { background: #10262be8; }
.dialog-row { display: flex; align-items: center; gap: 1.1rem; justify-content: space-between; }
.print-dialog button { font: 600 1rem var(--sans); background: var(--paper); color: var(--ink); border: 1px solid var(--line); padding: .65rem .85rem; cursor: pointer; }
.print-dialog .large-print { width: auto; height: auto; max-width: 100%; max-height: 68vh; margin: .7rem auto; object-fit: contain; }
.print-dialog .dialog-caption { font-size: 1rem; max-width: 72ch; }
.print-dialog .dialog-count { color: var(--quiet); white-space: nowrap; font: 600 .94rem var(--sans); }
.print-dialog .full-print { display: inline-block; padding-block: .4rem; color: var(--pigment); font: 600 1rem/1.4 var(--sans); }
.print-dialog .navigation { margin-top: .7rem; }
body:has(.print-dialog[open]) { overflow: hidden; }
@media (max-width: 62rem) {
  .desk-column { min-height: clamp(25rem,48vw,31rem); }
  .desk h1 { font-size: clamp(3.85rem,7.8vw,5.3rem); }
  .colophon > .wrap { flex-wrap: wrap; }
  .folio { gap: 2rem; }
}
@media (max-width: 42.5rem) {
  .mast > .wrap { flex-wrap: wrap; justify-content: center; min-height: unset; gap: .1rem .9rem; padding-block: .6rem .3rem; }
  .mast nav { justify-content: space-between; width: 100%; gap: .55rem; }
  .mast nav a { padding-block: .5rem; }
  .wordmark img { height: 2.05rem; }
  .desk-stage { display: flex; flex-direction: column; }
  .desk-stage::before { width: 100%; height: 56%; top: 46%; right: -20%; }
  .desk-column { order: 0; min-height: 0; padding-block: 2.3rem .6rem; }
  .desk h1 { font-size: clamp(3.55rem,10vw,4.65rem); line-height: 1; }
  .desk h1 br { display: none; }
  .desk h1 em { font-size: 1.02em; }
  .desk p { max-width: 28rem; margin: 1rem 0 1rem; }
  .desk-art { position: relative; order: 1; inset: auto; width: 100%; height: auto; z-index: 0; }
  .desk-art img { width: 100%; aspect-ratio: 900/620; height: auto; }
  .desk-art[data-outgoing] { position: absolute; inset: auto 0 0; }
  .desk-rail { padding-block: .1rem .4rem; }
  .desk-credit::before { width: 1.3rem; }
  .section-heading { flex-wrap: wrap; gap: .55rem 1.2rem; }
  .active-grid, .folio, .sketch-layout, .about, .letter { grid-template-columns: minmax(0,1fr); }
  .active-grid { gap: 2rem; }
  .work-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .work-print, .work-print:first-child, .work-print:nth-child(2) { grid-column: auto; }
  .work-print:first-child { grid-column: 1/-1; }
  .sketch-section::before { width: 100%; opacity: .08; }
  .gallery.two { grid-template-columns: minmax(0,1fr); }
  .gallery.three { gap: 1rem; grid-template-columns: repeat(auto-fit,minmax(min(10rem,100%),1fr)); }
  .reference-links { grid-template-columns: 1fr; }
  .address { min-height: auto; padding: 1.3rem 0 0; border: 0; border-top: 1px solid var(--line); }
  .letter { padding-inline: .2rem; }
  .colophon > .wrap { flex-direction: column; align-items: flex-start; }
  .colophon nav { gap: 1.2rem; }
}
@media (min-width: 32rem) and (max-width: 42.5rem) {
  .mast > .wrap { flex-wrap: nowrap; justify-content: space-between; padding-block: .9rem; }
  .mast nav { width: auto; gap: 1.25rem; }
  .desk-art img { max-height: 23rem; }
}
@media (max-width: 23rem) {
  :root { --edge: 1rem; }
  .desk h1 { font-size: 2.95rem; }
  .work-grid { grid-template-columns: 1fr; }
  .work-print:first-child { grid-column: auto; }
  .desk-controls { gap: 0; }
  .desk-controls button { min-width: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
/* A scan of a loaded brush supplies the edges of the controls and the fine pen rules. */
:root { --brush: url("/obrazy/slad-tuszu.webp"); }
.stamp-link, .print-dialog button { isolation: isolate; position: relative; border: 0; border-radius: 0; background: transparent; padding: .8rem 1.8rem; color: #fff; }
.stamp-link::before, .print-dialog button::before, .desk-controls button::before {
  position: absolute; z-index: -1; content: ""; inset: 0; background: linear-gradient(98deg,#365f64 0%,#1c373c 23%,#234347 70%,#406469);
  -webkit-mask: var(--brush) center / 100% 100% no-repeat;
  mask: var(--brush) center / 100% 100% no-repeat;
  transform: rotate(-1deg); transition: transform .24s ease, background-color .24s ease;
}
.stamp-link:hover, .print-dialog button:hover { background: transparent; }
.stamp-link:hover::before, .print-dialog button:hover::before { transform: rotate(.7deg) scale(1.035,1.04); background: linear-gradient(105deg,#486d73,#285764 58%,#36595d); }
.mast nav a:hover::after, .mast nav a[aria-current]::after {
  height: 3px; clip-path: none; -webkit-mask: var(--brush) center / 100% 100% no-repeat; mask: var(--brush) center / 100% 100% no-repeat;
}
.desk-controls button { position: relative; isolation: isolate; }
.desk-controls button::before { inset: .3rem .1rem; opacity: 0; transform: rotate(-5deg); }
.desk-controls button:hover, .desk-controls button:focus-visible { color: #fff; background: transparent; }
.desk-controls button:hover::before, .desk-controls button:focus-visible::before { opacity: 1; }
.desk h1 em { position: relative; }
.desk h1 em::after {
  content: ""; display: block; position: absolute; z-index: -1; bottom: -.012em; left: -.03em; width: 110%; height: .075em;
  background: #36828d; opacity: .46; transform: rotate(-5deg); -webkit-mask: var(--brush) center / 100% 100% no-repeat; mask: var(--brush) center / 100% 100% no-repeat;
}
@supports (background-clip:text) {
  .desk h1, .section-heading h2, .folio h1, .page-title h1, .about h1, .letter h1 {
    background: linear-gradient(110deg,#21393d 2%,#28494e 34%,#496764 50%,#1c393d 80%);
    background-clip: text; -webkit-background-clip: text; color: transparent;
  }
  .desk h1 span { color: #955938; }
  .film-panel .section-heading h2 { color: var(--paper); background: none; }
}
@media (forced-colors: active) {
  .desk h1, .section-heading h2, .folio h1, .page-title h1, .about h1, .letter h1 { color: CanvasText; background: none; }
  .stamp-link, .print-dialog button { border: 1px solid ButtonText; color: ButtonText; background: ButtonFace; }
}
/* Give multiply blending the same sheet behind every brush mark. */
.desk-stage { background-color: var(--paper); }
.desk h1 { color: #233d40; background: none; }
.desk h1 em { color: #345456; }
@media (max-width: 42.5rem) {
  .desk h1 br { display: initial; }
}

@media (prefers-reduced-motion: reduce) { .desk-art[data-arriving] { mask: none; } .desk-art[data-outgoing] { display: none; } }
