/* Zenkai Club — paper and sumi ink. One face (Sentient), one ink, one paper. */
:root {
  --paper: #e9e9e6;
  --paper-2: #f4f4f1;
  --ink: #161615;
  --ink-2: #222220;
  --muted: #55534e;
  --on-ink: #ecebe5;
  --on-ink-muted: #b4b2ab;
  --accent: #161615;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1.02rem + 0.25vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem);
  --step-head: clamp(1.75rem, 0.9rem + 2.35vw, 3rem);
  --step-giant: clamp(3rem, 15vw, 16rem);

  --m: clamp(20px, 3.5vw, 52px);
  --gap: clamp(10px, 1vw, 16px);
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Sentient", "Iowan Old Style", Georgia, serif;
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) { .wide-only { display: none; } }

/* ---------- bar ---------- */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: 26px var(--m);
  font-size: var(--step-small);
}
.mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; letter-spacing: -0.01em; }
.bar nav { display: flex; gap: 22px; }
.bar nav a, .bar-action { text-decoration: none; }
.bar nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bar-action {
  margin-left: auto; padding: 9px 16px; background: var(--ink); color: var(--on-ink);
  transition: transform .2s var(--ease), background .2s;
}
.bar-action:hover { background: #000; }
.bar-action:active { transform: scale(.97); }
@media (max-width: 760px) { .bar nav { display: none; } }

/* ---------- hero ---------- */
/* one section: the headline and the recommend link, then the filter row and every product */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  padding: clamp(120px, 17vh, 190px) var(--m) clamp(96px, 12vw, 180px);
  background: var(--paper) url(assets/ink-field.jpg) center 100svh / 100% auto repeat-y;
  overflow: hidden; isolation: isolate;
}
/* the poured ink stays behind the first screen and fades into the scattered ink below it */
.hero::before {
  content: ""; position: absolute; inset: -3% -3% auto; height: 106svh; z-index: -1;
  background: url(assets/ink-hero.jpg) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); /* taste-skill-ignore: a fade mask on the ink picture, not a gradient fill */
  mask-image: linear-gradient(#000 70%, transparent); /* taste-skill-ignore: same fade mask */
  animation: drift 38s ease-in-out infinite alternate;
}
.catalog-in { grid-column: 1 / -1; margin-top: clamp(40px, 5vw, 64px); scroll-margin-top: 24px; }
@keyframes drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.06) translate(-1.2%, .8%); } }
.hero-title {
  grid-column: 1 / span 9; margin: 0;
  font-weight: 400; font-size: var(--step-head);
  line-height: 1.12; letter-spacing: -0.018em;
}
.hero-lede {
  grid-column: 1 / span 6; margin: 1.6em 0 0; max-width: 36em;
  font-size: var(--step-lead); line-height: 1.42; font-weight: 300;
}
.hero-paths { grid-column: 1 / span 6; list-style: none; padding: 0; margin: 2.2em 0 0; display: grid; gap: .55em; }
.hero-paths a {
  display: inline-flex; align-items: baseline; gap: .35em;
  font-size: var(--step-lead); line-height: 1.2;
  text-decoration: none; letter-spacing: -0.015em;
}
.chev { display: inline-block; transition: transform .25s var(--ease); font-size: .85em; }
.hero-paths a:hover .chev { transform: translateX(6px); }

/* brush underline like a dry ink stroke under the words */
.brush {
  background: url(assets/brush.png) left 92% / 100% .5em no-repeat;
  padding-bottom: .08em;
  transition: background-size .45s var(--ease);
}
.hero-paths a:hover .brush { background-size: 100% .62em; }



@media (max-width: 1000px) {
  .hero-title { grid-column: 1 / -1; }
  .hero-lede, .hero-paths { grid-column: 1 / span 9; }
  }
@media (max-width: 760px) {
  .hero { padding-top: 104px; }
  .hero::before { background-position: 8% 0%; }
  .hero-lede, .hero-paths { grid-column: 1 / -1; }
  }

/* ---------- catalog ---------- */

