/* Almanac, variant S "Address folder": a wine presentation folder outside, a collection catalogue inside.
   Tokens and rules are described in ../DESIGN.md. */

@font-face { font-family: "Oranienbaum"; src: url("../fonts/Oranienbaum.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "Commissioner"; src: url("../fonts/Commissioner.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --wine: #4E0F1C;
  --wine-deep: #390912;
  --bone: #F1EBDF;
  --bone-2: #C9B4AE;
  --foil: #C9A66B;
  --paper: #F2F1EE;
  --sheet: #FAF9F7;
  --ink: #16161A;
  --ink-2: #4B4B52;
  --wine-ink: #5A1222;
  --rule: rgba(22, 22, 26, .16);
  --rule-strong: rgba(22, 22, 26, .55);
  --rule-bone: rgba(241, 235, 223, .24);
  --serif: "Oranienbaum", "Commissioner", Georgia, "Times New Roman", serif;
  --sans: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(20px, 5vw, 56px);
  --frame: clamp(8px, 1.4vw, 18px);
  --max: 1240px;
  --sec: clamp(72px, 11vw, 148px);
  --h1: clamp(2.375rem, 1.15rem + 5.3vw, 5rem);
  --h2: clamp(2.125rem, 1.4rem + 3.1vw, 3.75rem);
  --h3: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --bar-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; background: var(--wine); }
html.is-locked { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--sans); font-synthesis: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
img, video, iframe { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; border-radius: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--wine); color: var(--bone); }
.on-wine ::selection { background: var(--bone); color: var(--wine); }
:focus-visible { outline: 2px solid var(--wine-ink); outline-offset: 3px; }
.on-wine :focus-visible { outline-color: var(--foil); }
html { scrollbar-color: var(--wine) var(--paper); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--bone); color: var(--wine); padding: 12px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* The arrow glyph is missing from both faces, so it is drawn. */
.arr { display: inline-block; width: .82em; height: .5em; margin: 0 .12em; vertical-align: .08em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 33 20'%3E%3Cpath d='M0 10h30M22 2l9 8-9 8' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 33 20'%3E%3Cpath d='M0 10h30M22 2l9 8-9 8' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; }
.arr > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.price .rub, .bar-price .rub { font-family: var(--sans); font-weight: 300; font-size: .8em; }

