/* SUKUMO: Letters from the Vat, a long read journal for a Kyoto indigo house */
@font-face {
  font-family: "Hahmlet";
  src: url("fonts/hahmlet-latin.woff2") format("woff2");
  font-weight: 300 500;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hahmlet";
  src: url("fonts/hahmlet-latin-ext.woff2") format("woff2");
  font-weight: 300 500;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Kaisei HarunoUmi";
  src: url("fonts/kaisei-harunoumi-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Klee One";
  src: url("fonts/klee-one-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --kinari: #F3F4F1;
  --paper: #F9FAF8;
  --kon: #1A2B4C;
  --slate: #4A5872;
  --ai: #233F6B;
  --aijiro: #E6EDF1;
  --kame: #C4D8E2;
  --asagi: #5B93AE;
  --hanada: #2F5E8C;
  --kachi: #10182B;
  --green: #6B8A3F;
  --line: rgba(26, 43, 76, .16);
  --line-k: rgba(243, 244, 241, .34);
  --tint: rgba(26, 43, 76, .06);
  --f: "Hahmlet", "Iowan Old Style", Georgia, serif;
  --ja: "Kaisei HarunoUmi", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --hand: "Klee One", "Hiragino Maru Gothic ProN", serif;
  --fs-xl: clamp(44px, min(5.4vw, 8.4vh), 88px);
  --fs-l: clamp(28px, calc(1.6vw + 15px), 42px);
  --fs-b: 18px;
  --fs-s: 14px;
  --fs-u: 12px;
  --gut: clamp(16px, 3.4vw, 48px);
  --nav-h: 60px;
  --ease: cubic-bezier(.65, 0, .2, 1);
}

html { background: var(--kinari); }
body {
  background: var(--kinari);
  color: var(--kon);
  font: 400 var(--fs-b)/1.7 var(--f);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
p, h1, h2, h3, h4, ol, ul, dl, dd, figure, blockquote, fieldset { margin: 0; }
ol, ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
address { font-style: normal; }
img { height: auto; }
[hidden] { display: none !important; }
[lang="ja"] {
  font-family: var(--ja);
  font-weight: 400;
  letter-spacing: .04em;
  line-break: strict;
  font-feature-settings: "palt";
  text-transform: none;
}
::selection { background: var(--kame); color: var(--kon); }
:focus-visible { outline: 2px solid var(--ai); outline-offset: 2px; }
:is(h1, h2, h3, h4, article, figure, li)[tabindex="-1"]:focus { outline: none; }
.sr, .notes-h.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Type: four sizes and a utility voice */
.h-xl { font-weight: 300; font-size: var(--fs-xl); line-height: .96; letter-spacing: -.025em; }
.h-l { font-weight: 300; font-size: var(--fs-l); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.u { font-family: var(--f); font-weight: 500; font-size: var(--fs-u); line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; }
.label { color: var(--slate); margin-bottom: 14px; }

/* Links and text buttons: the underline draws */
button { background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.ul {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .3s;
}
.ul::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: calc(50% - .95em);
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .5s var(--ease);
}
.ul:hover::after, .ul:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
.ul:active { opacity: .6; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  background: var(--kon); color: var(--kinari);
  border: 1px solid var(--kon);
  font: 500 var(--fs-u)/1 var(--f); letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color .35s, color .35s;
}
.btn:hover { background: var(--kinari); color: var(--kon); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-o { background: transparent; color: var(--kon); }
.btn-o:hover { background: var(--kon); color: var(--kinari); }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 300;
  background: var(--kon); color: var(--kinari); padding: 12px 18px;
  font: 500 var(--fs-u)/1.2 var(--f); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { top: 16px; }

/* Loader: SUKUMO in outline, the vat rises, green turns indigo */
.loader {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  background: var(--kinari);
  pointer-events: none;
  animation: ld-out .3s ease-in .85s forwards;
}
.is-static .loader { display: none; }
.loader-word { width: min(78vw, 560px); overflow: visible; }
.loader text { font-family: var(--f); font-weight: 500; font-size: 96px; letter-spacing: .14em; }
.ld-line { fill: none; stroke: var(--kon); stroke-width: 1; }
.ld-fill { fill: var(--green); animation: ld-ox .45s ease .35s forwards; }
.ld-rise { transform-box: fill-box; transform: translateY(100%); animation: ld-rise .62s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes ld-rise { to { transform: translateY(0); } }
@keyframes ld-ox { to { fill: var(--ai); } }
@keyframes ld-out { to { opacity: 0; visibility: hidden; } }

/* Nav: the logotype, Contents and the bag */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 0 var(--gut);
  background: var(--kinari);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px;
  font: 500 22px/1 var(--f); letter-spacing: .18em;
  color: var(--kon); text-decoration: none;
}
.wm-ja { font-size: var(--fs-u); color: var(--ai); align-self: flex-start; margin-top: 9px; letter-spacing: 0; }
.nav-end { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); }
.bag-n { color: var(--ai); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.progress-bar { display: block; height: 100%; background: var(--ai); transform: scaleX(0); transform-origin: 0 50%; }

/* The cover: masthead beside the twenty dips */
.cover { position: relative; }
.cover-pin {
  height: calc(100svh - var(--nav-h)); min-height: 520px;
  display: grid; grid-template-columns: clamp(300px, 27vw, 420px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
  background: var(--kinari);
}
.mast {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 28px 32px 28px var(--gut);
  min-width: 0;
}
.mast-line { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--slate); }
.mast-line span:first-child { color: var(--kon); }
.cover-h { color: var(--ai); }
.standfirst { margin-top: 24px; }
.byline { display: flex; flex-direction: column; gap: 2px; margin-top: 22px; color: var(--slate); }
.byline span:first-child { color: var(--kon); }
.cover-hint { color: var(--slate); }
.cover-hint::after { content: " \2193"; }
@media (max-height: 760px) and (min-width: 1024px) { .cover-hint { display: none; } .standfirst { margin-top: 18px; } .byline { margin-top: 16px; } }
.dips { position: relative; overflow: hidden; background: var(--tint); min-width: 0; }
.dips-frames { position: absolute; inset: 0; }
.df { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 14%; opacity: 0; }
.df:first-child { opacity: 1; }
.df-green { position: absolute; inset: 0; background: var(--green); mix-blend-mode: multiply; opacity: 0; pointer-events: none; }
.plate {
  position: absolute; left: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px); z-index: 1;
  width: min(380px, calc(100% - 24px));
  padding: 20px 22px 22px;
  background: var(--kinari);
}
.plate-list { display: grid; }
.pl-i { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 4px; opacity: 0; transition: opacity .35s; }
.pl-i.on { opacity: 1; }
.pl-dip { color: var(--slate); }
.pl-name { font-weight: 300; font-size: var(--fs-l); line-height: 1.1; letter-spacing: -.01em; color: var(--ai); }
.pl-name [lang="ja"] { margin-left: 8px; color: var(--kon); }
.pl-note { font-size: var(--fs-s); line-height: 1.5; color: var(--slate); }
.ladder { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; margin-top: 16px; }
.ladder span { height: 10px; border: 1px solid var(--line); background: transparent; transition: background-color .25s; }
.ladder span.on { background: var(--c); border-color: transparent; }
.ladder span.on:first-child, .ladder span.on:nth-child(2) { border-color: var(--line); }

/* The dips as a contact strip: shown when nothing moves */
.dips-strip { display: none; }
.is-static .dips-strip, .no-pin .dips-strip {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px;
  padding: 24px var(--gut) 0;
}
.dips-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 14%; background: var(--tint); }
.dips-strip .u { display: block; margin-top: 8px; color: var(--slate); letter-spacing: .04em; overflow-wrap: anywhere; }
.dips-strip [lang="ja"] { color: var(--kon); }
.is-static .df, .no-pin .df { opacity: 0; }
.is-static .df:nth-child(7), .no-pin .df:nth-child(7) { opacity: 1; }
.is-static .pl-i, .no-pin .pl-i { opacity: 0; }
.is-static .pl-i:last-child, .no-pin .pl-i:last-child { opacity: 1; }
.is-static .cover-hint, .no-pin .cover-hint { visibility: hidden; }

/* The journal grid: a reading column and a wide right margin */
.journal {
  container-type: inline-size;
  outline: none;
  --cg: 0px;
  --mw: 0px;
}
.journal * { --tw: min(596px, calc(100cqw - 2 * var(--gut) - var(--cg) - var(--mw))); --W: calc(var(--tw) + var(--cg) + var(--mw)); --side: calc((100cqw - var(--W)) / 2); }
@media (min-width: 1024px) {
  .journal { --cg: clamp(40px, 4.4vw, 72px); --mw: clamp(260px, 24vw, 380px); }
}
.deck { width: var(--tw); margin: 48px 0 0 var(--side); color: var(--kon); }
@media (min-width: 1024px) { .deck { display: none; } }

.ch { padding-top: clamp(96px, 11vw, 168px); }
.ch-head {
  width: var(--W); margin: 0 0 clamp(40px, 5vw, 72px) var(--side);
  display: grid; grid-template-columns: minmax(0, var(--tw)) minmax(0, var(--mw)); column-gap: var(--cg);
  padding-top: 28px; border-top: 1px solid var(--kon);
}
.ch-n { grid-column: 1 / -1; }
.ch-roman { display: block; color: var(--ai); margin-bottom: 18px; }
.ch-t { display: block; color: var(--kon); }
.ch-titles { display: contents; }
.ch-head h2 { grid-column: 1; align-self: end; font-weight: 300; outline-offset: 6px; }
.ch-dek { grid-column: 2; align-self: end; font-size: var(--fs-s); line-height: 1.55; color: var(--slate); padding-bottom: 6px; }
.ch-kick { display: block; color: var(--kon); margin-bottom: 6px; }
.ch-kick [lang="ja"] { margin-left: 6px; color: var(--ai); }

.col { position: relative; width: var(--tw); margin-left: var(--side); }
.col::after { content: ""; display: block; clear: both; }
.col > p:not(:first-child) { margin-top: 1.1em; }
.dropcap::first-letter {
  initial-letter: 3;
  -webkit-initial-letter: 3;
  font-weight: 300;
  color: var(--ai);
  margin-right: .1em;
}
@supports not ((initial-letter: 3) or (-webkit-initial-letter: 3)) {
  .dropcap::first-letter { float: left; font-size: var(--fs-xl); line-height: .82; margin: .08em .1em 0 0; }
}
.lead-in { font-weight: 500; font-variant-caps: all-small-caps; letter-spacing: .04em; }
.end::after { content: ""; display: inline-block; width: .55em; height: .55em; margin-left: .4em; background: var(--ai); vertical-align: baseline; }
.col-links { color: var(--ai); }

/* Footnotes: numbers in the text, notes in the margin (desktop) or under the chapter */
sup.fn { font-size: var(--fs-u); line-height: 0; vertical-align: super; }
.fn-ref { padding: 8px 5px; margin: -8px -2px; color: var(--ai); font-weight: 500; text-decoration: none; border-radius: 2px; }
.fn-ref:hover { text-decoration: underline; text-underline-offset: 3px; }
.notes { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--fs-s); line-height: 1.55; color: var(--slate); }
.notes-h { color: var(--kon); margin-bottom: 10px; }
.notes ol { display: grid; gap: 12px; }
.notes li { padding: 8px 10px; margin: 0 -10px; transition: background-color .4s; scroll-margin-top: calc(var(--nav-h) + 24px); }
.notes li.is-hl, .notes li:focus-visible { background: var(--aijiro); }
.notes li:focus-visible { outline: 2px solid var(--ai); outline-offset: 0; }
.fn-num { color: var(--ai); font-weight: 500; margin-right: 8px; }
.fn-back { min-height: 24px; color: var(--ai); margin-left: 4px; }
.col.is-side .notes { position: absolute; top: 0; left: calc(100% + var(--cg)); width: var(--mw); margin: 0; padding: 0; border: 0; }
.col.is-side .notes-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.col.is-side .notes ol { display: block; }
.col.is-side .notes li { position: absolute; left: 0; right: 0; top: var(--y, 0); margin: 0 -10px; }

/* Figures */
.fig { margin: clamp(40px, 5vw, 64px) 0; }
.fig-media { display: block; position: relative; overflow: hidden; background: var(--tint); }
.fig-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fig-link:focus-visible { outline-offset: -4px; outline-color: var(--kinari); }
.fig-link img { transition: transform .8s var(--ease); }
.fig-link:hover img { transform: scale(1.03); }
.cap { margin-top: 12px; font-size: var(--fs-s); line-height: 1.55; color: var(--slate); max-width: 56ch; }
.cap-n { color: var(--ai); margin-right: 10px; }
.wide { clear: right; margin-right: calc(-1 * (var(--cg) + var(--mw))); }
.bleed { margin: clamp(56px, 7vw, 104px) 0 0; }
.bleed .fig-media { width: 100%; height: min(56.25vw, 88svh); min-height: 240px; }
.bleed .fig-media img { object-position: 50% 40%; }
.bleed .cap { width: var(--mw); margin-left: calc(var(--side) + var(--tw) + var(--cg)); }
.lead { margin-top: 0; margin-bottom: clamp(48px, 6vw, 88px); }
.plain-fig .fig-media { aspect-ratio: 3 / 2; }
.plain-fig .cap { width: var(--mw); margin-left: auto; }

/* Margin figures float into the margin column */
.mg { --w: var(--mw); }
@media (min-width: 1024px) {
  .mg { float: right; clear: right; width: var(--w); margin: 8px calc(-1 * (var(--cg) + var(--w))) 28px 0; }
  .vid-fig { --w: min(var(--mw), 280px); }
}
.mg .fig-media { aspect-ratio: 4 / 5; }
.vid { position: relative; background: var(--kon); }
.vat-video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.vid-toggle { color: var(--ai); min-height: 32px; margin-left: 4px; }

/* Shoppable figures: the piece in the text, its caption in the margin */
.buy-fig { display: grid; grid-template-columns: minmax(0, var(--tw)) minmax(0, var(--mw)); column-gap: var(--cg); align-items: end; }
.buy-fig > .fig-media { width: 100%; height: min(calc(var(--tw) * 1.25), 84svh); }
.buy-fig > .fig-media img { object-position: 50% 22%; }
.buy { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: var(--fs-s); line-height: 1.55; color: var(--slate); }
.buy .cap-n { margin: 0 0 4px; }
.buy-name { font-size: var(--fs-b); font-weight: 500; line-height: 1.3; color: var(--kon); text-decoration: none; }
.buy-name:hover { color: var(--ai); text-decoration: underline; text-underline-offset: 4px; }
.buy-shade { color: var(--kon); }
.buy-shade [lang="ja"] { color: var(--ai); margin-right: 4px; }
.buy-line { max-width: 34ch; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin-top: 4px; color: var(--kon); }
.buy-row .ul { color: var(--ai); }
.buy-price { color: var(--kon); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 32px); align-items: start; }
.pair .fig-media { aspect-ratio: 4 / 5; }
.pair .fig-media img { object-position: 50% 22%; }
.pair .buy, .pair .cap { margin-top: 14px; }
.pair-in .fig-media { aspect-ratio: 3 / 4; }

/* Pull quotes break out across the page */
.pull { margin-block: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }
.pull p { max-width: 24ch; color: var(--ai); }
.pull footer { margin-top: 18px; color: var(--slate); }
.pull-r { padding-left: calc(var(--tw) * .3); }
.press { margin: clamp(80px, 9vw, 140px) 0 0; padding: clamp(80px, 10vw, 160px) var(--gut); background: var(--ai); border: 0; text-align: center; }
.press p { max-width: 26ch; margin: 0 auto; color: var(--kinari); }
.press footer { color: rgba(243, 244, 241, .82); }

/* Draw to find: the sheet sits in the margin of chapter three */
.draw { clear: right; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 1024px) {
  .draw { display: grid; grid-template-columns: minmax(0, var(--tw)) minmax(0, var(--mw)); column-gap: var(--cg); }
  .draw-mg { grid-column: 2; grid-row: 1; }
  .draw-text { grid-column: 1; grid-row: 1; }
  .sheet-block { position: sticky; top: calc(var(--nav-h) + 20px); }
  .draw-text > .ans-fig { margin-top: 0; }
  .ans-jump { display: none; }
}
.draw-text > p:not(:first-child) { margin-top: 1.1em; }
.draw-name { color: var(--slate); }
.draw-name [lang="ja"] { margin-left: 6px; color: var(--ai); }
.draw-q { font-size: var(--fs-b); font-weight: 500; line-height: 1.4; margin: 6px 0 12px; min-height: 2.8em; outline-offset: 4px; }
.sheet-wrap { display: grid; grid-template-columns: 62px minmax(0, 1fr); }
.ruler { position: relative; }
.ruler li { position: absolute; right: 10px; top: var(--y); transform: translateY(-50%); color: var(--slate); }
.ruler li::after { content: ""; position: absolute; right: -10px; top: 50%; width: 6px; height: 1px; background: var(--slate); }
.ruler .u { text-transform: none; letter-spacing: .02em; }
.sheet { position: relative; aspect-ratio: 3 / 4; background: var(--paper); border: 1px solid rgba(26, 43, 76, .24); touch-action: none; overflow: hidden; }
.guides span { position: absolute; left: 0; right: 0; top: var(--y); border-top: 1px dashed rgba(26, 43, 76, .2); }
.sheet-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; transition: opacity .6s var(--ease); }
.sheet.is-read .sheet-canvas { opacity: .3; }
.pattern { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.pattern .pc { fill: none; stroke: var(--ai); stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease); vector-effect: non-scaling-stroke; }
.pattern.is-on .pc { stroke-dashoffset: 0; }
.pattern .pl { font-family: var(--hand); font-size: 22px; fill: var(--kon); opacity: 0; transition: opacity .5s; }
.pattern .pl tspan.ja { letter-spacing: .06em; }
.pattern.is-on .pl { opacity: 1; }
.sheet-tools, .samples { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; margin-left: 62px; }
.sheet-tools { margin-top: 4px; color: var(--ai); }
.samples { color: var(--ai); }
.samples > span { color: var(--slate); width: 100%; margin-top: 4px; }
.describe { margin: 8px 0 4px 62px; }
.describe label { display: block; color: var(--slate); }
.describe-row { display: flex; gap: 16px; align-items: center; }
.describe input {
  flex: 1; min-width: 0; min-height: 48px;
  background: transparent; color: var(--kon);
  border: 0; border-bottom: 1px solid var(--kon); border-radius: 0;
  font: 400 var(--fs-b)/1.4 var(--f);
}
.describe-row .ul { color: var(--ai); }
.clarify { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px 62px; }
.ans-jump { margin-left: 62px; color: var(--ai); }

