/* BK Font page (page-bk-font.php). Flat editorial: hairline rules and one dark band, no shadows.
 * Guide positions are in em from the font's own metrics (UPM 2000, ascent 1.0em, descent 0.366em):
 * Display shirorekha 0.534–0.6465em above the baseline, ि/े top 0.886em, ु bottom −0.306em. */

.fp .wrap { max-width: calc(840px + var(--gutter) * 2); }
.fp p { font-size: 18px; line-height: 1.75; color: var(--text); max-width: 40em; }
.fp p + p { margin-top: 14px; }
.fp h2 { font-size: clamp(26px, 1.6vw + 20px, 34px); line-height: 1.25; color: var(--blue); margin-bottom: 14px; }
.fp h3 { font-size: 22px; line-height: 1.3; margin: 32px 0 10px; }
.fp a { color: var(--blue); font-weight: 700; }
.fp a:hover { color: var(--blue-deep); }
.fp figcaption, .fp-note { font-size: 15px; line-height: 1.6; color: var(--text); }
.fp figcaption { margin-top: 10px; }
.fp-note { margin-top: 10px; }
.fp-fig { margin: 24px 0; }

.fp-head { padding-block: 20px 8px; }
.fp-head .article__title { font-size: clamp(40px, 5vw + 20px, 64px); }
.fp .fp-lead { margin-top: 12px; font-size: 20px; line-height: 1.7; }

/* sections: a hairline across the column, as on the homepage blocks */
.fp-sec { padding-block: 36px; background: linear-gradient(var(--rule), var(--rule)) center top / calc(100% - var(--gutter) * 2) 1px no-repeat; }
.fp-sec--after-band { background: none; }

/* ---------- anatomy ---------- */
.anat__stage { position: relative; font: 700 clamp(84px, 24vw, 188px) / 1.366 var(--display); color: var(--ink); border-block: 1px dashed #7d869a; }
.anat__word { position: relative; z-index: 1; }
.anat__g { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid #7d869a; }
.anat__g b { position: absolute; right: 0; font: 700 13.5px/1.3 var(--font); color: var(--text); white-space: nowrap; }
.anat__g--top { top: .1145em; }
.anat__g--head { top: .3535em; height: .1125em; border: 0; background: var(--blue); }
.anat__g--base { top: 1em; }
.anat__g--low { top: 1.306em; }
.anat__g--top b, .anat__g--head b { top: 100%; margin-top: 3px; }
.anat__g--head b { color: var(--blue); }
.anat__g--base b, .anat__g--low b { bottom: 100%; margin-bottom: 3px; }

/* ---------- clashing matras ---------- */
.clash { display: grid; gap: 24px; }
.fp .clash__h { margin: 0; width: fit-content; max-width: 100%; font: 700 28px/1.25 var(--display); color: var(--ink); outline: 1px solid var(--rule); outline-offset: 0; }
.fp .clash__h--tight { line-height: 1; overflow: hidden; }

/* ---------- weight and width ---------- */
.ramp { display: grid; gap: 28px; }
.space__plot { position: relative; height: 280px; margin: 28px 8px 30px 40px; border-left: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.space__pt { position: absolute; left: calc(var(--x) * 1%); bottom: calc(var(--y) * 1%); width: 12px; height: 12px; margin: 0 0 -6px -6px; border-radius: 50%; background: var(--blue); }
.space__pt--anek { background: var(--paper); border: 2px solid var(--ink); }
.space__pt > span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 700 14px/1.3 var(--font); color: var(--text); }
.space__tick { position: absolute; font: 400 13px/1.3 var(--font); color: var(--text); }
.space__tick--y1 { top: 0; right: calc(100% + 8px); }
.space__tick--y0 { bottom: 0; right: calc(100% + 8px); }
.space__tick--x0 { top: calc(100% + 6px); left: 0; }
.space__tick--x1 { top: calc(100% + 6px); right: 0; }
.ramp__list li { padding-block: 14px; border-top: 1px solid var(--rule); }
.ramp__list li:last-child { border-bottom: 1px solid var(--rule); }
.fp .ramp__list p { margin: 0; font-size: 15px; line-height: 1.55; }
.fp .ramp__list .ramp__sample { margin-bottom: 4px; font-size: 44px; line-height: 1.3; color: var(--ink); }
.f-text { font-family: var(--font); font-weight: 400; }
.f-bold { font-family: var(--font); font-weight: 700; }
.f-display { font-family: var(--display); font-weight: 700; }

.hcmp { display: grid; gap: 24px; }
.fp .hcmp__h { margin: 0; max-width: 300px; font-size: 30px; line-height: 1.25; color: var(--ink); padding-top: 10px; border-top: 3px solid var(--ink); }

/* ---------- word space ---------- */
.fp .ws__label { margin: 16px 0 2px; font: 700 15px/1.5 var(--font); }
.fp .ws__label:first-child { margin-top: 0; }
.fp .ws__line { margin: 0; max-width: none; font: 400 clamp(21px, 1.2vw + 16px, 26px) / 1.7 var(--font); color: var(--ink); }
.ws__line--anek { word-spacing: -.05em; } /* 0.26em − 0.05em = Anek's 0.21em, on the same glyphs */
.fp-gap { background: rgba(32, 64, 144, .2); }

/* ---------- vertical centring ---------- */
.vc { display: flex; flex-wrap: wrap; gap: 20px 32px; }
.vc__btn { position: relative; display: inline-flex; align-items: center; min-height: 56px; padding: 0 22px; border: 1.5px solid var(--blue); border-radius: 8px; font: 700 20px/1.5 var(--font); color: var(--blue); }
.vc__btn::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--ink); }
.vc__t { position: relative; z-index: 1; }
.vc__t--anek { top: -.157em; } /* Anek's 1.013/0.6925em metrics put the text this far above BK's centre */

