:root {
  --bg: #151515;
  --panel: #1b1d1d;
  --black: #050505;
  --line: #2b2d2d;
  --text: #f2f4f4;
  --muted: #8c9296;
  --dim: #5c6266;
  --green: #006aff;
  --white: #ffffff;
  --grey: #c9cdd4;
  --canvas: 1440px;
  --sidebar: 240px;
  --home-rail: clamp(32px, 3vw, 40px);
  --home-pad: clamp(40px, 6vw, 80px);
  --font-brand: "ByteSans", "FZLanTingHeiPro", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --font-cn: "FZLanTingHeiPro", "ByteSans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --type-meta: 10px;
  --type-nav: 14px;
  --type-body: 14px;
  --type-link: 12px;
  --type-card-title: 16px;
  --type-small-heading: 20px;
  --type-lede: 24px;
  --type-weight-label: 28px;
  --type-page-title: 42px;
  --type-display: 96px;
  --type-home-display: 168px;
  --leading-tight: 1.04;
  --leading-heading: 1.2;
  --leading-copy: 1.4;
}

@font-face {
  font-family: "ByteSans";
  src: url("./assets/fonts/ByteSans/ByteSans-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ByteSans";
  src: url("./assets/fonts/ByteSans/ByteSans-SemiLight.ttf") format("truetype");
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ByteSans";
  src: url("./assets/fonts/ByteSans/ByteSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ByteSans";
  src: url("./assets/fonts/ByteSans/ByteSans-Medium.ttf") format("truetype");
  font-weight: 500 650;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ByteSans";
  src: url("./assets/fonts/ByteSans/ByteSans-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FZLanTingHeiPro";
  src: url("./assets/fonts/FZLanTingHeiPro/FZLTHProJW_El.TTF") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FZLanTingHeiPro";
  src: url("./assets/fonts/FZLanTingHeiPro/FZLTHProJW_L.TTF") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FZLanTingHeiPro";
  src: url("./assets/fonts/FZLanTingHeiPro/FZLTHProJW_R.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FZLanTingHeiPro";
  src: url("./assets/fonts/FZLanTingHeiPro/FZLTHProJW_M.TTF") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FZLanTingHeiPro";
  src: url("./assets/fonts/FZLanTingHeiPro/FZLTHProJW_DB.TTF") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FZLanTingHeiPro";
  src: url("./assets/fonts/FZLanTingHeiPro/FZLTHProJW_B.TTF") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FZLanTingHeiPro";
  src: url("./assets/fonts/FZLanTingHeiPro/FZLTHProJW_H.TTF") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FZLanTingHeiPro";
  src: url("./assets/fonts/FZLanTingHeiPro/FZLTHProJW_EB.TTF") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-brand);
  font-size: var(--type-body);
  line-height: 1.35;
  letter-spacing: 0;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--black);
}

.sidebar:empty {
  display: none;
}

.sidebar-logo {
  display: flex;
  height: 88px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
}

.sidebar-logo img,
.mobile-logo img,
.footer-bottom img {
  width: 36px;
}

.sidebar-meta {
  border-bottom: 1px solid var(--line);
  padding: 30px 24px;
  text-transform: uppercase;
}

.sidebar-meta p,
.sidebar-meta span {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-brand);
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: 0;
}

.sidebar-meta p {
  color: var(--text);
  margin-bottom: 6px;
}

.side-menu {
  display: grid;
  border-bottom: 1px solid var(--line);
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 22px 20px;
}

.sidebar-cta {
  display: flex;
  width: 168px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-brand);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.side-menu a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0;
  min-height: 54px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--type-nav);
  font-weight: 500;
  padding: 0 24px;
}

.side-menu .sub-link {
  min-height: 34px;
  border-top: 0;
  color: var(--muted);
  font-size: var(--type-link);
  font-weight: 400;
  grid-template-columns: 28px 1fr;
  padding-left: 52px;
}

