/* Nailism journal: the article pages and the journal index (linked only on those pages by _src/build.mjs).
   Built on site.css: its tokens (spacing --s-1…--s-10, --block, --group, --sec; colours; type), its .page-head stone
   wall, .crumbs, .lnk, .tab, .qa and .prose. Nothing here changes another page.
   The article, after the owner's reference (an earlier Zoe Studio column page), in the Stone language:
   - head: on the stone wall, the words on the left (crumbs, the title in two lines, one sentence, date · reading time
     · author) and the post's drawing on the right, in a paper panel, its steps, round button and caption under it;
   - body on bone, three columns on wide screens: the contents (sticky, a fine rule, the section being read in ink with
     a bronze mark), the text at a reading measure (key points first, short sections, one picture, the questions), and a
     side column (the model or category the article is about as a cut-out on the studio ground, the two telephones);
   - phones: one column; the contents fold into a bar above the key points; the side column follows the text.
   The index: the featured article with its drawing, the category tabs, the cards (drawing, title, two lines, meta). */

.ja, .jl, .jl-feat, .jr-more { --paper: #f2f1ee; --hair: rgb(27 24 21 / 0.14); }

/* ---------- the drawing (assets/js/journal.js): the hero's ink, line weights and callouts ---------- */
.jf { --paper: #f2f1ee; position: relative; margin: 0; min-width: 0; color: var(--ink); }
.jf__panel { background: var(--paper); box-shadow: inset 0 0 0 1px rgb(27 24 21 / 0.12); } /* taste-skill-ignore: the drawing's sheet edge (a framed panel on the wall), not a divider */
.jf__stage { position: relative; aspect-ratio: 16 / 10; }
/* the two bowls side by side make a wide drawing: its sheet is wider too, so no empty band sits under it */
.jf[data-jfig="water"] .jf__stage { aspect-ratio: 2 / 1; }
.jf__stage svg, .jc__pic svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; -webkit-user-select: none; user-select: none; }
.js .jf.is-live:not(.is-still) .jf__stage { cursor: pointer; }
.jf__ghost { pointer-events: none; }
.jf__dwg path { fill: none; stroke: var(--ink); stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.jf__dwg .o { fill: var(--paper); stroke-width: 1.2; }
.jf__dwg .l1 { stroke-width: 0.9; }
.jf__dwg .fn { stroke-width: 0.6; stroke-opacity: 0.5; }
.jf__dwg .cut { stroke: none; }
.jf__dwg .hl { stroke-width: 0.6; stroke-opacity: 0.42; }
.jf__dwg .wtr { fill: var(--ink); fill-opacity: 0.06; stroke: none; }
.jf__dwg .mk { stroke-width: 0.9; }
.jf__dwg .pipeO { stroke-width: 5; }
.jf__dwg .pipeI { stroke: var(--paper); stroke-width: 2.8; }
.jf__dwg .flow { stroke: var(--bronze); stroke-width: 1.4; stroke-dasharray: 2 5; }
.jf__dwg .spinner { stroke-width: 1; }
.jf__dwg .cov { stroke-width: 2.4; }
.jf__dwg .scr { stroke-width: 2; }
.jf__dwg .deb { fill: var(--clay); stroke: none; }
.jf__dwg .dash { stroke-width: 0.9; stroke-dasharray: 4 3; stroke-opacity: 0.7; }
.jf__dwg .dim { stroke-width: 0.7; stroke-opacity: 0.72; }
.jf__dwg .sym { stroke-width: 0.8; }
.jf__dwg .trim { fill: #c9a96e; stroke-width: 0.6; }
.jf__dwg .bt { fill: var(--paper); stroke-width: 0.6; stroke-opacity: 0.8; }
.jf__dwg .pc { stroke: none; }
.jf__dwg .glow { fill: #f3d9a1; fill-opacity: 0.34; stroke: none; }
.jf__dwg .led { stroke: #c9902f; stroke-width: 1.6; }
.jf__dwg .grid { stroke-width: 0.5; stroke-opacity: 0.16; }
.jf__dwg .run { stroke: var(--bronze); stroke-width: 2.4; }
.jf__dwg text { font-family: var(--text); font-variant-numeric: lining-nums tabular-nums; }
.jf__dwg .tt { font-size: var(--fs-mark); font-weight: 500; fill: var(--ink); text-anchor: middle; }
.jf__dwg .dt { font-size: var(--fs-mark); font-weight: 500; fill: var(--soft); text-anchor: middle; }
.jf__dwg .dt--v { text-anchor: start; dominant-baseline: central; }
.jf__dwg .ld { stroke-width: 0.7; stroke-opacity: 0.6; }
.jf__dwg .ldot { fill: var(--ink); }
.jf__lab .lr { transform-box: fill-box; transform-origin: center; }
.jf__dwg .lc { fill: var(--paper); stroke: var(--ink); stroke-width: 0.9; stroke-opacity: 0.75; }
.jf__dwg .lnum { font-size: var(--fs-mark); font-weight: 500; fill: var(--ink); text-anchor: middle; }
/* before the script has laid the drawing out for its box, the still and its words are kept out of sight (without
   script they show: the still is the finished drawing) */
.js .jf:not(.is-live) :is(.jf__dwg, .jf__legend, .jf__cap) { visibility: hidden; }

/* the legend: each step's list in one cell, so the panel never changes height as the steps change */
.jf__legend { display: grid; padding: var(--s-2) var(--s-4) var(--s-3); }
.jf__legend > ol { grid-area: 1 / 1; display: flex; flex-wrap: wrap; justify-content: center; align-content: start; gap: var(--s-1) var(--s-4); font-size: var(--fs-legend); line-height: 1.4; color: var(--soft);
  opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s linear 200ms; }
.jf__legend > ol.is-on { opacity: 1; visibility: visible; transition: opacity var(--t-spring) var(--ease-spring) 60ms, visibility 0s; }
.jf__legend li { display: inline-flex; align-items: center; gap: var(--s-2); }
.jf__n { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgb(27 24 21 / 0.55); font-size: var(--fs-mark); line-height: 1; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; } /* taste-skill-ignore: the numbered ring of a callout (the drawing's legend), as on the home hero */
.jf--sm .jf__legend > ol { column-gap: var(--s-3); }

/* the steps and the round button, as on the home hero */
.jf__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); margin-top: var(--s-2); }
.jf__steps { position: relative; min-width: 0; }
.jf__tabs { display: flex; margin: 0 calc(var(--s-3) * -1); padding: 0; list-style: none; counter-reset: step; }
.jf__tabs > li { display: flex; counter-increment: step; }
.jf__tab { position: relative; display: inline-flex; align-items: baseline; gap: var(--s-2); min-height: 44px; padding: var(--s-3); font-size: var(--fs-meta); line-height: 1.2; color: var(--soft); white-space: nowrap;
  transition: color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.jf__tn { font-family: var(--display); font-style: italic; font-weight: var(--fw-cap); font-size: 18px; line-height: 1; transition: color var(--t-hover) ease; }
.jf__tn::before { content: counter(step); }
:lang(ko) .jf__tn { font-family: var(--text); font-style: normal; font-weight: 400; font-size: var(--fs-meta); }
.jf__tab.is-on { color: var(--ink); }
.jf__tab.is-on .jf__tn { color: var(--bronze-ink); }
.jf__ind { position: absolute; left: 0; bottom: var(--s-2); width: 1px; height: 1px; background: var(--bronze); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; pointer-events: none; } /* taste-skill-ignore: the step's progress as it plays, a state, not a divider */
.jf__tab:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .jf__tab:hover { color: var(--ink); } }
.jf__btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent);
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.jf__btn svg { grid-area: 1 / 1; width: 12px; height: 12px; }
.jf__btn .jf__ic { display: none; }
.jf__btn[data-state="pause"] .jf__ic--pause, .jf__btn[data-state="play"] .jf__ic--play, .jf__btn:is([data-state="replay"], :not([data-state])) .jf__ic--replay { display: block; }
.jf__btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .jf__btn:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); } }
html:not(.js) .jf__btn { visibility: hidden; }
.jf__cap { display: grid; margin-top: var(--s-1); font-family: var(--text); font-style: normal; font-weight: 400; letter-spacing: var(--tr-text); font-size: var(--fs-small); line-height: var(--lh-text); color: var(--soft); text-wrap: pretty; }
.jf__cap > span { grid-area: 1 / 1; opacity: 0; visibility: hidden; translate: 0 4px; transition: opacity 200ms ease, translate 200ms ease, visibility 0s linear 200ms; }
.jf__cap > span.is-on { opacity: 1; visibility: visible; translate: none; transition: opacity var(--t-spring) var(--ease-spring) 60ms, translate var(--t-spring) var(--ease-spring) 60ms, visibility 0s; }
@media (prefers-reduced-motion: reduce) {
  .jf__legend > ol:not(.is-on), .jf__cap > span:not(.is-on) { display: none; }
  .jf__btn { visibility: hidden; }
  .jf__tab:active { transform: none; }
  .jf__cap > span { translate: none; }
}

