/* carloslastres.jp subpages (2026-11-22): blog, guides, insights, press kit,
   privacy, 404. Loaded after home.css, which owns the tokens, atoms, masthead and
   footer; this file only draws the reading and listing components, in the same
   system: black page, Inter Tight + Noto Sans JP, hairlines, violet as a hint.
   The markup comes from the builders (blog/, guides/, insights/, press/,
   privacy/build.mjs) through lib/shell.mjs. */

/* ── Masthead on a dark page ───────────────────────────────── */
.page-mast { padding-top: 20px; }
/* With no language switcher the CTA still sits at the right edge */
.page-mast .mast-cta { margin-left: auto; }
.page-mast .lang + .mast-cta { margin-left: 0; }
.page-mast .mast-nav a[aria-current] { background: var(--ink); color: var(--bg); }
.btn--light { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .btn--light:hover { background: #fff; } }
.foot nav a[aria-current="page"] { color: var(--ink); }

/* ── Article column ────────────────────────────────────────── */
/* article.post shares its class with the homepage's Writing rows (.post in
   home.css is a flex row); reset that here so the article is a column. */
article.post {
  display: block; gap: 0; border-top: 0;
  max-width: 760px; margin: 0 auto; padding: 72px var(--gut) 120px;
  box-sizing: content-box;
}
article.post--index { max-width: 1200px; }
.post__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 24px;
  font: 500 12px/1.4 var(--f-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
}
.post__meta::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-2); }
.post__meta span + span::before { content: '·'; margin-right: 14px; color: var(--ink-3); }
.post__meta a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.post h1 {
  font: 500 clamp(36px, 4.6vw, 64px)/0.98 var(--f-text); letter-spacing: -0.04em; color: var(--ink); margin: 0;
}
:lang(ja) .post h1, :lang(zh) .post h1 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; font-size: clamp(30px, 3.6vw, 52px); }
.post h1 strong { color: var(--ink-2); }
.post__standfirst { margin: 24px 0 0; font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 38em; }
:lang(ja) .post__standfirst { font-size: 18px; line-height: 1.8; }

/* ── Prose ─────────────────────────────────────────────────── */
.prose { margin-top: 56px; color: #d6d6da; font-size: 17px; line-height: 1.7; }
:lang(ja) .prose { line-height: 1.95; }
.prose > * + * { margin-top: 20px; }
.prose h2 {
  margin-top: 64px; font: 600 clamp(24px, 2.4vw, 30px)/1.15 var(--f-text); letter-spacing: -0.025em; color: var(--ink);
}
:lang(ja) .prose h2 { line-height: 1.35; letter-spacing: -0.01em; }
.prose h3 { margin-top: 40px; font: 600 20px/1.3 var(--f-text); color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: 14px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--violet-2); }
@media (hover: hover) and (pointer: fine) { .prose a:hover { text-decoration-thickness: 2px; } }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--ink-3); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--violet-2); color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.prose img { border-radius: var(--r-lg); }
.prose code {
  font: 0.88em/1.4 var(--f-mono); background: var(--tile); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; color: var(--ink);
}
.prose pre:focus-visible, .table-wrap:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 2px; }
.prose pre {
  background: var(--tile); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; overflow-x: auto; font: 14px/1.65 var(--f-mono); color: #e4e4e7;
}
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); font-size: 13px; letter-spacing: 0.02em; }

/* copy.js wraps prompt blocks and adds a button */
.copyable { position: relative; }
.copybtn {
  position: absolute; top: 10px; right: 10px; min-height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
  font: 500 12px/1 var(--f-text); letter-spacing: 0.04em; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .copybtn:hover { color: var(--ink); border-color: var(--ink-3); } }

/* ── Shared small parts used by the builders ───────────────── */
.micro-label {
  display: flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font: 500 12px/1.4 var(--f-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.micro-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-2); flex: none; }
.btn-outline-mono, .btn-outline, .btn-solid, .kit__btn, .kit__btns a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: var(--r-md); font: 500 14px/1 var(--f-text); white-space: nowrap; text-decoration: none;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.btn-outline-mono, .btn-outline, .kit__btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-solid, .kit__btn--solid { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-outline-mono:hover, .btn-outline:hover, .kit__btn--ghost:hover { border-color: var(--ink-3); }
  .btn-solid:hover, .kit__btn--solid:hover { background: #fff; }
}
.link-list { border-bottom: 1px solid var(--line); }
.link-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; color: var(--ink);
}
.link-list .arrow { color: var(--ink-3); flex: none; transition: color 160ms, translate 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-list a:hover .arrow { color: var(--violet-2); translate: 3px 0; } }
.post__related { margin-top: 96px; }
.post__note {
  margin-top: 64px; padding: 28px; border-radius: var(--r-lg); background: var(--tile);
  display: grid; gap: 12px; justify-items: start;
}
.post__note p { margin: 0; color: var(--ink-2); }
.post__note .micro-label { margin: 0; }
.article-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 64px;
  color: var(--ink-2); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line);
}
@media (hover: hover) and (pointer: fine) { .article-back:hover { color: var(--ink); text-decoration-color: var(--violet-2); } }
.contact-aside__line { color: var(--ink-2); margin: 0 0 8px; }

