/* Meet Me Gently — brand identity study.
   Editorial layout for an internal design-system reference. Reuses site.css
   tokens (--serif, --sans, --ink, --line, --panel …) for consistency, adds
   only the structure this page needs. No brand colour is hardcoded here —
   the JS paints every swatch, badge and hex label from the live tokens file. */

.bstudy main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.4rem) 6rem; }

/* ---------------------------------------------------------------- masthead */
.bs-mast { max-width: 900px; margin: clamp(2.4rem, 7vw, 5rem) auto clamp(3rem, 8vw, 5.5rem); padding: 0 clamp(1.1rem, 4vw, 2.4rem); text-align: left; }
.bs-mast h1 { font-size: clamp(2.4rem, 6.4vw, 4.1rem); letter-spacing: -.01em; max-width: 14ch; }
.bs-mast h1 em { font-style: italic; color: var(--steady-ink); }
.bs-mast-lead { margin: 1.3rem 0 0; max-width: 62ch; font-size: 1.08rem; line-height: 1.7; color: var(--ink-soft); }
.bs-mast-lead code { font: 600 .85em/1 ui-monospace, "SF Mono", Menlo, monospace; background: var(--steady-tint); color: var(--steady-ink); padding: .1em .4em; border-radius: 5px; }
.bs-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.1rem 0 0; }
.bs-toc a { font: 600 .78rem/1 var(--sans); letter-spacing: .05em; text-decoration: none; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: .5rem .95rem; background: var(--panel);
  transition: color .16s ease, border-color .16s ease, transform .16s ease; }
.bs-toc a:hover { color: var(--ink); border-color: var(--steady-line); transform: translateY(-2px); }
.bs-token-status { margin: 1.4rem 0 0; font: 600 .78rem/1.5 var(--sans); letter-spacing: .02em; color: var(--steady-ink);
  display: inline-flex; align-items: center; gap: .5rem; }
.bs-token-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); flex: 0 0 auto; }
.bs-token-status.is-error { color: var(--repair-ink); }

/* ---------------------------------------------------------------- sections */
.bs-section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line); position: relative;
  scroll-margin-top: 5.5rem; /* the sticky header must never cover an anchor-jumped heading */ }
.bs-section--tint { margin: 0 calc(-1 * clamp(1.1rem, 4vw, 2.4rem)); padding-left: clamp(1.1rem, 4vw, 2.4rem); padding-right: clamp(1.1rem, 4vw, 2.4rem);
  background: linear-gradient(180deg, rgba(20,16,10,.018), transparent 14%, transparent 86%, rgba(20,16,10,.018)); }
.bs-num { font: 700 .78rem/1 var(--sans); letter-spacing: .24em; color: var(--ink-soft); margin: 0 0 .8rem; }
.bs-section h2 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); max-width: 20ch; margin-bottom: .3rem; }
.bs-section-intro { max-width: 68ch; margin: 1rem 0 2.4rem; font-size: 1.02rem; line-height: 1.7; color: var(--ink-soft); }
.bs-section-intro code { font: 600 .85em/1 ui-monospace, "SF Mono", Menlo, monospace; background: var(--panel); border: 1px solid var(--line); padding: .1em .4em; border-radius: 5px; }
.bs-section-status { display: inline-flex; align-items: center; gap: .5rem; margin: .2rem 0 0; font: 700 .74rem/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--repair-ink); border: 1px solid var(--repair-line); background: var(--repair-tint); border-radius: 999px; padding: .5rem .9rem; }
.bs-loading { color: var(--ink-soft); font-style: italic; }

/* --------------------------------------------------------------- 01 idea */
.bs-idea-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.bs-idea-copy p { max-width: 62ch; font-size: 1.02rem; line-height: 1.75; color: var(--ink); margin: 0 0 1.1rem; }
.bs-lead-line { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 1.9rem) !important; color: var(--ink) !important; line-height: 1.35 !important; }
.bs-consent-quote { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin: 1.4rem 0 !important; }
.bs-consent-quote span { font: 700 .8rem/1 var(--sans); letter-spacing: .22em; color: var(--steady-ink);
  border: 1.5px solid var(--steady-line); border-radius: 999px; padding: .55rem 1.05rem; background: var(--steady-tint); }