.ans-fig { outline: none; scroll-margin-top: calc(var(--nav-h) + 24px); }
.answer { min-width: 0; }
.starts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.start { display: block; text-align: left; color: var(--kon); cursor: pointer; }
.start-img { display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--tint); }
.start-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.start:hover .start-img img { transform: scale(1.03); }
.start .u { display: inline-flex; align-items: center; min-height: 44px; color: var(--ai); }
.start:active { opacity: .8; }
.ai-note { display: block; margin-top: 4px; color: var(--kon); }

.ans { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.ans-look { aspect-ratio: 2 / 3; overflow: hidden; background: var(--tint); }
.ans-look img { width: 100%; height: 100%; object-fit: cover; }
.ans-body > * + * { margin-top: 12px; }
.ans-body { font-size: var(--fs-s); line-height: 1.55; }
.ans-body > p:not(.u) { color: var(--slate); }
.ans-note { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--kon) !important; }
.ans-name { font-weight: 300; font-size: var(--fs-l); line-height: 1.08; letter-spacing: -.01em; color: var(--ai); }
.ans-shape { color: var(--kon); }
.ans-price { color: var(--kon); }
.ans-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.ans-buy .ul { color: var(--ai); }
.ans-refine { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: center; color: var(--ai); }
.ans-refine > span { color: var(--slate); width: 100%; }
.ans-close { border-top: 1px solid var(--line); padding-top: 8px; }
.crow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 0; color: var(--kon); text-decoration: none; border-bottom: 1px solid var(--line); }
.crow img { width: 44px; aspect-ratio: 3 / 4; object-fit: cover; }
.crow:hover .crow-n { color: var(--ai); }
.crow-s { color: var(--slate); }
.ans-mto { color: var(--ai); }
.ans .rv { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.ans.is-in .rv { opacity: 1; transform: none; }
.ans-look.rv { transform: none; clip-path: inset(100% 0 0 0); transition: opacity .3s, clip-path 1s var(--ease); }
.ans.is-in .ans-look.rv { clip-path: inset(0 0 0 0); }

/* Workshop sessions: an insert in chapter four */
.book { margin-block: clamp(48px, 6vw, 80px); padding: clamp(24px, 3vw, 44px); background: var(--aijiro); scroll-margin-top: calc(var(--nav-h) + 16px); }
.book-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 24px; }
.book-steps { display: flex; flex-wrap: wrap; gap: 4px 22px; color: var(--slate); }
.book-steps li { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; }
.book-steps li span { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); letter-spacing: 0; }
.book-steps li.on { color: var(--kon); }
.book-steps li.on span { background: var(--kon); border-color: var(--kon); color: var(--kinari); }
.book-steps li.done span { border-color: var(--kon); color: var(--kon); }
.bk-lead { font-size: var(--fs-s); color: var(--slate); margin-bottom: 18px; outline: none; }
.bk-h { color: var(--slate); outline: none; }
.sess-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sess {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto;
  width: 100%; height: 100%; text-align: left;
  background: var(--kinari); color: var(--kon);
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color .3s;
}
.sess:hover:not([disabled]) { border-color: var(--kon); }
.sess:hover:not([disabled]) .sess-img img { transform: scale(1.03); }
.sess-img { display: block; aspect-ratio: 3 / 1; overflow: hidden; background: var(--tint); }
.sess-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .8s var(--ease); }
.sess-date { display: flex; align-items: baseline; gap: 12px; padding: 12px 20px 0; }
.sess-day { font-weight: 300; font-size: var(--fs-l); line-height: 1; color: var(--ai); }
.sess-wd { color: var(--slate); }
.sess-t { padding: 10px 20px 0; font-weight: 500; line-height: 1.35; }
.sess-make { padding: 4px 20px 0; font-size: var(--fs-s); line-height: 1.5; color: var(--slate); }
.sess-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 12px 20px 16px; color: var(--kon); }
.sess-left { color: var(--ai); }
.sess[disabled] { cursor: not-allowed; background: rgba(243, 244, 241, .55); }
.sess[disabled] .sess-img img { filter: grayscale(1); opacity: .45; }
.sess[disabled] .sess-day, .sess[disabled] .sess-left { color: var(--slate); }

