:root{--ink:#e8e1cf;--dim:#9f9d91;--red:#c7513d;--line:#39382f;--bg:#11100c;--paper:#cbbb91;--panel:#191812}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Manrope,Arial,sans-serif}body:before{content:"";position:fixed;inset:0;z-index:20;pointer-events:none;opacity:.04;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}.topbar{height:74px;padding:0 4vw;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:11px;letter-spacing:.16em}.topbar a,.hero a,.sources a,footer a{color:var(--ink);text-underline-offset:5px}.topbar a{text-decoration:none}.brand span{color:var(--red);margin-right:8px}.hero{min-height:calc(100vh - 74px);min-height:calc(100svh - 74px);display:grid;grid-template-columns:.72fr 1.28fr;gap:5vw;padding:5vw 4vw;align-items:center}.hero h1,.intro h2,.gallery h2,.history h2,.sources h2{font-size:clamp(56px,7.7vw,126px);line-height:.82;letter-spacing:-.06em;margin:.2em 0;font-weight:600}.hero h1 em,.intro h2 em,.gallery h2 em,.history h2 em{font-family:'PT Serif',serif;font-weight:400;color:var(--paper)}.lead{max-width:570px;color:#c0beb3;font:22px/1.5 'PT Serif',serif}.hero-plate{margin:0;min-width:0}.hero-plate a{display:block;overflow:hidden;max-height:77vh;background:#c7b893}.hero-plate img{display:block;width:100%;height:auto;transform:scale(1.02);box-shadow:0 24px 80px #000}.hero-plate figcaption{display:flex;justify-content:space-between;gap:20px;font-size:9px;letter-spacing:.12em;color:var(--dim);margin-top:12px}.eyebrow,.index,.stamp,.source-label{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--red)}.intro,.translation,.history,.sources{padding:9vw 4vw;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 3fr;gap:4vw}.intro h2{font-size:clamp(42px,6vw,88px);margin-top:0}.intro>div>p{font:clamp(20px,2vw,30px)/1.55 'PT Serif',serif;max-width:1050px}.wheel{padding:7vw 4vw;background:var(--panel);border-top:1px solid var(--line)}.section-head{display:flex;justify-content:space-between;gap:20px;color:var(--dim);font-size:12px}.wheel-layout{display:grid;grid-template-columns:1.35fr .65fr;gap:4vw;margin-top:38px;align-items:center}.viewer{position:relative;height:min(74vw,790px);overflow:hidden;background:#c5b78f}.viewer>img{width:100%;height:100%;object-fit:cover;object-position:center 47%}.hotspot{position:absolute;width:42px;height:42px;border-radius:50%;border:1px solid #fff;background:#15130dc7;color:white;cursor:pointer;display:grid;place-items:center}.hotspot:after{content:"";position:absolute;inset:-8px;border:1px solid #fff6;border-radius:50%;transition:.2s}.hotspot.active,.hotspot:hover{background:var(--red)}.hotspot.active:after,.hotspot:hover:after{inset:-13px}.h1{left:36%;top:39%}.h2{left:55%;top:47%}.h3{left:72%;top:67%}.machine-note h2{font-size:clamp(34px,4vw,64px);line-height:.95;letter-spacing:-.04em}.machine-note>p:not(.stamp){font:20px/1.55 'PT Serif',serif;color:#cbc6b8}.machine-note dl{margin-top:42px}.machine-note dl div{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-top:1px solid var(--line);font-size:12px}.machine-note dt{color:var(--dim)}.machine-note dd{margin:0;text-align:right}.translation-body>h2{font:italic clamp(34px,5.4vw,82px)/1.08 'PT Serif',serif;color:var(--paper);margin:.35em 0 .7em}.translation-grid{display:grid;grid-template-columns:1fr 1fr;gap:5vw}.translation-grid article{font:18px/1.7 'PT Serif',serif}.translation-grid h3{font:600 13px Manrope;letter-spacing:.12em;text-transform:uppercase}.mauro-voice{border-left:2px solid var(--red);padding-left:30px;color:#d9cba7}.editorial-note{margin-top:35px;color:var(--dim);font-size:12px;max-width:900px}.gallery{padding:9vw 4vw;border-top:1px solid var(--line)}.gallery-head{display:grid;grid-template-columns:1fr 3fr;gap:4vw}.gallery h2{font-size:clamp(44px,6.5vw,95px);margin-top:0}.machine-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6vw 2vw;margin-top:4vw}.machine-grid article:nth-child(even){margin-top:10vw}.machine-grid a{display:block;height:58vw;max-height:760px;background:#c5b78f;overflow:hidden}.machine-grid img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s}.machine-grid a:hover img{transform:scale(1.025)}.machine-grid article>p{font-size:9px;letter-spacing:.16em;color:var(--red);margin:18px 0 8px}.machine-grid h3{font-size:28px;margin:0 0 10px}.machine-grid article>span{display:block;max-width:610px;color:#aaa99e;line-height:1.55}.history-grid{display:grid;grid-template-columns:1fr 1.5fr;gap:6vw}.history h2,.sources h2{font-size:clamp(42px,6vw,82px);margin-top:0}.timeline article{padding:0 0 36px 80px;border-left:1px solid var(--line);position:relative}.timeline time{position:absolute;left:0;transform:translateX(-50%);background:var(--red);padding:5px 8px;font-size:10px;white-space:nowrap}.timeline h3{margin:0 0 8px;font-size:24px}.timeline p,.sources p{color:#b6b4a9;line-height:1.65}.sources a{line-height:2}footer{border-top:1px solid var(--line);padding:35px 4vw;display:flex;justify-content:space-between;font-size:11px;letter-spacing:.12em}@media(max-width:800px){.topbar{padding:0 5vw}.topbar>span{display:none}.hero{grid-template-columns:1fr;padding:12vw 5vw 18vw}.hero-copy{order:2}.hero h1{font-size:18vw}.hero-plate a{max-height:none}.hero-plate figcaption span:last-child{display:none}.intro,.translation,.history,.sources{grid-template-columns:1fr;padding:18vw 5vw}.wheel{padding:16vw 5vw}.wheel-layout{grid-template-columns:1fr}.viewer{height:126vw}.section-head{display:block}.translation-grid,.history-grid,.gallery-head{grid-template-columns:1fr}.mauro-voice{padding-left:20px}.gallery{padding:18vw 5vw}.machine-grid{grid-template-columns:1fr}.machine-grid article:nth-child(even){margin-top:0}.machine-grid a{height:126vw}.hotspot{width:36px;height:36px}.h3{left:68%}footer{gap:20px;line-height:1.5}}

/* Метка года центрировалась на линии таймлайна (translateX(-50%)), и на узком
   экране половина плашки уезжала за край экрана. Прижимаем её к линии справа. */
@media(max-width:560px){.timeline time{transform:none;left:6px}}

/* Длинное русское слово в крупном заголовке шире экрана 320 px: «МАСТЕРСКОЙ»
   при clamp-кегле занимает 336 px и уезжает за край — прокрутки нет, буквы
   просто пропадают. Разрешаем переносить по слогам, а если словарь переносов
   не подхватился — рвать слово принудительно.

   Только на узких экранах. На десктопе крупный заголовок намеренно выходит
   за текстовую колонку в пустое поле справа — это часть оформления, и
   переносить его там незачем: получается лишняя строка и рваный вид. */
@media(max-width:520px){h1,h2,h3,h4{overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto}}

/* --- контраст: приведено к WCAG AA ----------------------------------
   Значения посчитаны: тот же тон и насыщенность, другая светлота —
   минимальная, при которой пара «текст/фон» проходит норму. Область
   действия — секция, которая задаёт фон: один и тот же .index на тёмной
   и на светлой полосе требует разных цветов. */
/* 3.95→4.66 при норме 4.5 на #191812 ×2 — «02 / Машина № 188» */
#wheel .eyebrow, #wheel .index, #wheel .stamp, #wheel .source-label{color:#cd6351}
/* 4.23→4.66 при норме 4.5 на #11100c ×6 — «PARIS · 1588» */
body .eyebrow, body .index, body .stamp, body .source-label{color:#ca5c49}
/* 4.23→4.66 при норме 4.5 на #11100c ×4 — «ТАБЛИЦА 1 · ВОДА» */
body .machine-grid article > p{color:#ca5c49}
/* Кремовая дата на красной плашке — 3.44. Красить текст некуда (он уже почти
   белый), поэтому темнее делаем саму плашку. */
.timeline time{background:#8f3729}
/* Номер узла в штампе красится отдельно от .stamp — тот же красный, тот же фон. */
#wheel #part-number{color:#cd6351}

/* --- тач-цели: минимум 24 px (WCAG 2.5.8) ------------------------------
   Ссылки и кнопки в шапке, подвале и на первом экране были высотой 11-22 px.
   Растим область нажатия симметричным вертикальным отступом: содержимое
   остаётся по центру коробки и не переносится, поэтому вёрстка не меняется.
   Менять display на flex здесь нельзя — у «● ИНТЕРЕСНОЕ ТУТ» точка и текст
   стали бы отдельными флекс-элементами и разъехались на две строки. */
.topbar a,.topbar button,.bar a,.legal-top a,footer a,.links a,.map-actions a,
.controls a,.controls button,.hero-copy a,.hero-text a,.hero>a,.hero .down,
.sound-toggle,.about-open,.fullscreen,.compact-prev,.compact-next,
.translation-toggle,.pin,.hotspot,nav a,.meta a,.sources a{min-height:24px;padding-block:7px}
/* Ползунки: полоса была 16 px, пальцем не поймать. Высоту поднимаем у самого
   поля - область нажатия растёт, родная отрисовка бегунка не ломается. */
input[type=range]{height:26px}
/* Флажки и переключатели: 13-17 px до пальца не дотягивают. */
input[type=checkbox],input[type=radio]{width:24px;height:24px}
/* Ссылки-«источники» и вспомогательная навигация: у строчных растим область
   нажатия отступом (высота строки не меняется), у блочных — задаём высоту. */

/* Уважаем системную настройку «меньше движения»: анимации и плавная прокрутка
   у части людей вызывают тошноту и головокружение. Оставляем мгновенные
   состояния — интерфейс работает так же, просто без движения. */
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Слова КАПИТЕЛЬЮ Firefox и WebKit по слогам не переносят: при
   overflow-wrap:break-word слово рвётся посреди без дефиса («ЧУДОВИЩА/МИ»),
   а Chromium ставит в крупном заголовке дефис. Поэтому на узких экранах
   автоперенос в h1–h3 выключен, а кегль подобран так, чтобы самое длинное
   слово влезало в строку целиком. Значения измерены Playwright на 320,
   360 и 390 px в Chromium, Firefox и WebKit. Десктоп не затронут. */
@media(max-width:520px){h1,h2,h3{hyphens:manual;-webkit-hyphens:manual}}

/* Длинный заголовок заметки задавал одноколоночной grid-дорожке min-content
   шире экрана и вслед за ней растягивал viewer. Нулевая нижняя граница дорожки
   и мобильный кегль удерживают весь блок внутри доступной ширины. */
@media(max-width:520px){.wheel-layout{grid-template-columns:minmax(0,1fr)}.viewer,.machine-note{min-width:0;max-width:100%}.machine-note h2{font-size:min(34px,9vw)}}



/* Единый клавиатурный фокус: светлый контур и контрастный внешний контур. */
:focus-visible{outline:3px solid var(--ink);outline-offset:3px;box-shadow:0 0 0 6px #000}