.label { font: 600 .8125rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.on-wine .label { color: var(--foil); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 56px; padding: 0 28px; background: var(--wine); color: var(--bone); font: 600 1.0625rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.btn:hover { background: var(--wine-deep); }
.btn:active { transform: translateY(1px); }
.btn .arr { width: 1.05em; margin: 0; }
.on-wine .btn { background: var(--bone); color: var(--wine); }
.on-wine .btn:hover { background: #fff; }
.btn--line { background: none; color: var(--wine-ink); border: 1px solid var(--wine-ink); }
.btn--line:hover { background: var(--wine); color: var(--bone); }
.cta-alt { font-size: .9375rem; line-height: 1.4; color: var(--ink-2); max-width: 21em; }
.on-wine .cta-alt { color: var(--bone-2); }

/* Time: the line under it tells how it was obtained. */
.time { display: inline-block; font-family: var(--serif); line-height: 1.08; color: var(--wine-ink); padding-bottom: .16em; border-bottom: 2px solid currentColor; }
.time[data-kind="machine"] { border-bottom: 5px double currentColor; }
.time[data-kind="approx"] { border-bottom: 2px dashed currentColor; }
.on-wine .time { color: var(--bone); }
.time-unit { font: 400 .9375rem/1.3 var(--sans); color: var(--ink-2); }
.time-kind { font: 500 .8125rem/1.3 var(--sans); color: var(--ink-2); }

.nw { white-space: nowrap; }
@media (min-width: 1080px) { body { font-size: 1.0625rem; } }

/* Until the script draws the page the shell is empty and shows the folder colour, nothing else. */
#top:empty, #colophon:empty, #bar:empty, main > section:empty { display: none; }

/* ───── Cover: the folder ───── */
.cover { position: relative; background: var(--wine); color: var(--bone); padding: calc(var(--frame) + clamp(16px, 3vw, 36px)) 0 calc(var(--frame) + clamp(28px, 4vw, 44px)); }
.cover::before, .offer::before, .colophon::before { content: ""; position: absolute; inset: var(--frame); border: 1px solid rgba(201, 166, 107, .45); pointer-events: none; }
.masthead { display: flex; align-items: center; gap: 14px; padding-bottom: clamp(16px, 2.4vw, 28px); border-bottom: 1px solid var(--rule-bone); }
.emblem { flex: none; width: 44px; height: 49px; color: var(--foil); overflow: visible; }
.emblem .hand { transform-origin: 50px 62px; transition: transform .18s cubic-bezier(.2, .8, .2, 1); }
.masthead-text { display: grid; gap: 3px; flex: 1; }
.masthead-title { font: 600 .8125rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.masthead-issue { font: 500 .8125rem/1.3 var(--sans); letter-spacing: .04em; color: var(--foil); }
.cover h1 { font-size: var(--h1); line-height: 1.04; letter-spacing: -.012em; margin-top: clamp(36px, 6vw, 72px); max-width: 15em; }
.cover-lead { margin-top: clamp(18px, 2.4vw, 28px); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); max-width: 33em; }
.cover-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: clamp(26px, 3vw, 40px); }
.terms { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 2px 12px; text-decoration: none; }
.terms-price { font: 400 1.75rem/1 var(--serif); white-space: nowrap; }
.terms-note { font-size: .9375rem; line-height: 1.3; color: var(--bone-2); }
.terms-link { display: inline-flex; align-items: center; gap: 10px; font: 600 .9375rem/1 var(--sans); color: var(--foil); white-space: nowrap; }
.terms-link .arr { transform: rotate(90deg); margin: 0; }
.terms:hover .terms-link { color: var(--bone); }
.cover-terms { margin-top: clamp(22px, 3vw, 32px); padding-top: 16px; border-top: 1px solid var(--rule-bone); min-height: 56px; max-width: 34em; }
@media (max-width: 420px) { .terms { grid-template-columns: auto minmax(0, 1fr); } .terms-link { grid-column: 1 / -1; min-height: 32px; } }
.teaser { margin-top: clamp(36px, 6vw, 72px); border-top: 1px solid var(--rule-bone); }
.teaser li a { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto; gap: 12px; align-items: baseline; min-height: 56px; padding: 15px 0 13px; border-bottom: 1px solid var(--rule-bone); text-decoration: none; }
.teaser .t, .opis .t { transition: transform .3s var(--ease); }
.teaser li a:hover .t, .opis a:hover .t { transform: translateX(8px); }
.teaser .no { font-family: var(--serif); font-size: 1.0625rem; color: var(--foil); white-space: nowrap; }
.teaser .t { display: block; font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.16; }
.teaser .tm { font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.16; white-space: nowrap; }
.teaser-all { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 10px; font: 600 .9375rem/1 var(--sans); color: var(--foil); text-decoration: none; }
.teaser-all:hover { color: var(--bone); }
.teaser-all .arr { transform: rotate(90deg); }
.dial-big { display: none; }

@media (min-width: 960px) {
  .masthead-text { display: flex; justify-content: space-between; align-items: baseline; }
  .cover-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); gap: clamp(48px, 6vw, 104px); align-items: end; }
  .cover-side { display: grid; justify-items: end; }
  .cover-side .teaser { width: 100%; margin-top: 44px; }
  .dial-big { display: block; width: clamp(150px, 15vw, 210px); height: auto; color: var(--foil); overflow: visible; }
  .dial-big .hand { transform-origin: 50px 62px; transition: transform .18s cubic-bezier(.2, .8, .2, 1); }
}