.bk-2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.bk-chosen { background: var(--kinari); }
.bk-chosen .sess-img { aspect-ratio: 16 / 10; }
.bk-chosen .sess-meta { padding-bottom: 20px; }
.seats { padding-top: 4px; }
.stepper { display: flex; align-items: center; gap: 0; margin-top: 14px; }
.st-btn { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--kon); font-size: var(--fs-l); font-weight: 300; line-height: 1; cursor: pointer; transition: background-color .3s, color .3s; }
.st-btn:hover:not([disabled]) { background: var(--kon); color: var(--kinari); }
.st-btn[disabled] { opacity: .35; cursor: not-allowed; }
.st-n { min-width: 88px; text-align: center; font-weight: 300; font-size: var(--fs-xl); line-height: 1; color: var(--ai); }
.st-cap { margin-top: 12px; color: var(--slate); }
.st-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--kon); max-width: 420px; }
.st-sum { font-weight: 300; font-size: var(--fs-l); line-height: 1.1; }
.st-note { margin-top: 10px; font-size: var(--fs-s); color: var(--slate); max-width: 40ch; }
.bk-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 24px; }
.bk-nav .ul { color: var(--ai); }
.bk-form { max-width: 520px; }
.bk-sum { margin: 8px 0 18px; font-size: var(--fs-s); color: var(--kon); }
.bk-form .field input { background: transparent; }