/* ---------- the article's head ---------- */
.page-head.ja__head { padding-top: calc(var(--header-h) + var(--safe-t) + var(--block)); padding-bottom: var(--group); }
.ja__top { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--block); align-items: center; }
.ja__intro { grid-column: 1 / span 6; display: grid; justify-items: start; }
.ja__crumbs { justify-self: stretch; }
.ja__crumbs .crumbs { margin-bottom: var(--s-5); }
.ja__head .jf { grid-column: 8 / span 5; }
.ja__head h1.ja__h { grid-column: auto; font-size: clamp(34px, 3.2vw, 48px); line-height: 1.06; letter-spacing: var(--tr-display); text-wrap: balance; }
:lang(ko) .ja__head h1.ja__h { font-size: clamp(27px, 2.5vw, 38px); line-height: 1.32; }
.ja__dek { margin-top: var(--s-5); max-width: 40ch; font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: var(--tr-lead); color: var(--soft); text-wrap: pretty; }
:lang(ko) .ja__dek { max-width: 30em; font-size: 19px; line-height: var(--lh-lead); }
.ja__meta { margin-top: var(--s-5); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-2); font-size: var(--fs-meta); line-height: 1.5; color: var(--soft); }
.ja__meta a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: var(--link-line); }
/* small links get a 44px hit area that moves nothing: padding taken back by an equal negative margin (the site's way,
   as on .crumbs a) */