.ask-box {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  padding: 18px 18px 18px 22px; background: var(--paper-2);
  box-shadow: inset 0 0 0 1.5px var(--ink); /* taste-skill-ignore: a real form field keeps its edge */
}
.ask-box textarea {
  flex: 1 1 320px; min-height: 3.1em; resize: none; border: 0; background: none; outline: none;
  font-size: var(--step-lead); line-height: 1.35; padding: 4px 0;
}
.ask-box textarea::placeholder { color: #7d7a73; }
.ask-box:focus-within { box-shadow: inset 0 0 0 2.5px var(--ink); /* taste-skill-ignore: form field focus */ }
.mic, .go {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 12px 18px; border: 0; font-size: var(--step-small);
  transition: transform .15s var(--ease), background .2s;
}
@keyframes pulse { 50% { opacity: .35; } }
.go { background: var(--ink); color: var(--on-ink); }
.go:hover { background: #000; }
.mic:active, .go:active { transform: scale(.97); }

.ask-try { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: baseline; color: var(--muted); font-size: var(--step-small); }
.try {
  cursor: pointer; border: 0; padding: 8px 14px; font-size: var(--step-small);
  background: rgba(22,22,21,.07); color: var(--ink);
  transition: background .2s, color .2s, transform .15s var(--ease);
}
.try:hover { background: rgba(22,22,21,.14); }
.try:active { transform: scale(.97); }



/* bento: uneven spans on one 12-column grid */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense;
  grid-auto-rows: minmax(180px, auto); gap: var(--gap);
}
.tile { position: relative; background: var(--paper-2); color: var(--ink); transition: opacity .35s ease, transform .45s var(--ease); }
.tile.is-match { animation: settle .5s var(--ease) both; }  /* the chat uses this to highlight a card it mentions */
@keyframes settle { from { opacity: 0; transform: translateY(14px); } }
.tile.dark { background: var(--ink); color: var(--on-ink); }
.tile-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.tile-media { overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-2); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease); }
.tile-link:hover .tile-media img { transform: scale(1.035); }
.tile-copy { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile h3 { margin: 0; font-weight: 400; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; }
.tile h3 span { font-size: .6em; margin-left: .3em; color: var(--muted); }
.tile.dark h3 span { color: var(--on-ink-muted); }
.tile p { margin: 0; max-width: 44ch; }
.tile .meta { margin-top: auto; padding-top: 10px; font-size: var(--step-small); color: var(--muted); }
.tile.dark .meta { color: var(--on-ink-muted); }
.tile .why { font-style: italic; }
.tile-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }

.t-a { grid-column: span 7; grid-row: span 2; }
.t-b { grid-column: span 5; grid-row: span 2; }
.t-f { grid-column: span 8; grid-row: span 2; }
/* big tiles: the picture grows to fill whatever height the row gives it */
.t-a .tile-media, .t-b .tile-media, .t-f .tile-media { flex: 1 1 auto; aspect-ratio: auto; min-height: 280px; }
.t-a .tile-copy, .t-b .tile-copy, .t-f .tile-copy { flex: 0 0 auto; }
.t-h { grid-column: span 7; grid-row: span 2; }
.t-i { grid-column: span 5; grid-row: span 2; }
.t-h .tile-media, .t-i .tile-media { flex: 1 1 auto; aspect-ratio: auto; min-height: 280px; }
.t-h .tile-copy, .t-i .tile-copy { flex: 0 0 auto; }
.t-c { grid-column: span 4; }
.t-d { grid-column: span 4; }
.t-g { grid-column: span 12; background: var(--paper-2); }
.t-g .tile-copy { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 28px; }
.t-g .tile-copy p:not(.meta) { max-width: 60ch; }
.t-g .meta { color: var(--ink); margin-top: 8px; }

@media (max-width: 1000px) {
  .t-a, .t-b, .t-f, .t-h, .t-i { grid-column: span 12; grid-row: auto; }
  .t-a .tile-media, .t-b .tile-media, .t-f .tile-media, .t-h .tile-media, .t-i .tile-media { aspect-ratio: 16 / 10; min-height: 0; }
  .t-c, .t-d { grid-column: span 6; }
  .t-g { grid-column: span 12; }
}
@media (max-width: 640px) {
  .t-c, .t-d { grid-column: span 12; }
  .ask-actions { width: 100%; }
  .go { flex: 1; justify-content: center; }
}

