/* Brand kit page. Uses the tokens in style.css; nothing here changes shared components. */

.brand-hero { padding-bottom: clamp(48px, 6vw, 96px); }
.brand-title { font-size: var(--fs-h2); margin: 16px 0 24px; }
.brand-lede { max-width: 46ch; }
.brand-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 36px; }

.brand-grid { display: grid; gap: clamp(16px, 2vw, 28px); margin-top: clamp(36px, 4vw, 56px); }
.brand-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brand-grid--tight { margin-top: clamp(16px, 2vw, 28px); }

.brand-card { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.brand-card--plain { gap: 14px; }
.brand-card figcaption, .brand-card > p { color: var(--ink-2); }
.brand-card-title { font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.01em; margin: 0; color: inherit; }
.brand-card p { margin: 0; font-size: var(--fs-small); line-height: 1.55; }
.brand-card figcaption p { margin-top: 6px; }

.brand-stage {
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(24px, 4vw, 56px);
  background-color: var(--pure);
  background-image: radial-gradient(var(--rule-light) 1px, transparent 1px);
  background-size: 14px 14px;
  overflow: hidden;
}
.brand-stage img { width: min(64%, 420px); height: auto; }
.brand-stage--dark { background: var(--obsidian); border-color: var(--obsidian); background-image: none; }
.brand-stage--mark img { width: min(28%, 140px); }
.brand-invert { filter: invert(1); }

.brand-note { border-top: 1px solid var(--obsidian); padding-top: 20px; }
.brand-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.brand-list li { position: relative; padding-left: 22px; font-size: var(--fs-small); line-height: 1.55; color: var(--ink-2); }
.brand-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--obsidian); transform: rotate(45deg); }

/* Clear space */
.brand-stage--clear { background-color: var(--paper); }
.brand-clear { position: relative; padding: 14%; background: rgba(255, 255, 255, 0.6); border: 1px dashed rgba(10, 10, 10, 0.35); }
.brand-clear img { display: block; width: 56vw; max-width: 340px; height: auto; }
.brand-clear-x {
  position: absolute; width: 22px; height: 22px; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 12px; color: var(--obsidian); background: #e8eefc;
}
.brand-clear-x--tl { top: 4px; left: 4px; }
.brand-clear-x--tr { top: 4px; right: 4px; }
.brand-clear-x--bl { bottom: 4px; left: 4px; }
.brand-clear-x--br { bottom: 4px; right: 4px; }

/* Minimum size */
.brand-stage--sizes { gap: clamp(24px, 5vw, 64px); align-items: flex-end; }
.brand-size { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.brand-size img { width: auto; height: auto; background: var(--pure); padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--rule-light); }
.brand-size-label { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-small); }
.brand-size-spec { font-family: var(--f-mono); font-size: var(--fs-micro); color: var(--ink-2); letter-spacing: 0.02em; }

/* Colour */
.brand-swatches { list-style: none; margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 2.6vw, 40px) clamp(16px, 2vw, 28px); }
.brand-swatch-chip { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-md); cursor: copy; padding: 0; }
.brand-swatch-chip--edge { box-shadow: inset 0 0 0 1px var(--rule-light); }
.brand-swatch-chip:focus-visible { outline: 2px solid var(--obsidian); outline-offset: 3px; }
.brand-swatch-name { font-family: var(--f-display); font-weight: 500; font-size: 1.125rem; margin: 14px 0 6px; }
.brand-swatch-meta { font-family: var(--f-mono); font-size: var(--fs-micro); color: var(--ink-2); margin: 0 0 6px; line-height: 1.7; }
.brand-swatch-meta span { color: var(--smoke); margin-right: 6px; }
.brand-swatch-use { font-size: var(--fs-small); color: var(--ink-2); margin: 0; line-height: 1.5; }
.brand-contrast { margin-top: clamp(36px, 4vw, 56px); max-width: 60ch; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.6; }