.ja__meta a { padding: var(--s-3) var(--s-1); margin: calc(var(--s-3) * -1) calc(var(--s-1) * -1); }
.ja__tels a { padding-block: var(--s-2); margin-block: calc(var(--s-2) * -1); }
.ja__meta time, .jc__m time { white-space: nowrap; }
.jr-sep { opacity: 0.6; }

/* ---------- the article's body: contents · text · side ---------- */
.ja__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; padding-block: var(--sec); background: var(--bone); }
.ja__toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + var(--s-6)); padding-right: var(--s-6); }
.ja__toc-h { padding: 0 0 var(--s-3) var(--s-4); font-size: var(--fs-meta); color: var(--soft); }
.ja__toc ol { border-left: 1px solid var(--hair); } /* taste-skill-ignore: the contents' rail (the owner's reference); the section being read is marked on it */
.ja__toc a { position: relative; display: block; padding: var(--s-2) 0 var(--s-2) var(--s-4); font-size: var(--fs-meta); line-height: 1.5; color: var(--soft); text-wrap: pretty; transition: color var(--t-hover) ease; }
.ja__toc a::before { content: ''; position: absolute; left: -1px; top: var(--s-2); bottom: var(--s-2); width: 2px; background: var(--bronze); transform: scaleY(0); transform-origin: 50% 0; transition: transform var(--t-move) var(--ease-out); } /* taste-skill-ignore: the mark of the section being read, a state */
.ja__toc a[aria-current] { color: var(--ink); }
.ja__toc a[aria-current]::before { transform: none; }
@media (hover: hover) and (pointer: fine) { .ja__toc a:hover { color: var(--ink); } }
.ja__toc-m { display: none; }
.ja__body { grid-column: 4 / span 6; min-width: 0; }
.ja__side { grid-column: 10 / span 3; position: sticky; top: calc(var(--header-h) + var(--s-6)); display: grid; gap: var(--s-4); padding-left: var(--s-4); }
/* the page scrolls smoothly to a section from the contents (never under reduced motion); the bar never covers the
   heading it lands on (html's scroll-padding-top in site.css) */