/* ───── Catalogue ───── */
.catalog { padding-block: var(--sec) calc(var(--sec) * .9); }
.cat-head h2 { font-size: var(--h2); line-height: 1.04; }
.cat-hint { margin-top: 12px; color: var(--ink-2); max-width: 34em; }
.cat-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 32px; margin-top: clamp(24px, 3vw, 40px); border-block: 1px solid var(--rule-strong); }
.chips, .views { display: flex; gap: 2px; }
.chips { overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); max-width: 100vw; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 48px; padding: 0 12px; font: 500 .9375rem/1 var(--sans); color: var(--ink-2); white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; transition: color .2s, box-shadow .2s; }
.chip:first-child { padding-left: 0; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--wine); }
.chip i { font-style: normal; font-weight: 400; color: var(--ink-2); margin-left: 6px; }
.views { border-top: 1px solid var(--rule); width: 100%; }
@media (min-width: 1080px) { .views { border-top: 0; width: auto; } .chips { margin-inline: 0; padding-inline: 0; } }

.hall { padding-top: clamp(44px, 7vw, 88px); }
.hall-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--rule-strong); }
.hall-head h3 { font-size: var(--h3); line-height: 1.06; }
.hall-note { margin-top: 8px; color: var(--ink-2); }
.hall-count { margin-top: 10px; }
.hall-obj { width: clamp(124px, 34vw, 190px); height: auto; aspect-ratio: 1; mix-blend-mode: darken; margin: -8px -6px -14px 0; }
.plates { display: grid; gap: clamp(44px, 6vw, 76px) clamp(24px, 4vw, 56px); padding-top: clamp(28px, 4vw, 44px); }
@media (min-width: 680px) { .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) {
  .hall { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(48px, 5vw, 84px); align-items: start; border-top: 1px solid var(--rule-strong); margin-top: clamp(56px, 6vw, 88px); padding-top: 36px; }
  .hall:first-of-type { margin-top: clamp(36px, 4vw, 56px); }
  .hall-head { position: sticky; top: 28px; grid-template-columns: 1fr; border-bottom: 0; padding-bottom: 0; background: var(--paper); }
  .hall-obj { grid-row: 1; width: 210px; margin: -18px 0 4px -22px; }
  .plates { padding-top: 0; }
}

.midoffer { position: relative; margin: clamp(52px, 8vw, 96px) calc(var(--pad) * -1) 0; padding: calc(var(--frame) + clamp(24px, 4vw, 44px)) calc(var(--pad) + var(--frame)); background: var(--wine); color: var(--bone); display: grid; gap: 24px clamp(32px, 5vw, 80px); }
.midoffer::before { content: ""; position: absolute; inset: var(--frame); border: 1px solid rgba(201, 166, 107, .45); pointer-events: none; }
.midoffer h3 { font-size: var(--h3); line-height: 1.06; }
.midoffer p { margin-top: 10px; max-width: 30em; }
.midoffer-side { display: grid; gap: 18px; align-content: center; justify-items: start; }
.midoffer-terms { width: 100%; min-height: 48px; }
.midoffer-safety { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 500 .9375rem/1.2 var(--sans); color: var(--bone); text-decoration: underline; text-decoration-color: var(--rule-bone); text-underline-offset: 5px; }
.midoffer-safety .arr { transform: rotate(90deg); margin: 0; }
.noscript a { color: inherit; }
@media (min-width: 860px) { .midoffer { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; margin-inline: 0; } }