.side-menu .sub-link::before {
  content: "";
}

.side-menu a:hover,
.side-menu a.is-active {
  color: var(--text);
}

.side-menu span {
  color: var(--dim);
  font-family: var(--font-brand);
  font-size: inherit;
  font-weight: inherit;
}

.side-menu a.is-active span {
  color: var(--green);
}

.mobile-header {
  display: none;
}

.page-shell {
  position: relative;
  margin-left: var(--sidebar);
}

.home-page {
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
}

.home-grid-overlay {
  --mark-size: 20px;
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.home-grid-overlay::before,
.home-grid-overlay::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  content: "";
}

.home-grid-overlay::before {
  left: var(--home-rail);
  transform: translateX(-50%);
}

.home-grid-overlay::after {
  right: var(--home-rail);
  transform: translateX(50%);
}

.home-grid-overlay .grid-line {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line);
  transform: translateY(-50%);
}

.home-grid-overlay .mark {
  position: absolute;
  z-index: 1;
  width: var(--mark-size);
  height: var(--mark-size);
}

.home-grid-overlay .mark::before,
.home-grid-overlay .mark::after {
  position: absolute;
  background: var(--white);
  content: "";
}

.home-grid-overlay .mark::before {
  top: 50%;
  left: 25%;
  width: 50%;
  height: 2px;
  transform: translateY(-50%);
}

.home-grid-overlay .mark::after {
  top: 25%;
  left: 50%;
  width: 2px;
  height: 50%;
  transform: translateX(-50%);
}

.home-grid-overlay .mark-left {
  left: var(--home-rail);
  transform: translate(-50%, -50%);
}

.home-grid-overlay .mark-right {
  right: var(--home-rail);
  transform: translate(50%, -50%);
}

.mark-hero,
.line-hero {
  top: 420px;
}

.mark-intro,
.line-intro {
  top: 619px;
}

.mark-tiles,
.line-tiles {
  top: 1499px;
}

.mark-question,
.line-question {
  top: 1718px;
}

.mark-directory,
.line-directory {
  top: 1960px;
}

.mark-next,
.line-next {
  top: 2120px;
}

.mark-footer-mid,
.line-footer-mid {
  top: 2276px;
}

.home-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: var(--bg);
}

.home-hero::before {
  position: absolute;
  inset: 0 var(--home-rail);
  background: var(--black);
  content: "";
}

.hero-mark-wrap {
  position: absolute;
  top: 55px;
  left: clamp(280px, 27.75%, 560px);
  z-index: 1;
  width: clamp(500px, 47.6%, 680px);
  height: 301px;
  display: grid;
  place-items: center;
}

.hero-mark-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-hero .hero-title {
  position: absolute;
  left: var(--home-pad);
  top: 306px;
  z-index: 1;
}

.home-hero h1,
.home-hero p {
  margin: 0;
  color: var(--white);
  font-size: 36px;
  font-weight: 500;
  line-height: 44px;
}

.home-hero p {
  color: #b2b8bf;
}

.intro-copy {
  background: var(--bg);
  min-height: 199px;
  padding: 26px var(--home-pad) 0;
}

.intro-copy p {
  width: 100%;
  max-width: 681px;
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.7;
}

.tile-grid {
  display: grid;
  width: calc(100% - (var(--home-pad) * 2));
  grid-template-columns: 350fr 155fr 155fr 350fr;
  gap: 10px;
  margin-left: var(--home-pad);
  padding: 40px 0;
}