@media (prefers-reduced-motion: no-preference) { html:has(.ja__toc) { scroll-behavior: smooth; } }

/* key points: the answer first, in a paper box */
.ja__points { background: var(--paper); padding: var(--s-5) var(--s-6) var(--s-6); margin-bottom: var(--block); }
.ja__points-h { font-size: var(--fs-meta); font-weight: 600; letter-spacing: 0; color: var(--bronze-ink); }
.ja__points ol { counter-reset: pt; display: grid; gap: var(--s-3); margin-top: var(--s-3); }
.ja__points li { counter-increment: pt; position: relative; padding-left: var(--s-7); font-size: var(--fs-body); line-height: var(--lh-body); }
.ja__points li::before { content: counter(pt); position: absolute; left: 0; top: 0.15em; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgb(27 24 21 / 0.55); font-size: var(--fs-mark); font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums; } /* taste-skill-ignore: a numbered point, the same ring as the drawing's callouts */

/* the text at a reading measure */
/* 54ch keeps the article's lines to about 70 characters (the 642px column held 77-84) */
.ja__prose { max-width: 54ch; font-size: var(--fs-body); line-height: var(--lh-read); }
.ja__prose > * + * { margin-top: var(--s-4); }
.ja__prose > p:first-child { font-size: var(--fs-lead); line-height: var(--lh-body); }
.ja__prose h2 { font-size: clamp(28px, 2.4vw, 36px); line-height: 1.12; margin-top: clamp(var(--s-7), 4.4vw, var(--s-8)); text-wrap: balance; }
:lang(ko) .ja__prose h2 { font-size: clamp(22px, 1.9vw, 27px); line-height: 1.4; }
.ja__prose h3 { font-size: clamp(22px, 1.8vw, 26px); margin-top: var(--s-6); }
.ja__prose :is(h2, h3) + * { margin-top: var(--s-3); }
.ja__prose ul { list-style: none; padding-left: 0; }
.ja__prose ul > li { position: relative; padding-left: var(--s-5); }
.ja__prose ul > li::before { content: ''; position: absolute; left: var(--s-1); top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--bronze); opacity: 0.85; }
.ja__prose li + li { margin-top: var(--s-3); }
.ja__prose li strong { font-weight: 600; color: var(--ink); }
.ja__prose ol { padding-left: 1.3em; }
.ja__prose .prose__table { margin-block: var(--s-5); }
.ja__prose :is(th, td) a { padding-block: var(--s-3); margin-block: calc(var(--s-3) * -1); }
.ja__prose table { font-size: var(--fs-ui); }
.ja__prose tbody th { font-weight: 600; color: var(--ink); }
.ja__prose blockquote { border-radius: 0; background: var(--paper); }

