:root {
  --ink: #333333;
  --paper: #f5f1ea;
  --content-bg: #fafaf9;
  --paper-strong: #f0e9dd;
  --nav-bg: #f8f4ed;
  --line: #1a1a1a20;
  --panel-border: 1px solid var(--line);
  --panel-radius: 10px;
  --orange: #d98463;
  --purple: #5a54b2;
  --forest: #5f7366;
  --coffee: #7a5c4d;
  --slate: #6b6560;
  --max-content: 820px;
  --sidebar-width: 284px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
}

.eyebrow {
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink);
}

.site-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 2rem 1.4rem;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.brand-mark {
  display: inline-block;
  width: 34px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.version {
  margin: 0.75rem 0 0;
  color: var(--ink);
  font-size: 0.92rem;
}

.sidebar-toggle {
  display: none;
  margin-top: 1rem;
  background: var(--ink);
  color: #fff;
  border: none;
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.section-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 2rem;
}

.section-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  padding: 0.45rem 0.55rem;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.section-nav a:hover,
.section-nav a.active {
  color: var(--ink);
  background: #00000006;
}

.content {
  position: relative;
  min-height: 100vh;
  background: var(--content-bg);
  padding: 128px clamp(1.4rem, 4vw, 4.4rem) 7rem;
}

.section {
  max-width: var(--max-content);
  margin: 0 auto 6rem;
  scroll-margin-top: 3rem;
}

.content > .section {
  opacity: 0;
  transform: translateY(16px);
  animation: section-reveal 0.5s ease forwards;
}

.content > .section:nth-child(1) {
  animation-delay: 0.02s;
}

.content > .section:nth-child(2) {
  animation-delay: 0.08s;
}

.content > .section:nth-child(3) {
  animation-delay: 0.14s;
}

.content > .section:nth-child(4) {
  animation-delay: 0.2s;
}

.content > .section:nth-child(5) {
  animation-delay: 0.26s;
}

.content > .section:nth-child(6) {
  animation-delay: 0.32s;
}

.font-display-xl {
  font-size: 96px;
  line-height: 96px;
  font-weight: 600;
  letter-spacing: -3.5px;
}

.site-title {
  margin: 0;
  color: var(--ink);
}

.font-h1,
.section h1 {
  font-size: 72px;
  line-height: 72px;
  letter-spacing: -3.25px;
  font-weight: 600;
}

.font-h3,
.section h3 {
  font-size: 36px;
  line-height: 48px;
  letter-spacing: -0.72px;
  font-weight: 500;
}

.font-h4,
.section h4 {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.48px;
  font-weight: 500;
}

.font-h2,
.section h2 {
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -2px;
  font-weight: 500;
}

.font-h5,
.section h5 {
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.4px;
  font-weight: 500;
}

.font-h6,
.section h6 {
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.36px;
  font-weight: 500;
}

.font-body,
.section p:not(.site-title):not(.type-sample):not(.type-value):not(.type-weight):not(.space-regular) {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--slate);
}

.font-body-lg {
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  color: var(--slate);
}

.font-body-sm {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--slate);
}

.section h1 {
  margin: 0 0 1rem;
}

.section h2 {
  margin: 0 0 1rem;
}

.section h3 {
  margin: 0 0 0.8rem;
}

.section h4 {
  margin: 0.6rem 0 0;
}

.section h5 {
  margin: 0.6rem 0 0;
}

.section h6 {
  margin: 0;
}

.section p:not(.site-title):not(.type-sample):not(.type-value):not(.type-weight):not(.space-regular) {
  max-width: 65ch;
  color: var(--slate);
}

.section h1,
.font-h1,
.section h2,
.font-h2,
.section h3,
.font-h3,
.section h4,
.font-h4,
.section h5,
.font-h5,
.section h6,
.font-h6,
.font-body {
  font-family: "Inter", sans-serif;
}

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

.card {
  background: #fff;
  border: var(--panel-border);
  border-radius: var(--panel-radius);
  padding: 1.2rem 1.2rem;
}