.ticket {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 34%, 340px);
  background: var(--ai); color: var(--kinari);
  outline: none;
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; right: clamp(240px, 34%, 340px); width: 24px; height: 24px; margin-right: -12px;
  border-radius: 50%; background: var(--aijiro);
}
.ticket::before { top: -12px; }
.ticket::after { bottom: -12px; }
.tk-main { padding: clamp(24px, 3vw, 40px); min-width: 0; }
.tk-house { color: rgba(243, 244, 241, .82); }
.tk-title { margin-top: 14px; color: var(--kinari); }
.tk-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin-top: 22px; }
.tk-dl dt { color: rgba(243, 244, 241, .78); }
.tk-dl dd { margin-top: 2px; font-size: var(--fs-b); }
.tk-where { margin-top: 22px; font-size: var(--fs-s); color: rgba(243, 244, 241, .86); max-width: 46ch; }
.tk-stub { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: clamp(24px, 3vw, 40px) clamp(16px, 1.6vw, 22px); border-left: 1px dashed var(--line-k); min-width: 0; }
.tk-stub .u { color: rgba(243, 244, 241, .82); }
.tk-ref { font-weight: 300; font-size: var(--fs-l); line-height: 1.05; letter-spacing: 0; }
.tk-pay { font-size: var(--fs-b); margin-top: 2px; }
.tk-seal { display: inline-grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--kinari); font-size: var(--fs-l); line-height: 1; letter-spacing: 0; }
.tk-note { margin-top: 18px; font-size: var(--fs-s); color: var(--kon); max-width: 60ch; }

