/* The marbling tray: a walnut trough of size on a studio table; the work floats on it as drops of color.
   Pages are sheets of laid paper with the print you pulled. */
:root {
  --walnut: #1c120b;
  --paper: #efe6d2;
  --paper2: #e6dbc3;
  --ink: #2a2521;
  --ink2: #5d5247;
  --rule: rgba(42, 37, 33, .22);
  --rust: #8a3a27;
  --indigo: #233a6a;
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --sc: "Cormorant SC", "EB Garamond", Georgia, serif;
  --fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .045' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .16 -.02'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23f)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--walnut); color: var(--ink); font: 400 17px/1.55 var(--serif); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid #f3c86a; outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

/* ------------------------------------------------------------ the tray */
#trayWrap { position: fixed; inset: 0; overflow: hidden; background: var(--walnut); }
#tray { position: absolute; left: 0; top: 0; display: block; touch-action: none; cursor: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.coarse #tray { cursor: auto; }
body.open #trayWrap { visibility: hidden; }

/* labels: each stone's title, set where the drop sits; they follow the color while it moves and let go when it is drawn out */
#labels { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.lab { position: absolute; left: 0; top: 0; transform: translate3d(var(--x), var(--y), 0) translate(-50%, -50%); width: var(--w); padding: 2px 4px; margin: 0; border: 0; background: none;
  font: italic 500 var(--fs)/1.08 var(--serif); color: #fffaf0; text-align: center; letter-spacing: .005em;
  text-shadow: 0 0 2px rgba(10, 8, 14, .9), 0 1px 6px rgba(10, 8, 14, .85), 0 0 18px rgba(10, 8, 14, .55);
  pointer-events: none; opacity: var(--a, 1); transition: opacity .35s; will-change: transform; text-wrap: balance; }
.lab .c { display: block; font: 600 calc(var(--fs) * .62)/1.2 var(--sc); letter-spacing: .14em; font-style: normal; opacity: 0; max-height: 0; transition: opacity .25s, max-height .25s; }
.lab.hot .c, .lab:focus-visible .c { opacity: .92; max-height: 2em; }
.lab.hot .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(255, 250, 240, .6); }
.lab:focus-visible { outline: 1.5px solid #f3c86a; outline-offset: 2px; border-radius: 3px; }
body.booting .lab { opacity: 0; }

/* the hover caption: which film the color under the stylus came from */
#cap { position: absolute; left: 0; top: 0; margin: 0; pointer-events: none; padding: 3px 8px 4px; background: var(--paper); color: var(--ink);
  font: italic 500 14px/1.2 var(--serif); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); opacity: 0; transition: opacity .2s; white-space: nowrap; }
#cap b { font: 600 10px/1 var(--sc); letter-spacing: .14em; font-style: normal; margin-left: 6px; color: var(--ink2); }
#cap.on { opacity: 1; }

/* the tool in hand */
#tool { position: absolute; left: 0; top: 0; width: 1px; height: 1px; pointer-events: none; opacity: 0; transition: opacity .2s; }
#tool.on { opacity: 1; }
#tool svg { position: absolute; overflow: visible; }
#bar { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
#bar.on { opacity: 1; }
#bar .beam { position: absolute; background: linear-gradient(90deg, #3b2414, #6d4526 45%, #4a2d18); box-shadow: 0 6px 14px rgba(0, 0, 0, .35); border-radius: 2px; }
#bar .tines { position: absolute; }

/* ------------------------------------------------------------ the rim: tickets pasted on the walnut */
.ticket { display: inline-block; margin: 0; padding: 5px 12px 6px; background: var(--paper) var(--fiber); color: var(--ink); text-decoration: none;
  font: 600 14px/1 var(--sc); letter-spacing: .16em; box-shadow: inset 0 0 0 1px rgba(42, 37, 33, .55), inset 0 0 0 3px var(--paper), inset 0 0 0 3.6px rgba(42, 37, 33, .35), 0 1px 2px rgba(0, 0, 0, .45); }
