@charset "UTF-8";

/* InkSignal Lab readability revision 2026-07-16
   Loaded after the original page styles so the update can be replaced easily. */
:root {
  --ink: #20243b;
  --ink-2: #30375b;
  --steel: #5148c5;
  --steel-2: #574fc9;
  --cyan: #08786f;
  --cyan-soft: #e1f7f4;
  --paper: #f6f7fb;
  --paper-2: #eef1f7;
  --surface: #fff;
  --text: #222635;
  --muted: #636b79;
  --line: #dfe3ec;
  --line-strong: #c9ceda;
  --shadow-sm: 0 5px 16px rgb(31 36 58 / .06);
  --shadow-md: 0 12px 32px rgb(31 36 58 / .09);
  --shadow-lg: 0 22px 54px rgb(31 36 58 / .14);
  --radius: 17px;
  --radius-lg: 25px;
  --shell: min(1320px, calc(100% - 40px));
}
html[data-theme="dark"] {
  --steel: #b8b4ff;
  --steel-2: #d0cdff;
  --cyan: #66e3db;
  --guide-violet: #c2b5ff;
  --guide-violet-dark: #9e8aff;
  --guide-teal: #6de2d5;
  --guide-amber: #ffd178;
  --guide-coral: #ff9aaa;
  --paper: #10111b;
  --paper-2: #181a28;
  --surface: #202332;
  --surface-alpha: rgb(32 35 50 / .9);
  --text: #f1f3f8;
  --muted: #aeb4c2;
  --line: #393d50;
  --line-strong: #4c5167;
}

/* Small accent labels and links must remain readable in both themes. */
.eyebrow,
.lab-tool-card .tool-number,
.rights-card-kicker,
.terms-number { color: var(--steel); }

/* Keep white text on a dark accent even when the dark theme uses a light link color. */
.page-help-grid article > b,
.naming-result-name button,
.content-license-strip::before,
.filter-toggle[aria-pressed="true"],
.demo-replay[aria-pressed="true"] {
  color: #fff;
  background-color: #5148c5;
  border-color: #5148c5;
}