.bs-idea-why { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem 1.7rem; position: sticky; top: 5.5rem; }
.bs-idea-why h3 { font-size: 1.14rem; margin-bottom: .8rem; }
.bs-idea-why h3 em { font-style: italic; color: var(--open-ink); }
.bs-idea-why p { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.7; }
@media (max-width: 900px) { .bs-idea-grid { grid-template-columns: 1fr; } .bs-idea-why { position: static; } }

/* --------------------------------------------------------- 02 positioning */
.bs-pos-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: clamp(1.4rem, 3.5vw, 2.4rem); align-items: start; }
.bs-pos-col h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.bs-check, .bs-cross { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.bs-check li, .bs-cross li { position: relative; padding-left: 1.7rem; font-size: .95rem; line-height: 1.6; color: var(--ink-soft); }
.bs-check li::before { content: "✓"; position: absolute; left: 0; top: .05em; color: var(--steady-ink); font-weight: 700; }
.bs-cross li::before { content: "✕"; position: absolute; left: 0; top: .05em; color: var(--repair-ink); font-weight: 700; }
.bs-counter-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.bs-counter-table th, .bs-counter-table td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.bs-counter-table th { font: 700 .68rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.bs-counter-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.bs-counter-table td:nth-child(3) { color: var(--ink); border-left: 3px solid var(--steady-line); padding-left: .85rem; }
@media (max-width: 980px) { .bs-pos-grid { grid-template-columns: 1fr; } .bs-pos-col--counter { grid-column: 1; } }

/* --------------------------------------------------------- 03 five paths */
.bs-paths-grid { display: grid; gap: 1.1rem; }
.bs-path { --pc: #0A2472; --pt: #0A2472; display: grid; grid-template-columns: 116px 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel);
  box-shadow: 0 1px 0 rgba(20,16,10,.02); transition: box-shadow .2s ease, transform .2s ease; }
.bs-path:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -28px color-mix(in srgb, var(--pc) 55%, rgba(20,16,10,.4)); }
.bs-path-swatch { background: var(--pc); position: relative; min-height: 100%; display: flex; align-items: flex-end; padding: 1rem; }
.bs-path-idx { font: 700 1.6rem/1 var(--serif); color: rgba(255,255,255,.55); }
.bs-path-body { padding: 1.5rem 1.6rem; }
.bs-path-need { margin: 0 0 .3rem; font: 700 .68rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--pt); }
.bs-path-body h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.bs-path-q { font-family: var(--serif); font-style: italic; color: var(--ink); margin: 0 0 .55rem; font-size: 1.02rem; }
.bs-path-job { margin: 0 0 .5rem; color: var(--ink-soft); font-size: .93rem; line-height: 1.6; max-width: 60ch; }
.bs-path-voice { margin: 0 0 .9rem; font-size: .88rem; color: var(--ink-soft); }
.bs-path-voice b { color: var(--ink); }
.bs-path-sub { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .7rem; }
.bs-path-hex { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 640px) { .bs-path { grid-template-columns: 1fr; } .bs-path-swatch { padding: .6rem 1.5rem; min-height: 34px; } }

/* small colour chip, used across the page for hex badges */
.bs-chip { display: inline-flex; align-items: center; gap: .4rem; font: 600 .74rem/1 var(--sans); color: var(--ink-soft);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .32rem .6rem .32rem .32rem; }
.bs-chip i { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(20,16,10,.14); flex: 0 0 auto; }
.bs-chip code { font: 700 .72rem/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); }

/* --------------------------------------------------------------- 04 colour */
.bs-a11y-note { max-width: 74ch; border: 1px solid var(--reach-line); border-left: 4px solid var(--reach-ink);
  background: var(--reach-tint); border-radius: var(--r); padding: 1.4rem 1.5rem; margin-bottom: 2.2rem; }