/* End matter */
.credits { padding-top: clamp(96px, 10vw, 152px); }
.credits-h { color: var(--slate); padding-top: 20px; border-top: 1px solid var(--kon); margin-bottom: 8px; }
.cr { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; grid-template-areas: "img name price add" "img at price add"; column-gap: 18px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cr-img { grid-area: img; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--tint); }
.cr-img img { width: 100%; height: 100%; object-fit: cover; }
.cr-name { grid-area: name; color: var(--kon); text-decoration: none; font-weight: 500; align-self: end; }
.cr-name:hover { color: var(--ai); text-decoration: underline; text-underline-offset: 4px; }
.cr-at { grid-area: at; color: var(--slate); align-self: start; }
.cr-price { grid-area: price; }
.cr .ul { grid-area: add; color: var(--ai); min-width: 44px; justify-content: flex-end; }

/* Footer: the giant indigo wordmark */
.foot { margin-top: clamp(96px, 10vw, 152px); padding: clamp(56px, 6vw, 88px) var(--gut) 28px; border-top: 1px solid var(--line); overflow: hidden; }
.foot-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 40px; align-items: start; }
.foot-l { display: block; color: var(--slate); margin-bottom: 10px; }
.colophon p:not(.u), .foot-addr { font-size: var(--fs-s); line-height: 1.6; max-width: 46ch; }
.foot-addr { margin-top: 12px; color: var(--slate); }
.news-row { display: flex; gap: 16px; max-width: 460px; }
.news input, .field input, .field select, .field textarea, .s-in {
  width: 100%; min-height: 48px;
  background: transparent; color: var(--kon);
  border: 0; border-bottom: 1px solid var(--kon); border-radius: 0;
  font: 400 var(--fs-b)/1.4 var(--f);
}
.news input { flex: 1; min-width: 0; }
.news-row button { color: var(--ai); }
.news-done { min-height: 1.4em; margin-top: 8px; color: var(--slate); }
input::placeholder, textarea::placeholder { color: var(--slate); opacity: .8; }
.foot-links { display: flex; flex-direction: column; align-items: flex-start; color: var(--kon); }
.foot-ja { font-size: var(--fs-u); line-height: 1.5; }
.giant {
  margin-top: clamp(48px, 6vw, 96px);
  font-weight: 300; font-size: 19.5vw; line-height: .78; letter-spacing: -.02em;
  color: var(--ai); text-align: center; white-space: nowrap;
  margin-inline: calc(var(--gut) * -1);
}
.foot-note { margin-top: 28px; color: var(--slate); font-size: var(--fs-u); letter-spacing: .02em; }