.plate { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.plate-cap { flex: 1; }
.plate-text { display: flex; flex-direction: column; height: 100%; }
.plate-foot { margin-top: auto; }
.plate-img { background: var(--sheet); border: 1px solid var(--rule); padding: clamp(8px, 1.5vw, 14px); transition: border-color .25s; }
.plate-img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 0; outline: 1px solid rgba(22, 22, 26, .08); outline-offset: -1px; }
.plate:hover .plate-img { border-color: var(--wine-ink); }
.plate-fig { aspect-ratio: 4 / 3; display: grid; place-content: center; gap: 4px 28px; padding: 10px; text-align: center; outline: 1px solid rgba(22, 22, 26, .08); outline-offset: -1px; }
.plate-fig.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; }
.plate-fig b { display: block; font: 400 clamp(2.25rem, 1.6rem + 3vw, 3.5rem)/1 var(--serif); color: var(--wine-ink); }
.plate-fig.is-solo b { font-size: clamp(3.25rem, 2rem + 6vw, 5rem); }
.plate-fig span { display: block; margin: 6px auto 10px; font-size: .875rem; line-height: 1.3; color: var(--ink-2); max-width: 11em; }
.plate-cap { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 12px; align-items: baseline; padding-top: 16px; }
.plate-no { font-family: var(--serif); font-size: 1.0625rem; color: var(--wine-ink); white-space: nowrap; }
.plate-title { font: 400 clamp(1.5rem, 1.35rem + .5vw, 1.75rem)/1.12 var(--serif); transition: color .2s; }
.plate:hover .plate-title { color: var(--wine-ink); }
.plate-lead { margin-top: 8px; color: var(--ink-2); }
.fresh { display: inline-block; font: 500 .8125rem/1.3 var(--sans); color: var(--wine-ink); }
.plate .fresh { margin-top: 8px; }
.plate-text > .plate-lead:nth-last-child(2), .plate-text > .fresh { margin-bottom: 16px; }
.plate-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.plate-foot .time { font-size: 1.75rem; }
.plate-time { display: grid; gap: 6px; justify-items: start; }
.plate-open { display: inline-flex; align-items: center; gap: 10px; min-height: 28px; font: 600 .9375rem/1 var(--sans); color: var(--wine-ink); white-space: nowrap; }
.plate-open .arr { transition: transform .3s var(--ease); }
.plate:hover .plate-open .arr { transform: translateX(5px); }

#opis { margin-top: clamp(28px, 4vw, 44px); }
.opis-head, .opis a { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto; gap: 12px; align-items: baseline; }
.opis-head { padding-bottom: 10px; border-bottom: 1px solid var(--rule-strong); }
.opis a { min-height: 60px; padding: 14px 0 12px; border-bottom: 1px solid var(--rule); text-decoration: none; transition: background-color .2s; }
.opis a:hover { background: var(--sheet); }
.opis .no { font-family: var(--serif); font-size: 1.0625rem; color: var(--wine-ink); white-space: nowrap; }
.opis .t { display: block; font: 400 clamp(1.25rem, 1.1rem + .6vw, 1.5rem)/1.16 var(--serif); }
.opis .r { display: block; margin-top: 3px; font: 400 .875rem/1.3 var(--sans); color: var(--ink-2); }
.opis .tm { text-align: right; }
.opis .tm .time { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); border-bottom-width: 1px; padding-bottom: .1em; }
.opis .tm .time[data-kind="machine"] { border-bottom-width: 3px; }
.opis .tm .time-unit { display: block; margin-top: 4px; font-size: .8125rem; }
.opis .tm .time { white-space: nowrap; }