/* the one picture: a room in the plaster frame, or a cut-out on the studio ground; the caption 12px under it */
.ja__pic { margin-block: var(--block); }
.ja__prose .ja__pic { margin-top: var(--block); }
.ja__frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; isolation: isolate; background: var(--plaster); }
.ja__frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ja__pic.is-cutout .ja__frame { background: var(--studio); }
.ja__pic.is-cutout img { object-fit: contain; object-position: 50% 100%; padding: 6% 14% 9%; mix-blend-mode: multiply; }
.ja__pic figcaption { margin-top: var(--s-3); font-size: var(--fs-cap); }

/* the questions: rows parted by a fine line, the sign turning from plus to minus (site.css .qa) */
.ja__faq { border-top: 1px solid var(--hair); } /* taste-skill-ignore: the questions' rows (the owner's reference), an accordion's edges */
.ja__qa { border-bottom: 1px solid var(--hair); } /* taste-skill-ignore: as above */
.ja__qa summary { min-height: 56px; padding: var(--s-4) 0; font-size: clamp(20px, 1.5vw, 23px); line-height: 1.3; }
:lang(ko) .ja__qa summary { font-size: clamp(20px, 1.5vw, 22px); line-height: 1.55; }
.ja__qa .qa__a { padding: 0 var(--s-7) var(--s-5) 0; font-size: var(--fs-body); line-height: var(--lh-read); }
.ja__qa .qa__a > * + * { margin-top: var(--s-3); }
/* a closed answer is out of the layout (no engine measures hidden text under the next question); it opens on the
   site's height transition, and closes at once */
.ja__qa:not([open]) .qa__a { display: none; }
.ja__prose .ja__faq + * { margin-top: var(--block); }
.ja__close { margin-top: var(--block); font-size: var(--fs-lead); line-height: 1.55; letter-spacing: -0.01em; }
:lang(ko) .ja__close { font-size: 19px; line-height: 1.7; }

/* sources: small, at the foot of the text */
.ja__src { margin-top: var(--group); max-width: 65ch; }
.ja__src h2 { font-family: var(--text); font-size: var(--fs-meta); font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.ja__src ol { max-width: 68ch; margin-top: var(--s-3); padding-left: 1.3em; list-style: decimal; display: grid; gap: var(--s-2); font-size: var(--fs-small); line-height: var(--lh-text); color: var(--soft); }
.ja__src a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--link-line); overflow-wrap: anywhere; }

/* the side column */
.ja__prod { display: grid; gap: var(--s-2); }
.ja__prod-pic { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate; background: var(--studio); margin-bottom: var(--s-2); }
.ja__prod-pic img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; padding: 8% 10% 9%; mix-blend-mode: multiply; transition: transform 900ms var(--ease-soft); }
.ja__prod-pic.is-photo img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.ja__prod-pic:not(.is-photo)::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: 7%; height: 5%; background: radial-gradient(closest-side, rgba(58, 44, 30, 0.22), rgba(58, 44, 30, 0)); pointer-events: none; } /* taste-skill-ignore: the contact shade a cut-out product stands in (part of the product photograph), not a decorative gradient */
.ja__prod-n { font-family: var(--display); font-size: 25px; line-height: 1.1; font-weight: var(--fw-mid); transition: color var(--t-hover) ease; }
:lang(ko) .ja__prod-n { font-size: 20px; line-height: 1.35; }
.ja__prod-d { font-size: var(--fs-small); line-height: var(--lh-text); color: var(--soft); }
.ja__go { font-size: var(--fs-meta); font-weight: 500; text-decoration: underline; text-underline-offset: 0.3em; text-decoration-color: var(--link-line); }
@media (hover: hover) and (pointer: fine) { .ja__prod:hover .ja__prod-n { color: var(--bronze-ink); } .ja__prod:hover .ja__prod-pic img { transform: scale(1.03); } }
.ja__prod:active { opacity: 0.8; }
.ja__talk { display: grid; gap: var(--s-3); justify-items: start; padding: var(--s-5); background: var(--paper); margin-top: var(--s-4); }
.ja__talk-h { font-family: var(--text); font-size: var(--fs-meta); font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.ja__tels { display: grid; gap: var(--s-2); }
.ja__tels li { display: grid; gap: var(--s-1); font-size: var(--fs-meta); color: var(--soft); }
.ja__tels a { justify-self: start; font-family: var(--display); font-size: 25px; line-height: 1.1; color: var(--ink); font-variant-numeric: lining-nums; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .ja__tels a:hover { color: var(--bronze-ink); } }

/* ---------- cards: the index's grid and the articles' "more to read" ---------- */
.jl__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--group) var(--gap); }
.jc[hidden] { display: none; }
.jc__a { display: grid; gap: var(--s-3); align-content: start; transition: opacity var(--t-press) ease; }
.jc__pic { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--paper); margin-bottom: var(--s-2);
  transition: transform var(--t-move) var(--ease-out), box-shadow var(--t-move) var(--ease-out); }