/* Overlays */
.ov { position: fixed; inset: 0; z-index: 100; background: var(--kinari); overflow-y: auto; overscroll-behavior: contain; opacity: 0; transition: opacity .4s var(--ease); }
.ov.is-in { opacity: 1; }
.ov-bar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 16px; height: var(--nav-h); padding: 0 var(--gut); background: var(--kinari); border-bottom: 1px solid var(--line); }
.ov-bar .wordmark { font-size: 18px; }
.ov-close { color: var(--ai); }
html.ov-on { overflow: hidden; }

/* Contents */
.toc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); padding: clamp(28px, 4vw, 56px) var(--gut) 72px; max-width: 1480px; margin: 0 auto; }
.toc-side { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.toc-issue { color: var(--slate); }
.toc-h { margin-top: 14px; color: var(--ai); outline: none; }
.toc-more { display: flex; flex-direction: column; align-items: flex-start; margin-top: 32px; color: var(--ai); }
.toc-list { border-bottom: 1px solid var(--line); }
.toc-row { display: grid; grid-template-columns: 64px clamp(92px, 9vw, 132px) minmax(0, 1fr); gap: clamp(16px, 2vw, 32px); align-items: center; padding: 16px 0; border-top: 1px solid var(--line); color: var(--kon); text-decoration: none; }
.toc-n { color: var(--ai); }
.toc-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint); }
.toc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.toc-row:hover .toc-img img, .toc-row:focus-visible .toc-img img { transform: scale(1.05); }
.toc-txt { display: flex; flex-direction: column; gap: 6px; }
.toc-t { font-weight: 300; font-size: var(--fs-l); line-height: 1.1; letter-spacing: -.01em; transition: color .3s; }
.toc-row:hover .toc-t { color: var(--ai); }
.toc-d { font-size: var(--fs-s); line-height: 1.5; color: var(--slate); max-width: 46ch; }

/* The piece: images scroll in one column, the details stay */
.pd-bar .pd-wm { position: absolute; left: 50%; transform: translateX(-50%); }
.pd-back { color: var(--ai); }
.pd { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 96px); padding: 24px var(--gut) 96px; max-width: 1480px; margin: 0 auto; }
.pd-imgs { display: grid; gap: clamp(16px, 2vw, 28px); }
.pd-g { position: relative; background: var(--tint); }
.pd-g img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-g1 { aspect-ratio: 3 / 4; }
.pd-g2 { aspect-ratio: 4 / 5; }
.pd-g2 img { object-position: 50% 20%; }
.pd-g3 { aspect-ratio: 1; }
.pd-g figcaption { position: absolute; left: 0; bottom: 0; padding: 8px 12px; background: var(--kinari); color: var(--kon); }
.pd-info { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; padding-top: 8px; }
.pd-seen { color: var(--ai); }
.pd-info h2 { margin-top: 8px; outline: none; }
.pd-price { margin-top: 16px; font-size: var(--fs-b); }
.pd-price .u { color: var(--slate); margin-left: 6px; }
.pd-dips { margin-top: 18px; }
.pd-dips .u { color: var(--kon); }
.pd-dips [lang="ja"] { color: var(--ai); }
.pd-ladder { display: flex; gap: 2px; margin-top: 10px; max-width: 420px; }
.pd-ladder span { flex: 1; height: 10px; background: var(--c); border: 1px solid var(--line); }
.pd-sizes { margin-top: 26px; }
.pd-sizes legend { margin-bottom: 10px; color: var(--slate); }
.sizes { display: flex; gap: 8px; }
.size { position: relative; cursor: pointer; }
.size input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.size > span { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); transition: background-color .3s, color .3s, border-color .3s; }
.size:hover > span { border-color: var(--kon); }
.size input:checked + span { background: var(--kon); color: var(--kinari); border-color: var(--kon); }
.size input:focus-visible + span { outline: 2px solid var(--ai); outline-offset: 2px; }
.pd-fit { margin-top: 14px; font-size: var(--fs-s); line-height: 1.55; color: var(--slate); max-width: 44ch; }
.pd-buy { display: flex; align-items: center; gap: 24px; margin-top: 22px; }
.pd-tobag { color: var(--ai); }
.pd-dl { margin-top: 32px; border-top: 1px solid var(--line); font-size: var(--fs-s); line-height: 1.55; }
.pd-dl > div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; }
.pd-dl dt { color: var(--slate); padding-top: 2px; }