.tile {
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.tile span {
  position: absolute;
  top: 16px;
  left: 20px;
  z-index: 2;
  color: var(--text);
  font-size: var(--type-nav);
  font-weight: 500;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-tile {
  grid-column: 1 / -1;
  display: grid;
  height: 260px;
  place-items: center;
}

.logo-tile img {
  width: min(360px, 62%);
  height: auto;
  object-fit: contain;
}

.type-tile {
  grid-column: 1 / 2;
  height: 260px;
}

.type-tile span {
  color: var(--text);
}

.type-tile strong {
  position: absolute;
  left: 11px;
  bottom: -2px;
  color: rgba(255, 255, 255, 0.3);
  font-size: clamp(64px, 5.8vw, 84px);
  font-weight: 500;
  line-height: 0.78;
}

.color-tile {
  grid-column: 2 / 5;
  height: 260px;
}

.color-bars {
  display: grid;
  height: 100%;
  grid-template-columns: 113fr 341fr 113fr 113fr;
}

.color-bars i:nth-child(1) {
  background: #1c2633;
}

.color-bars i:nth-child(2) {
  background: var(--green);
}

.color-bars i:nth-child(3) {
  background: #60acff;
}

.color-bars i:nth-child(4) {
  background: #ffcc6b;
}

.image-tile,
.resources-tile {
  height: 260px;
}

.image-tile {
  grid-column: 1 / 3;
}

.resources-tile {
  grid-column: 3 / 5;
  background: var(--black);
}

.image-tile img,
.resources-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.question-band,
.directory-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.question-band {
  min-height: 219px;
  padding: 39px var(--home-pad) 0;
}

.directory-band {
  height: 242px;
  padding: 40px var(--home-pad);
}

.directory-band nav {
  max-width: 415px;
}

.question-band > div {
  max-width: 415px;
  align-self: start;
}

.question-band h2,
.directory-band h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}

.question-band h2 {
  align-self: start;
  letter-spacing: -0.4px;
}

.question-band p {
  max-width: 415px;
  margin: 0 0 34px;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
}

.question-band a {
  display: inline-flex;
  height: 41px;
  align-items: center;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 500;
  padding: 0 15px;
  text-transform: none;
}

.chapter-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-brand);
  font-size: var(--type-meta);
  font-weight: 500;
  padding: 0 16px;
  text-transform: uppercase;
}

.directory-band nav {
  display: grid;
  gap: 8px;
}

.directory-band a {
  display: grid;
  grid-template-columns: 42px 1fr;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
}

.directory-band span {
  color: var(--muted);
  font-family: var(--font-brand);
}

.next-band {
  position: relative;
  display: grid;
  width: calc(100% - (var(--home-rail) * 2));
  height: 160px;
  grid-template-columns: 1fr 1fr;
  margin-left: var(--home-rail);
  background: var(--panel);
}

.next-band::before {
  position: absolute;
  top: 0;
  bottom: 1px;
  left: 50%;
  width: 1px;
  background: var(--line);
  content: "";
  transform: translateX(-50%);
}

.next-band a {
  position: relative;
  z-index: 1;
  grid-column: 2;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 42px 40px 0;
}

.next-band span,
.next-band strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 19px;
}

.next-band i {
  font-style: normal;
  font-size: 20px;
  line-height: 24px;
}

.site-footer {
  height: 252px;
  background: var(--black);
}

.footer-top {
  position: relative;
  height: 156px;
}

.footer-top p {
  position: absolute;
  top: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 19px;
}

.footer-top p:first-child {
  left: 80px;
  color: var(--text);
}

.footer-top p:nth-child(2) {
  left: 50%;
}

.footer-top nav {
  position: absolute;
  top: 42px;
  left: calc(var(--home-rail) + ((100% - (var(--home-rail) * 2)) * 0.75));
  display: grid;
  align-content: start;
  gap: 0;
}

.footer-top a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}

.footer-bottom {
  position: relative;
  height: 96px;
}

.footer-bottom p,
.footer-bottom a {
  position: absolute;
  top: 41px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 19px;
}

.footer-bottom a {
  left: calc(var(--home-rail) + ((100% - (var(--home-rail) * 2)) * 0.75));
  color: var(--text);
}

.footer-bottom img {
  position: absolute;
  top: 35px;
  left: 80px;
}

.footer-bottom p {
  left: 50%;
}