.jc__pic svg { padding: var(--s-2); box-sizing: border-box; }
.jc__pic:not(.is-photo, .is-cutout) { box-shadow: inset 0 0 0 1px rgb(27 24 21 / 0.1); } /* taste-skill-ignore: a drawing's sheet edge */
/* a card's picture: a room in the plaster frame, a cut-out on the studio ground (as on the article) */
.jc__pic.is-photo, .jc__pic.is-cutout { overflow: hidden; isolation: isolate; }
.jc__pic.is-photo { background: var(--plaster); }
.jc__pic.is-cutout { background: var(--studio); }
.jc__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-soft); }
.jc__pic.is-cutout img { object-fit: contain; object-position: 50% 100%; padding: 8% 14% 9%; mix-blend-mode: multiply; }
@media (hover: hover) and (pointer: fine) { .jc__a:hover .jc__pic img { transform: scale(1.03); } }
.jc__t { font-family: var(--display); font-size: clamp(23px, 1.8vw, 27px); line-height: 1.15; font-weight: var(--fw-mid); letter-spacing: var(--tr-mid); text-wrap: balance; transition: color var(--t-hover) ease; }
:lang(ko) .jc__t { font-size: clamp(20px, 1.45vw, 22px); line-height: 1.45; }
.jc__d { font-size: var(--fs-small); line-height: var(--lh-text); color: var(--soft); text-wrap: pretty; }
.jc__m { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-2); font-size: var(--fs-meta); line-height: 1.5; color: var(--soft); }
.jc__a:active { opacity: 0.75; }
/* the card lifts a little under the pointer: the drawing rises 4px on a soft shade, the title turns bronze */
@media (hover: hover) and (pointer: fine) {
  .jc__a:hover .jc__pic { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgb(27 24 21 / 0.1), 0 10px 24px -14px rgb(42 34 28 / 0.35); } /* taste-skill-ignore: a lifted card's shade, only while it is lifted */
  .jc__a:hover .jc__t { color: var(--bronze-ink); }
}
@media (prefers-reduced-motion: reduce) { .jc__pic { transition: none; } .jc__a:hover .jc__pic { transform: none; } }
.jc__a:focus-visible { outline-offset: 6px; }

/* more to read, under an article */
.jr-more { padding-top: calc(var(--sec) * 0.5); background: var(--bone); }
.jr-more__h { margin-bottom: var(--block); }