/* Bag and checkout: the tato */
.ov-bag { background: rgba(26, 43, 76, .9); padding: 72px 16px 56px; }
.ov-bag > .bag-close { position: fixed; top: 10px; right: var(--gut); z-index: 5; color: var(--kinari); }
.ov-bag > .bag-close:focus-visible { outline-color: var(--kinari); }
.tato {
  --tw: min(340px, calc((100vw - 64px) / 3));
  --th: min(600px, calc(100svh - 168px));
  position: relative;
  width: calc(var(--tw) * 3);
  margin: 0 auto;
  padding-top: 64px;
  perspective: 2200px;
  font-size: var(--fs-s);
  line-height: 1.5;
}
.tato-sheet { position: relative; width: calc(var(--tw) * 3); height: var(--th); transform-style: preserve-3d; transform: translateX(var(--tw)) scale(.62); transform-origin: 16.6% 50%; transition: transform .7s var(--ease) .9s; }
.panel.p-bag { position: absolute; left: 0; top: 0; width: var(--tw); height: var(--th); transform-style: preserve-3d; background: var(--kinari); border: 1px solid var(--line); }
.panel-in { position: absolute; inset: 0; overflow-y: auto; padding: 22px 22px 24px; overscroll-behavior: contain; }
.flap { position: absolute; top: 0; left: 100%; width: var(--tw); height: var(--th); transform-style: preserve-3d; transition: transform .7s var(--ease); }
.face { position: absolute; inset: 0; background: var(--kinari); border: 1px solid var(--line); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.back { transform: rotateY(180deg); }
.f2 { transform-origin: 0 50%; transform: rotateY(-180deg) translateZ(-2px); transition-delay: .55s; }
.f3 { transform-origin: 0 50%; transform: rotateY(-180deg) translateZ(-1px); transition-delay: 0s; }
.f-top { left: 0; top: auto; bottom: 100%; height: 64px; transform-origin: 50% 100%; transform: rotateX(-180deg) translateZ(-.5px); transition-delay: 0s; }
.f-top .face.back { transform: rotateX(180deg); }
.f-top .face.front { display: flex; align-items: center; justify-content: space-between; padding: 0 22px; color: var(--slate); }
.tato.no-tr, .tato.no-tr * { transition: none !important; }
.tato.is-sealed .tato-sheet { transform: translateX(var(--tw)); }
.tato.is-open .tato-sheet { transform: none; transition-delay: 0s; }
.tato.is-open .f2 { transform: none; transition-delay: .15s; }
.tato.is-open .f3 { transform: none; transition-delay: .75s; }
.tato.is-open .f-top { transform: none; transition-delay: 1.3s; }
.cover-tato { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px 20px; text-align: center; }
.cover-tato .cv-mark { font: 500 22px/1 var(--f); letter-spacing: .18em; padding-left: .18em; }
.cover-tato .cv-ja { font-size: 40px; color: var(--ai); }
.cover-tato .cv-fold { position: absolute; left: 0; right: 0; top: 64px; border-top: 1px solid var(--line); }
.cover-tato .cv-order { font-weight: 300; font-size: min(var(--fs-l), 40px); line-height: 1.1; letter-spacing: 0; outline: none; }
.cover-tato .cv-thanks { font-size: min(18px, calc(var(--tw) / 17)); white-space: nowrap; max-width: none; }
.cover-tato p { max-width: 26ch; }
.cover-tato .btn { margin-top: 8px; }
.t-h { color: var(--slate); margin-bottom: 14px; outline-offset: 4px; }
.t-empty { margin-top: 12px; }
#t-bag > .ul { color: var(--ai); }
.t-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.t-item img { width: 56px; aspect-ratio: 3 / 4; object-fit: cover; }
.t-item-top { display: flex; justify-content: space-between; gap: 8px; }
.t-item-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; color: var(--slate); }
.t-item-sub > .u { white-space: nowrap; }
.t-item-sub .ul { color: var(--ai); min-height: 44px; }
.qty { display: inline-flex; align-items: center; }
.qty button { width: 44px; height: 44px; display: inline-grid; place-items: center; cursor: pointer; border: 1px solid var(--line); }
.qty button:hover { border-color: var(--kon); }
.qty span { min-width: 24px; text-align: center; }
.t-sub { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--kon); margin-top: 4px; }
.t-next { margin-top: 8px; width: 100%; }
.t-methods { display: grid; gap: 4px; margin-bottom: 14px; }
.t-methods legend { margin-bottom: 6px; color: var(--slate); }
.opt { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; }
.opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--kon); flex: none; }
.opt > span { display: flex; flex-direction: column; line-height: 1.3; }
.opt-p { color: var(--slate); }
.field { margin-bottom: 12px; }
.field label { display: block; color: var(--slate); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field select { appearance: none; background: transparent; cursor: pointer; }
.field textarea { min-height: 88px; resize: vertical; padding-top: 10px; }
.err { min-height: 0; color: var(--ai); font-size: var(--fs-u); font-weight: 500; letter-spacing: .04em; }
.err:empty { display: none; }
[aria-invalid="true"] { border-bottom-color: var(--ai) !important; border-bottom-width: 2px !important; }
.pay-note { color: var(--slate); margin: 4px 0 12px; }
.totals { margin: 8px 0 14px; border-top: 1px solid var(--line); }
.totals > div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals > div:last-child { border-top: 1px solid var(--kon); margin-top: 4px; padding-top: 10px; }
.totals dt { color: var(--slate); }
#t-place { width: 100%; }

/* Made to order */
.mto-o { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 88px); padding: 32px var(--gut) 80px; max-width: 1280px; margin: 0 auto; }
.mto-sheet { position: relative; aspect-ratio: 3 / 4; border: 1px solid var(--line); background: var(--paper); }
.mto-sheet svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mto-sheet .ms-line { fill: none; stroke: var(--kon); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .35; }
.mto-sheet .pc { fill: none; stroke: var(--ai); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.mto-sheet .pl { font-family: var(--hand); font-size: 22px; fill: var(--kon); }
.mto-sheet .ms-empty { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; text-align: center; padding: 24px; color: var(--slate); }
.mto-sheet .ms-empty a { color: var(--ai); justify-self: center; }
.mto-cap { margin-top: 10px; color: var(--slate); }
.mto-form h2 { outline: none; }
.mto-form > p:not(.mto-done) { margin: 16px 0 24px; color: var(--slate); max-width: 46ch; }
.mto-done { margin-top: 14px; min-height: 1.6em; }

/* Search */
.search { max-width: 960px; margin: 0 auto; padding: 40px var(--gut) 80px; }
.search label { color: var(--slate); }
.s-in { font-weight: 300; font-size: var(--fs-l); min-height: 72px; margin-top: 8px; }
.s-count { margin-top: 14px; color: var(--slate); }
.s-list { margin-top: 12px; border-top: 1px solid var(--line); }
.s-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--kon); text-decoration: none; }
.s-row img { width: 64px; aspect-ratio: 3 / 4; object-fit: cover; }
.s-row:hover .s-n { color: var(--ai); }
.s-kind { color: var(--slate); }

