/* Brand guidelines page */
.bk-lede { max-width: 640px; margin: 24px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
h2 + .bk-lede { margin-top: 0; }
.bk-hero + .bk-lede { margin-top: 20px; }

.bk-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.bk-tile { display: grid; place-items: center; margin: 0; aspect-ratio: 16 / 10; }
.bk-tile img { width: 46%; height: auto; }


.bk-files, .bk-swatches, .bk-type, .bk-donts { margin: 0; padding: 0; list-style: none; }
.bk-files { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.bk-files li { min-width: 0; }
.bk-files .bk-span { grid-column: span 2; }
.bk-prev { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.bk-light { background: var(--panel); }
.bk-navy, .bk-prev.bk-navy { border-color: transparent; background: var(--accent); }
.bk-dark, .bk-prev.bk-dark { border-color: transparent; background: #23262d; }
.bk-check { background-color: #fff; background-image: conic-gradient(#f1f1ef 25%, transparent 0 50%, #f1f1ef 0 75%, transparent 0); background-size: 16px 16px; }
.bk-files .bk-prev img { width: 52%; height: auto; }
.bk-files .bk-span .bk-prev { aspect-ratio: 2 / 1; }
.bk-files .bk-lock img { width: 64%; }
.bk-files .bk-full { grid-column: 1 / -1; }
.bk-files .bk-banner { aspect-ratio: auto; place-items: stretch; border-color: transparent; background: var(--accent); }
.bk-files .bk-banner img { display: block; width: 100%; }
.bk-files h3, .bk-swatches h3, .bk-type h3, .bk-rules h3 { margin: 16px 0 6px; color: var(--ink); font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.bk-files p, .bk-swatches p, .bk-type p, .bk-rules p, .bk-donts p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.body > h3.bk-sub { margin: 32px 0 8px; color: var(--ink); font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.bk-dl { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px !important; font-family: var(--mono); font-size: 11px !important; letter-spacing: 0.04em; text-transform: uppercase; }
.bk-dl a { color: var(--accent); text-decoration: none; }
.bk-dl a::after { content: " ↓"; }
.bk-dl a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

.bk-swatches { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.bk-swatches li:first-child { grid-column: span 2; }
.bk-chip { display: block; aspect-ratio: 1; border: 1px solid rgba(35, 38, 45, 0.08); }
.bk-swatches li { min-width: 0; }
.bk-swatches li:first-child .bk-chip { aspect-ratio: auto; height: auto; }
.bk-swatches li:first-child .bk-chip::before { content: ""; display: block; padding-top: calc(50% - 10px); }
.bk-swatches code { display: block; color: var(--ink-2); font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; }
.bk-swatches code + code { margin-bottom: 6px; color: var(--muted); }

.bk-type { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.bk-type li { padding: 24px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bk-type li h3 { margin-top: 20px; }
.bk-spec { color: var(--ink) !important; font-size: 30px !important; line-height: 1.1 !important; letter-spacing: -0.02em; }
.bk-serif { font-family: var(--serif); font-weight: 400; }
.bk-sans { font-family: var(--sans); font-weight: 450; }
.bk-mono { font-family: var(--mono); font-size: 24px !important; letter-spacing: 0.04em; }
#type .mnote { margin-top: 16px; }

.bk-usage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.bk-space { display: grid; place-items: center; margin: 0; padding: 48px; background: var(--panel); border: 1px solid var(--line); }
.bk-space svg { display: block; width: 100%; height: auto; }
.bk-rules h3:first-child { margin-top: 0; }
.bk-rules p { max-width: 420px; margin-bottom: 18px; font-size: 14px; }

.bk-donts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.bk-donts .bk-prev { position: relative; background: #fff; }
.bk-donts .bk-prev svg { width: 56%; height: auto; overflow: visible; }
.bk-donts .bk-prev::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 1px), #d0342c calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); opacity: 0.7; }
.bk-donts p { margin-top: 10px; color: var(--ink-2); }

@media (max-width: 1180px) {
  .bk-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bk-swatches li:first-child { grid-column: 1 / -1; }
  .bk-swatches li:first-child .bk-chip::before { padding-top: 96px; }
  .bk-donts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .bk-type, .bk-usage { grid-template-columns: 1fr; }
  .bk-usage { gap: 28px; }
}
@media (max-width: 560px) {
  .bk-hero { grid-template-columns: 1fr; }
  .bk-files { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .bk-files .bk-span { grid-column: 1 / -1; }
  .bk-swatches { grid-template-columns: 1fr 1fr; }
  .bk-donts { grid-template-columns: 1fr 1fr; }
  .bk-space { padding: 28px; }
}