/* Type */
.brand-type { margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--obsidian); }
.brand-type-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr) minmax(0, 1.4fr); gap: 24px; align-items: baseline; padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--rule-light); }
.brand-type-role { font-family: var(--f-mono); font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); margin: 0; }
.brand-type-sample { margin: 0; line-height: 1.1; }
.brand-type-sample--display { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.brand-type-sample--body { font-family: var(--f-body); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3.25rem); letter-spacing: -0.01em; }
.brand-type-sample--mono { font-family: var(--f-mono); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
.brand-type-spec { margin: 0; font-size: var(--fs-small); color: var(--ink-2); line-height: 1.55; }

/* Name and legal split layout */
.brand-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 80px); align-items: start; }
.brand-prose p { font-size: var(--fs-body); line-height: 1.65; margin: 0 0 18px; max-width: 64ch; }
.brand-prose p:last-child { margin-bottom: 0; }

/* Downloads */
.brand-downloads { list-style: none; margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; border-top: 1px solid var(--obsidian); }
.brand-download { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--rule-light); }
.brand-download-thumb { height: 96px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--rule-light); }
.brand-download-thumb--light { background: var(--pure); }
.brand-download-thumb--dark { background: var(--obsidian); border-color: var(--obsidian); }
.brand-download-thumb img { max-width: 80%; max-height: 80%; width: auto; height: auto; }
.brand-download-text p { margin: 6px 0 0; font-size: var(--fs-small); color: var(--ink-2); line-height: 1.5; }
.brand-pill { font-family: var(--f-mono); font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 0.06em; padding: 10px 18px; border: 1px solid var(--obsidian); border-radius: 999px; color: var(--obsidian); white-space: nowrap; }
.brand-pill:hover { background: var(--obsidian); color: var(--paper); }
.brand-fine { margin-top: 20px; font-size: var(--fs-small); color: var(--ink-2); }

/* Downloads sit on the dark section: invert pills, rules and muted text so they stay visible. */
#downloads .brand-downloads { border-top-color: rgba(255, 255, 255, 0.35); }
#downloads .brand-download { border-bottom-color: rgba(255, 255, 255, 0.14); }
#downloads .brand-download-thumb--dark { border-color: rgba(255, 255, 255, 0.22); }
#downloads .brand-download-text p,
#downloads .brand-fine { color: var(--smoke); }
#downloads .brand-pill { color: var(--pure); border-color: var(--pure); text-decoration: none; transition: background-color .2s ease, color .2s ease; }
#downloads .brand-pill:hover,
#downloads .brand-pill:focus-visible { background: var(--pure); color: var(--obsidian); }
#downloads .brand-pill:focus-visible { outline: 2px solid var(--pure); outline-offset: 3px; }

/* FAQ */
.brand-faq { margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--obsidian); max-width: 880px; }
.brand-faq details { border-bottom: 1px solid var(--rule-light); padding: 22px 0; }
.brand-faq summary { cursor: pointer; font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; list-style: none; display: flex; justify-content: space-between; gap: 24px; }
.brand-faq summary::-webkit-details-marker { display: none; }
.brand-faq summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.25rem; line-height: 1; }
.brand-faq details[open] summary::after { content: "–"; }
.brand-faq-body { overflow: hidden; }
.brand-faq details p { margin: 14px 0 0; color: var(--smoke); line-height: 1.6; max-width: 66ch; }


/* Headings match the home hero: Inter Tight 600, tight tracking, normal width. */
.brand-page .display,
.brand-page .h2,
.brand-page h2,
.brand-page .brand-card-title,
.brand-page .brand-swatch-name,
.brand-page .brand-faq summary,
.brand-page .brand-type-sample--display {
  font-family: "Inter Tight", var(--f-display);
  font-variation-settings: normal;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

/* Responsive */
@media (max-width: 900px) {
  .brand-grid--2, .brand-split { grid-template-columns: 1fr; }
  .brand-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-type-row { grid-template-columns: 1fr; gap: 10px; }
  .brand-download { grid-template-columns: 110px minmax(0, 1fr); }
  .brand-download .brand-pill { grid-column: 2; justify-self: start; }
}
@media (max-width: 520px) {
  .brand-swatches { grid-template-columns: 1fr 1fr; }
}
