/* The brand page: previews on their own backgrounds, swatches, downloads. */
.page { max-width: var(--width); margin: 0 auto; }
.intro { padding: 48px 0 40px; }
.intro h1 {
  font: 750 clamp(36px, 5.5vw, 56px)/1.05 var(--font-display); font-variation-settings: "opsz" 96;
  letter-spacing: -0.02em; margin: 0;
}
.intro .lede { font-size: 19px; color: var(--muted); margin: 14px 0 0; max-width: 62ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.block { padding: 44px 0; border-top: 1px solid var(--rule); }
.block h2 {
  font: 700 clamp(24px, 3.2vw, 32px)/1.15 var(--font-display); font-variation-settings: "opsz" 72;
  margin: 0; letter-spacing: -0.01em;
}
.block > p.sub { color: var(--muted); margin: 8px 0 0; }

.tiles { display: grid; gap: 16px; margin-top: 24px; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { margin: 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.tile img { display: block; width: 100%; height: 150px; object-fit: contain; padding: 32px 36px; box-sizing: border-box; }
.tile.square img { height: 140px; padding: 28px; }
.tile.on-night img { background: #13181b; }
.tile.on-paper img { background: #f3f4f1; }
.tile figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px;
  padding: 10px 14px; background: var(--sheet); border-top: 1px solid var(--rule); font-size: 15px;
}
.dl { display: inline-flex; gap: 6px; }
.dl a {
  font: 600 12px var(--font-mono); text-decoration: none; color: var(--brass);
  border: 1px solid var(--rule); border-radius: 5px; padding: 3px 8px;
}
.dl a:hover { border-color: var(--brass); }

.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.swatch {
  display: flex; flex-direction: column; gap: 2px; text-align: left; cursor: pointer;
  font: 14px var(--font-body); color: var(--ink); background: var(--sheet);
  border: 1px solid var(--rule); border-radius: 9px; padding: 0 0 12px; overflow: hidden;
}
.swatch i { display: block; height: 76px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.swatch b, .swatch code, .swatch span { margin: 0 12px; }
.swatch b { font: 650 16px var(--font-display); }
.swatch code { background: none; padding: 0; color: var(--muted); }
.swatch span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.swatch.done code { color: var(--ok); }
.c-gold { background: #e0ac5c; } .c-brass { background: #8a5a12; } .c-brass-soft { background: #f1e4cc; }
.c-ink { background: #1d2427; } .c-muted { background: #5b6669; } .c-paper { background: #f3f4f1; }
.c-sheet { background: #fbfbf9; } .c-night { background: #13181b; } .c-fog { background: #e4e7e3; }
.c-ok { background: #2f6b4f; }

.fonts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.font { background: var(--sheet); border: 1px solid var(--rule); border-radius: 9px; padding: 18px 20px; }
.font .sample { margin: 0 0 14px; font-size: 30px; line-height: 1.15; overflow-wrap: anywhere; }
.f-display .sample { font: 750 40px/1.05 var(--font-display); font-variation-settings: "opsz" 96; letter-spacing: -0.01em; }
.f-body .sample { font-family: var(--font-body); font-weight: 600; }
.f-mono .sample { font: 500 24px/1.3 var(--font-mono); color: var(--brass); }
.font h3 { font: 650 18px var(--font-display); margin: 0; }
.font p:not(.sample) { margin: 4px 0 12px; color: var(--muted); }

.social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.social.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.way { background: var(--sheet); border: 1px solid var(--rule); border-radius: 9px; padding: 16px 18px; min-width: 0; }
.way h3 { font: 650 18px var(--font-display); margin: 0 0 12px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--rule); }
.shot.night img { background: #13181b; padding: 10% 12%; box-sizing: border-box; }
.files { list-style: none; padding: 0; margin: 12px 0 0; }
.files li {
  display: flex; justify-content: space-between; gap: 12px; padding: 7px 0;
  border-bottom: 1px solid var(--rule); font-size: 15px;
}
.files li:last-child { border-bottom: 0; }
.files a { font: 500 14px var(--font-mono); text-decoration: none; overflow-wrap: anywhere; }
.files a:hover { text-decoration: underline; }
.files span { color: var(--muted); text-align: right; }

.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.rules > div { background: var(--sheet); border: 1px solid var(--rule); border-radius: 9px; padding: 18px 20px; }
.rules h3 { font: 650 18px var(--font-display); margin: 0 0 6px; }
.rules ul { margin: 0; padding-left: 20px; }
.rules li { margin-top: 6px; }
.rules .yes h3 { color: var(--ok); }
.rules .no h3 { color: var(--brass); }

@media (max-width: 900px) {
  .tiles.four, .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social.three { grid-template-columns: minmax(0, 1fr); }
  .fonts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .tiles.two, .social, .rules { grid-template-columns: minmax(0, 1fr); }
}
