:root {
  --ink: #000000;
  --paper: #ffffff;
  --purple: #9f658d;
  --lavender: #e9e0e8;
  --berry: #480429;
  --plum: #30202a;
  --charcoal: #333333;
  --lilac: #f5eff3;
  --soft: #f7f4f7;
  --muted: rgba(0, 0, 0, 0.56);
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.2);
  --line-reverse: rgba(255, 255, 255, 0.18);
  --side: 272px;
  --wrap: 1060px;
  --sans: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  border: 1px solid var(--ink);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Sidebar ---------- */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: var(--side);
  padding: 30px 22px 26px;
  background: var(--paper);
  border-right: 1px solid var(--line);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.side-nav {
  flex: 1;
  margin-top: 26px;
  overflow-y: auto;
}

.nav-group + .nav-group {
  margin-top: 18px;
}

.nav-part {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 6px;
  padding: 0 10px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.nav-part span {
  color: var(--purple);
}

.side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.side-nav a:hover {
  background: var(--soft);
  color: var(--ink);
}

.side-nav a.is-active {
  background: var(--ink);
  color: var(--paper);
}

.side-meta {
  padding: 18px 10px 0;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

.side-meta p {
  margin: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.sidebar.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.sidebar.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.sidebar.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Content shell ---------- */

.content {
  margin-left: var(--side);
}

.wrap {
  width: min(var(--wrap), calc(100% - 96px));
  margin: 0 auto;
}

.kicker {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--purple);
}

.kicker-light {
  color: var(--lavender);
}

.group-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.swatch-grid + .group-label {
  margin-top: 36px;
}

/* ---------- Cover ---------- */

.cover {
  display: grid;
  align-items: center;
  min-height: 100svh;
  background: var(--ink);
  color: var(--paper);
}

.cover-inner {
  width: min(var(--wrap), calc(100% - 96px));
  margin: 0 auto;
  padding: 96px 0;
}

.dot-mark-cover {
  width: 58px;
  color: var(--paper);
  margin-bottom: 46px;
}

.cover h1 {
  font-weight: 400;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  max-width: 12ch;
}

.cover-sub {
  margin-top: 26px;
  max-width: 440px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.78);
}

.cover-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  margin-top: 44px;
  padding: 12px 28px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.3s ease, color 0.3s ease;
}

.cover-cta:hover {
  background: var(--lavender);
  border-color: var(--lavender);
}

.cover-cta:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.cover-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.cover-toc a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--line-reverse);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cover-toc a span {
  color: var(--purple);
}

.cover-toc a:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* ---------- Sections ---------- */

.section {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
  scroll-snap-align: start;
}

.cover {
  scroll-snap-align: start;
}

