/* BlueCL readability and interaction polish · 2026-10-29
   Loaded last on every public page. Keeps the existing layout, colours and type family;
   raises the smallest text sizes, darkens secondary text and adds hover/focus feedback. */

:root { --muted: #66635b; --label: #65625a; }

/* ---------- Body copy: 13px -> 15px ---------- */
.lead { line-height: 1.75; }
.evidence-case-facts dd, .research-summary, .work-card p, .feature-list li, .note, .closing p,
.claude-use-card p, .architecture-steps span, .product-audience-grid p, .directory-company-summary p,
.directory-discovery p, .case-top p, .case-facts dd, .portfolio-architecture p, .case-detail-grid p,
.project-summary, .project-note p, .project-tile p, .directory-note, .product-setup aside p,
.product-features p, .product-implementation p, .product-roadmap p, .product-steps p,
.product-data-grid p, .product-faq-item p, .product-model-panel p, .principles p, .section-head > p,
.more-project-grid .project-tile p, .threads-project p, .answer-text p {
  font-size: 15px; line-height: 1.75;
}
.evidence-case-facts dd, .research-summary, .project-tile p, .directory-note, .section-head > p { color: var(--muted); }
.hero-product-list li, .hero-product-screen figcaption, .priority-grid p, .claude-section-foot p { font-size: 14px; }
.finder-description { font-size: 14px !important; line-height: 1.7 !important; color: var(--muted) !important; }
.product-finder strong { font-size: 19px !important; }
.product-finder small { font-size: 13px !important; }
.product-finder > p { font-size: 13px; color: var(--label); }

/* ---------- Labels, captions and meta: 9-11px -> 12-13px ---------- */
.eyebrow, .project-eyebrow, .publication-label, .use-label, .use-stage, .case-detail-label,
.case-pipeline-title, .portfolio-card .portfolio-type, .project-tile-category, .tile-model,
.evidence-case-facts dt, .case-facts dt, .publication-meta dt, .facts dt, .company-identity dt,
.directory-section-label, .product-audience-grid .eyebrow, .principles .step, .capability .num {
  font-size: 12px; color: var(--label);
}
.eyebrow { color: var(--blue); }
.finder-number, .product-finder .finder-number { font-size: 13px !important; color: var(--label) !important; }
.signal-strip > div { font-size: 14px; }
.signal-strip .label { font-size: 11px; color: var(--label); }
.hero-foot, .footer-bottom, .company-footer .footer-bottom { font-size: 12px; color: var(--label); }
.languages { font-size: 12px; color: var(--label); }
.caption, .mindflow .caption, .page-hero .caption, .workflow .caption, .research-note, .source-list small,
.evidence-case-image figcaption, .project-shot figcaption > a, .product-availability,
.product-block .product-scope-note, .product-block .product-update, .traction-date, .portfolio-legend,
.case-note, .case-foot, .card-foot {
  font-size: 13px; color: var(--muted);
}
.publication-meta dd, .company-identity dd, .footer-row p, .footer-links, .footer-business,
.company-footer .footer-business, .project-crumb, .product-section-nav, .product-support-links,
.product-setup > div > a, .directory-links, .browse-panel a, .project-link-row a, .publication-link,
.project-source, .evidence-flow, .project-status, .project-model, .project-tags span, .project-flow-step span {
  font-size: 13px;
}
.evidence-flow { color: #4c4a43; line-height: 1.6; }
.project-link-row.compact a, .tile-traction, .project-tile-bottom { font-size: 12px; }
.project-tile-bottom .project-status, .project-tile-photo > span, .screen-label { font-size: 11px; }
.project-bottom-nav small { font-size: 11px; color: var(--label); }
.evidence-links .btn, .evidence-links .text-link, .btn, .text-link { font-size: 14px; }
.nav { font-size: 14px; }
.evidence-proof-grid span { font-size: 14px; }
.evidence-proof-grid small, .evidence-proof-note { font-size: 12px; color: #dbdad6; }
.editorial-table thead { font-size: 12px; }
.editorial-table, table { font-size: 14px; }

/* ---------- Interaction feedback ---------- */
.project-tile, .product-finder a, .research-card, .more-project-grid .project-tile, .evidence-case-image {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
@media (hover: hover) {
  .project-tile:hover, .product-finder a:hover, .research-card:hover {
    transform: translateY(-3px); border-color: #cfddd4; box-shadow: 0 12px 32px rgba(23,20,15,0.08);
  }
  .evidence-case-image:hover { transform: translateY(-2px); }
  .project-shot-image img, .evidence-case-image img { transition: transform .5s ease; }
  .project-shot-image:hover img, .evidence-case-image a:hover img { transform: scale(1.015); }
}
.btn { transition: background-color .2s ease, transform .15s ease; }
.btn:active { transform: translateY(1px); }
.text-link, .publication-link, .project-link-row a { text-underline-offset: 3px; }
.text-link:hover, .publication-link:hover, .project-link-row a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid #157f53; outline-offset: 3px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .project-tile, .product-finder a, .research-card, .evidence-case-image, .btn,
  .project-shot-image img, .evidence-case-image img { transition: none; }
  .project-tile:hover, .product-finder a:hover, .research-card:hover, .evidence-case-image:hover { transform: none; }
}

/* ---------- Phone screenshots in project galleries ---------- */
.project-shot.phone .project-shot-image { display: flex; justify-content: center; background: #f6f6f5; }
.project-shot.phone img { width: auto; max-width: 100%; max-height: 560px; object-fit: contain; }

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .evidence-case-facts dd, .research-summary, .project-tile p, .section-head > p, .product-steps p,
  .product-data-grid p, .product-faq-item p, .work-card p, .answer-text p { font-size: 15px; }
  .hero .eyebrow, .publication-label, .product-availability, .product-section-nav, .project-crumb { font-size: 12px; }
  .hero-foot, .traction-date, .project-shot figcaption > a, .product-intro .project-link-row a, .project-link-row a { font-size: 12px; }
  .hero-product-list li { font-size: 14px; }
}

/* ---------- Personal portfolio identity (personalize-portfolio-20261029.py) ---------- */
.brand { white-space: nowrap; }
.brand-sub { margin-left: 8px; padding: 2px 7px; border: 1px solid #e4e3e0; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--label); vertical-align: 2px; }
@media (max-width: 420px) { .topbar .brand-sub { display: none; } }

.project-role { margin: 14px 0 0; font-size: 15px; color: #3a3934; }
.project-role b { display: inline-block; margin-right: 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
html[lang="ko"] .project-role b { letter-spacing: 0; text-transform: none; }
.project-tile p.project-tile-role { margin: -4px 0 10px; font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--blue); }

.evidence-proof-grid.proof-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .evidence-proof-grid.proof-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.journey { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.journey li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.journey time { font-size: 14px; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; padding-top: 3px; }
.journey h3 { margin: 0 0 6px; font-size: 19px; }
.journey h3 a { text-decoration: none; }
.journey h3 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.journey p { margin: 0; max-width: 70ch; font-size: 15px; line-height: 1.75; color: var(--muted); }
@media (max-width: 640px) {
  .journey li { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
}

.personal-tools-label { margin: 28px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--label); }
html[lang="ko"] .personal-tools-label { letter-spacing: 0; text-transform: none; }
.personal-tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.personal-tools li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #ffffff; font-size: 13px; color: #3a3934; }

/* ---------- Layout pass (layout-portfolio-20261029.py) ---------- */
/* Section heading on the left, its intro aligned to the heading's baseline on the right, without a wide empty gap. */
@media (min-width: 761px) {
  .section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: end; }
  .section-head > p { max-width: 520px; justify-self: end; }
}

/* Selected work index: a compact list that jumps to each case study, not a second set of cards. */
.product-finder { padding: 20px 22px; margin-bottom: 28px; }
.product-finder a { min-height: 0 !important; padding: 14px 16px; gap: 14px !important; display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; text-align: left !important; }
.product-finder a > span:not(.finder-number):not(:last-child) { flex: 1; min-width: 0; text-align: left; }
.product-finder .finder-number { flex: none; width: 28px; }
.product-finder .finder-description { display: none !important; }
.product-finder strong { font-size: 17px !important; }
.product-finder small { display: block; margin-top: 2px; }
@media (min-width: 1051px) { .product-finder > div { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 1050px) and (min-width: 561px) { .product-finder > div { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { .product-finder { padding: 14px; } .product-finder > div { grid-template-columns: 1fr !important; gap: 8px !important; } .product-finder a { min-height: 0 !important; padding: 12px 14px; } }

/* Case studies: a little tighter so the six read as one run. */
@media (min-width: 761px) { .evidence-case { padding: 48px 0; gap: 56px; } }

/* More projects: open by default, three across on wide screens. */
.more-projects[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 24px; }
@media (min-width: 1051px) { .more-project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
.more-project-grid .project-tile { display: flex; flex-direction: column; }
.more-project-grid .project-tile-main { flex: 1; }

/* Journey sits right after the work; give it the same rhythm as other sections. */
.journey-section { padding-top: 96px; }
@media (max-width: 760px) { .journey-section { padding-top: 64px; } }

/* About: focus areas as chips instead of a bullet column */
.personal-tags { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; line-height: 1.4 !important; }
.personal-tags li { padding: 7px 13px; border-radius: 999px; background: #f4f7f5; color: #157f53; font-size: 13px; font-weight: 600; }
.personal-tools + p { margin-top: 28px !important; }

/* ---------- Audit round 1 (scripts/site/audit-pages.mjs): minimum 12px, contrast, tap targets, tables ---------- */
.brand-sub, .signal-strip .label, .screen-label, .project-tile-bottom .project-status, .project-tile-photo > span,
.project-bottom-nav small, .project-results, .languages, .finder-number { font-size: 12px !important; }
.step-number, .flow-number { font-size: 13px !important; color: var(--label) !important; font-weight: 700; }
.analytics-choice p, .analytics-choice-actions button, .analytics-choice-actions a { font-size: 12px !important; }
.analytics-choice strong { font-size: 13px !important; }
.project-results { color: var(--muted); }

@media (max-width: 760px) {
  /* links that stand on their own line get a 40px touch area */
  .actions .text-link, .evidence-links .text-link, .evidence-links .btn, .hero-product-screen figcaption .text-link,
  .project-link-row a, .product-section-nav a, .project-crumb a, .product-support-links a, .project-overview-link,
  .research-card .text-link, .publication-link, .company-email, .footer-links a, .footer-privacy a, .footer-privacy button,
  .project-cta a, .threads-project .text-link, .more-projects .project-link-row a, .project-shot figcaption > a,
  .product-implementation summary, .closing .btn, .about-grid .text-link, .principles + p .text-link, section .text-link {
    display: inline-flex; align-items: center; min-height: 40px;
  }
  .product-section-nav { gap: 4px 16px; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
  /* wide tables scroll inside their own box instead of widening the page */
  .editorial-table, table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---------- Audit round 2 ---------- */
/* Business-information pages use the dark portfolio-20261017.css theme: keep its own light-on-dark greys. */
html:has(link[href^="/portfolio-20261017.css"]) { --muted: #b4b3ae; --label: #c3c1bc; }
html:has(link[href^="/portfolio-20261017.css"]) .footer p { font-size: 12px; }
html:has(link[href^="/portfolio-20261017.css"]) .footer-top > div, html:has(link[href^="/portfolio-20261017.css"]) .footer button,
html:has(link[href^="/portfolio-20261017.css"]) .nav .lang { font-size: 13px; }
html:has(link[href^="/portfolio-20261017.css"]) .brand-sub { border-color: #383734; color: #c3c1bc; }

@media (max-width: 760px) {
  .footer-top > div, .footer-privacy { flex-wrap: wrap; row-gap: 0; }
  .footer-top a, .footer-top button, .footer-privacy a, .footer-privacy button, .work-links a, .brand { display: inline-flex; align-items: center; min-height: 40px; }
  .product-section-nav a, .nav a { padding-inline: 6px; }
  /* tables become stacked rows on phones */
  .editorial-table, table { display: table; overflow: visible; }
  .editorial-table thead { display: none; }
  .editorial-table, .editorial-table tbody, .editorial-table tr, .editorial-table td { display: block; width: 100%; }
  .editorial-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .editorial-table td { padding: 2px 0 !important; border: 0 !important; }
  .editorial-table td:first-child a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }
}

/* ---------- Audit round 3 ---------- */
@media (max-width: 760px) {
  .footer-links a { padding-inline: 8px; margin-inline: -8px; }
  .footer-links { gap: 0 24px; }
  table td a { display: inline-flex; align-items: center; min-height: 40px; }
  .analytics-choice-actions a { display: inline-flex !important; align-items: center; min-height: 40px; padding-inline: 4px; }
}
@media (max-width: 760px) {
  .editorial-table th[scope="row"] { display: block; width: 100%; padding: 0 !important; border: 0 !important; text-align: left; }
  .editorial-table th[scope="row"] a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }
}

/* ---------- Layout review round 5 ---------- */
/* Business-information pages: same light theme as every other page instead of the old dark one. */
html:has(link[href^="/portfolio-20261017.css"]) {
  color-scheme: light; --bg: #ffffff; --panel: #f8f8f7; --line: #e8e7e4; --ink: #282723; --muted: #66635b; --label: #65625a; --blue: #157f53;
}
html:has(link[href^="/portfolio-20261017.css"]) body { background: #ffffff; color: #282723; }
html:has(link[href^="/portfolio-20261017.css"]) .brand-sub { border-color: #e4e3e0; color: var(--label); }
html:has(link[href^="/portfolio-20261017.css"]) .header { background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); }
html:has(link[href^="/portfolio-20261017.css"]) .eyebrow { font-family: inherit; color: var(--blue); }
html:has(link[href^="/portfolio-20261017.css"]) .footer p { color: var(--muted); }

/* Phone: "More projects" stays open, but its tiles drop the screenshot so the list is quick to scan. */
@media (max-width: 560px) {
  .more-project-grid .project-tile-photo, .more-project-grid .project-tile-visual { display: none; }
  .more-project-grid .project-tile-body { padding-top: 20px; }
}
html:has(link[href^="/portfolio-20261017.css"]) .nav a { color: #3a3934; }
html:has(link[href^="/portfolio-20261017.css"]) .nav a:hover { color: var(--blue); }
html:has(link[href^="/portfolio-20261017.css"]) .menu-button { color: #282723; background: #f8f8f7; border-color: var(--line); }
@media (max-width: 760px) { html:has(link[href^="/portfolio-20261017.css"]) .nav { background: #ffffff; border-color: var(--line); } }