/* ───── Offer ───── */
.offer { position: relative; background: var(--wine); color: var(--bone); padding-block: calc(var(--frame) + clamp(52px, 8vw, 112px)); }
.offer h2 { font-size: var(--h2); line-height: 1.04; }
.offer-lead { margin-top: 16px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); max-width: 31em; }
.price { margin-top: clamp(28px, 4vw, 48px); font: 400 clamp(4rem, 2rem + 10vw, 8rem)/.94 var(--serif); letter-spacing: -.015em; white-space: nowrap; }
.price-note { margin-top: 10px; color: var(--bone-2); }
.offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.offer-list { border-top: 1px solid var(--rule-bone); }
.offer-list li { padding: 14px 0 13px; border-bottom: 1px solid var(--rule-bone); }
.offer-facts { margin-top: 32px; display: grid; gap: 18px; }
.offer-facts dt { margin-bottom: 4px; }
.offer h3 { margin-top: clamp(36px, 5vw, 56px); font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.offer-side h3:first-child + .offer-list { margin-top: 12px; }
.offer-bring { margin-top: 18px; }
.price-plus { margin-top: 4px; }
.sub-price { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.sub-sum { font: 400 clamp(2.25rem, 1.9rem + 1.6vw, 3rem)/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; color: var(--foil); }
.sub-sum .rub { font-family: var(--sans); font-weight: 300; font-size: .8em; }
.sub-per { color: var(--bone-2); }
.sub-lead { margin-top: 12px; }
.sub-lead + .offer-list { margin-top: 16px; }
.sub-note { color: var(--bone-2); }
.steps { margin-top: 12px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule-bone); }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 1.75rem; line-height: 1; color: var(--foil); }
@media (min-width: 960px) {
  .offer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(56px, 7vw, 120px); align-items: start; }
  .offer-main { position: sticky; top: 48px; }
  .offer-side h3:first-child { margin-top: 0; }
}

/* ───── Safety, method, author ───── */
.safety, .method, .author { padding-top: var(--sec); }
.safety h2, .method h2 { font-size: var(--h2); line-height: 1.04; }
.safety-lead { margin-top: 18px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); max-width: 34em; }
.never { margin-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--rule-strong); }
.never li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px; align-items: baseline; padding: 15px 0 14px; border-bottom: 1px solid var(--rule); font: 400 clamp(1.25rem, 1.1rem + .6vw, 1.5rem)/1.2 var(--serif); }
.never li::before { content: ""; width: 16px; height: 16px; align-self: center; background: var(--wine-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 1l14 14M15 1L1 15' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 1l14 14M15 1L1 15' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.safety-how { margin-top: clamp(28px, 4vw, 44px); padding: clamp(20px, 3vw, 32px); background: var(--sheet); border: 1px solid var(--rule); border-top: 3px solid var(--wine); }
.safety-how p { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--ink); max-width: 38em; }
@media (min-width: 960px) { .safety-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(56px, 7vw, 120px); align-items: start; } .never { margin-top: 8px; } }

.method-obj { width: min(58vw, 280px); height: auto; aspect-ratio: 1; mix-blend-mode: darken; margin: -28px 0 4px -22px; }
.method-list { margin-top: clamp(20px, 3vw, 32px); border-top: 1px solid var(--rule-strong); }
.method-list li { padding: 14px 0 13px; border-bottom: 1px solid var(--rule); max-width: 44em; }
.legend { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 26px; }
.legend div { display: grid; gap: 8px; }
.legend .time { font-size: 1.375rem; }
@media (min-width: 960px) { .method-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 104px); align-items: center; } .method-obj { width: 100%; max-width: 400px; margin: 0; justify-self: center; } }

.author { padding-bottom: var(--sec); }
.author-in { border-top: 1px solid var(--rule-strong); padding-top: clamp(28px, 4vw, 48px); }
.author h2 { font-size: var(--h2); line-height: 1.04; }
.author p { margin-top: 14px; max-width: 36em; }
.author .venue { color: var(--ink-2); }
@media (min-width: 960px) { .author-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(56px, 7vw, 120px); } .author-text p:first-child { margin-top: 10px; } }

