body {
  font-family: var(--font-sans), var(--font-han);
}
.guide {
  max-width: 1280px;
  margin: auto;
  padding: 0 40px;
}
.guide-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 64px 0 80px;
}
.guide h1 {
  font-family: var(--font-han);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.35;
  letter-spacing: 0;
}
.guide h2,
.guide h3 {
  letter-spacing: 0;
}
.guide-lead {
  font-size: 24px;
  color: var(--brand-purple);
  margin: 24px 0 16px;
}
.guide-hero .t-btn {
  margin-top: 28px;
}
.guide-emblem {
  background: var(--surface-muted);
  padding: 32px;
  border-radius: 24px;
  text-align: center;
}
.guide-emblem span {
  font-size: 13px;
  color: var(--brand-purple);
}
.guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  border-block: 1px solid var(--border);
  padding: 16px 0;
}
.guide-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--brand-purple);
  font-size: 14px;
}
.guide-nav a:hover {
  text-decoration: underline;
}
.guide-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 24px;
}
.intro {
  max-width: 780px;
  margin: 24px 0 32px;
  color: var(--ink-muted);
  font-size: 18px;
}
.logo-grid,
.swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sample {
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.sample > img {
  max-width: 240px;
}
.sample figcaption {
  font-size: 14px;
  color: var(--ink-muted);
}
.sample.dark {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}
.sample.dark figcaption {
  color: var(--surface);
}
.two-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.lockup {
  min-height: 260px;
}
.lockup > img {
  max-width: 350px;
  max-height: 200px;
}
.rules {
  margin-top: 36px;
  gap: 48px;
}
.rules h3,
.component-demo h3 {
  font-size: 20px;
  margin-bottom: 16px;
}
.rules p {
  color: var(--ink-muted);
}
.swatches article {
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding-bottom: 20px;
}
.swatches article > div {
  background: var(--swatch);
  height: 120px;
  border-bottom: 1px solid var(--border);
}
.swatches h3 {
  font-size: 18px;
  margin: 20px 20px 8px;
}
.swatches code,
.swatches p {
  margin: 0 20px;
  font-size: 14px;
}
.swatches p {
  color: var(--ink-muted);
  margin-top: 8px;
}
.contrast {
  padding: 28px;
  border-radius: 16px;
  background: var(--surface-muted);
  margin-top: 24px;
}
.contrast h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.type-sample {
  align-items: start;
  gap: 16px;
  min-height: 300px;
}
.type-sample .eyebrow {
  margin: 0;
}
.type-display {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.035em;
  color: var(--brand-purple);
}
.type-body {
  font-size: 22px;
  line-height: 1.5;
}
.table-wrap {
  overflow: auto;
  margin-top: 32px;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  text-align: left;
}
th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
th {
  color: var(--brand-purple);
  font-weight: 600;
}
.note {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 24px;
}
.spacing-demo {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-top: 24px;
}
.spacing-demo i {
  display: block;
  height: 32px;
  background: var(--brand-purple);
  border-radius: 4px;
}
.spacing-demo i:nth-child(even) {
  background: var(--brand-rose);
}
.component-demo {
  padding: 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  margin-top: 24px;
}
.two-grid .component-demo {
  margin: 0;
}
.error-label {
  margin-top: 24px;
}
.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
}
.downloads > a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.guide-section:last-child {
  border: none;
}
@media (max-width: 719px) {
  .guide {
    padding: 0 24px;
  }
  .guide-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }
  .guide-section {
    padding: 48px 0;
  }
  .guide-emblem img {
    max-width: 300px;
    margin: auto;
  }
  .logo-grid,
  .two-grid {
    grid-template-columns: 1fr;
  }
  .swatches {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .swatches h3 {
    font-size: 16px;
    margin-inline: 16px;
  }
  .swatches p,
  .swatches code {
    margin-inline: 16px;
  }
  .sample > img {
    max-width: 220px;
  }
  .lockup > img {
    max-width: 100%;
  }
  .guide-nav {
    gap: 4px 20px;
  }
  .rules {
    gap: 24px;
  }
  .component-demo {
    padding: 24px;
  }
  .guide .eyebrow {
    font-size: 11px;
  }
  .guide-lead {
    font-size: 20px;
  }
  .swatches article > div {
    height: 90px;
  }
}
@media print {
  .site-header,
  .guide-nav,
  .downloads .t-btn {
    display: none;
  }
  .guide {
    padding: 0;
  }
  .guide-section {
    break-inside: avoid;
    padding: 28px 0;
  }
  .guide-hero {
    padding: 20px 0;
  }
  .sample,
  .swatches article > div,
  .guide-emblem {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
.guide-hero > * {
  min-width: 0;
}
.guide-emblem img {
  width: 100%;
}
.two-grid > *,
.logo-grid > * {
  min-width: 0;
}