.footer-bottom img {
  width: 36px;
}

.detail-page {
  --detail-rail: var(--home-rail);
  --detail-cross-size: 20px;
  position: relative;
  min-height: 100vh;
  background: var(--bg);
}

.detail-page::before,
.detail-page::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 1px;
  background: var(--line);
  content: "";
  pointer-events: none;
}

.detail-page::before {
  left: var(--detail-rail);
  transform: translateX(-50%);
}

.detail-page::after {
  right: var(--detail-rail);
  transform: translateX(50%);
}

.detail-page > section,
.detail-page > footer {
  position: relative;
}

.detail-page > section::before,
.detail-page > section::after,
.detail-page > footer::before,
.detail-page > footer::after {
  position: absolute;
  top: 0;
  z-index: 7;
  width: var(--detail-cross-size);
  height: var(--detail-cross-size);
  background:
    linear-gradient(var(--white), var(--white)) 50% 50% / 2px 50% no-repeat,
    linear-gradient(var(--white), var(--white)) 50% 50% / 50% 2px no-repeat;
  content: "";
  pointer-events: none;
}

.detail-page > section::before,
.detail-page > footer::before {
  left: var(--detail-rail);
  transform: translate(-50%, -50%);
}

.detail-page > section::after,
.detail-page > footer::after {
  right: var(--detail-rail);
  transform: translate(50%, -50%);
}

.detail-page > .chapter-hero::before,
.detail-page > .chapter-hero::after {
  display: none;
}

.chapter-hero {
  display: grid;
  min-height: 320px;
  align-content: end;
  border-bottom: 1px solid var(--line);
  padding: 42px var(--home-pad);
}

.chapter-hero div {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.chapter-hero span {
  color: var(--green);
  font-family: var(--font-brand);
  font-size: var(--type-page-title);
  font-weight: 600;
  line-height: var(--leading-tight);
}

.chapter-hero h1 {
  margin: 0;
  font-size: var(--type-page-title);
  font-weight: 600;
  line-height: var(--leading-tight);
}

.chapter-lede {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 38px var(--home-pad) 66px;
}

body[data-page="logo"] .chapter-lede,
body[data-page="typography"] .chapter-lede {
  min-height: 274px;
}

body[data-page="logo"] .chapter-lede {
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  min-height: 258px;
  padding-top: 36px;
  padding-bottom: 70px;
}

body[data-page="logo"] .chapter-lede p {
  max-width: 980px;
  font-size: 24px;
  line-height: 1.34;
}

body[data-page="logo"] .chapter-lede a {
  justify-self: start;
  min-height: 38px;
  border: 0;
  background: var(--green);
  color: #050505;
  padding: 0 16px;
}

body[data-page="color"] .chapter-lede {
  min-height: 213px;
}

body[data-page="images"] .chapter-lede,
body[data-page="resources"] .chapter-lede {
  min-height: 179px;
}

.chapter-lede p {
  max-width: 840px;
  margin: 0;
  color: var(--text);
  font-size: var(--type-lede);
  font-weight: 400;
  line-height: 1.4;
}

.chapter-lede a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-brand);
  font-size: var(--type-meta);
  font-weight: 500;
  padding: 0 16px;
  text-transform: uppercase;
}

.detail-section {
  display: grid;
  gap: 34px;
  border-bottom: 1px solid var(--line);
  padding: 40px var(--home-pad);
}

.image-section {
  padding: 0;
}

.image-section img {
  width: 100%;
  height: 680px;
  object-fit: cover;
}

.section-copy {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 42px;
}

.section-copy h2 {
  margin: 0 0 18px;
  font-size: var(--type-small-heading);
  font-weight: 500;
  line-height: var(--leading-heading);
}

.section-copy h3,
.section-copy p {
  grid-column: 2;
  max-width: 780px;
}