/* ───── Colophon ───── */
.colophon { position: relative; background: var(--wine-deep); color: var(--bone); padding-block: calc(var(--frame) + clamp(52px, 8vw, 112px)) calc(var(--frame) + var(--bar-h) + 20px); }
.colophon h2 { font-size: var(--h2); line-height: 1.04; max-width: 13em; }
.colophon-lead { margin-top: 16px; max-width: 34em; color: var(--bone); }
.build { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: 12px; justify-items: start; }
.build .time { font-size: clamp(3rem, 1.6rem + 7vw, 6rem); line-height: 1; border-bottom-width: 1px; }
.colophon-facts { margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--rule-bone); }
.colophon-facts li { padding: 14px 0 13px; border-bottom: 1px solid var(--rule-bone); max-width: 44em; }
.colophon-note { margin-top: 22px; font-size: .9375rem; color: var(--bone-2); max-width: 40em; }
.colophon-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: clamp(32px, 4vw, 48px); }
.editions { margin-top: clamp(36px, 5vw, 60px); padding-top: 22px; border-top: 1px solid var(--rule-bone); }
.colophon h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.editions p { margin-top: 8px; max-width: 36em; color: var(--bone); }
.editions ul { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 10px; }
.editions a, .editions b { display: inline-flex; align-items: center; min-height: 48px; font: 400 1.375rem/1.1 var(--serif); }
.editions b { color: var(--foil); }
.signature { margin-top: clamp(40px, 5vw, 64px); padding-top: 18px; border-top: 1px solid var(--rule-bone); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: .9375rem; color: var(--bone-2); }
.signature a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bone); }
@media (min-width: 960px) { .colophon-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(56px, 7vw, 120px); align-items: start; } .colophon-facts { margin-top: 8px; } }

/* ───── Bottom bar ───── */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--wine); color: var(--bone); border-top: 1px solid rgba(201, 166, 107, .5); transform: translateY(102%); visibility: hidden; transition: transform .36s var(--ease), visibility 0s .36s; }
.bar.is-on { transform: none; visibility: visible; transition: transform .36s var(--ease), visibility 0s; }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--bar-h); padding-block: 10px calc(10px + env(safe-area-inset-bottom)); }
.bar-terms { display: grid; align-content: center; gap: 4px; min-height: 48px; text-decoration: none; }
.bar-price { font: 400 1.625rem/1 var(--serif); white-space: nowrap; }
.bar-note { font-size: .8125rem; line-height: 1.2; color: var(--bone-2); text-decoration: underline; text-decoration-color: rgba(201, 180, 174, .5); text-underline-offset: 3px; }
.bar .btn { min-height: 50px; padding: 0 22px; font-size: 1rem; }
@media (max-width: 359px) { .bar .btn { padding: 0 14px; } .bar .btn .arr { display: none; } }

