@font-face{font-family:Manrope;src:url(../assets/fonts/manrope-variable-cyrillic.woff2) format('woff2');font-weight:200 800;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Manrope;src:url(../assets/fonts/manrope-variable-latin.woff2) format('woff2');font-weight:200 800;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2190-219F,U+2212,U+FEFF,U+FFFD}
@font-face{font-family:Caveat;src:url(../assets/fonts/caveat-cyrillic.woff2) format('woff2');font-weight:500;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Caveat;src:url(../assets/fonts/caveat-latin.woff2) format('woff2');font-weight:500;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F}
:root{--paper:#f8f5ef;--ink:#292720;--muted:#635e55;--rust:#99452f;--line:#cfc9bb;--page:min(87.5%,80rem);--serif:Georgia,'Times New Roman',serif;--hand:Caveat,'Segoe Print',cursive;color-scheme:light}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:22px}
body{margin:0;background:var(--paper);color:var(--ink);font:400 1rem/1.62 Manrope,system-ui,sans-serif}
button,summary{font:inherit;color:inherit}
button,summary,a{touch-action:manipulation}
button,summary{cursor:pointer}
a{color:inherit;text-decoration-thickness:1px;text-underline-offset:.23em}
a:hover,summary:hover{color:var(--rust)}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #ad5032;outline-offset:4px}
img{display:block;max-width:100%}
[hidden]{display:none!important}
.wrap{width:var(--page);margin-inline:auto}
.sr,.skip:not(:focus){position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%)}
.skip:focus{position:fixed;top:10px;left:10px;z-index:99;background:var(--paper);padding:10px}
.mast{display:flex;align-items:center;gap:2.6rem;min-height:82px;border-bottom:1px solid var(--line);position:relative;z-index:2}
.brand{display:inline-flex;align-items:center;gap:.7rem;margin-right:auto;font:600 clamp(1.15rem,1.55vw,1.55rem)/1.2 var(--serif);letter-spacing:-.035em;text-decoration:none}
.brand img{width:32px;height:32px}
.section-nav,.langs{display:flex;align-items:center;gap:1.75rem}
.mast nav a{display:inline-flex;min-height:44px;align-items:center;text-decoration:none;font-weight:600;font-size:.91rem}
.mast nav a:hover{text-decoration:underline}
.langs{gap:.08rem;border-left:1px solid var(--line);padding-left:1.25rem}
.langs a{min-width:42px;justify-content:center}
.langs a[aria-current]{color:var(--rust);text-decoration:underline;text-underline-offset:.32rem}
h1,h2,h3,p,figure{margin:0}
h1,h2,h3{font-family:var(--serif);font-weight:400;letter-spacing:-.046em;line-height:1.07}
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);grid-template-areas:"title film" "copy film";column-gap:clamp(1.5rem,4vw,4rem);padding:clamp(2rem,4.4vw,4.5rem) 0 clamp(2rem,4.2vw,4rem)}
.hero h1{grid-area:title;align-self:end}
.hero-copy{grid-area:copy;align-self:start}
.hero-copy p a{text-decoration-color:#a89c8a}
.app-index summary{display:list-item;width:fit-content;max-width:100%;padding:.62rem .15rem;min-height:44px;color:var(--rust);font-size:.96rem;font-weight:650}
.app-index-list{display:grid;gap:.8rem;padding:.8rem 0;border-block:1px solid var(--line)}
.app-index-list strong{font:italic 1.25rem/1.2 var(--serif)}
.app-index-list ul{display:flex;flex-wrap:wrap;gap:0 1rem;list-style:none;padding:0;margin:.2rem 0 0}
.app-index-list a{display:inline-flex;align-items:center;min-height:44px;font-size:.92rem}
h1{font-size:clamp(4rem,6.7vw,7rem);line-height:.98}
h1 span,h1 em{display:block}
h1 em{color:var(--rust);font-weight:400}
:lang(ru) h1{font-size:clamp(3.4rem,5.5vw,5.7rem)}
:lang(ru) h1 em{font-size:.84em;line-height:1.17}
.hero-copy p{max-width:32rem;margin:1.6rem 0 1.6rem;font-size:clamp(1rem,1.28vw,1.15rem);line-height:1.64;color:#504c43}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.8rem 1.45rem;border:1px solid var(--ink);border-radius:5px;background:var(--ink);color:white;text-decoration:none;font-size:.96rem;font-weight:650}
.button:hover{background:#544536;color:#fff}
.bench{
  grid-area:film;align-self:center;justify-self:center;position:relative;isolation:isolate;
  width:100%;max-width:39rem;min-width:0;padding:clamp(1rem,2.4vw,1.7rem);
}
.bench::before{
  content:"";position:absolute;inset:0;z-index:-1;transform:rotate(1deg);pointer-events:none;
  background-color:#f1ecdf;background-image:linear-gradient(#ada68c29 1px,transparent 1px),linear-gradient(90deg,#ada68c29 1px,transparent 1px);
  background-size:19px 19px;border:1px solid #d8d0be;box-shadow:0 3px 8px #3d2c1c12;
}
.bench-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.35rem .85rem}
.bench-heading{margin-bottom:.55rem;font:500 clamp(1.6rem,2.65vw,2.25rem)/1.1 var(--hand);color:#44372a}
.bench-credit{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:0 1rem;border-top:1px solid #cbbfa9;margin-top:.8rem;padding-top:.4rem}
.bench-credit h2{font:500 1.15rem/1.35 var(--serif);letter-spacing:-.02em}
.bench-credit .actions{margin:0;min-width:0}
.bench-credit:has(.gallery-details[open]) .actions{width:100%}
.film-mount{
  position:relative;padding:clamp(11px,1.25vw,18px) clamp(6px,.8vw,11px);
  background:#fffaf0;box-shadow:0 1px 1px #51432d40,1px 5px 9px #3f30202b;transition:background .24s ease;
}
.bench[data-ready]:not([data-printed]) .film-mount{background:#39271d}
.bench[data-ready]:not([data-printed]) .film-mount::before,
.bench[data-ready]:not([data-printed]) .film-mount::after{
  content:"";position:absolute;left:3%;right:3%;height:clamp(4px,.45vw,7px);
  background:repeating-linear-gradient(90deg,#e7ddc7 0 9px,transparent 9px 24px);
}
.film-mount::before{top:3px}.film-mount::after{bottom:3px}
.film-surface{
  --lens-radius:clamp(2.65rem,5.4vw,4.9rem);
  position:relative;overflow:hidden;aspect-ratio:3/2;background:#d4c2a0;
}
.film-surface img{display:block;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}
.bench[data-ready]:not([data-printed]) .film-surface{touch-action:pinch-zoom;cursor:crosshair;user-select:none;-webkit-touch-callout:none}
.bench[data-ready] .film-base{filter:invert(1) sepia(.85) saturate(1.8) brightness(.85)}
.film-window{display:none;position:absolute;inset:0;pointer-events:none;clip-path:circle(var(--lens-radius) at var(--lens-x) var(--lens-y))}
.bench[data-ready] .film-window{display:block}
.film-window img{transform:scale(1.22);transform-origin:var(--lens-x) var(--lens-y)}
.bench[data-printed] .film-window{clip-path:circle(150% at var(--lens-x) var(--lens-y));transition:clip-path .38s ease-out}
.bench[data-printed] .film-window img{transform:scale(1);transition:transform .38s ease-out}
.film-lens{
  position:absolute;left:var(--lens-x);top:var(--lens-y);transform:translate(-50%,-50%);
  width:calc(var(--lens-radius) * 2);height:calc(var(--lens-radius) * 2);padding:0;
  border:3px solid #eee5d0;border-radius:50%;background:transparent;appearance:none;
  box-shadow:0 0 0 2px #32291e,1px 4px 7px #1d151278,inset 0 0 0 1px #362d2866;
  cursor:grab;touch-action:pinch-zoom;
}
.film-lens:active{cursor:grabbing}
.film-lens:focus-visible{outline:3px solid #fff;outline-offset:-7px}
.bench[data-ready] .bench-tools{margin-top:.85rem}
.bench-hint{font:500 clamp(1.15rem,1.7vw,1.45rem)/1.2 var(--hand);color:#504336}
.print-action{
  min-height:44px;max-width:100%;padding:.55rem 1.05rem;border:1px solid #7e3827;border-radius:3px;
  background:var(--rust);color:#fff9ed;font-weight:650;font-size:.94rem;
}
.print-action:hover{background:#803822}
h2{font-size:clamp(2.35rem,3.7vw,4rem)}
.app-card{min-width:0;scroll-margin-top:16px}
.actions{display:flex;align-items:baseline;flex-wrap:wrap;gap:.25rem 1.1rem;margin-top:.65rem}
.store,.gallery-details summary{display:inline-flex;align-items:center;min-height:44px;font-size:.92rem;font-weight:650}
.store{color:var(--rust)}
.gallery-details{min-width:0}
.gallery-details summary{list-style:none;text-decoration:underline;text-underline-offset:.22em;gap:.26em}
.gallery-details summary::-webkit-details-marker{display:none}
.gallery-details[open]{flex:1 0 100%}
.gallery-details ol{display:flex;gap:.75rem;overflow:auto;padding:.4rem .4rem 1rem;margin:0;list-style:none}
.gallery-details ol li{flex:0 0 min(70%,12rem)}
.gallery-details ol img{width:100%;height:auto}
.gallery-details ol span{display:block;font-size:.88rem}
.colophon{margin-top:clamp(3rem,6vw,6rem);background:#eee7d9;border-top:1px solid var(--line)}
.endnote{
  display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);grid-template-areas:"heading letter" "top letter";
  gap:1rem clamp(1.5rem,4vw,4rem);padding-block:clamp(2.3rem,5vw,4.5rem)
}
.endnote h2{grid-area:heading;font-style:italic;color:var(--rust)}
.endnote-letter{grid-area:letter;min-width:0;max-width:44rem}
.endnote-letter>p:first-child{max-width:43ch;font:400 clamp(1.22rem,2vw,1.6rem)/1.5 var(--serif)}
.endnote .signature{margin:.7rem 0 1.2rem;font:500 clamp(1.5rem,2.4vw,2rem)/1.2 var(--hand)}
.endnote-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.2rem 1.2rem}
.endnote-email,.back-to-top{display:inline-flex;align-items:center;min-height:44px;color:var(--muted);font-size:.92rem;overflow-wrap:anywhere}
.back-to-top{grid-area:top;align-self:end;justify-self:start}
dialog{background:var(--paper);color:var(--ink);border:1px solid #958574;border-radius:8px;padding:1rem 1.4rem;max-width:min(95vw,42rem);width:36rem;max-height:94dvh;overflow:auto}
dialog::backdrop{background:#29241dd6}
.dialog-head,.dialog-controls{display:flex;align-items:center;gap:1rem;justify-content:space-between}
.dialog-head h2{font-size:1.55rem}
dialog button{border:1px solid #baad9b;border-radius:5px;background:#fffaf1;padding:.45rem .75rem;min-width:44px;min-height:44px;font-size:.95rem}
dialog figure{display:grid;justify-items:center;gap:.55rem;margin:.75rem auto}
dialog figure img{max-height:57dvh;width:auto;height:auto;max-width:100%;object-fit:contain}
dialog figcaption{text-align:center;font-size:.9rem;color:var(--muted)}
.dialog-controls{justify-content:center}.dialog-controls button{font:1.7rem/1 var(--serif)}
.dialog-controls output{min-width:5rem;text-align:center}
body:has(dialog[open]){overflow:hidden}
@media(max-width:1050px){:root{--page:90%}.mast{gap:1.3rem}.section-nav{gap:1rem}.hero{grid-template-columns:.95fr 1.05fr}}
@media(max-width:760px){
  :root{--page:91%}.mast{min-height:65px;flex-wrap:wrap;justify-content:space-between;gap:0 .6rem}.brand{min-height:54px}.brand img{width:28px;height:28px}.langs{border:0;padding:0}.section-nav{order:3;width:100%;justify-content:flex-start;gap:1.4rem;border-top:1px solid #ded8cc}.mast nav a{font-size:.88rem}
  .hero{grid-template-columns:1fr;grid-template-areas:"title" "copy" "film";padding:1.3rem 0;gap:.75rem}.hero-copy p{margin:0 0 .3rem;max-width:36rem}.hero h1{font-size:clamp(3.25rem,10vw,5rem)}.hero h1 span,.hero h1 em{display:inline}.hero h1 span::after{content:' '}.hero h1 em{line-height:1.05}html:lang(ru) .hero h1{font-size:clamp(2.65rem,8.8vw,4.35rem)}
  .bench{max-width:34rem}html:lang(ru) .hero h1 span,html:lang(ru) .hero h1 em{display:block}
  .endnote{grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "letter" "top"}
}
@media(max-width:550px){.hero-copy p{font-size:1rem}.brand{font-size:1.12rem}}
@media(max-width:550px){.bench-tools{grid-template-columns:minmax(0,1fr);justify-items:start}}
@media(max-width:550px) and (max-height:720px){
  .hero{gap:.4rem;padding-top:.8rem}
  .hero-copy{display:flex;flex-direction:column}
  .app-index{order:-1}
  .hero-copy:has(.app-index:not([open])) > p{display:none}
  .hero-copy:has(.app-index[open]) > p{margin-top:.75rem}
}
@media(max-width:550px) and (max-height:600px){
  .film-surface{aspect-ratio:2}
  .bench-tools{grid-template-columns:minmax(0,1fr) auto;min-height:3.25rem;justify-items:stretch}
  .bench-hint{font-size:1rem}
  .print-action{padding-inline:.65rem}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.film-mount,.bench[data-printed] .film-window,.bench[data-printed] .film-window img{transition:none}}
@media(max-width:320px){.brand{margin:0}.section-nav{gap:.65rem;flex-wrap:wrap}.hero h1 em{overflow-wrap:break-word}.mast{justify-content:start}}

.full-screen-link{font-size:.9rem;color:var(--rust);display:inline-flex;align-items:center;min-height:44px}
/* Allow the layout to reflow when the reader enlarges their default text. */
.section-nav{flex-wrap:wrap}
.hero-copy{min-width:0}
h1,h2,h3{overflow-wrap:break-word;hyphens:manual}
@media(max-width:760px){
  .hero{grid-template-columns:minmax(0,1fr)}
  .section-nav{column-gap:clamp(12px,4vw,24px);row-gap:0}
  html:lang(ru) .hero h1{font-size:clamp(2rem,calc(1.05rem + 5.8vw),4.35rem)}
  .hero h1{font-size:clamp(2.2rem,calc(1.25rem + 6.5vw),5rem)}
}
.dialog-head h2{min-width:0}
@media(max-width:550px){.dialog-head{flex-wrap:wrap}}