/* Legal */
.legal { max-width: 820px; margin: 0 auto; padding: 40px var(--gut) 96px; }
.legal-h { font-weight: 400; font-size: var(--fs-l); line-height: 1.3; letter-spacing: .06em; margin-bottom: 10px; outline: none; }
.legal > p { color: var(--slate); max-width: 60ch; }
.legal > p.u { margin-bottom: 28px; }
.legal-dl { border-top: 1px solid var(--line); margin-bottom: 40px; }
.legal-dl > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.legal-dl dt { font-size: var(--fs-s); }
.legal-sub { margin: 28px 0 10px; color: var(--kon); outline: none; }

/* Under 1024: one column, the margin folds into the text */
@media (max-width: 1023px) {
  .cover-pin { display: flex; flex-direction: column; }
  .mast { padding: 20px var(--gut) 18px; gap: 12px; flex: none; }
  .mast .standfirst, .cover-hint { display: none; }
  .mast-body { display: flex; flex-direction: column; }
  .byline { flex-direction: row; flex-wrap: wrap; gap: 2px 16px; margin-top: 14px; }
  .dips { flex: 1; }
  .ch-head { grid-template-columns: minmax(0, 1fr); }
  .ch-head h2, .ch-dek { grid-column: 1; }
  .ch-dek { margin-top: 14px; }
  .bleed .cap { width: var(--tw); margin-left: var(--side); }
  .plain-fig .cap { width: auto; }
  .buy-fig { grid-template-columns: minmax(0, 1fr); }
  .buy-fig .buy { margin-top: 14px; }
  .mg { width: min(100%, 420px); margin: 40px 0; }
  .vid-fig { width: min(100%, 320px); }
  .pull-r { padding-left: 0; }
  .sheet-block { max-width: 520px; }
  .draw-text { margin-top: 40px; }
  .toc { grid-template-columns: minmax(0, 1fr); }
  .toc-side { position: static; }
  .toc-more { flex-direction: row; flex-wrap: wrap; gap: 0 22px; margin-top: 16px; }
  .pd { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  .pd-info { position: static; }
  .pd-imgs { grid-auto-flow: column; grid-auto-columns: min(78%, 460px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pd-imgs::-webkit-scrollbar { display: none; }
  .pd-g { scroll-snap-align: start; }
  .pd-g1, .pd-g2, .pd-g3 { aspect-ratio: 3 / 4; }
  .sess-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .colophon { grid-column: 1 / -1; }
  .mto-o { grid-template-columns: minmax(0, 1fr); }
  .mto-sketch { max-width: 360px; }
}
@media (max-width: 899px) {
  /* the tato unfolds downward on phones */
  .ov-bag { padding: 64px 16px 40px; }
  .tato { --tw: calc(100vw - 32px); --th: 560px; width: var(--tw); }
  .tato.is-open { padding-bottom: calc(var(--th) * 2); }
  .tato-sheet { width: var(--tw); transform: scale(.8); transform-origin: 50% 0; }
  .tato.is-sealed .tato-sheet { transform: none; }
  .flap { left: 0; top: 100%; }
  .f2 { transform-origin: 50% 0; transform: rotateX(180deg) translateZ(-2px); }
  .f3 { transform-origin: 50% 0; transform: rotateX(180deg) translateZ(-1px); }
  .f2 > .face.back, .f3 > .face.back { transform: rotateX(180deg); }
  .f-top { top: auto; }
}
@media (max-width: 759px) {
  .wordmark { font-size: 20px; }
  .byline span:nth-child(2) { display: none; }
  .plate { padding: 14px 16px 16px; }
  .ladder { margin-top: 12px; }
  .is-static .dips-strip, .no-pin .dips-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pair-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  .pair-in .buy-row { flex-direction: column; align-items: flex-start; }
  .starts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ans { grid-template-columns: minmax(0, 1fr); }
  .ans-look { aspect-ratio: 4 / 5; }
  .sheet-wrap { grid-template-columns: 58px minmax(0, 1fr); }
  .sheet-tools, .samples, .describe, .clarify, .ans-jump { margin-left: 0; }
  .book { margin-inline: calc(var(--gut) * -1); padding: 28px var(--gut); }
  .sess-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sess { grid-template-columns: 100px minmax(0, 1fr); grid-template-rows: auto auto auto auto; }
  .sess-wd { letter-spacing: .04em; }
  .sess-img { display: none; }
  .sess-date { grid-column: 1; grid-row: 1 / span 4; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 0 16px 16px; }
  .sess-t, .sess-make, .sess-meta { grid-column: 2; }
  .sess-t { padding: 16px 16px 0; }
  .sess-make { padding: 4px 16px 0; }
  .sess-meta { padding: 12px 16px 16px; justify-content: flex-start; }
  .bk-2 { grid-template-columns: minmax(0, 1fr); }
  .bk-chosen .sess-img { display: block; }
  .bk-chosen .sess { grid-template-columns: minmax(0, 1fr); }
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .ticket::before, .ticket::after { display: none; }
  .tk-stub { border-left: 0; border-top: 1px dashed var(--line-k); flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
  .tk-dl { grid-template-columns: minmax(0, 1fr); }
  .cr { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "img name add" "img at add" "img price add"; column-gap: 14px; }
  .toc-row { grid-template-columns: 50px 72px minmax(0, 1fr); gap: 12px; }
  .pd-dl > div, .legal-dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pd-bar .pd-wm { display: none; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
}

/* Reduced motion and capture: calm final state */
@media (prefers-reduced-motion: reduce) {
  .fig-link img, .toc-img img, .sess-img img, .ul::after { transition: none; }
}
.is-static .ans .rv { opacity: 1; transform: none; clip-path: none; }