.section-copy h3 {
  margin: 0;
  color: var(--text);
  font-size: var(--type-small-heading);
  font-weight: 500;
  line-height: 1.28;
  white-space: pre-line;
}

.section-copy p {
  margin: 0;
  color: var(--text);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: var(--leading-copy);
}

.section-copy p + p {
  margin-top: -14px;
}

.text-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.text-card-grid article {
  min-height: 220px;
  background: var(--bg);
  padding: 28px;
}

.text-card-grid span {
  color: var(--green);
  font-family: var(--font-brand);
  font-size: var(--type-nav);
  font-weight: 300;
}

.text-card-grid h3 {
  margin: 42px 0 14px;
  font-size: var(--type-card-title);
  font-weight: 500;
  line-height: 1.28;
}

.text-card-grid p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: var(--leading-copy);
}

.logo-pair,
.safe-zone-demo,
.logo-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.logo-pair,
.safe-zone-demo {
  display: block;
}

body[data-page="logo"] #lookup,
body[data-page="logo"] #safe-zones,
body[data-page="logo"] #color {
  gap: 40px;
}

.logo-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.logo-pair img,
.safe-zone-demo img {
  width: 100%;
  height: 680px;
  object-fit: cover;
}

.logo-color-grid img {
  width: 100%;
  height: 370px;
  object-fit: cover;
}

.type-specimen-detail {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.type-specimen-detail h3 {
  margin: 0 0 28px;
  color: #777b84;
  font-size: var(--type-display);
  font-weight: 500;
  line-height: 1;
  word-break: break-word;
}

.type-specimen-detail p {
  margin: 0 0 28px;
  color: var(--text);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  word-break: break-word;
}

.type-specimen-detail div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 34px;
  color: var(--text);
  font-size: var(--type-weight-label);
  font-weight: 500;
}

.usage-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.usage-tables table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
}

.usage-tables caption {
  color: var(--green);
  font-size: var(--type-small-heading);
  font-weight: 500;
  padding: 22px;
  text-align: left;
}

.usage-tables th,
.usage-tables td {
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: var(--type-body);
  font-weight: 500;
  padding: 16px;
  text-align: left;
}

.usage-tables th {
  color: var(--muted);
  font-family: var(--font-brand);
  font-size: var(--type-body);
  font-weight: 600;
  text-transform: uppercase;
}