/* Rights cards use one accessible accent per source in each theme. */
.source-card { --rights-accent: #b4371b; }
.changes-card { --rights-accent: #6231bd; }
.standard-card { --rights-accent: #006f56; }
html[data-theme="dark"] .source-card { --rights-accent: #ff9b82; }
html[data-theme="dark"] .changes-card { --rights-accent: #c7adff; }
html[data-theme="dark"] .standard-card { --rights-accent: #6fe0bb; }

html[data-theme="dark"] .brand-guide-page {
  --guide-violet: #c2b5ff;
  --guide-violet-dark: #9e8aff;
  --guide-teal: #6de2d5;
  --guide-amber: #ffd178;
  --guide-coral: #ff9aaa;
}


body {
  background:
    radial-gradient(circle at 12% 0%, rgb(92 85 216 / .07), transparent 28rem),
    radial-gradient(circle at 93% 7%, rgb(10 155 145 / .06), transparent 24rem),
    var(--paper);
  font-size: 16px;
  line-height: 1.72;
}

h1, h2, h3, h4, p, li, dt, dd, a, button, label, summary, th, td {
  line-break: strict;
  overflow-wrap: anywhere;
  word-break: normal;
}
pre, code, kbd, samp { line-break: auto; overflow-wrap: normal; word-break: normal; }

.site-header { min-height: 70px; padding-block: 9px; box-shadow: 0 1px 0 rgb(31 36 58 / .03); }
.brand-mark { transform: scale(.9); transform-origin: left center; }
.brand-copy strong { font-size: .94rem; }
.brand-copy small { font-size: .59rem; }
.desktop-nav a { padding: .55rem .68rem; font-size: .78rem; }
.icon-button { min-height: 42px; min-width: 48px; }

/* Page title hierarchy */
.page-hero {
  min-height: 320px;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: clamp(24px, 4.5vw, 56px);
  padding-block: clamp(40px, 5vw, 64px);
}
.page-hero::before { opacity: .55; width: 27rem; }
.page-hero h1,
.brand-guide-hero h1,
.logo-page-hero h1,
.compact-page-hero h1,
.naming-hero h1,
.css-reference-hero h1 {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.045em;
}
.page-hero h1 span, .page-hero h1 em { display: inline; color: inherit; font-style: normal; }
.page-hero-copy, .hero-copy, .lab-home-hero-copy { min-width: 0; }
.page-hero h1, .hero h1, .lab-home-hero h1 { text-wrap: balance; }

.page-hero-lead { max-width: 720px; margin-top: 16px; font-size: clamp(.96rem, 1.15vw, 1.04rem); line-height: 1.8; }
.page-hero-actions { margin-top: 20px; gap: 8px; }
.page-hero-actions a { min-height: 44px; padding: 0 14px; font-size: .8rem; border-radius: 11px; }
.page-hero-stats { gap: 8px; }
.page-hero-stats div { min-height: 82px; padding: 13px; border-radius: 15px; box-shadow: var(--shadow-sm); }
.page-hero-stats strong { font-size: clamp(1.12rem, 2vw, 1.55rem); line-height: 1.14; }
.page-hero-stats span { margin-top: 5px; font-size: .7rem; line-height: 1.45; }

.lab-home-hero {
  min-height: 400px;
  grid-template-columns: minmax(0, 1fr) minmax(440px, .9fr);
  padding-block: clamp(44px, 6vw, 72px);
}
.lab-home-hero h1 { max-width: 22ch; font-size: clamp(2.2rem, 3.6vw, 3.1rem); line-height: 1.12; }
.lab-home-hero h1 em { color: var(--steel); }
.lab-hero-art { width: 100%; max-width: 560px; justify-self: end; }

.hero {
  min-height: 500px;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(46px, 6vw, 76px);
}
.hero h1 { max-width: 18ch; font-size: clamp(2.2rem, 3.7vw, 3.1rem); line-height: 1.12; letter-spacing: -.045em; }
.hero-lead { margin-top: 20px; font-size: clamp(.98rem, 1.25vw, 1.08rem); }
.hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.hero-stats > div { padding: 12px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.hero-stats dt { font-size: 1.08rem; line-height: 1.2; }
.hero-stats dd { margin-top: 4px; font-size: .66rem; line-height: 1.4; }
.hero-note { max-width: 680px; margin-top: 13px; font-size: .74rem; }
.hero-visual { min-height: 385px; transform: scale(.9); }

.eyebrow { margin-bottom: 11px; font-size: .68rem; letter-spacing: .12em; }
.eyebrow span { width: 24px; }

/* Section hierarchy */
.section-heading h2,
.lab-section-heading h2,
.brand-guide-section-heading h2,
.logo-section-heading h2,
.naming-guide-heading h2,
.blog-return h2,
.lab-source-panel h2,
.brand-guide-final-note h2 {
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: -.035em;
}
.lab-section-heading > p:last-child,
.brand-guide-section-heading > p:last-child,
.section-heading > p:last-child { margin-top: 10px; font-size: .94rem; }

.lab-tool-section, .brand-guide-section, .reference-explorer, .naming-workspace, .naming-guide-section,
.logo-collection, .logo-purpose-panel, .license-review-result, .rights-overview, .safe-use-panel,
.logo-use-checklist, .use-case-section, .logo-license-panel, .compliance-audit, .logo-faq,
.color-panel { margin-block: clamp(36px, 5vw, 64px); }
.lab-tool-grid { gap: 16px; }
.lab-tool-card { min-height: 0; padding: 20px; border-radius: 18px; box-shadow: var(--shadow-sm); }
.lab-tool-card h3 { margin-top: 10px; font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.3; letter-spacing: -.03em; }
.lab-tool-card p { font-size: .86rem; line-height: 1.75; }
.lab-tool-card footer { margin-top: 18px; }
.lab-tool-card footer li { font-size: .65rem; }
.lab-source-panel { margin-block: 48px 64px; padding: clamp(22px, 3.5vw, 36px); border-radius: 20px; }
.lab-source-panel h2 { max-width: 21ch; }

/* Beginner guides */
.page-help {
  margin-top: clamp(10px, 1.5vw, 20px);
  margin-bottom: clamp(36px, 5vw, 60px);
  padding: clamp(20px, 3.5vw, 30px);
  background: color-mix(in srgb, var(--surface) 92%, var(--cyan-soft));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.page-help-heading { display: grid; gap: 4px; max-width: 850px; }
.page-help-heading h2 { margin: 0; font-size: clamp(1.4rem, 2vw, 1.65rem); line-height: 1.3; letter-spacing: -.03em; }
.page-help-heading > p:last-child { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.page-help-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.page-help-grid-four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.page-help-grid article { min-width: 0; padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.page-help-grid article > b { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 9px; color: #fff; background: var(--steel); border-radius: 8px; font-size: .72rem; }
.page-help-grid h3 { margin: 0; font-size: 1rem; line-height: 1.4; }
.page-help-grid p { margin: 7px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.72; }
.page-help-definitions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 16px 0 0; }
.page-help-definitions > div { padding: 14px 15px; background: color-mix(in srgb, var(--paper-2) 72%, transparent); border-radius: 12px; }
.page-help-definitions dt { color: var(--text); font-size: .78rem; font-weight: 900; }
.page-help-definitions dd { margin: 4px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.65; }
.motion-clarity-note { display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; align-items: start; margin-top: 16px; padding: 15px 17px; background: color-mix(in srgb, var(--cyan) 8%, var(--surface)); border-left: 4px solid var(--cyan); border-radius: 12px; }
.motion-clarity-note strong { font-size: .82rem; }
.motion-clarity-note p { margin: 0; color: var(--muted); font-size: .8rem; }
.reference-switcher-note { margin-top: 14px; margin-bottom: 0; color: var(--muted); font-size: .8rem; }

/* Reference cards and details */
.reference-explorer { padding-top: clamp(36px, 5vw, 60px); padding-bottom: 140px; }
.reference-controls { padding: 16px; border-radius: 16px; box-shadow: none; }
.reference-card { padding: 18px; border-radius: 15px; box-shadow: var(--shadow-sm); }
.reference-card h3 { font-size: 1.06rem; line-height: 1.4; }
.reference-card > p { font-size: .79rem; }
.reference-card-meta span { font-size: .64rem; }
.reference-facts > div { min-height: 0; padding: 12px; }
.reference-facts span { font-size: .65rem; }
.reference-facts strong { font-size: .78rem; }
.reference-field-help { display: block; margin-top: 4px; color: var(--muted); font-size: .65rem; font-weight: 500; line-height: 1.45; }
.reference-info-box h3 { font-size: 1rem; }
.reference-summary-line { min-height: 35px; }
.reference-source-note { font-size: .72rem; line-height: 1.65; }

/* Color tool: text-first feature cards */
body:has(#colorTool) .page-hero-stats div { align-content: start; justify-content: start; transform: none; }
body:has(#colorTool) .page-hero-stats strong { font-size: .98rem; line-height: 1.35; }
body:has(#colorTool) .page-hero-stats span { font-size: .68rem; }

/* Animation cards: make trigger and visible change easy to find */
.animation-card { box-shadow: var(--shadow-sm); }
.demo-hint { position: static; max-width: none; padding: .38rem .48rem; color: var(--text); font-size: .68rem; font-weight: 800; line-height: 1.45; }
.motion-change-summary { min-height: 78px; padding: 10px 12px; background: #f7f8fb; border-color: #dfe3eb; }
.motion-change-summary strong { color: #4b467f; font-size: .68rem; }
.motion-change-summary li { font-size: .7rem; line-height: 1.55; }
html[data-theme="dark"] .motion-change-summary { background: #252838; border-color: #3d4255; }
html[data-theme="dark"] .motion-change-summary strong { color: #d9d6ff; }
.scroll-demo-sticky { font-size: .65rem; }
.scroll-demo-marker { font-size: .62rem; }
.card-body h3 { font-size: 1.08rem; }
.card-description { font-size: .78rem; }

/* Legal and secondary content should not compete with the main tools */
.site-legal-note { padding-block: 18px; }
.site-legal-note strong { font-size: .78rem; }
.site-legal-note p, .site-legal-note a { font-size: .7rem; }
.site-footer { padding-top: 48px; }
.footer-inner > div > p { font-size: .76rem; }
.lab-footer-links a, .footer-bottom a { font-size: .72rem; }
.terms-document h2 { font-size: clamp(1.3rem, 2.2vw, 1.72rem); line-height: 1.35; }
.terms-document h3 { font-size: 1.05rem; }
.terms-document p, .terms-document li, .terms-table { font-size: .84rem; }
.terms-summary-card strong { font-size: 1.35rem; }

/* Reliable top button */
.floating-top-link { display: none !important; }
.floating-top-button {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 140;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: var(--ink);
  border: 1px solid rgb(255 255 255 / .18);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s, transform .2s, visibility .2s, background .2s;
}
.floating-top-button:hover { background: var(--steel); }
.floating-top-button.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 1100px) {
  .page-help-grid-four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .desktop-nav a { padding-inline: .5rem; font-size: .72rem; }
  .hero { grid-template-columns: 1fr minmax(300px,.75fr); }
}

@media (max-width: 860px) {
  :root { --shell: min(100% - 28px, 1320px); }
  .page-hero, .hero { min-height: 0; grid-template-columns: 1fr; gap: 22px; padding-block: 38px; }
  .page-hero h1, .brand-guide-hero h1, .logo-page-hero h1, .compact-page-hero h1, .naming-hero h1, .css-reference-hero h1 { max-width: 20ch; }
  .page-hero-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-visual, .lab-hero-art, .logo-hero-collage, .brand-guide-visual, .naming-hero-visual { max-width: 520px; justify-self: center; width: 100%; }
  .page-help-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-help-definitions { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 560px) {
  :root { --shell: min(100% - 20px, 1320px); }
  body { font-size: 15px; }
  .site-header { min-height: 62px; padding: 8px 10px; }
  .brand-mark { width: 40px; transform: scale(.78); transform-origin: left center; margin-right: -8px; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: .84rem; }
  .page-hero, .hero, .lab-home-hero { padding-block: 28px 34px; }
  .page-hero h1, .brand-guide-hero h1, .logo-page-hero h1, .compact-page-hero h1, .naming-hero h1, .css-reference-hero h1 { font-size: clamp(1.8rem, 8.6vw, 2.25rem); line-height: 1.16; letter-spacing: -.035em; }
  .lab-home-hero h1 { font-size: clamp(1.95rem, 8.8vw, 2.3rem); }
  .hero h1 { font-size: clamp(1.95rem, 8.8vw, 2.32rem); }
  .page-hero-lead, .hero-lead { font-size: .94rem; line-height: 1.8; }
  .page-hero-actions, .hero-actions { display: grid; grid-template-columns: 1fr; }
  .page-hero-actions a, .hero-actions a { width: 100%; }
  .page-hero-stats, .hero-stats { grid-template-columns: 1fr 1fr; }
  .page-hero-stats div { min-height: 72px; padding: 12px; }
  .hero-stats > div:last-child { grid-column: 1 / -1; }
  .hero-visual { min-height: 300px; transform: scale(.82); margin-block: -20px; }
  .page-help { padding: 16px; border-radius: 17px; }
  .page-help-heading h2 { font-size: 1.3rem; }
  .page-help-grid, .page-help-grid-four, .page-help-definitions { grid-template-columns: 1fr; }
  .motion-clarity-note { grid-template-columns: 1fr; gap: 4px; }
  .section-heading h2, .lab-section-heading h2, .brand-guide-section-heading h2, .logo-section-heading h2, .naming-guide-heading h2, .blog-return h2, .lab-source-panel h2, .brand-guide-final-note h2 { font-size: 1.4rem; }
  .lab-tool-card { padding: 16px; }
  .lab-tool-card h3 { font-size: 1.18rem; }
  .reference-controls { padding: 12px; }
  .reference-summary-line { display: grid; gap: 2px; }
  .floating-top-button { width: 44px; height: 44px; right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-top-button { transition: none; }
}

/* Final heading scale: specific page styles must not enlarge titles again. */
.page-hero h1,
.hero h1,
.lab-home-hero h1,
body[data-reference="css"] .page-hero h1,
.css-reference-hero h1,
.logo-page-hero h1,
.brand-guide-hero h1,
.naming-hero h1,
.compact-page-hero h1 {
  max-width: 24ch;
  font-size: clamp(1.9rem, 3vw, 2.75rem) !important;
  line-height: 1.14 !important;
  letter-spacing: -.04em !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  text-wrap: balance;
}
.lab-home-hero h1,
.hero h1 { max-width: 22ch; }

main h2 {
  font-size: clamp(1.45rem, 2.1vw, 1.85rem) !important;
  line-height: 1.28 !important;
  letter-spacing: -.03em !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-wrap: balance;
}
main .page-help h2 { font-size: clamp(1.32rem, 1.8vw, 1.58rem) !important; }
.reference-dialog-header h2 { font-size: clamp(1.35rem, 2vw, 1.75rem) !important; }

@media (max-width: 560px) {
  .page-hero h1,
  .hero h1,
  .lab-home-hero h1,
  body[data-reference="css"] .page-hero h1,
  .css-reference-hero h1,
  .logo-page-hero h1,
  .brand-guide-hero h1,
  .naming-hero h1,
  .compact-page-hero h1 {
    max-width: 100%;
    font-size: clamp(1.72rem, 7.8vw, 2.05rem) !important;
    line-height: 1.18 !important;
    letter-spacing: -.03em !important;
  }
  main h2 { font-size: 1.4rem !important; }
  main .page-help h2 { font-size: 1.3rem !important; }
}
.ink-heading-line {
  display: block;
  white-space: nowrap;
}

.ink-heading-unit {
  white-space: nowrap;
}

.page-hero-lead,
.hero-note {
  word-break: auto-phrase;
}

/* Stage 4: smartphone controls stay readable and easy to tap. */
.drop-zone:focus-within {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  select,
  textarea {
    min-height: 44px;
  }

  select {
    height: 46px !important;
  }

  .site-brand,
  .mobile-menu nav a,
  .reference-tab,
  .reference-card button,
  .reference-load-more,
  .reference-dialog button,
  .canvas-toolbar button,
  .canvas-toolbar select,
  .color-tabs button,
  .content-license-strip a,
  .site-alert > a,
  .site-legal-note > a,
  .terms-toc a,
  .lab-source-panel a,
  .license-source-list a,
  .official-source-list a,
  .official-source-grid a,
  .site-footer nav a,
  main button:not(.demo-stage *) {
    min-height: 46px;
  }

  .favorite-button,
  .canvas-toolbar button {
    min-width: 44px;
  }

  .mobile-menu nav,
  .reference-switcher-inner,
  .canvas-toolbar,
  .color-tabs {
    max-width: calc(100vw - 20px);
  }

  .mobile-menu nav {
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .reference-tab,
  .content-license-strip a,
  .site-legal-note > a,
  .lab-source-panel a,
  .license-source-list a,
  .official-source-list a,
  .official-source-grid a,
  .site-footer nav a {
    display: inline-flex;
    align-items: center;
  }

  .canvas-toolbar button,
  .canvas-toolbar select,
  .color-tabs button {
    min-height: 46px;
  }

  .drop-zone b {
    min-height: 46px;
  }

  .rights-summary-card a,
  .brand-record-facts a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .brand-guide-page input[type="checkbox"],
  .brand-guide-page input[type="radio"] {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 420px) {
  .reference-controls {
    grid-template-columns: 1fr;
  }

  .reference-search {
    grid-column: auto;
  }
}

/* Final theme contrast overrides (kept last so page-specific styles cannot undo them). */
html[data-theme="dark"] { --rose: #ff8aa7; }

.page-help-grid article > b,
.naming-result-name button,
.content-license-strip::before,
.filter-toggle[aria-pressed="true"],
.demo-replay[aria-pressed="true"] {
  color: #fff;
  background: #5148c5;
  border-color: #5148c5;
}

html[data-theme="dark"] .logo-use-checklist li > span { color: var(--steel); }
html[data-theme="dark"] .logo-download-card:nth-child(1) { --logo-accent: #0b6a36 !important; }
html[data-theme="dark"] .logo-download-card:nth-child(2) { --logo-accent: #285f8d !important; }
html[data-theme="dark"] .logo-download-card:nth-child(3) { --logo-accent: #b52608 !important; }
html[data-theme="dark"] .logo-download-card:nth-child(4) { --logo-accent: #1f2322 !important; }
html[data-theme="dark"] .logo-card-copy > span { color: var(--steel); }

html[data-theme="dark"] .placement-code button,
html[data-theme="dark"] .credit-copy-block button,
html[data-theme="dark"] .credit-output-header button {
  color: #fff;
  background: #5148c5;
}
html[data-theme="dark"] .brand-guide-alert-icon {
  color: #fff;
  background: #9b3147;
}
html[data-theme="dark"] .brand-group-microsoft { --group-accent: #9eb0ff; }
html[data-theme="dark"] .brand-group-adobe { --group-accent: #ff9aae; }
html[data-theme="dark"] .brand-policy-warning strong { color: #ffd178; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #08786f;
  outline-offset: 3px;
}
html[data-theme="dark"] a:focus-visible,
html[data-theme="dark"] button:focus-visible,
html[data-theme="dark"] input:focus-visible,
html[data-theme="dark"] select:focus-visible,
html[data-theme="dark"] textarea:focus-visible,
html[data-theme="dark"] summary:focus-visible { outline-color: #66e3db; }