.site-footer {
  scroll-snap-align: end;
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head h3 {
  font-weight: 400;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.section-note {
  margin-top: 16px;
  color: var(--muted);
}

.section-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.lede {
  font-size: 17.5px;
  line-height: 1.75;
}

.attr-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.attr-list li {
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 14px;
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.3s ease;
}

.card:hover {
  border-color: var(--ink);
}

.card-index {
  display: block;
  margin-bottom: 26px;
  font-size: 26px;
  line-height: 1;
  color: var(--purple);
}

.card h4,
.rules-list h4,
.download-head h4,
.logo-card-body h4,
.button-demo h4 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.card p,
.logo-card-body p,
.button-demo p {
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- Logo section ---------- */

.logo-stages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  overflow: hidden;
}

.logo-stage {
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 40px;
}

.logo-stage-dark {
  background: var(--ink);
  color: var(--paper);
}

.logo-stage-light {
  background: var(--paper);
  color: var(--ink);
  border-left: 1px solid var(--line);
}

.dot-mark {
  position: relative;
  display: inline-block;
  aspect-ratio: 1 / 1.42;
}

.dot-mark span {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.dot-mark span:nth-child(1) {
  width: 17%;
  aspect-ratio: 1;
  left: 13%;
  top: 0;
}

.dot-mark span:nth-child(2) {
  width: 29%;
  aspect-ratio: 1;
  left: 28%;
  top: 17%;
}

.dot-mark span:nth-child(3) {
  width: 42%;
  aspect-ratio: 1;
  left: 43%;
  top: 39%;
}

.dot-mark span:nth-child(4) {
  width: 58%;
  aspect-ratio: 1;
  left: 32%;
  top: 70%;
}

.dot-mark-nav {
  width: 22px;
  flex: none;
  color: var(--ink);
}

.dot-mark-stage {
  width: 130px;
}

.dot-mark-lockup {
  width: 50px;
  color: currentColor;
}

.dot-mark-clear {
  width: 88px;
  color: var(--ink);
}

.dot-mark-card {
  width: 84px;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}

.wordmark {
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.wordmark-solo {
  font-size: 26px;
}

.wordmark-footer {
  font-size: 16px;
}

.logo-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.clearspace-demo,
.rules-list {
  padding: 30px;
  border: 1px solid var(--line);
}

.clearspace-demo {
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}

.clearspace-demo p {
  font-size: 13px;
  color: var(--muted);
  max-width: 300px;
}

.clearspace-box {
  padding: 40px;
  border: 1px dashed var(--purple);
}

.rules-list ul {
  padding-left: 18px;
  margin-top: 6px;
}

.rules-list li {
  margin: 9px 0;
  color: var(--muted);
  font-size: 14px;
}

.rules-list li::marker {
  color: var(--purple);
}

.rules-list-wide {
  max-width: 720px;
}

.rules-list code {
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 1px 6px;
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ---------- Downloads ---------- */

.download-block {
  margin-top: 64px;
}

.download-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 20px;
}

.download-head h4 {
  margin: 0;
}

.download-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 520px;
}

.logo-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
  transition: border-color 0.3s ease;
}

.logo-card:hover {
  border-color: var(--ink);
}

.logo-card-stage {
  display: grid;
  place-items: center;
  min-height: 200px;
  padding: 30px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.logo-card-stage-dark {
  background: var(--ink);
  color: var(--paper);
}

.logo-lockup-small .dot-mark-lockup {
  width: 40px;
}

.logo-lockup-small .wordmark {
  font-size: 19px;
}

.logo-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.logo-card-body .kicker {
  margin-bottom: 8px;
}

.format-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.format-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 14px;
  border: 1px solid var(--charcoal);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.3s ease, color 0.3s ease;
}

.format-chip:hover {
  background: var(--ink);
  color: var(--paper);
}

.format-chip.is-pending {
  border-color: var(--line);
  color: rgba(0, 0, 0, 0.4);
  cursor: not-allowed;
}

.format-chip.is-pending:hover {
  background: transparent;
  color: rgba(0, 0, 0, 0.4);
}

/* ---------- Colour ---------- */

.swatch-grid {
  display: grid;
  gap: 14px;
}

.swatch-grid-primary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.swatch-grid-accent {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.swatch {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 260px;
  padding: 20px;
  border: none;
  background: var(--swatch);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.swatch:hover {
  opacity: 0.92;
}

.swatch-accent {
  min-height: 170px;
}

.swatch-bordered {
  border: 1px solid var(--line);
}

.swatch-on-dark {
  color: var(--paper);
}

.swatch-role {
  margin-bottom: auto;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.75;
}

.swatch:focus-visible,
.side-nav a:focus-visible,
.side-brand:focus-visible,
.cover-toc a:focus-visible,
.format-chip:focus-visible,
.file-list a:focus-visible,
.demo-btn:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.swatch-name {
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
}

.swatch-value {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
}

.swatch-meta {
  font-size: 10.5px;
  line-height: 1.5;
  opacity: 0.7;
}

.rules-strip {
  margin-top: 24px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.rules-strip p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Typography ---------- */

.type-specimen {
  padding: clamp(40px, 6vw, 80px) clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  text-align: center;
}

.specimen-display {
  font-weight: 400;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.specimen-chars {
  margin-top: 28px;
  font-weight: 400;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.specimen-weights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  margin-top: 34px;
  font-size: 16px;
}

.specimen-weights .w-regular {
  font-weight: 400;
}

.specimen-weights .w-medium {
  font-weight: 500;
}

.specimen-weights .w-semibold {
  font-weight: 600;
}

/* ---------- Files ---------- */

.file-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.file-list-single {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin: 14px auto 0;
}

.file-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.file-list a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.file-type {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--purple);
}

/* ---------- Web: colour roles ---------- */

.role-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
}

.role-list li {
  display: grid;
  grid-template-columns: 44px 170px 100px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px 22px;
}

.role-list li + li {
  border-top: 1px solid var(--line);
}

.role-chip {
  width: 44px;
  height: 44px;
  background: var(--chip);
}

.role-chip-border {
  border: 1px solid var(--line);
}

.role-name {
  font-weight: 600;
  font-size: 14px;
}

.role-value {
  font-size: 13px;
  color: var(--muted);
}

.role-note {
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Web: type scale ---------- */

.scale-list {
  border: 1px solid var(--line);
}

.scale-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
}

.scale-row + .scale-row {
  border-top: 1px solid var(--line);
}

.scale-sample {
  line-height: 1.3;
  letter-spacing: 0.025em;
}

.scale-spec {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--purple);
}

/* ---------- Web: buttons ---------- */

.button-demo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.button-demo {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
}

.button-demo h4 {
  margin-top: 22px;
}

.demo-btn {
  height: 48px;
  width: 100%;
  padding: 0 20px;
  border: none;
  border-radius: 0;
  background: var(--purple);
  color: var(--paper);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.demo-btn-primary {
  background: var(--purple);
}

.demo-btn-primary:hover {
  background: var(--plum);
}

.demo-btn-secondary {
  background: var(--charcoal);
}

.demo-btn-secondary:hover {
  background: var(--purple);
}

.demo-btn-outline {
  background: var(--paper);
  border: 1px solid var(--charcoal);
  color: var(--ink);
}

.demo-btn-outline:hover {
  border-color: var(--ink);
}

.demo-btn-link {
  background: none;
  color: var(--ink);
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: auto;
  align-self: flex-start;
  padding: 0;
}

/* ---------- Web: forms ---------- */

.form-demo-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
}

.form-demo {
  padding: 30px;
  border: 1px solid var(--line);
}

.demo-label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 400;
}

.demo-input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #ccc;
  border-radius: 0;
  background: transparent;
  color: #777;
  font-size: 14px;
  letter-spacing: 0.025em;
  outline: none;
}

.demo-input:focus {
  color: var(--ink);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

.demo-caption {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Web: layout ---------- */

.grid-demo {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-bottom: 14px;
}

.grid-demo span {
  height: 54px;
  background: var(--lilac);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card,
  .logo-card,
  .swatch,
  .demo-btn {
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1160px) {
  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .button-demo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .swatch-grid-primary,
  .swatch-grid-accent {
    grid-template-columns: repeat(2, 1fr);
  }

  .swatch {
    min-height: 190px;
  }

  .role-list li {
    grid-template-columns: 44px 150px 1fr;
  }

  .role-note {
    grid-column: 2 / -1;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 70px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .sidebar {
    position: sticky;
    top: 0;
    inset: auto;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 62px;
    padding: 9px 20px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .side-nav {
    display: none;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    margin: 0;
    padding: 20px 20px 48px;
    background: var(--paper);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar.is-open .side-nav {
    display: block;
  }

  .nav-group + .nav-group {
    margin-top: 24px;
  }

  .side-nav a {
    min-height: 46px;
    padding: 10px 10px;
    font-size: 15px;
  }

  .side-meta {
    display: none;
  }

  .format-chip {
    min-height: 44px;
    padding: 8px 18px;
  }

  .cover-cta {
    width: 100%;
    justify-content: center;
  }

  .content {
    margin-left: 0;
  }

  .wrap,
  .cover-inner {
    width: min(var(--wrap), calc(100% - 40px));
  }

  .cover {
    min-height: 78svh;
  }

  .section {
    padding: 64px 0;
  }

  .section-cols,
  .rules-grid,
  .logo-stages,
  .form-demo-grid {
    grid-template-columns: 1fr;
  }

  .logo-stage-light {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .logo-stage {
    min-height: 250px;
  }

  .file-list {
    grid-template-columns: 1fr;
  }

  .grid-demo span:nth-child(n + 7) {
    display: none;
  }

  .grid-demo {
    grid-template-columns: repeat(6, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .swatch-grid-primary,
  .swatch-grid-accent {
    grid-template-columns: 1fr;
  }

  .scale-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .logo-stage {
    min-height: 200px;
  }

  .logo-card-stage {
    min-height: 160px;
  }

  .download-head {
    flex-direction: column;
  }

  .type-specimen {
    padding: 36px 20px;
  }

  .wrap,
  .cover-inner {
    width: min(var(--wrap), calc(100% - 32px));
  }

  .section {
    padding: 52px 0;
  }

  .swatch {
    min-height: 150px;
  }

  .button-demo-grid {
    grid-template-columns: 1fr;
  }

  .cover-toc a {
    width: 100%;
    justify-content: flex-start;
  }

  .role-list li {
    grid-template-columns: 44px 1fr;
  }

  .role-value {
    grid-column: 2;
  }

  .role-note {
    grid-column: 1 / -1;
  }
}