/* ───── Exhibit sheet ───── */
.sheet { position: fixed; inset: 0; z-index: 40; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-color: var(--wine) var(--paper); }
.sheet-bar { position: sticky; top: 0; z-index: 3; background: var(--paper); border-bottom: 1px solid var(--rule-strong); }
.sheet-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.sheet-back, .sheet-copy { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font: 600 .9375rem/1 var(--sans); }
.sheet-back .arr { transform: rotate(180deg); margin: 0; width: 1.1em; }
.sheet-copy { font-weight: 500; color: var(--wine-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.sheet-pos { font-family: var(--serif); font-size: 1.125rem; color: var(--wine-ink); white-space: nowrap; }
.sheet-body { padding-block: clamp(26px, 4vw, 56px) calc(var(--bar-h) + 72px); }
.sheet.is-in .sheet-body { animation: rise .42s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.sheet-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; margin-top: 12px; font: 500 .8125rem/1.3 var(--sans); color: var(--ink-2); }
.sheet h2 { outline: none; font-size: clamp(2rem, 1.25rem + 3.4vw, 3.5rem); line-height: 1.05; max-width: 17em; }
.sheet-lead { margin-top: 14px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); max-width: 36em; color: var(--ink-2); }
.sheet-time { margin-top: clamp(22px, 3vw, 32px); display: grid; gap: 10px; justify-items: start; }
.sheet-time .time { font-size: clamp(2.5rem, 1.8rem + 3.4vw, 4rem); }
.sheet-time > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.sheet-time .time-unit { font-size: 1.0625rem; }
.sheet-proof { color: var(--ink-2); max-width: 34em; }
.sheet-proof b { font-weight: 600; color: var(--ink); }
.sheet-grid { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: clamp(28px, 4vw, 48px); }
.sheet-grid > * { min-width: 0; }
@media (min-width: 1000px) { .sheet-grid.has-media { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(48px, 5vw, 80px); align-items: start; } .sheet-grid.has-media .sheet-media { position: sticky; top: 84px; } }

.strip { --gh: clamp(230px, 54svh, 540px); display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: calc(var(--pad) * -1); padding: 2px var(--pad) 12px; scrollbar-width: thin; scrollbar-color: var(--wine) transparent; }
.sheet-media { container-type: inline-size; }
.strip > * { flex: none; scroll-snap-align: center; aspect-ratio: var(--r);
  height: min(var(--gh), calc((100vw - 2 * var(--pad)) / var(--r0, 1.3333)));
  height: min(var(--gh), calc(100cqw / var(--r0, 1.3333))); }
.strip.is-single { justify-content: center; }
.shot { display: block; padding: 0; background: var(--sheet); border: 1px solid var(--rule); padding: clamp(6px, 1vw, 10px); cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot:hover { border-color: var(--wine-ink); }
.clip { background: var(--sheet); border: 1px solid var(--rule); padding: clamp(6px, 1vw, 10px); }
.clip video { width: 100%; height: 100%; object-fit: contain; background: #0D0D10; }
.strip-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; min-height: 44px; color: var(--ink-2); font-size: .9375rem; }
.strip-nav { display: flex; gap: 4px; }
.strip-nav button { display: grid; place-items: center; width: 48px; height: 44px; border: 1px solid var(--rule-strong); color: var(--ink); }
.strip-nav button:hover { background: var(--wine); border-color: var(--wine); color: var(--bone); }
.strip-nav button:first-child .arr { transform: rotate(180deg); }
.strip-nav .arr { margin: 0; width: 1.1em; }
@media (min-width: 1000px) { .strip { margin-inline: 0; padding-inline: 0; } }

.sound { margin-top: 14px; padding: 14px; background: var(--sheet); border: 1px solid var(--rule); }
.sound audio { width: 100%; height: 44px; }
.sound figcaption, .clip figcaption { margin-top: 8px; font-size: .9375rem; color: var(--ink-2); }
.frame { margin-top: 14px; border: 1px solid var(--rule-strong); background: var(--sheet); }
.frame:first-child, .strip-meta + .frame { margin-top: 0; }
.frame-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 16px; padding: 4px 14px; border-bottom: 1px solid var(--rule); }
.frame-head span { font: 400 1.125rem/1.2 var(--serif); padding-block: 8px; }
.frame-head a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 600 .9375rem/1 var(--sans); color: var(--wine-ink); }
.frame iframe { width: 100%; border: 0; background: #fff; height: min(var(--fh, 640px), 72svh); }

.spec > div { padding: 18px 0; border-top: 1px solid var(--rule); }
.spec > div:first-child { border-top: 1px solid var(--rule-strong); }
.spec dt { margin-bottom: 8px; }
.spec dd { max-width: 40em; }
.spec .task { font: 400 clamp(1.25rem, 1.1rem + .6vw, 1.5rem)/1.28 var(--serif); }
.spec ul li { position: relative; padding-left: 22px; }
.spec ul li + li { margin-top: 8px; }
.spec ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1px; background: var(--wine-ink); }
.spec details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; list-style: none; font-weight: 600; }
.spec details summary::-webkit-details-marker { display: none; }
.spec details summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--wine-ink); border-bottom: 1.5px solid var(--wine-ink); transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease); }
.spec details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.spec details ul { margin-top: 8px; padding-bottom: 4px; }
.pipe { counter-reset: pipe; }
.pipe li { counter-increment: pipe; display: grid; grid-template-columns: 2em minmax(0, 1fr); align-items: baseline; padding: 9px 0; }
.pipe li + li { border-top: 1px solid var(--rule); }
.pipe li::before { content: counter(pipe); font: 400 1.375rem/1 var(--serif); color: var(--wine-ink); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.stats b { display: block; font: 400 clamp(2.5rem, 2rem + 2vw, 3.25rem)/1 var(--serif); color: var(--wine-ink); }
.stats span { display: block; margin-top: 6px; color: var(--ink-2); line-height: 1.3; }
.tl li { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); align-items: baseline; padding: 8px 0; }
.tl li + li { border-top: 1px solid var(--rule); }
.tl b { font: 400 1.25rem/1 var(--serif); color: var(--wine-ink); white-space: nowrap; }
.tbl caption { text-align: left; padding-bottom: 8px; color: var(--ink-2); font-size: .9375rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.tbl th { font: 600 .8125rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border-bottom-color: var(--rule-strong); }
.tbl td:not(:first-child), .tbl th:not(:first-child) { text-align: right; padding-right: 0; padding-left: 12px; }
.tbl td:not(:first-child) { font: 400 1.25rem/1.1 var(--serif); }
.tbl tr:last-child td { border-bottom: 1px solid var(--rule-strong); font-weight: 600; }
.tbl tr:last-child td:not(:first-child) { font-weight: 400; color: var(--wine-ink); }
.sheet-link { margin-top: 20px; }
.pager { margin-top: clamp(44px, 6vw, 80px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--rule-strong); }
.pager a { display: grid; gap: 4px; align-content: center; min-height: 84px; padding: 16px 0; text-decoration: none; }
.pager a + a { border-left: 1px solid var(--rule); padding-left: clamp(14px, 3vw, 32px); }
.pager a:first-child { padding-right: clamp(14px, 3vw, 32px); }
.pager-l { font: 500 .875rem/1.3 var(--sans); color: var(--ink-2); }
.pager .t { font: 400 clamp(1.125rem, 1rem + .6vw, 1.5rem)/1.15 var(--serif); }
.pager .t i { font-style: normal; color: var(--wine-ink); white-space: nowrap; }
.pager a:hover .t { color: var(--wine-ink); }
.pager .is-empty { visibility: hidden; }

/* ───── Lightbox ───── */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #0D0D10; color: var(--bone); }
.lightbox :focus-visible { outline-color: var(--foil); }
.lb-top, .lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px clamp(12px, 3vw, 28px); min-height: 60px; }
.lb-bottom { padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
.lb-top button, .lb-top a, .lb-bottom button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 48px; min-height: 48px; font: 600 .9375rem/1 var(--sans); color: var(--bone); }
.lb-top a { text-decoration: underline; text-underline-offset: 5px; font-weight: 500; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 clamp(0px, 2vw, 24px); touch-action: pan-y pinch-zoom; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #fff; }
.lb-cap { font-size: .9375rem; color: var(--bone-2); text-align: center; flex: 1; }
.lb-bottom button { border: 1px solid var(--rule-bone); width: 56px; }
.lb-bottom button:hover:not(:disabled) { background: var(--bone); color: #0D0D10; }
.lb-bottom button:disabled { opacity: .3; cursor: default; }
.lb-bottom button:first-child .arr { transform: rotate(180deg); }
.lb-bottom .arr { margin: 0; width: 1.2em; }

.noscript { padding: 40px var(--pad); background: var(--wine); color: var(--bone); font-size: 1.125rem; }

/* Motion: one authored move, the page of a catalogue being turned up. */
@media (prefers-reduced-motion: no-preference) {
  .cover h1, .cover-lead, .cover-actions, .cover-side { animation: rise .7s var(--ease) both; }
  .cover-lead { animation-delay: .06s; }
  .cover-actions { animation-delay: .12s; }
  .cover-side { animation-delay: .18s; }
  .cover .masthead { animation: draw .9s var(--ease) both; }
  @keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .bar, .sheet, .lightbox { display: none !important; } }