/* ---------- the index ---------- */
.jl-feat { padding-top: var(--sec); background: var(--bone); }
.jl-feat__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--block); align-items: center; }
.jl-feat__text { grid-column: 1 / span 5; display: grid; gap: var(--s-4); justify-items: start; }
.jl-feat .jf { grid-column: 7 / span 6; }
.jl-feat__t { font-size: clamp(34px, 3.4vw, 52px); line-height: 1.05; text-wrap: balance; }
:lang(ko) .jl-feat__t { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.3; }
.jl-feat__t a { transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .jl-feat__t a:hover { color: var(--bronze-ink); } }
.jl-feat__d { max-width: 40ch; font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--soft); text-wrap: pretty; }
:lang(ko) .jl-feat__d { font-size: 18px; }
.jl-feat .lnk { margin-top: var(--s-2); }
.jl { padding-block: var(--sec); background: var(--bone); }
.jl-feat + .jl { padding-top: var(--sec); }
.jl__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-4) var(--s-6); margin-bottom: var(--block); }
.jl__head .tabs { margin-bottom: 0; }
.jl__pager { display: flex; justify-content: center; gap: var(--s-2); margin-top: var(--group); }
.jl__pager :is(a, span) { display: grid; place-items: center; min-width: 44px; min-height: 44px; font-size: var(--fs-ui); color: var(--soft); font-variant-numeric: lining-nums tabular-nums; }
.jl__pager [aria-current] { color: var(--ink); font-weight: 600; }
/* the journal's own head is a normal head on screens tall enough for the featured article to start on the first screen;
   elsewhere (phones, short laptop screens) it keeps the site's first-screen rule, so the fold falls in the featured
   article's top margin */
/* the journal list opens on the same head as every inner page (no extra space under it) */