a.ticket:hover, button.ticket:hover { background-color: #f7f0e1; }
#top { position: absolute; left: 0; right: 0; top: 0; height: var(--rimT, 56px); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--rimS, 28px); pointer-events: none; }
#top > * { pointer-events: auto; }
#top .name { font-size: 17px; padding: 7px 14px 8px; letter-spacing: .2em; transform: rotate(-.6deg); }
#top nav { display: flex; gap: 10px; }
#top nav .ticket:nth-child(2) { transform: rotate(.5deg); }
#rack { position: absolute; left: 0; right: 0; bottom: 0; height: var(--rimB, 64px); display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 var(--rimS, 28px) env(safe-area-inset-bottom); }
.tl { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 8px; border: 0; border-radius: 3px; background: transparent; color: #e9dcc2; cursor: pointer; font: 600 13px/1 var(--sc); letter-spacing: .14em; }
.tl svg { width: 34px; height: 14px; fill: none; stroke: #e9dcc2; }
.tl svg .wood { fill: #7a4c28; stroke: none; }
.tl svg .paper { fill: #efe6d2; stroke: none; }
.tl svg .drop { fill: none; stroke: #e9dcc2; stroke-width: 1.2; }
.tl[aria-pressed="true"] { background: rgba(239, 230, 210, .12); box-shadow: inset 0 0 0 1px rgba(239, 230, 210, .35); color: #fff7e6; }
#snd[aria-pressed="true"] svg .drop { fill: #b8862f; }
.tl:hover { color: #fff7e6; }
.sep { width: 1px; height: 22px; background: rgba(233, 220, 194, .22); margin: 0 6px; }

/* the sheet being laid and lifted */
.sheet { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; background: var(--paper) var(--fiber); transform-origin: 50% 0; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.sheet canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; mix-blend-mode: multiply; }
.strip { position: absolute; z-index: 4; pointer-events: none; width: 26px; background: #e9e1cf var(--fiber); box-shadow: 4px 0 12px rgba(0, 0, 0, .35); }
.strip::before { content: ""; position: absolute; inset: 8px 6px; background: repeating-linear-gradient(0deg, rgba(42, 37, 33, .28) 0 1px, transparent 1px 5px); }

/* ------------------------------------------------------------ pages: a sheet of laid paper */
#page { display: none; min-height: 100vh; background: var(--paper) var(--fiber); color: var(--ink); padding: 0 0 80px; }
body.open #page:not([hidden]) { display: block; }
#page.fade { opacity: 0; }
#page { transition: opacity .32s ease; }
.pbar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: linear-gradient(var(--paper) 70%, rgba(239, 230, 210, 0)); }
.pbar .ticket { cursor: pointer; border: 0; }
.leaf { max-width: 1040px; margin: 0 auto; padding: 8px 28px 0; }
.plate { position: relative; margin: 10px auto 0; width: min(100%, 760px); }
.plate canvas, .plate img.pr { display: block; width: 100%; height: auto; mix-blend-mode: multiply; filter: saturate(1.04); }
.plate .deck { position: relative; background: #f4ecdb; padding: 0; box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 8px 22px rgba(60, 40, 20, .16); }
.plate.wide { width: min(100%, 980px); }
.cap { text-align: center; margin: 22px auto 6px; }
.cap .cl { font: 600 13px/1 var(--sc); letter-spacing: .22em; color: var(--ink2); }
.cap h1 { margin: 8px 0 0; font: italic 500 clamp(34px, 6vw, 60px)/1.02 var(--serif); letter-spacing: -.01em; }
.cap .role { margin: 10px 0 0; font: 600 15px/1.2 var(--sc); letter-spacing: .14em; color: var(--ink2); }
.lede { max-width: 640px; margin: 18px auto 0; text-align: center; font-size: 20px; line-height: 1.5; }
.credits { max-width: 760px; margin: 18px auto 0; text-align: center; font-size: 14.5px; color: var(--ink2); line-height: 1.6; }
.credits span { display: inline-block; margin: 0 9px; }
.credits b { font: 600 11px/1 var(--sc); letter-spacing: .14em; margin-right: 5px; color: var(--ink); }
.orn { display: block; width: 120px; height: 14px; margin: 34px auto 6px; }
.sec { margin: 34px 0 0; }
.sec h2 { margin: 0 0 6px; text-align: center; font: 600 16px/1.2 var(--sc); letter-spacing: .2em; }
.sec .txt { max-width: 640px; margin: 0 auto 18px; text-align: center; color: var(--ink2); }
.films { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 26px; margin-top: 18px; }
.films.one { grid-template-columns: minmax(0, 820px); justify-content: center; }
.films.vertical { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.film { margin: 0; }
.frame { position: relative; aspect-ratio: 16 / 9; background: #1a1512; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 6px 16px rgba(60, 40, 20, .18); }
.films.vertical .frame { aspect-ratio: 9 / 16; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* photo corners: the plates are tipped in */
.film .frame::before, .film .frame::after, .shot::before, .shot::after { content: ""; position: absolute; z-index: 2; width: 18px; height: 18px; pointer-events: none; }
.film .frame::before, .shot::before { left: -1px; top: -1px; background: linear-gradient(135deg, #2b211a 50%, transparent 50%); }
.film .frame::after, .shot::after { right: -1px; bottom: -1px; background: linear-gradient(315deg, #2b211a 50%, transparent 50%); }
.frame.playing::before, .frame.playing::after { display: none; }
.play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .35)); cursor: pointer; padding: 0; }
.play .pb { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 10px 13px; background: var(--paper) var(--fiber); color: var(--ink); font: 600 13px/1 var(--sc); letter-spacing: .16em; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.play .pb::before { content: ""; width: 0; height: 0; border-left: 9px solid var(--rust); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.play:hover .pb { background-color: #fff8ea; }
.film figcaption { margin-top: 8px; font-style: italic; font-size: 15.5px; color: var(--ink2); text-align: center; }
.group { display: grid; gap: 18px; margin: 18px 0 0; }
.group.row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.group.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.group.full { grid-template-columns: minmax(0, 880px); justify-content: center; }
.shot { position: relative; margin: 0; background: #fff; padding: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 6px 16px rgba(60, 40, 20, .14); }
.shot img { display: block; width: 100%; height: auto; }
.radio { list-style: none; margin: 18px auto 0; padding: 0; max-width: 640px; }
.spot { display: grid; grid-template-columns: 42px 1fr auto; grid-template-rows: auto auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule); }
.spot:last-child { border-bottom: 1px solid var(--rule); }
.spot .pp { grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; cursor: pointer; position: relative; }
.spot .pp::before { content: ""; position: absolute; left: 16px; top: 13px; border-left: 12px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.spot.on .pp::before { left: 14px; top: 13px; width: 4px; height: 15px; border: 0; background: var(--ink); box-shadow: 8px 0 0 var(--ink); }
.spot .t { font-style: italic; font-size: 18px; }
.spot .time { font: 500 13px/1 var(--sc); letter-spacing: .1em; color: var(--ink2); }
.spot .bar { grid-column: 2 / 4; height: 14px; position: relative; cursor: pointer; }
.spot .bar::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--rule); }
.spot .bar i { position: absolute; left: 0; top: 6px; height: 2px; width: 0; background: var(--rust); }
.pn { display: flex; justify-content: space-between; gap: 20px; margin: 64px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); }
.pn a { text-decoration: none; display: flex; flex-direction: column; gap: 4px; max-width: 46%; }
.pn a:last-child { text-align: right; align-items: flex-end; }
.pn small { font: 600 11px/1 var(--sc); letter-spacing: .2em; color: var(--ink2); }
.pn span { font-style: italic; font-size: 24px; line-height: 1.15; }
.pn a:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* About */
.bio { max-width: 640px; margin: 20px auto 0; text-align: center; font-size: 19px; }
.contact { text-align: center; margin: 14px 0 0; font-size: 17px; }
.contact a { margin: 0 10px; }
.xp { list-style: none; max-width: 760px; margin: 18px auto 0; padding: 0; }
.xp li { display: grid; grid-template-columns: 120px 1fr; gap: 2px 18px; padding: 12px 0; border-top: 1px solid var(--rule); }
.xp .d { font: 500 13px/1.6 var(--sc); letter-spacing: .1em; color: var(--ink2); }
.xp .r { font-weight: 500; }
.xp .r em { font-weight: 400; margin-left: 8px; color: var(--ink2); }
.xp .x { grid-column: 2; color: var(--ink2); font-size: 15.5px; }
/* the drying line: prints pulled this visit, pegged up */
.line { position: relative; margin: 40px auto 0; max-width: 980px; padding-top: 18px; }
.line::before { content: ""; position: absolute; left: -10px; right: -10px; top: 10px; height: 1px; background: #8f7f6a; transform: rotate(-.3deg); }
.line ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px 16px; justify-content: center; }
.line li { position: relative; width: 132px; }
.line li::before { content: ""; position: absolute; left: 50%; top: -14px; width: 7px; height: 20px; margin-left: -3.5px; background: #b89c74; border-radius: 2px; box-shadow: inset -1px 0 0 rgba(0, 0, 0, .2); z-index: 1; }
.line a { display: block; text-decoration: none; }
.line img { display: block; width: 100%; height: auto; background: #f4ecdb; mix-blend-mode: multiply; box-shadow: 0 4px 10px rgba(60, 40, 20, .18); }
.line span { display: block; margin-top: 5px; font-style: italic; font-size: 14px; text-align: center; }

/* ------------------------------------------------------------ the index: a marbler's pattern book */
#idx { position: fixed; inset: 0; z-index: 20; display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: rgba(20, 12, 7, .55); padding: 28px 14px; opacity: 0; transition: opacity .25s; }
#idx.in { opacity: 1; }
#idx .book { position: relative; width: min(100%, 720px); background: var(--paper) var(--fiber); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); padding: 26px 30px 30px; transform: translateY(14px); transition: transform .3s ease; }
#idx.in .book { transform: none; }
#idx h2 { margin: 0 0 12px; text-align: center; font: 600 20px/1 var(--sc); letter-spacing: .26em; }
#idx ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
#idx li { break-inside: avoid; }
#idx a { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; padding: 7px 0; text-decoration: none; border-bottom: 1px solid var(--rule); }
#idx a i { width: 44px; height: 44px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: 0 0 0 1px rgba(14, 18, 32, .65), 0 0 0 3px #b8862f33; }
#idx a .n { font-style: italic; font-size: 17px; line-height: 1.15; display: block; }
#idx a .c { font: 600 10px/1.4 var(--sc); letter-spacing: .16em; color: var(--ink2); display: block; }
#idx a:hover .n { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
#idx .shut { position: absolute; right: 14px; top: 14px; cursor: pointer; border: 0; }

/* ------------------------------------------------------------ no WebGL: the stones as plain discs */
body.nogl #tray { cursor: auto; }
body.nogl .lab { pointer-events: auto; cursor: pointer; width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%; background: var(--img) center / cover no-repeat;
  box-shadow: 0 0 0 1.5px #0e1220; display: flex; align-items: flex-end; justify-content: center; padding-bottom: calc(var(--r) * .28); }
body.nogl #rack .tl[data-tool], body.nogl #rack .sep, body.nogl #skim { display: none; }

/* ------------------------------------------------------------ phones */
@media (max-width: 699px) {
  body { font-size: 16.5px; }
  #top .name { font-size: 14px; padding: 6px 10px 7px; letter-spacing: .16em; }
  .ticket { font-size: 12.5px; padding: 5px 9px 6px; }
  #top nav { gap: 6px; }
  #rack { gap: 0; }
  .tl { padding: 0 7px 0 5px; gap: 4px; font-size: 11.5px; letter-spacing: .1em; height: 44px; }
  .tl svg { width: 24px; }
  .sep { margin: 0 2px; }
  .leaf { padding: 4px 16px 0; }
  .lede { font-size: 18px; }
  .films, .films.vertical { grid-template-columns: minmax(0, 1fr); }
  .films.vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .group.row-3, .group.row-2 { grid-template-columns: minmax(0, 1fr); }
  #idx { padding: 12px 8px; }
  #idx .book { padding: 20px 16px 22px; }
  #idx ol { columns: 1; }
  .xp li { grid-template-columns: 1fr; }
  .xp .x { grid-column: 1; }
  .line li { width: 104px; }
  .pn span { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

#idx[hidden] { display: none; }
body.nogl #snd { display: none; }
