/* Pinch: time and place chapters. */

/* ---------- the long ruler ---------- */
.ruler-hint { display: none; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
.ruler-hint::after { content: " \2192"; }
.ruler-scroll {
  overflow-x: auto; padding: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  scrollbar-width: thin;
}
.ruler { display: block; width: 100%; min-width: 960px; height: auto; overflow: visible; }
@media (max-width: 1000px) { .ruler-hint { display: block; } }

.ruler .bar { fill: var(--paper-3); }
.ruler .bar-line { stroke: var(--ink); stroke-opacity: .7; stroke-width: 1.8; stroke-linejoin: round; }
.ruler .ticks path { stroke: var(--ink); stroke-opacity: .45; stroke-width: 1.3; stroke-linecap: round; fill: none; }
.ruler .ticks .tk-major { stroke-opacity: .85; stroke-width: 1.8; }
.ruler .tk-lbl { font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; fill: var(--ink); }

.ruler .tp { cursor: pointer; outline: none; }
.ruler .tp .hit { fill: var(--ink); opacity: 0; transition: opacity .2s; }
.ruler .tp:hover .hit { opacity: .04; }
.ruler .tp:focus-visible .hit { opacity: .08; stroke: var(--ink); stroke-width: 2; }
.ruler .tp.on .hit { opacity: .07; }
.ruler .stem { stroke: var(--ink); stroke-opacity: .55; stroke-width: 1.6; stroke-linecap: round; }
.ruler .cap { fill: var(--ink); opacity: .55; }
.ruler .bead { fill: var(--el); stroke: var(--ink); stroke-opacity: .75; stroke-width: 1.5; transition: transform .25s; transform-box: fill-box; transform-origin: center; }
.ruler .tp:hover .bead, .ruler .tp.on .bead { transform: scale(1.18); }
.ruler .tp.on .bead { stroke-opacity: 1; stroke-width: 2; }
.ruler .nm { font-family: var(--f-display); font-size: 17px; font-weight: 600; fill: var(--ink); font-variation-settings: "SOFT" 100; }
.ruler .tm { font-family: var(--f-mono); font-size: 12.5px; fill: var(--ink-2); font-weight: 600; }
.ruler .tp.on .nm { font-weight: 800; }

.ruler-card { margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-height: 124px; animation: fadeup .3s both; }
.rc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ruler-card h4 { font-family: var(--f-display); font-size: 22px; font-weight: 680; margin: 0; line-height: 1.15; }
.rc-time { font-family: var(--f-mono); font-size: 13px; font-weight: 700; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 2px 10px; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 8px; }
.ruler-card p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); max-width: 46em; }

/* ---------- early, middle, late ---------- */
.eml { display: grid; gap: 12px; margin-top: 14px; position: relative; }
@media (min-width: 760px) { .eml { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.eml-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 12px; position: relative; overflow: hidden; }
.eml-col::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; background: var(--ink); }
.eml-col[data-phase="early"]::before { width: 34%; opacity: .35; }
.eml-col[data-phase="middle"]::before { width: 67%; opacity: .55; }
.eml-col[data-phase="late"]::before { width: 100%; opacity: .85; }
.eml-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 4px 0 8px; }
.eml-h b { font-family: var(--f-display); font-size: 20px; font-weight: 700; font-variation-settings: "SOFT" 100; }
.eml-h span { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.eml-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.eml-col li { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; }
.eml-col li .n { font-family: var(--f-mono); font-size: 11px; font-weight: 700; color: var(--ink-3); padding-top: 3px; }
.eml-col li p { margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.bands { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.band {
  background: var(--el); color: var(--on-el); font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 6px 10px 6px 10px; letter-spacing: .02em;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14);
}
.eml-sum { margin: 14px 0 8px; font-size: 15.5px; }
.eml-sum b { font-weight: 700; }
.eml-pattern { margin: 0; font-size: 14.5px; color: var(--ink-2); border-left: 3px solid var(--line-2); padding-left: 12px; }

/* ---------- place ---------- */
.pattern { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 0 0 28px; }
.pattern i { font-style: normal; text-align: center; color: var(--ink-3); font-family: var(--f-mono); transform: rotate(90deg); line-height: 1; }
.pat { background: var(--el); color: var(--on-el); border-radius: var(--r); padding: 12px 16px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.pat b { display: block; font-family: var(--f-display); font-size: 24px; font-weight: 700; line-height: 1.1; font-variation-settings: "SOFT" 100; }
.pat span { display: block; font-size: 13.5px; opacity: .92; margin-top: 3px; line-height: 1.35; }
@media (min-width: 720px) {
  .pattern { flex-direction: row; gap: 12px; }
  .pattern i { transform: none; align-self: center; font-size: 22px; }
  .pat { flex: 1; }
}

.place-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .place-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.pcard {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 8px 10px 12px; cursor: pointer; font: inherit; color: var(--ink);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.pcard:hover { transform: translateY(-3px) rotate(-.6deg); border-color: var(--line-2); box-shadow: var(--shadow); }
.pcard:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pcard[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow); }
.pcard .board { width: 100%; height: auto; display: block; margin-bottom: 4px; }
.pc-base { font-family: var(--f-display); font-weight: 680; font-size: 16px; line-height: 1.2; }
.pc-cuisine { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }

/* the chopping board */
.board .bd { fill: color-mix(in srgb, var(--texture) 30%, var(--card)); stroke: var(--ink); stroke-opacity: .65; stroke-width: 1.8; stroke-linejoin: round; }
.board .bd-shadow { fill: var(--ink); opacity: .1; }
.board .bd-grain { fill: none; stroke: var(--ink); stroke-opacity: .18; stroke-width: 1.3; stroke-linecap: round; }
.board .bd-hole { fill: var(--card); stroke: var(--ink); stroke-opacity: .55; stroke-width: 1.5; }
.board .pile > g > :not(.in):not(.dot) { fill: var(--el); stroke: var(--ink); stroke-opacity: .75; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.board .pile .in { fill: none; stroke: var(--ink); stroke-opacity: .5; stroke-width: 1.3; stroke-linecap: round; }
.board .pile .dot { fill: var(--ink); opacity: .45; }

.place-panel { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; animation: fadeup .3s both; }
.pp-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.pp-board { width: 118px; flex: none; }
.pp-board .board { width: 100%; height: auto; display: block; }
.pp-cuisine { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.place-panel h4 { font-family: var(--f-display); font-size: 24px; font-weight: 680; margin: 2px 0 8px; line-height: 1.15; }
.pp-items { display: flex; flex-wrap: wrap; gap: 4px; }
.pp-items .etag { font-size: 12.5px; padding: 3px 10px 3px 8px; }
.pp-cols { display: grid; gap: 14px; }
@media (min-width: 720px) { .pp-cols { grid-template-columns: 1fr 1fr; gap: 28px; } .pp-board { width: 150px; } }
.pp-k { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.pp-cols p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .pcard, .ruler .bead { transition: none; }
  .pcard:hover { transform: none; }
  .ruler-card, .place-panel { animation: none; }
}