/* ---------- tablets and phones ---------- */
@media (max-width: 1099px) {
  /* one column: the head is the first screen, so the fold falls in the next section's margin, never through the
     drawing's steps or the contents. Its words start right under the bar at one fixed distance on every post (no empty
     wall above them that changes with the title's length); any spare height rests under the drawing's caption */
  .page-head.ja__head { display: flex; flex-direction: column; min-height: var(--hero-h); }
  .ja__top { flex: 1 0 auto; grid-template-rows: auto auto; align-content: start; }
  .ja__intro, .ja__head .jf { grid-column: 1 / -1; }
  .ja__head .jf { width: 100%; max-width: 680px; }
  .ja__grid { display: block; }
  .ja__grid > * { max-width: 720px; }
  .ja__toc { display: none; }
  .ja__toc-m { display: block; margin-bottom: var(--s-5); background: var(--paper); }
  .ja__toc-m summary { display: flex; align-items: center; gap: var(--s-3); min-height: 52px; padding: 0 var(--s-4); cursor: pointer; list-style: none; font-size: var(--fs-ui); }
  .ja__toc-m summary::-webkit-details-marker { display: none; }
  .ja__toc-mh { font-weight: 600; }
  .ja__toc-mn { font-size: var(--fs-meta); color: var(--soft); }
  .ja__toc-m summary::after { content: ''; margin-left: auto; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--t-move) var(--ease-out); } /* taste-skill-ignore: the fold's chevron */
  .ja__toc-m[open] summary::after { transform: translateY(2px) rotate(-135deg); }
  .ja__toc-m ol { padding: 0 var(--s-4) var(--s-3); }
  .ja__toc-m:not([open]) ol { display: none; }
  .ja__toc-m a { display: block; padding: var(--s-3) 0; font-size: var(--fs-meta); line-height: 1.5; color: var(--soft); border-top: 1px solid var(--hair); } /* taste-skill-ignore: the folded contents' rows */
  .ja__side { position: static; margin-top: var(--group); padding-left: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
  .ja__talk { margin-top: 0; }
  .jl-feat__text, .jl-feat .jf { grid-column: 1 / -1; }
  .jl-feat .jf { max-width: 680px; }
}
@media (max-width: 1000px) {
  .jl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* tablets: the head is one column, so the title takes the width's scale */
@media (min-width: 641px) and (max-width: 1099px) {
  .ja__head h1.ja__h { font-size: clamp(38px, 5.4vw, 52px); }
  :lang(ko) .ja__head h1.ja__h { font-size: clamp(30px, 4.4vw, 40px); }
}
@media (max-width: 640px) {
  .page-head.ja__head { padding-top: calc(var(--header-h) + var(--safe-t) + var(--block)); padding-bottom: var(--s-5); }
  .ja__top { row-gap: var(--s-6); }
  .ja__crumbs .crumbs { margin-bottom: var(--s-4); }
  /* the title is the heading right under it: on a phone the crumbs stop at the journal */
  .ja__crumbs .crumbs > span:nth-last-child(-n+2) { display: none; }
  .ja__head h1.ja__h { font-size: 27px; line-height: 1.1; max-width: none; }
  :lang(ko) .ja__head h1.ja__h { font-size: 23px; line-height: 1.38; }
  .ja__dek { margin-top: var(--s-4); font-size: 17px; line-height: 1.55; }
  :lang(ko) .ja__dek { font-size: var(--fs-small); }
  .ja__meta { margin-top: var(--s-4); }
  .jf__legend { padding-inline: var(--s-3); }
  /* the steps share the row with the round button: each keeps its words, wrapping them if it has to */
  .jf__steps { flex: 1 1 auto; }
  .jf__tabs { margin-inline: calc(var(--s-2) * -1); }
  .jf__tabs > li { flex: 0 1 auto; min-width: 0; }
  .jf__tab { min-width: 0; padding-inline: var(--s-2); line-height: 1.15; white-space: normal; text-align: start; }
  .ja__points { padding: var(--s-5) var(--s-5) var(--s-5); }
  .ja__points li { padding-left: var(--s-6); }
  .ja__prose > p:first-child { font-size: 18px; }
  .ja__prose h2 { font-size: 25px; }
  :lang(ko) .ja__prose h2 { font-size: 21px; }
  .ja__qa summary { font-size: 20px; font-weight: var(--fw-cap); }
  :lang(ko) .ja__qa summary { font-size: 20px; font-weight: 300; }
  .ja__qa .qa__a { padding-right: var(--s-2); }
  .ja__side { grid-template-columns: minmax(0, 1fr); }
  .jl__grid { grid-template-columns: minmax(0, 1fr); gap: var(--block); }
  .jl-feat__t { font-size: 30px; }
  :lang(ko) .jl-feat__t { font-size: 24px; }
  .jl-feat__d { font-size: 17px; }
  .jl__head { margin-bottom: var(--s-5); }
  .jl-head .page-head__aside .body { font-size: var(--fs-body); }
}
/* short phones: the line under the title steps aside (it is the page's description too), so the title, the meta and
   the whole drawing with its steps still fit the first screen */
@media (max-width: 640px) and (max-height: 720px) {
  .ja__dek { display: none; }
  .ja__top { row-gap: var(--s-4); }
  .ja__crumbs .crumbs { margin-bottom: var(--s-3); }
  .ja__meta { margin-top: var(--s-3); }
}

/* no card alone on a last row: four cards share one row on wide screens, three share one on tablets */
/* (counted among the cards shown: the featured article waits hidden in the grid, and the filters hide others) */
@media (min-width: 1100px) { .jl__grid:has(> :nth-child(4 of :not([hidden])):nth-last-child(1 of :not([hidden]))) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 641px) and (max-width: 1000px) { .jl__grid:has(> :nth-child(3 of :not([hidden])):nth-last-child(1 of :not([hidden]))) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* the sources' heading keeps its small size: the article's own h2 sizes (Korean, phones) are more specific otherwise */
.ja__prose .ja__src h2, :lang(ko) .ja__prose .ja__src h2 { font-family: var(--text); font-size: var(--fs-meta); font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.ja__prod-pic img[src*="/cut/"] { mix-blend-mode: normal; object-position: 50% 58%; }

/* the brown square behind the furniture (Nov 17), as everywhere on the site: cut-outs on the lit umber ground */
.jc__pic.is-cutout, .ja__pic.is-cutout .ja__frame { background: var(--shelf); }
.jc__pic.is-cutout img, .ja__pic.is-cutout img { mix-blend-mode: normal; filter: var(--shelf-shadow); }