.mono {
  margin-top: 0.85rem;
  font-family: "Space Mono", monospace;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.logo-lockups {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

.lockup {
  display: grid;
  gap: 0.8rem;
}

.lockup-frame {
  display: grid;
  place-items: center;
  min-height: 300px;
  border: var(--panel-border);
  border-radius: var(--panel-radius);
  background: #ffffff;
}

.lockup-frame img {
  width: min(70%, 460px);
  max-height: 210px;
  object-fit: contain;
  display: block;
}

.lockup-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.5rem 0.72rem;
  border: var(--panel-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.2;
}

.lockup-download:hover {
  background: #f3f3f2;
}

.type-scale {
  margin-top: 2rem;
  display: grid;
  gap: 2.5rem;
}

.type-family {
  display: grid;
  gap: 0.8rem;
}

.type-note {
  margin: 0;
}

.type-rows {
  display: grid;
}

.type-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 120px;
  align-items: center;
  gap: 1.2rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.type-weight {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
}

.type-value {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
}

.type-sample {
  margin: 0;
  font-family: "Inter", sans-serif;
  white-space: nowrap;
}

.space-regular {
  font-family: "Space Mono", monospace;
  font-weight: 400;
}

@media (max-width: 960px) {
  .site-title,
  .font-display-xl {
    font-size: clamp(52px, 14vw, 96px);
    line-height: clamp(52px, 14vw, 96px);
    letter-spacing: -1.8px;
  }

  .section h1,
  .font-h1 {
    font-size: clamp(44px, 12vw, 72px);
    line-height: clamp(44px, 12vw, 72px);
    letter-spacing: -1.6px;
  }

  .section h2,
  .font-h2 {
    font-size: clamp(34px, 9vw, 48px);
    line-height: clamp(40px, 9.5vw, 56px);
  }

  .section h3,
  .font-h3 {
    font-size: clamp(30px, 8vw, 36px);
    line-height: clamp(36px, 9vw, 48px);
  }

  .section h4,
  .font-h4 {
    font-size: clamp(22px, 6vw, 24px);
    line-height: clamp(30px, 7vw, 32px);
  }

  .section h5,
  .font-h5 {
    font-size: clamp(19px, 5vw, 20px);
    line-height: clamp(26px, 6vw, 28px);
  }

  .section h6,
  .font-h6 {
    font-size: clamp(17px, 4.5vw, 18px);
    line-height: clamp(22px, 5vw, 24px);
  }

  .type-row {
    grid-template-columns: minmax(0, 1fr) 70px 100px;
  }

  .font-display-xl {
    font-size: 44px;
    line-height: 44px;
    letter-spacing: -1.6px;
  }

  .font-h1 {
    font-size: 36px;
    line-height: 40px;
    letter-spacing: -1.2px;
  }

  .font-h2 {
    font-size: 30px;
    line-height: 36px;
  }

  .font-h3 {
    font-size: 26px;
    line-height: 32px;
  }

  .type-scale {
    grid-template-columns: 1fr;
  }
}

.swatches {
  display: grid;
  gap: 0.75rem;
}

.swatch {
  position: relative;
  background: #fff;
  border: var(--panel-border);
  border-radius: var(--panel-radius);
  padding: 0.75rem;
  cursor: pointer;
}

.swatch .mono {
  margin-top: 0.45rem;
}

.swatch-copy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.2rem 0.42rem;
  border: var(--panel-border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.swatch:hover .swatch-copy,
.swatch:focus-within .swatch-copy {
  opacity: 1;
}

.swatch.copied .swatch-copy {
  background: #f3f3f2;
}

.chip {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid #00000030;
}

.chip-ink {
  background: var(--ink);
}

.chip-paper {
  background: var(--paper-strong);
}

.chip-orange {
  background: var(--orange);
}

.chip-purple {
  background: var(--purple);
}

.chip-forest {
  background: var(--forest);
}

.chip-coffee {
  background: var(--coffee);
}

.chip-slate {
  background: var(--slate);
}

.chip-mist {
  background: var(--content-bg);
}

.palette-group {
  margin-top: 1.7rem;
}

.palette-list {
  margin: 0.4rem 0 0.95rem;
}

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

.dos-donts > div {
  border: var(--panel-border);
  border-radius: var(--panel-radius);
  background: #fff;
  padding: 0.95rem;
}

#logo,
#typography,
#iconography,
#colours {
  padding-top: 2.2rem;
}

.swatches-primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.swatches-primary .chip {
  aspect-ratio: 16 / 10;
}

.swatches-secondary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.swatches-backgrounds {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

@keyframes section-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .content > .section {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 960px) {
  .site-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    height: auto;
    z-index: 20;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    backdrop-filter: blur(6px);
  }

  .sidebar-toggle {
    display: inline-block;
  }

  .section-nav {
    max-height: 0;
    overflow: hidden;
    margin-top: 0.65rem;
    transition: max-height 0.24s ease;
  }

  body.sidebar-open .section-nav {
    max-height: 320px;
  }

  .content {
    min-height: auto;
    padding: 1.25rem 1rem 4rem;
  }

  .card-grid,
  .swatches,
  .dos-donts {
    grid-template-columns: 1fr;
  }

  .swatches-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