.primary-colors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.primary-colors button,
.accent-grid button,
.ramp button {
  border: 0;
  gap: 16px;
  background: var(--black);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.primary-colors button {
  display: grid;
  min-height: 420px;
  grid-template-rows: 1fr auto auto auto auto auto auto auto auto auto;
  padding: 20px;
}

.primary-colors i,
.accent-grid i,
.ramp i {
  display: block;
  background: var(--swatch);
}

.primary-colors i {
  min-height: 170px;
}

.primary-colors span,
.accent-grid span,
.ramp span {
  color: var(--muted);
  font-family: var(--font-brand);
  font-size: var(--type-meta);
  font-weight: 400;
  text-transform: uppercase;
}

.primary-colors strong,
.accent-grid strong,
.ramp strong {
  font-size: var(--type-meta);
  font-weight: 400;
  line-height: 1.28;
}

.ramp-list {
  display: grid;
  gap: 34px;
}

.ramp h3 {
  margin: 0 0 16px;
  color: var(--green);
  font-size: var(--type-small-heading);
  font-weight: 500;
}

.ramp > div {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.ramp button {
  display: grid;
  min-height: 180px;
  align-content: end;
  padding: 12px;
}

.ramp i {
  position: absolute;
}

.ramp button {
  position: relative;
}

.ramp i {
  inset: 0 0 auto;
  height: 92px;
}

.accent-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.accent-grid button {
  display: grid;
  min-height: 220px;
  align-content: end;
  padding: 14px;
  position: relative;
}

.accent-grid i {
  position: absolute;
  inset: 0 0 auto;
  height: 128px;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.image-gallery img {
  width: 100%;
  height: 368px;
  object-fit: cover;
  background: var(--black);
}

.image-gallery img:nth-child(1) {
  grid-column: span 3;
  height: 630px;
}

.image-gallery img:nth-child(2) {
  grid-column: span 2;
  height: 480px;
}

.image-gallery img:nth-child(3) {
  height: 480px;
}

.image-gallery img:nth-child(4) {
  grid-column: span 1;
  height: 500px;
}

.image-gallery img:nth-child(5) {
  grid-column: span 2;
  height: 500px;
}

.image-gallery img:nth-child(6),
.image-gallery img:nth-child(7),
.image-gallery img:nth-child(8) {
  height: 368px;
}

.image-gallery img:nth-child(9) {
  grid-column: span 3;
  height: 525px;
}

.resource-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.resource-list article {
  display: grid;
  grid-template-columns: 168px 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 118px;
  background: var(--bg);
  padding: 0 24px;
}

.resource-list img {
  width: 168px;
  height: 94px;
  object-fit: cover;
  background: var(--black);
}

.resource-list strong {
  font-size: var(--type-card-title);
  font-weight: 500;
}

.resource-list a {
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-brand);
  font-size: var(--type-meta);
  font-weight: 500;
  padding: 12px 16px;
  text-transform: uppercase;
}

.chapter-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 170px;
  background: var(--panel);
}

.chapter-nav a {
  display: grid;
  align-content: start;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 42px var(--home-pad) 0;
}

.chapter-nav a + a {
  border-left: 1px solid var(--line);
}

.chapter-nav span,
.chapter-nav strong {
  font-size: 16px;
  font-weight: 500;
  line-height: 19px;
}

.chapter-nav i {
  font-style: normal;
  font-size: 20px;
  line-height: 24px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  border: 1px solid var(--line);
  background: var(--black);
  color: var(--text);
  opacity: 0;
  padding: 12px 14px;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.toast.is-visible {
  opacity: 1;
}

@media (min-width: 921px) and (max-width: 1080px) {
  .home-page {
    overflow: visible;
  }

  .home-hero::before {
    inset: 0 var(--home-rail);
  }

  .hero-mark-wrap {
    left: auto;
    right: 40px;
    width: min(48vw, 571px);
  }

  .tile-grid {
    width: calc(100% - (var(--home-rail) * 2));
    margin-left: var(--home-rail);
  }

  .question-band,
  .directory-band {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-right: 40px;
    padding-left: 40px;
  }

  .question-band {
    min-height: 280px;
  }

  .directory-band {
    min-height: 340px;
  }

  .type-tile strong {
    font-size: 64px;
  }

  .mark-question,
  .line-question {
    top: 1779px;
  }

  .mark-directory,
  .line-directory {
    top: 2119px;
  }

  .mark-next,
  .line-next {
    top: 2279px;
  }

  .mark-footer-mid,
  .line-footer-mid {
    top: 2429px;
  }

  .site-footer {
    height: auto;
  }

  .footer-top,
  .footer-bottom {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    height: auto;
    min-height: 120px;
    padding: 40px;
  }

  .footer-top p,
  .footer-top p:first-child,
  .footer-top p:nth-child(2),
  .footer-top nav,
  .footer-bottom img,
  .footer-bottom p,
  .footer-bottom a {
    position: static;
  }
}

@media (max-width: 920px) {
  .sidebar {
    width: min(78vw, 300px);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: var(--black);
    padding: 0 16px;
  }

  .mobile-header:empty {
    display: none;
  }

  .mobile-logo img {
    width: 34px;
  }

  .menu-button {
    display: grid;
    width: 32px;
    height: 32px;
    place-content: center;
    gap: 4px;
    border: 1px solid var(--line);
    background: var(--black);
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 13px;
    height: 1px;
    background: var(--text);
  }

  .page-shell {
    width: 100vw;
    max-width: 100vw;
    margin-left: 0;
  }

  .detail-page {
    --detail-rail: 20px;
  }

  .home-page {
    width: 100vw;
    max-width: 100vw;
    min-height: 0;
    overflow: visible;
  }

  .home-grid-overlay {
    display: none;
  }

  .home-hero {
    height: 360px;
  }

  .home-hero::before {
    inset: 0;
  }

  .hero-mark-wrap {
    top: 22px;
    left: auto;
    right: 50%;
    width: min(74vw, 360px);
    height: 190px;
    transform: translateX(50%);
  }

  .home-hero .hero-title {
    top: auto;
    left: 20px;
    bottom: 28px;
  }

  .intro-copy,
  .tile-grid,
  .question-band,
  .directory-band,
  .chapter-hero,
  .chapter-lede,
  .detail-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .intro-copy {
    padding-top: 24px;
    padding-bottom: 46px;
  }

  .tile-grid {
    width: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-left: 0;
    padding-top: 32px;
    padding-bottom: 58px;
  }

  .tile,
  .logo-tile,
  .type-tile,
  .color-tile,
  .image-tile,
  .resources-tile {
    grid-column: auto;
    min-height: 300px;
  }

  .logo-tile,
  .type-tile,
  .color-tile,
  .image-tile,
  .resources-tile {
    min-height: 260px;
  }

  .type-tile strong {
    right: auto;
    left: 22px;
    bottom: 0;
    font-size: 64px;
  }

  .color-tile {
    min-height: 220px;
  }

  .question-band,
  .directory-band,
  .chapter-lede,
  .section-copy,
  .text-card-grid,
  .logo-pair,
  .safe-zone-demo,
  .logo-color-grid,
  .usage-tables,
  .primary-colors,
  .chapter-nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .question-band p,
  .section-copy p {
    font-size: 14px;
  }

  .section-copy h3,
  .section-copy p {
    grid-column: auto;
  }

  .directory-band a {
    font-size: 16px;
  }

  .home-hero h1,
  .home-hero p,
  .chapter-hero h1 {
    font-size: 28px;
  }

  .intro-copy p,
  .chapter-lede p {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
    font-size: 16px;
    line-height: 1.34;
  }

  .logo-tile img {
    width: 72%;
    max-width: 280px;
  }

  .section-copy h3 {
    font-size: 28px;
  }

  .next-band {
    width: 100%;
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .next-band a {
    grid-column: auto;
    border-left: 0;
    padding: 32px 20px;
  }

  .footer-top,
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    height: auto;
    padding: 32px 20px;
  }

  .footer-top p,
  .footer-top p:first-child,
  .footer-top p:nth-child(2),
  .footer-top nav,
  .footer-bottom img,
  .footer-bottom p,
  .footer-bottom a {
    position: static;
  }

  .footer-bottom {
    min-height: auto;
  }

  .chapter-hero {
    min-height: 256px;
  }

  .chapter-hero div {
    gap: 12px;
  }

  body[data-page="logo"] .chapter-lede {
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 48px;
  }

  body[data-page="logo"] .chapter-lede p {
    font-size: 18px;
    line-height: 1.38;
  }

  .detail-section {
    padding-top: 34px;
    padding-bottom: 42px;
  }

  .logo-color-grid {
    grid-template-columns: 1fr;
  }

  .logo-pair img,
  .safe-zone-demo img,
  .logo-color-grid img {
    height: auto;
  }

  .type-specimen-detail p {
    font-size: 56px;
  }

  .type-specimen-detail div {
    font-size: 18px;
  }

  .ramp > div,
  .accent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-gallery {
    grid-template-columns: 1fr;
  }

  .image-gallery img,
  .image-gallery .wide,
  .image-gallery .banner {
    grid-column: auto;
    height: 320px;
  }

  .chapter-nav a + a {
    border-left: 0;
  }

  .resource-list article {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .resource-list img {
    width: 100%;
    height: auto;
  }
}
