/* Figures and widgets of this article only. Loads after blog.css. The formula font is cut down to the glyphs of the one formula here. */
@font-face{font-family:'STIX Two Text';font-style:italic;font-weight:400 700;font-display:swap;src:url(fonts/STIXTwoText-italic-greek.woff2) format('woff2');unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF}
@font-face{font-family:'STIX Two Text';font-style:italic;font-weight:400 700;font-display:swap;src:url(fonts/STIXTwoText-italic.woff2) format('woff2');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:'STIX Two Text';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/STIXTwoText-normal-greek.woff2) format('woff2');unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF}
@font-face{font-family:'STIX Two Text';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/STIXTwoText-normal.woff2) format('woff2');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}
[data-fig="sky"] .step { min-height: 0; padding-bottom: 6rem; }
.q-cell { font-size: clamp(15px, 2.5cqw, 21px); line-height: 1.22; }
.q-cell b { display: block; }
.a-cell { font-weight: 600; font-size: clamp(15px, 2.5cqw, 21px); line-height: 1.18; }
.a-rose { color: var(--ink); }
.glyph { color: var(--ink); height: auto; }
.glyph-drop { color: var(--ink); }
.count-cell { font-size: clamp(15px, 3cqw, 24px); white-space: nowrap; }
.count-cell b { font-family: var(--display); font-size: 2.1em; font-weight: 600; line-height: 1; margin-right: .1em; }
.count-rose { color: var(--rose); }
.verdict { font-family: var(--display); font-style: italic; font-weight: 600; font-size: clamp(16px, 3cqw, 25px); line-height: 1.12; text-align: center; }
.verdict.bad { color: var(--bad); }
.verdict.good { color: var(--good); }
/* phone keyboard animation */
.kb-block { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 2rem; align-items: start; margin-right: -7rem; }
.kb-block > p { margin-top: 0; }
.kb-fig { margin: .3rem 0 1rem; }
.kb { border: 1px solid var(--rule); border-radius: 1.2rem; overflow: hidden; background: #d4d6db; font-family: var(--sans); }
.kb-msg { margin: 0; height: 6.4rem; overflow: hidden; padding: .6rem .8rem; background: #fff; font-size: 1.02rem; line-height: 1.3; hyphens: none; border-bottom: 1px solid #c3c5ca; }
.kb-sugg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #d4d6db; }
.kb-sugg button { min-height: var(--tap); background: none; border: 0; border-left: 1px solid #b9bbc1; font-family: var(--sans); font-size: 1rem; color: #111; cursor: pointer; transition: background .12s; white-space: nowrap; overflow: hidden; }
.kb-sugg button:first-child { border-left: 0; }
.kb-sugg button:hover:not(:disabled) { background: #e4e5e9; }
.kb-sugg button:disabled { color: var(--ink-2); cursor: default; }
.kb-sugg button.on { background: #fff; font-weight: 600; }
.kb-keys { padding: .3rem .25rem .5rem; display: grid; gap: .3rem; }
.kb-keys div { display: flex; gap: .2rem; justify-content: center; }
.kb-keys i { flex: 1 1 0; min-width: 0; height: 2.1rem; display: grid; place-items: center; background: #fff; border-radius: 5px; box-shadow: 0 1px 0 #8e9096; font-style: normal; font-size: .95rem; color: #111; }
.kb-keys i.w { flex: 1.5 1 0; background: #aeb1b8; }
.kb-keys i.space { flex: 6 1 0; }
.questions::before { content: ""; display: block; border-top: 3px solid var(--ink); margin-bottom: 1.1rem; }
/* next word */
.nw-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.nw-text { font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.32; min-height: 11.5rem; margin: .4rem 0 0; hyphens: none; }
.nw-text mark { background: var(--rose-soft); color: var(--rose); padding: 0 .12em; margin: 0 -.12em; border-radius: 2px; }
.nw-cursor { display: inline-block; width: 2px; height: .95em; background: var(--ink); margin-left: .12em; vertical-align: -0.12em; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nw-bars { height: 11.5rem; margin-top: .4rem; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.nw-row { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr) 2.9rem; align-items: center; gap: .6rem; height: 2.3rem; font-size: 1.05rem; }
.nw-word { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-track { height: 1.4rem; background: #efede7; }
.nw-fill { display: block; height: 100%; background: #bdb9ae; transition: width .35s ease, background .2s; width: 0; }
.nw-pct { color: var(--ink-2); text-align: right; }
.nw-row.sel .nw-fill { background: var(--rose); }
.nw-row.sel .nw-word, .nw-row.sel .nw-pct { color: var(--rose); font-weight: 700; }
/* naive */
.naive-row { display: grid; grid-template-columns: 2.7fr 3fr 3fr; align-items: center; gap: 1.2rem; max-width: 42rem; margin-inline: auto; }
.naive-robot { width: 100%; mix-blend-mode: multiply; }
.naive-book { width: 100%; }
.naive-mid { position: relative; }
.naive-x { position: absolute; left: 50%; top: 50%; width: 130%; max-width: none; transform: translate(-50%, -50%); mix-blend-mode: multiply; transition: clip-path .7s .5s cubic-bezier(.6, 0, .3, 1); clip-path: inset(0); }
.pre .naive-x { clip-path: inset(0 100% 0 0); }
/* two questions */
.questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.4rem; }
.questions::before { grid-column: 1 / -1; }
.q-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.q-big { font-family: var(--head); font-size: 1.4rem; line-height: 1.18; margin-bottom: .55rem; hyphens: none; font-weight: 700; }
.q-item p:last-child { font-size: 1.25rem; margin: 0; }
/* ockham */
.ockham { margin-top: 4rem; background: var(--parchment); padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.ockham-in { max-width: var(--wide); margin: auto; padding-block: 3.4rem; display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 3rem; align-items: center; }
.ockham-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 8px solid var(--ink); }
.ockham blockquote { margin: 0 0 1.2rem; font-family: var(--display); font-style: italic; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.012em; }
.ockham blockquote::before { content: "»"; }
.ockham blockquote::after { content: "«"; }
html[lang="en"] .ockham blockquote::before { content: "“"; }
html[lang="en"] .ockham blockquote::after { content: "”"; }
.ockham .side-label { color: #4d4720; }
.ockham-trans { display: flex; align-items: center; gap: .8rem; font-family: var(--sans); font-weight: 600; font-size: 1.32rem; margin: 0; hyphens: none; }
.ockham-drop { flex: none; width: 2.4rem; height: auto; color: var(--ink); }
/* portrait */
/* learn table */
/* ladder */
.ladder { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 2.5rem; align-items: start; max-width: 60rem; margin-top: 1.5rem; }
.ladder dl { margin: 0; }
.ladder dl > div { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: 1rem; padding: .95rem 0; border-top: 1px solid var(--rule); transition: opacity .6s, transform .6s; }
.ladder dl > div:first-child { border-top: 3px solid var(--ink); }
.ladder dt { font-family: var(--sans); font-size: 1.08rem; color: var(--ink-2); line-height: 1.5; }
.ladder dl > div:first-child dt { color: var(--ink); font-weight: 700; }
.ladder dd { margin: 0; min-width: 0; }
.ladder dd b { display: block; font-family: var(--head); font-size: 1.35rem; line-height: 1.22; font-weight: 700; }
.ladder dd p { font-size: 1.08rem; color: var(--ink-2); margin: .4rem 0 0; }
.formula { display: block; font-size: 1.65rem; text-align: left; overflow-x: auto; padding-block: .2rem; font-family: 'STIX Two Math', 'STIX Two Text', 'Latin Modern Math', 'Cambria Math', serif; }
.pre.ladder dl > div:not(:first-child) { opacity: 0; transform: translateY(14px); }
.ladder dl > div:nth-child(2) { transition-delay: .25s; }
.ladder dl > div:nth-child(3) { transition-delay: .5s; }
.ladder dl > div:nth-child(4) { transition-delay: .75s; }
.taste-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.6rem; align-items: center; font-family: var(--sans); }
.taste-knobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; background: #f3f2ec; padding: .8rem .6rem; }
.taste-q { font-family: var(--display); font-style: italic; font-size: 1.5rem; line-height: 1.15; margin: 0 0 .3rem; hyphens: none; }
.taste-verdict { font-size: 1.15rem; font-weight: 700; min-height: 1.5em; margin: 0; hyphens: none; }
.taste-verdict.up { color: var(--good); }
.taste-verdict.down { color: var(--bad); }
.taste-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .4rem; margin-top: .35rem; height: 5rem; }
.taste-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: .9rem; line-height: 1; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.taste-spark { width: 100%; height: 100%; border-left: 1px solid var(--ink-2); border-bottom: 1px solid var(--ink-2); overflow: visible; }
.taste-meta { font-size: 1rem; color: var(--ink-2); margin: .3rem 0 0; font-variant-numeric: tabular-nums; min-height: 1.4em; hyphens: none; }
/* fitter: knobs and curve stay on one screen */
.fit-grid { --h: clamp(15rem, calc(100svh - 21rem), 26rem); display: grid; grid-template-columns: var(--h) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.fit-knobs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; width: var(--h); }
.fit-knobs canvas { width: 100%; aspect-ratio: 1; touch-action: pan-y; cursor: grab; border-radius: 50%; }
.fit-right { min-width: 0; }
#fitCanvas { display: block; width: 100%; height: var(--h); background: #f8f7f2; border: 1px solid var(--rule); touch-action: pan-y; }
.fit-status { font-family: var(--sans); font-size: 1rem; line-height: 1.3; margin: .35rem 0 0; color: var(--ink-2); min-height: 1.3em; font-variant-numeric: tabular-nums; hyphens: none; }
.fit-sel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 1rem; min-height: var(--tap); font-family: var(--sans); font-size: 1rem; color: var(--ink-2); }
#fitRange { width: 100%; height: var(--tap); margin: 0; touch-action: pan-y; }
#fitRange:disabled { opacity: .35; }
#fitSelName { line-height: 1.2; font-weight: 600; }
.dg-own.yes .dg-fill { background: #1d5fb8; }
/* digits */
.dg-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "a b" "a c"; gap: .8rem 1.8rem; align-items: start; font-family: var(--sans); }
.dg-a { grid-area: a; min-width: 0; }
.dg-b { grid-area: b; min-width: 0; }
.dg-c { grid-area: c; min-width: 0; }
.dg-head { font-weight: 700; font-size: 1.05rem; line-height: 1.25; margin: 0 0 .35rem; hyphens: none; }
.dg-knobs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; max-width: calc(100svh - 21rem); min-width: 12rem; }
.dg-knobs canvas { width: 100%; aspect-ratio: 1; display: block; transition: opacity .2s; }
.dg-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .7rem; margin-top: .35rem; font-size: .95rem; line-height: 1.3; color: var(--ink-2); }
.dg-legend canvas { width: 1.5rem; height: 1.5rem; }
.dg-legend i { font-style: normal; font-weight: 600; }
.dg-legend .plus { color: #1d5fb8; }
.dg-legend .minus { color: var(--rose); }
.dg-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; min-height: 6.6rem; }
.dg-thumb { display: grid; gap: .2rem; padding: .2rem; background: none; border: 2px solid transparent; border-radius: 3px; font-family: var(--sans); font-size: .95rem; text-align: center; cursor: pointer; min-width: 0; }
.dg-thumb:hover { border-color: var(--rule); }
.dg-thumb.on { border-color: var(--ink); }
.dg-thumb canvas { width: 100%; aspect-ratio: 1; image-rendering: pixelated; border: 1px solid var(--ink); background: #fff; display: block; }
.dg-thumb b { font-weight: 700; font-size: .85em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dg-track { display: block; position: relative; height: .55rem; background: #e7e6e1; }
.dg-fill { position: absolute; inset: 0 auto 0 0; background: var(--ink); width: 50%; }
.yes .dg-fill { background: #1d5fb8; }
.dg-own { padding-top: .6rem; border-top: 1px solid var(--rule); }
.dg-own-in { display: grid; grid-template-columns: minmax(6rem, 8.5rem) minmax(0, 1fr); gap: .8rem; align-items: start; }
.dg-pad { width: 100%; aspect-ratio: 1; image-rendering: pixelated; background: #fff; border: 1px solid var(--ink); display: block; touch-action: none; cursor: crosshair; }
.dg-belief { display: grid; gap: .3rem; justify-items: start; font-variant-numeric: tabular-nums; }
.dg-belief .dg-track { width: 100%; }
.dg-clear { padding: .2rem .8rem; font-size: 1rem; }
.dg-meta { font-family: var(--sans); font-size: 1rem; line-height: 1.3; color: var(--ink-2); font-variant-numeric: tabular-nums; margin: .6rem 0 0; min-height: 1.3em; hyphens: none; }
@media (max-width: 1040px) {
  .kb-block { grid-template-columns: minmax(0, 1fr) 16rem; margin-right: 0; }
}
@media (max-width: 860px) {
  [data-fig="sky"] .step { padding-bottom: 3.5rem; }
  .stage.is-narrow .q-cell span { display: none; }
  .questions { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .ockham-in { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .ockham-img { width: 13rem; }
  .ladder { grid-template-columns: minmax(0, 1fr); }
  .nw-grid { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .nw-text { min-height: 7rem; font-size: 1.3rem; }
  .taste-grid { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .fit-grid { --h: clamp(11rem, 33svh, 20rem); grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .fit-right { order: -1; }
  .fit-knobs { width: 100%; grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .dg-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-areas: "a c" "b b"; gap: .6rem 1rem; }
  .dg-knobs { max-width: none; min-width: 0; gap: 1px; }
  .dg-own { padding-top: 0; border-top: 0; }
  .dg-own-in { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .dg-thumbs { min-height: 5.6rem; }
  .fit-right { order: -1; }
}
@media (max-width: 560px) {
  .kb-block { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kb-fig { width: min(100%, 21rem); margin: .4rem auto 1.2rem; }
  .kb-keys i { font-size: 15px; }
  .nw-row { grid-template-columns: 5.6rem minmax(0, 1fr) 2.7rem; gap: .5rem; font-size: 1.05rem; }
  .naive-row { grid-template-columns: 3fr 3fr 3fr; gap: .6rem; }
  .ladder dl > div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .ladder dt { font-size: 1rem; }
  .nw-text { min-height: 6.2rem; font-size: 1.2rem; }
  .dg-meta { min-height: 2.6em; }
  .fit-status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fit-sel { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fit-sel label { padding-top: .2rem; }
  .taste-q { font-size: 1.3rem; }
}
@media (max-width: 560px) and (min-height: 760px) {
  .fit-grid { --h: clamp(11rem, 26svh, 16rem); }
  .fit-knobs { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 860px) and (max-height: 700px) {
  #digits .dg-grid { gap: .3rem .8rem; }
  #digits .dg-legend span { display: none; }
  #digits .dg-thumbs { min-height: 0; gap: .3rem; }
  #digits .dg-thumb { padding: .1rem; gap: .1rem; }
  #digits .controls { margin-top: .4rem; }
  #digits .dg-meta { margin-top: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .naive-x, .essence .es-grid > *, .ladder dl > div, .nw-fill { transition: none !important; }
  .nw-cursor { animation: none; }
}
/* small inline overviews */
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; margin: 1.8rem 0; }
.pair { min-width: 0; }
.pair-row { display: grid; grid-template-columns: minmax(0, 1fr) 1.9rem minmax(0, 1fr); align-items: center; gap: .5rem; min-height: 6rem; }
.pair-row img { width: 100%; height: 6rem; }
.pair-photo { object-fit: cover; }
.pair-mult { object-fit: contain; mix-blend-mode: multiply; }
.pair-face { object-fit: contain; }
.pair-arrow { width: 100%; color: var(--ink-2); }
.pair figcaption { font-family: var(--sans); font-weight: 600; font-size: .95rem; line-height: 1.25; text-align: center; margin-top: .5rem; color: var(--ink); hyphens: manual; }
.pair-q { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: .85rem; line-height: 1.2; display: grid; gap: .3rem; hyphens: manual; }
/* comparison table */
.essence { margin: 1.8rem 0; }
.es-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem 1rem; align-items: center; justify-items: center; }
.es-head { font-family: var(--sans); font-weight: 700; font-size: .95rem; line-height: 1.15; text-align: center; align-self: end; hyphens: manual; }
.es-img, .es-photo, .es-round { width: 100%; height: clamp(4.4rem, 15vw, 7rem); }
.es-img { object-fit: contain; mix-blend-mode: multiply; }
.es-photo { object-fit: cover; }
.es-round { width: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2px solid var(--ink); }
.es-slot { position: relative; width: 100%; height: clamp(4.4rem, 15vw, 7rem); padding: 0; border: 2px dashed var(--ink-2); border-radius: 3px; background: none; color: var(--ink-2); font: 700 2rem var(--sans); cursor: pointer; }
.es-slot:hover:not(.open) { border-color: var(--rose); color: var(--rose); }
.es-slot .es-img { display: none; height: 100%; }
.es-slot.open { border-color: transparent; cursor: default; }
.es-slot.open span { display: none; }
.es-slot.open .es-img { display: block; }
.essence .es-grid > * { transition: opacity .5s; }
.pre.essence .es-grid > :nth-child(n+9) { opacity: 0; }
.essence .es-grid > :nth-child(9) { transition-delay: .2s; }
.essence .es-grid > :nth-child(10) { transition-delay: .45s; }
.essence .es-grid > :nth-child(11) { transition-delay: .7s; }
.essence .es-grid > :nth-child(12) { transition-delay: .95s; }
.essence figcaption { margin-top: .8rem; }
.ladder { display: block; margin: 1.8rem 0; }
.ladder .formula { font-size: 1.5rem; overflow-x: auto; margin: 0; }
@media (max-width: 30rem) {
  .pairs { grid-template-columns: minmax(0, 1fr); }
  .es-head { font-size: .8rem; }
  .es-grid { gap: .6rem .5rem; }
}