.bs-a11y-note h3 { font-size: 1.02rem; margin-bottom: .55rem; }
.bs-a11y-note p { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.7; }
.bs-a11y-note em { font-style: normal; font-weight: 600; color: var(--ink); }
.bs-palette-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.bs-palette-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .86rem; }
.bs-palette-table th, .bs-palette-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.bs-palette-table thead th { font: 700 .66rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); background: var(--bg); }
.bs-palette-table tbody tr:last-child td { border-bottom: none; }
.bs-idprefix { font: 600 .68rem/1 ui-monospace, monospace; color: var(--ink-soft); }
.bs-ratio { display: inline-flex; align-items: center; gap: .35rem; font: 700 .74rem/1 var(--sans); border-radius: 6px; padding: .28rem .5rem; margin-top: .35rem; }
.bs-ratio b { font: 700 .62rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.bs-ratio--aaa { background: #DFF3E6; color: #17663A; }
.bs-ratio--aa { background: #E6F0FB; color: #1C4E86; }
.bs-ratio--aa-large { background: #FBF0DA; color: #8A5E00; }
.bs-ratio--fail { background: #FBE4E3; color: #A21B27; }
.bs-neutrals { margin-top: 2.2rem; }
.bs-neutrals h3 { font-size: 1.02rem; margin-bottom: .8rem; }
.bs-neutral-chips { display: flex; flex-wrap: wrap; gap: .55rem; }

/* ------------------------------------------------------------ 05 typography */
.bs-type-specimen { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.bs-type-row { display: grid; grid-template-columns: 1fr; gap: .35rem; padding: 1.9rem clamp(1.3rem, 3vw, 2.4rem); border-bottom: 1px solid var(--line); }
.bs-type-row:last-child { border-bottom: none; }
.bs-type-role { font: 700 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.bs-type-sample { margin: .3rem 0 0; color: var(--ink); }
.bs-type-sample--serif { font-size: clamp(1.5rem, 3.6vw, 2.15rem); line-height: 1.28; max-width: 20ch; }
.bs-type-sample--label { font: 700 .95rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--steady-ink); }
.bs-type-sample--consent { font: 700 1.05rem/1 var(--sans); letter-spacing: .26em; color: var(--repair-ink); }
.bs-type-sample--ui { font: 500 .92rem/1.6 var(--sans); color: var(--ink-soft); }
.bs-type-family { font: 600 .74rem/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink-soft); }
.bs-type-rules { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .8rem; max-width: 74ch; }
.bs-type-rules li { padding-left: 1.5rem; position: relative; font-size: .93rem; line-height: 1.65; color: var(--ink-soft); }
.bs-type-rules li::before { content: "—"; position: absolute; left: 0; color: var(--ink-soft); }
.bs-type-rules b { color: var(--ink); }

/* ---------------------------------------------------------------- 06 mark */
.bs-mark-sizes { display: grid; gap: 1.4rem; margin-bottom: 2.6rem; }
.bs-mark-row { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; padding: 1.4rem 1.6rem; border-radius: var(--r); }
.bs-mark-row--light { background: var(--panel); border: 1px solid var(--line); }
.bs-mark-row--dark { background: #17130D; border: 1px solid #2A241C; }
.bs-mark-row-label { font: 700 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); min-width: 6.5em; }
.bs-mark-row--dark .bs-mark-row-label { color: #93887A; }
.bs-mark-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; }
.bs-mark-box svg { display: block; width: 100%; height: 100%; }
.bs-mark-row--dark .bs-mark-box .mk-face-a { stroke: #9FB4EF; }
.bs-mark-row--dark .bs-mark-box .mk-face-b { stroke: #F5A98F; }
.bs-mark-tile-size { font: 600 .68rem/1 ui-monospace, monospace; color: var(--ink-soft); }
.bs-mark-row--dark .bs-mark-tile-size { color: #766C5E; }

.bs-mark-rules { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.bs-mark-clearspace h3, .bs-mark-misuse h3 { font-size: 1.02rem; margin-bottom: 1rem; }
.bs-clearspace-demo { display: flex; justify-content: center; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); margin-bottom: 1rem; }
.bs-clearspace-ring { position: relative; width: 132px; height: 132px; display: grid; place-items: center;
  border: 1.5px dashed var(--steady-line); border-radius: 14px; }
.bs-clearspace-mark { width: 56px; height: 56px; }
.bs-clearspace-mark svg { display: block; width: 100%; height: 100%; }
.bs-mark-clearspace p, .bs-mark-misuse > p { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.65; }
.bs-misuse-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.bs-misuse-wrap { display: grid; gap: .55rem; justify-items: center; }
.bs-misuse-tile { position: relative; width: 100%; aspect-ratio: 4/3; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); display: grid; place-items: center; overflow: hidden; }
.bs-misuse-mark { width: 42px; height: 42px; }
.bs-misuse-mark svg { display: block; width: 100%; height: 100%; }
.bs-misuse-x { position: absolute; top: .5rem; right: .5rem; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--repair); color: #fff; font: 700 .72rem/1 var(--sans); z-index: 2; }
.bs-misuse-label { font: 600 .78rem/1.3 var(--sans); color: var(--ink-soft); text-align: center; max-width: 16ch; }
.bs-misuse--stretch .bs-misuse-mark { transform: scale(2.6, 1); }
.bs-misuse--recolor .bs-misuse-mark svg { filter: hue-rotate(160deg) saturate(2.4); }
.bs-misuse--crowd .bs-misuse-mark { width: 84px; height: 84px; }
.bs-misuse--crowd.bs-misuse-tile::before, .bs-misuse--crowd .bs-misuse-tile::before { content: ""; }
.bs-misuse--busy { background-image:
    repeating-linear-gradient(45deg, rgba(197,31,45,.16) 0 8px, rgba(10,36,114,.14) 8px 16px, rgba(234,158,4,.15) 16px 24px); }
@media (max-width: 900px) { .bs-mark-rules { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .bs-misuse-grid { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------ 07 card */
.bs-card-object { display: flex; flex-wrap: wrap; gap: clamp(1.6rem, 4vw, 3rem); align-items: flex-start; justify-content: center;
  padding: clamp(1.6rem, 4vw, 2.6rem); border: 1px solid var(--line); border-radius: calc(var(--r) + 6px);
  background: radial-gradient(120% 90% at 50% -10%, #fffef9, var(--bg) 65%); margin-bottom: 2.2rem; }
.bs-card-col { display: grid; gap: .9rem; justify-items: center; }
.bs-card-col-label { font: 700 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.bs-card-hold { width: min(230px, 44vw); }
.bs-card-hold .mmg-card, .bs-card-hold .mmg-back { box-shadow: 0 30px 55px -26px rgba(28,20,8,.45), 0 6px 14px -6px rgba(28,20,8,.22); }
.bs-card-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem 1.6rem; margin: 0; }
.bs-card-facts dt { font: 700 .74rem/1 var(--sans); letter-spacing: .05em; color: var(--ink); margin-bottom: .35rem; }
.bs-card-facts dd { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.6; }

/* -------------------------------------------------------------- 08 voice */
.bs-voice-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); margin-bottom: 2rem; }
.bs-voice-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .9rem; }
.bs-voice-table th, .bs-voice-table td { text-align: left; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.bs-voice-table thead th { font: 700 .66rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); background: var(--bg); }
.bs-voice-table tbody tr:last-child td { border-bottom: none; }
.bs-voice-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.bs-voice-table td:nth-child(2) { color: var(--ink); border-left: 3px solid var(--steady-line); }
.bs-voice-table td:nth-child(3) { color: var(--ink-soft); border-left: 3px solid var(--repair-line); }
.bs-hard-rules { max-width: 74ch; border: 1px solid var(--repair-line); border-left: 4px solid var(--repair-ink);
  background: var(--repair-tint); border-radius: var(--r); padding: 1.5rem 1.6rem; }
.bs-hard-rules h3 { font-size: 1rem; margin-bottom: .9rem; }
.bs-hard-rules ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; }
.bs-hard-rules li { color: var(--ink); font-size: .93rem; line-height: 1.65; }

@media (max-width: 560px) {
  .bs-mast { padding: 0 1rem; }
  .bs-idea-why { padding: 1.4rem 1.3rem; }
}