/* ── Listing pages: search, tag chips, rows ────────────────── */
.filter { margin-top: 56px; display: grid; gap: 16px; }
.filter__search { display: grid; gap: 8px; max-width: 520px; }
.filter__srlabel { font: 500 12px/1.4 var(--f-text); letter-spacing: 0.06em; color: var(--ink-2); }
.filter__search input {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--r-md);
  background: var(--tile); color: var(--ink); border: 1px solid #68686e; font: 400 16px/1.4 var(--f-text);
}
.filter__search input::placeholder { color: var(--ink-3); }
.filter__search input:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 0; border-color: var(--ink); }
.filter__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tagchip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: none; color: var(--ink-2); font: 500 14px/1 var(--f-text); cursor: pointer;
  transition: background-color 160ms, color 160ms, border-color 160ms;
}
.tagchip i { font-style: normal; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tagchip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tagchip[aria-pressed="true"] i { color: #55555b; }
@media (hover: hover) and (pointer: fine) { .tagchip:not([aria-pressed="true"]):hover { border-color: var(--ink-3); color: var(--ink); } }
.filter__count { font-size: 13px; color: var(--ink-2); min-height: 1.4em; margin: 0; }

.postlist { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.postlist { list-style: none; padding: 0; }
.postlist > li {
  position: relative; display: grid; gap: 8px; align-content: start; padding: 24px 0 28px; border-top: 1px solid var(--line);
  color: var(--ink);
}
.postlist > li[hidden] { display: none; }
.postlist__t, .postlist__d, .postlist__w { margin: 0; }
.postlist__t a { color: inherit; }
/* the whole row is the link's hit area; the title stays the only link text */
.postlist__t a::after { content: ''; position: absolute; inset: 0; }
.postlist__t { font: 500 20px/1.3 var(--f-text); letter-spacing: -0.015em; text-wrap: pretty; }
:lang(ja) .postlist__t { font-weight: 600; font-size: 18px; line-height: 1.55; letter-spacing: 0; }
.postlist__d { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.postlist__w { font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) {
  .postlist > li:hover .postlist__t { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; text-decoration-color: var(--violet-2); }
}
.postlist__empty { color: var(--ink-2); padding: 24px 0; }
@media (max-width: 899px) {
  .postlist { grid-template-columns: 1fr; }
  .tagchip { min-height: 44px; }
}

/* ── Press kit ─────────────────────────────────────────────── */
.kit .micro-label { margin: 0 0 12px; }
.kit__contact { margin: 40px 0 48px; padding: 28px; border-radius: var(--r-lg); background: var(--tile); }
.kit__contact p { margin: 0; color: var(--ink-2); }
.kit__contact p + p { margin-top: 10px; }
.kit__cta, .kit__btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.kit dl { margin: 32px 0 0; border-bottom: 1px solid var(--line); }
.kit dl > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.kit dt { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.kit dd { margin: 0; color: var(--ink); }
.kit dd a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.kit__bio { margin-top: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.kit__bio p { margin: 0; color: var(--ink-2); line-height: 1.8; }
.kit .kit__biohead { display: flex; justify-content: flex-start; align-items: center; gap: 10px; }
.kit__biohead .kit__copy { margin-left: auto; }
.kit__copy {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: none;
  color: var(--ink-2); font: 500 12px/1 var(--f-text); letter-spacing: 0.04em; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .kit__copy:hover { color: var(--ink); border-color: var(--ink-3); } }
.kit__shot { margin-top: 16px; display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.kit__shot img { width: 100%; height: auto; border-radius: 12px; }
.kit__shot p { margin: 0 0 12px; color: var(--ink-2); }
@media (max-width: 640px) {
  .kit dl > div, .kit__shot { grid-template-columns: 1fr; gap: 6px; }
  .kit__copy { min-height: 44px; }
}

/* ── 404 ───────────────────────────────────────────────────── */
.notfound { max-width: var(--max); margin: 0 auto; padding: 120px var(--gut) 160px; min-height: 60svh; }
.notfound .code { font: 500 12px/1.4 var(--f-text); letter-spacing: 0.08em; color: var(--ink-2); margin: 0 0 32px; display: flex; gap: 10px; align-items: center; }
.notfound .code::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-2); }
.notfound h1 { font: 500 clamp(44px, 7vw, 112px)/0.92 var(--f-text); letter-spacing: -0.05em; margin: 0 0 24px; color: var(--ink-2); }
.notfound h1 strong { color: var(--ink); }
.notfound p { color: var(--ink-2); max-width: 32em; margin: 0 0 40px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Review fixes (Astra, 2026-11-22) */
html:not(.js) [data-filter] { display: none; }  /* the filter only works with its script */
[data-filter-reset] { min-height: 44px; padding: 0 16px; margin-left: 8px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink); font: 500 14px/1 var(--f-text); cursor: pointer; }
.prose :is(a, code) { overflow-wrap: anywhere; }
.prose pre code, .table-wrap code { overflow-wrap: normal; }
.copyable pre { padding-top: 52px; }  /* room for the copy button, only when copy.js added one */
@media (max-width: 640px) {
  .copybtn { min-height: 44px; }
  :lang(ja) .post h1, :lang(zh) .post h1 { line-height: 1.25; letter-spacing: 0; }
}
.mast-nav:focus-within { mask-image: none; }