/* drawn interface fragments for products with no public page */
.ui-neko { background: #dfe6ec; display: flex; align-items: center; justify-content: center; padding: 20px; }
.nk-chat { width: min(100%, 380px); display: flex; flex-direction: column; gap: 10px; font-family: -apple-system, "Hiragino Sans", system-ui, sans-serif; font-size: 14px; line-height: 1.4; }
.nk-chat p { margin: 0; padding: 10px 13px; border-radius: 16px; max-width: 82%; }
.nk-me { align-self: flex-end; background: #86d97a; color: #10200c; }
.nk-bot { align-self: flex-start; background: #fff; color: #1a1a1a; }
.ui-glasses { background: #050605; display: flex; align-items: center; justify-content: center; padding: 20px; }
.gl-view { font-family: -apple-system, system-ui, sans-serif; color: #49f070; font-size: 15px; line-height: 1.5; }
.gl-view p { margin: 0; }
.gl-who { font-weight: 600; margin-bottom: 4px !important; }
.gl-line { opacity: .85; }

/* ---------- idea ---------- */
.idea {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start;
  padding: clamp(110px, 14vw, 200px) var(--m); background: var(--ink); color: var(--on-ink);
  scroll-margin-top: 0;
}
.idea-copy { grid-column: 1 / span 5; }
.idea h2 { margin: 0; font-weight: 400; font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.02em; }
.idea-lede { margin: 28px 0 0; max-width: 32ch; font-size: var(--step-lead); line-height: 1.4; font-weight: 300; }
.idea-prize { margin: 36px 0 0; max-width: 30ch; font-size: var(--step-lead); line-height: 1.35; }
.idea-prize strong { font-weight: 500; }
.star {
  background: none; border: 0; padding: 0 .1em; margin-left: .05em; cursor: pointer; color: inherit;
  font-size: 1.1em; line-height: 1; vertical-align: super; font-weight: 500;
  transition: transform .2s var(--ease), opacity .2s;
}
.star:hover { transform: scale(1.25); }
.idea-terms { margin: 14px 0 0; font-size: var(--step-small); color: var(--on-ink-muted); }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; color: var(--on-ink); font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { text-decoration-thickness: 2px; }

/* the terms open in a real dialog, so it is the one thing allowed to float */
.terms {
  width: min(720px, calc(100vw - 32px)); max-height: min(86vh, 900px); padding: 0; border: 0;
  background: var(--paper-2); color: var(--ink);
  box-shadow: 0 30px 80px rgba(0,0,0,.35); /* taste-skill-ignore: a dialog truly floats */
}
.terms::backdrop { background: rgba(10,10,9,.6); }
.terms[open] { animation: terms-in .35s var(--ease); }
@keyframes terms-in { from { opacity: 0; transform: translateY(16px); } }
.terms-inner { position: relative; padding: clamp(28px, 4vw, 52px); }
.terms-close {
  position: sticky; top: 0; float: right; margin: -8px -8px 0 16px; padding: 8px 14px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--on-ink); font-size: var(--step-small);
}
.terms h2 { margin: 0; font-weight: 400; font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.015em; }
.terms-short { margin: 14px 0 0; font-size: var(--step-body); }
.terms h3 { margin: 32px 0 8px; font-weight: 500; font-size: var(--step-body); }
.terms p, .terms li { font-size: var(--step-small); line-height: 1.6; }
.terms p { margin: 0; }
.terms ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .terms[open] { animation: none; } }

.idea-promise { margin: 14px 0 0; max-width: 34ch; color: var(--on-ink-muted); }
.idea-form { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 10px; }
.idea-form label { font-size: var(--step-body); }
.idea-form label span { color: var(--on-ink-muted); }
.idea-form textarea, .idea-form input {
  width: 100%; border: 0; background: var(--ink-2); color: var(--on-ink); padding: 16px 18px;
  font-size: var(--step-body); line-height: 1.45; resize: vertical; outline: none;
  box-shadow: inset 0 0 0 1.5px #3a3a37; /* taste-skill-ignore: real form fields keep their edge */
  margin-bottom: 18px;
}
.idea-form textarea:focus, .idea-form input:focus { box-shadow: inset 0 0 0 2px var(--on-ink); /* taste-skill-ignore: form field focus */ }
.idea-form ::placeholder { color: #8d8b85; }
.idea-form .go { align-self: flex-start; background: var(--on-ink); color: var(--ink); font-size: var(--step-body); padding: 14px 24px; }
.idea-form .go:hover { background: #fff; }
.idea-done { margin: 8px 0 0; color: var(--on-ink-muted); }
@media (max-width: 1000px) {
  .idea-copy, .idea-form { grid-column: 1 / -1; }
  .idea-form { margin-top: 56px; }
}

/* ---------- close ---------- */
.close {
  background: var(--ink) url(assets/ink-close.jpg) center / cover no-repeat;
  color: var(--on-ink); padding: clamp(80px, 9vw, 140px) var(--m) 32px; overflow: hidden;
  min-height: 90svh; display: flex; flex-direction: column;
}
.close-name {
  margin: 0; font-size: var(--step-giant); line-height: .9; letter-spacing: -0.045em; font-weight: 300;
  white-space: nowrap;
}
.close-row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: 72px; }
.close-reach { grid-column: 1 / span 6; list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.close-reach a { font-size: var(--step-lead); text-decoration: none; letter-spacing: -0.015em; }
.close-reach a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.close-links { grid-column: 8 / span 5; list-style: none; padding: 0; margin: 0; columns: 2; }
.close-links li { margin-bottom: 8px; }
.close-links a { text-decoration: none; }
.close-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.close-legal { margin-top: auto; padding-top: 96px; display: flex; justify-content: space-between; gap: 20px; font-size: var(--step-small); color: var(--on-ink-muted); }
.close-legal p { margin: 0; }
@media (max-width: 760px) {
  .close-reach, .close-links { grid-column: 1 / -1; }
  .close-links { margin-top: 40px; }
  .close-legal { flex-direction: column; }
}

/* ---------- entrances ---------- */
.js [data-rise] { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-rise].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise] { transform: none; transition: opacity .3s; }
  .tile, .tile-media img, .chev, .brush { transition: none; }
  .tile.is-match, .hero::before { animation: none; }
}

.tile[data-id="sorano"] .tile-media img { object-position: 8% top; }

/* ---------- chat with the founder ---------- */
/* Full screen: the ink brain spreads across the paper while it "loads", then settles into the left
   column and the conversation rises beside it. */
.chat {
  position: fixed; inset: 0; margin: 0; z-index: 20;
  width: 100%; height: 100dvh; max-width: none; max-height: none;
  padding: 0 var(--m); border: 0; background: var(--paper); color: var(--ink);
  grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  overflow: hidden;
}
.chat[open] { display: grid; animation: chat-in .35s ease; }
@keyframes chat-in { from { opacity: 0; } }
.chat::backdrop { background: var(--paper); }

.chat-side {
  grid-column: 1 / span 5; align-self: center;
  display: flex; flex-direction: column; padding-bottom: 4vh;
}
.chat-brain { margin: 0 0 clamp(20px, 4vh, 44px) -4%; width: 108%; transform-origin: 0 0; }
.chat-brain { position: relative; aspect-ratio: 5 / 4; z-index: 3; }
.chat-brain canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.brain-wash { filter: blur(10px); opacity: .8; }   /* the wash bleeding into the paper */
.brain-ink { filter: blur(.9px); }
.chat-side h2 { margin: 0; font-size: var(--step-head); font-weight: 300; line-height: 1; letter-spacing: -0.03em; }
.chat-who { margin: 18px 0 0; max-width: 34ch; }

.chat-main {
  grid-column: 7 / span 6; position: relative; min-height: 0;
  display: flex; flex-direction: column; padding: 92px 0 clamp(20px, 4vh, 40px);
}
.chat-x {
  position: absolute; top: 26px; right: 0;
  border: 0; cursor: pointer; padding: 9px 16px; font-size: var(--step-small);
  background: rgba(22,22,21,.07);
  transition: background .2s, transform .15s var(--ease);
}
.chat-x:hover { background: rgba(22,22,21,.15); }
.chat-x:active { transform: scale(.96); }

.chat-log {
  flex: 1; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 0 4px 24px 0;
  display: flex; flex-direction: column; gap: 18px; overscroll-behavior: contain;
}
.chat-log::before { content: ""; margin-top: auto; }   /* first lines sit low, near the box, like a text thread */
.chat-log li { max-width: min(86%, 62ch); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; animation: line-in .45s var(--ease); }
@keyframes line-in { from { opacity: 0; transform: translateY(10px); } }
.chat-log .me { align-self: flex-end; padding: 11px 16px; background: var(--ink); color: var(--on-ink); }
.chat-log .him { align-self: flex-start; }   /* reading size: body step, 1.6 leading, about 62 characters a line */
.chat-log .him.is-typing:empty::after { content: "…"; animation: pulse 1s ease-in-out infinite; }
.chat-log .note { align-self: stretch; max-width: none; font-size: var(--step-small); color: var(--muted); }
.chat-try { margin: 0 0 14px; }
.chat-try[hidden] { display: none; }
.chat-box { padding: 12px 12px 12px 20px; align-items: flex-end; flex-wrap: nowrap; }
.chat-box textarea { flex: 1 1 auto; min-height: 1.5em; max-height: 9em; font-size: var(--step-body); padding: 8px 0; }
.chat-box .go:disabled { opacity: .45; cursor: default; }

/* the loading moment: the brain is painted stroke by stroke in the middle, then glides into place */
.chat-splash {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 12vh;
  opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s;
}
.chat.is-loading .chat-splash { opacity: 1; visibility: visible; transition: none; }
.chat-loading { margin: 0; padding: 0 16px; text-align: center; font-size: var(--step-body); color: var(--muted); }
.chat-brain { transition: transform 1.3s var(--ease); }
.chat.is-loading .chat-brain { transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--s, 1)); transition: none; }
.chat-side h2, .chat-who, .chat-main > * { transition: opacity .7s ease, transform .8s var(--ease); }
.chat-who { transition-delay: 80ms; }
.chat-main > * { transition-delay: 160ms; }
.chat-main .chat-log { transition-delay: 240ms; }
.chat-main .chat-box { transition-delay: 320ms; }
.chat.is-loading .chat-side h2, .chat.is-loading .chat-who, .chat.is-loading .chat-main > * { opacity: 0; transform: translateY(24px); transition: none; }

@media (max-width: 900px) {
  .chat { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 0 16px; }
  .chat-side { grid-column: 1; align-self: start; padding: 22px 96px 8px 0; display: grid; grid-template-columns: 76px 1fr; column-gap: 14px; align-items: center; }
  .chat-brain { grid-row: span 2; width: 76px; margin: 0; }
  .chat-side h2 { font-size: var(--step-lead); line-height: 1.1; }
  .chat-who { margin: 4px 0 0; font-size: var(--step-small); color: var(--muted); }
  .chat-main { grid-column: 1; padding: 8px 0 16px; }
  .chat-x { position: fixed; top: 22px; right: 16px; }
}
@media (max-width: 900px) and (max-height: 560px) { .chat-who { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .chat[open], .chat-log li { animation: none; }
  .chat-brain, .chat-side h2, .chat-who, .chat-main > *, .chat-splash { transition: opacity .3s; transform: none; filter: none; }
}

/* phones: keep the chat header to one short block so the conversation gets the screen */
@media (max-width: 600px) { .chat-who { display: none; } }
.mark img { display: block; width: 36px; height: 36px; }

/* ---------- blog (pages built by scripts/build-blog.mjs) ---------- */
body.blog { position: relative; isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); }
body.blog main { flex: 1; }
/* the ink stays in the top corner and fades out, so the reading column is always on clean paper */
body.blog::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 95vh; z-index: -1;
  background: url(assets/ink-hero.jpg) right top / min(80vw, 1300px) auto no-repeat; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 100% 0, #000 30%, transparent 75%); /* taste-skill-ignore: fade mask on the ink picture */
  mask-image: radial-gradient(ellipse 70% 80% at 100% 0, #000 30%, transparent 75%); /* taste-skill-ignore: same fade mask */
}
.blog-list, .post { padding: clamp(120px, 17vh, 190px) var(--m) clamp(80px, 10vw, 140px); }
.blog-list h1, .post h1 {
  margin: 0; font-weight: 400; font-size: var(--step-head); line-height: 1.08; letter-spacing: -0.02em; max-width: 22ch;
}
.blog-list ul { list-style: none; padding: 0; margin: clamp(40px, 6vw, 72px) 0 0; display: grid; gap: 12px; max-width: 760px; }
.blog-list li a { display: block; padding: 24px 26px; background: var(--paper-2); text-decoration: none; transition: background .2s, transform .2s var(--ease); }
.blog-list li a:hover { background: #fff; }
.blog-list li a:active { transform: scale(.995); }
.blog-list time, .post-date { font-size: var(--step-small); color: var(--muted); }
.blog-list h2 { margin: 6px 0 8px; font-weight: 400; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.015em; }
.blog-list li p { margin: 0; color: var(--muted); max-width: 60ch; }
.post-back { margin: 0 0 28px; font-size: var(--step-small); }
.post-back a { text-decoration: underline; text-underline-offset: 4px; }
.post-date { margin: 14px 0 0; }
.post-body { max-width: 66ch; margin-top: clamp(32px, 5vw, 56px); line-height: 1.65; }
.post-body h2 { margin: 2em 0 .5em; font-weight: 400; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.015em; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 1.1em; }
.post-body li { margin-bottom: .5em; }
.post-body a { text-underline-offset: 3px; }
.post-body img { margin: 1.6em 0; }
.blog-foot { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 40px var(--m) 48px; background: var(--ink); color: var(--on-ink); font-size: var(--step-small); }
.blog-foot a { text-decoration: none; }
.blog-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { body.blog::before { height: 45vh; background-size: cover; background-position: 72% top; } }

/* ---------- tools inside blog posts (assets/tools.js) ---------- */
.tool { margin: 2.2em 0; padding: clamp(20px, 3vw, 32px); background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--ink); /* taste-skill-ignore: a tool panel is a real form */ line-height: 1.5; }
.tool p { margin: 0 0 .6em; }
.tool-title { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.015em; margin-bottom: .3em !important; }
.tool-intro { color: var(--muted); font-size: var(--step-small); }
.tool-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 16px; margin: 18px 0; }
.tool-body.tool-cols { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tool-col { display: grid; gap: 10px; }
.tool-col-name { font-weight: 500; margin: 0 !important; }
.tool-field { display: grid; gap: 6px; font-size: var(--step-small); color: var(--muted); }
.tool-field.tool-wide, .tool-rows, .tool-head, .tool-body > .tool-btn { grid-column: 1 / -1; }
.tool input, .tool textarea, .tool select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 0; padding: 10px 12px;
  box-shadow: inset 0 0 0 1px #c9c7c0; /* taste-skill-ignore: form field edge */
}
.tool input:focus, .tool textarea:focus, .tool select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); /* taste-skill-ignore: form field focus */ }
.tool textarea { resize: vertical; }
.tool-head, .tool-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 84px; gap: 8px; align-items: center; }
.tool-head { font-size: var(--step-small); color: var(--muted); }
.tool-rows { display: grid; gap: 8px; }
.tool-radio { display: inline-flex; align-items: center; gap: 6px; font-size: var(--step-small); color: var(--muted); }
.tool-radio input { width: auto; box-shadow: none; }
.tool-btn { justify-self: start; font: inherit; font-size: var(--step-small); padding: 9px 16px; border: 0; background: var(--ink); color: var(--on-ink); cursor: pointer; transition: transform .15s var(--ease); }
.tool-btn:active { transform: scale(.97); }
.tool-out { border-top: 0; padding-top: 6px; }
.tool-out > p { margin: .6em 0 0; }
.tool-big { font-size: var(--step-lead); line-height: 1.2; }
.tool-sub { font-weight: 500; margin-top: 1.2em !important; }
.tool-bars { display: grid; gap: 8px; margin-bottom: 10px; }
.tool-bar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: 10px; align-items: center; font-size: var(--step-small); }
.tool-bar-track { height: 12px; background: rgba(22,22,21,.08); }
.tool-bar-track span { display: block; height: 100%; background: #8d8b85; }
.tool-bar.is-value .tool-bar-track span { background: var(--ink); }
.tool-bar.is-value .tool-bar-name { font-weight: 500; }
.tool-bar-num { color: var(--muted); font-variant-numeric: tabular-nums; }
.tool-table { display: grid; gap: 4px; margin-bottom: 10px; font-size: var(--step-small); }
.tool-tr { display: grid; grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(70px, 1fr)); gap: 10px; padding: 6px 0; }
.tool-th { color: var(--muted); }
.tool-tr span:not(:first-child) { font-variant-numeric: tabular-nums; }
.tool-marked { background: #fff; padding: 12px 14px; }
.tool-marked mark { background: rgba(22,22,21,.14); color: var(--ink); padding: 0 2px; }
.tool-list { padding-left: 1.1em; margin: .6em 0; font-size: var(--step-small); }
.tool-list li { margin-bottom: .4em; }
@media (max-width: 600px) {
  .tool-head, .tool-row { grid-template-columns: minmax(0, 1fr) 80px 70px; }
  .tool-bar { grid-template-columns: 1fr; gap: 4px; }
}
/* code blocks in posts wrap on small screens instead of widening the page */
.post-body pre { background: var(--paper-2); padding: 16px 18px; overflow-x: auto; max-width: 100%; font-size: .85em; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-body code { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.post-body table { display: block; max-width: 100%; overflow-x: auto; }
.post-body img { width: 100%; height: auto; }
.post-full { margin: 2em 0; }
.post-full a { display: inline-block; padding: 12px 20px; background: var(--ink); color: var(--on-ink); text-decoration: none; }
.post-full a:hover { background: #000; }