/* ---------- file sizes ---------- */
.files { width: 100%; max-width: 30em; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.files th, .files td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); text-align: left; }
.files th { font-weight: 700; color: var(--ink); border-bottom-color: var(--ink); }
.files td:last-child, .files th:last-child { text-align: right; padding-right: 0; }

/* ---------- logo ---------- */
.brand img { width: min(100%, 520px); height: auto; }
.brand__hl { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--rule); }
.fp .brand__hl p { margin-top: 4px; font-size: clamp(28px, 2vw + 20px, 40px); line-height: 1.25; color: var(--ink); }
.swatch { display: grid; gap: 14px; }
.swatch li { display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 1.5; }
.swatch b { display: block; color: var(--ink); }
.swatch em { font-style: normal; font-weight: 700; color: var(--red); }
.swatch__chip { flex: none; width: 48px; height: 48px; }
.swatch__chip--blue { background: var(--blue); }
.swatch__chip--red { background: var(--red); }

/* ---------- shirorekha trace ---------- */
.fp .trace__line { margin: 0; max-width: none; font: 700 clamp(30px, 3vw + 20px, 48px) / 1.6 var(--display); color: var(--ink); }
.trace__line span { position: relative; }
.trace__line span::after { content: ""; position: absolute; left: 0; right: 0; top: .3535em; height: .1125em; background: var(--blue); }

/* ---------- numerals band ---------- */
.fp-band { padding-block: 40px; }
.fp-band p { color: var(--night-text); }
.fp-band h2 { color: #fff; }
.fp .digits { display: flex; flex-wrap: wrap; margin: 24px 0; max-width: none; font: 700 clamp(40px, 8vw, 72px) / 1.4 var(--display); color: #fff; }
.digits span { border: 1px solid var(--night-line); margin-left: -1px; }
.rates-demo { width: 100%; max-width: 30em; border-collapse: collapse; font-size: 18px; line-height: 1.5; color: #fff; }
.rates-demo caption { caption-side: bottom; padding-top: 10px; text-align: left; font-size: 15px; color: var(--night-text); }
.rates-demo th, .rates-demo td { padding: 10px 0; border-bottom: 1px solid var(--night-line); }
.rates-demo th { text-align: left; font-weight: 400; color: var(--night-text); }
.rates-demo td { text-align: right; font-weight: 700; white-space: nowrap; }

/* ---------- conjuncts ---------- */
.cj { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.cj li { display: grid; justify-items: center; padding: 10px 4px 12px; background: var(--paper); }
.cj__g { font: 700 44px/1.5 var(--display); color: var(--ink); }
.cj__p { font-size: 14px; line-height: 1.4; color: var(--text); }
.fp .fp-glyphs { margin-top: 12px; font: 700 40px/1.5 var(--display); color: var(--ink); word-spacing: .4em; }

/* ---------- article size, licence ---------- */
.fp .body { margin-top: 0; max-width: 720px; }
.fp .body p { max-width: none; font-size: inherit; line-height: inherit; }
.fp-credit { padding-top: 12px; border-top: 1px solid var(--rule); }
.fp .fp-credit { font-size: 15px; line-height: 1.65; margin-top: 20px; }
.fp-list { margin-top: 12px; max-width: 40em; }
.fp-list li { position: relative; padding-left: 18px; font-size: 18px; line-height: 1.7; }
.fp-list li + li { margin-top: 6px; }
.fp-list li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 2px; background: var(--ink); }
.fp-list + p { margin-top: 14px; }
.fp-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; }

@media (min-width: 640px) {
  .clash, .hcmp { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cj { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .fp-sec { padding-block: 48px; }
  .ramp { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .cj { grid-template-columns: repeat(6, 1fr); }
}
