/* /brand only. Builds on site.css tokens. */

.brand-intro {
  padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}
.brand-intro .wrap {
  display: grid;
  gap: 20px;
  justify-items: start;
}
.brand-intro h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  letter-spacing: -0.03em;
}
.brand-intro > .wrap > p {
  max-width: 38rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--muted);
}
.btn-meta {
  font-weight: 500;
  opacity: 0.75;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 12px;
}
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 0.9063rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .toc a:hover {
    background: var(--olive-100);
    color: var(--olive-900);
  }
}

.note {
  margin-top: 20px;
  max-width: 44rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Asset cards ---------- */

.brand-toggle {
  margin-bottom: 24px;
}

.asset-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 820px) {
  .asset-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.asset {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--radius);
  background: var(--paper-card);
  box-shadow:
    0 1px 2px rgb(23 27 18 / 0.06),
    0 8px 24px -12px rgb(23 27 18 / 0.18);
  overflow: hidden;
}
.asset-wide {
  max-width: 760px;
}
.asset-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: clamp(20px, 5%, 44px);
}
.asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition:
    opacity 180ms ease,
    filter 180ms ease;
}
.asset-preview img.is-swapping {
  opacity: 0;
  filter: blur(4px);
}
.asset-preview.is-light {
  background: var(--paper);
}
.asset-preview.is-dark {
  background: var(--night);
}
.asset-preview.is-white {
  background: #fff;
}
.asset-preview.is-plain {
  background: var(--paper-deep);
}
.asset-preview .icon-img {
  width: auto;
  max-width: 72%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 28px -14px rgb(23 27 18 / 0.45);
}
.asset-body {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px clamp(18px, 3vw, 24px) 24px;
  border-top: 1px solid var(--line);
}
.asset-body h3 {
  font-size: 1.125rem;
  color: var(--ink);
}

.downloads {
  display: grid;
  gap: 10px;
}
.dl-row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: center;
  gap: 10px;
}
.dl-format {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.dl-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--olive-900);
  font: 600 0.875rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.dl-btn svg {
  width: 16px;
  height: 16px;
}
.dl-btn:active {
  transform: scale(0.97);
}
.dl-btn[aria-busy="true"] {
  cursor: progress;
  opacity: 0.6;
}
@media (hover: hover) and (pointer: fine) {
  .dl-btn:hover {
    background: var(--olive-100);
  }
}

/* ---------- Clear space and sizes ---------- */

.space-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .space-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  }
}
.clearspace {
  margin: 0;
  display: grid;
  gap: 14px;
  justify-items: center;
}
/* The band around the logo is the S height of the horizontal lockup: 125 of
   620 units, so 0.0533 of the logo's width. The S glyph is sized to fill it
   (Poppins caps are 0.7em tall). */
.clearspace {
  container-type: inline-size;
  width: 100%;
}
.clearspace-box {
  --w: min(76cqw, 460px);
  --s: calc(var(--w) * 0.0533);
  position: relative;
  padding: var(--s);
  background: color-mix(in srgb, var(--wood-300) 32%, var(--paper-deep));
  outline: 1.5px dashed var(--leather-600);
  outline-offset: -1px;
}
.clearspace-box img {
  width: var(--w);
  height: auto;
  background: var(--paper-card);
  outline: 1px solid var(--line-strong);
}
.cs-mark {
  position: absolute;
  display: grid;
  place-items: center;
  font: 800 calc(var(--s) / 0.7) / 1 var(--font-display);
  color: var(--leather-700);
  text-box: trim-both cap alphabetic;
}
.cs-top {
  top: 0;
  left: 50%;
  height: var(--s);
  translate: -50% 0;
}
.cs-left {
  top: 50%;
  left: 0;
  width: var(--s);
  translate: 0 -50%;
}
.clearspace figcaption {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--warm);
}

.min-sizes {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.min-sizes li {
  display: grid;
  grid-template-columns: 176px 1fr;
  align-items: center;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.min-sizes li:first-child {
  border-top: 1px solid var(--line);
}
.min-sample {
  display: grid;
  place-items: start;
}
.min-sizes img {
  height: auto;
}
.min-sizes span {
  color: var(--muted);
  font-size: 0.9375rem;
}
.min-sizes strong {
  display: block;
  font: 600 1.125rem/1.3 var(--font-display);
  color: var(--ink);
}

/* ---------- Misuse ---------- */

.misuse {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.misuse li {
  display: grid;
  gap: 12px;
}
.misuse-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 18%;
  border-radius: var(--radius);
  background: var(--paper-deep);
  overflow: hidden;
}
.misuse-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--danger) 35%, transparent);
  pointer-events: none;
}
.misuse-art img {
  width: 100%;
  height: auto;
}
.misuse p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9688rem;
}
.misuse p svg {
  flex: none;
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
}
.m-recolor {
  filter: hue-rotate(150deg) saturate(1.5);
}
.m-stretch {
  transform: scale(1.32, 0.78);
}
.m-rotate {
  transform: rotate(-16deg);
}
.m-effects {
  filter: drop-shadow(8px 10px 0 rgb(23 27 18 / 0.35)) drop-shadow(0 0 10px #f08a2c);
}
.m-type {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
}
.m-type-crop {
  width: 100%;
  aspect-ratio: 1600 / 860;
  overflow: hidden;
}
.m-type-crop img {
  width: 100%;
}
.m-type span {
  font: italic 400 clamp(1.25rem, 2.6vw, 1.75rem) / 1 Georgia, "Times New Roman", serif;
  color: var(--olive-900);
}
.misuse-art.m-contrast {
  background: #6b8431;
}

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

.swatch-groups {
  display: grid;
  gap: 36px;
}
.swatch-group h3 {
  margin-bottom: 14px;
  font-size: 1.125rem;
  color: var(--ink);
}
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.swatch {
  display: grid;
  width: 100%;
  padding: 0 0 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper-card);
  box-shadow:
    0 1px 2px rgb(23 27 18 / 0.06),
    0 6px 18px -12px rgb(23 27 18 / 0.25);
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.swatch:active {
  transform: scale(0.97);
}
.chip-color {
  display: block;
  height: 84px;
  margin-bottom: 10px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgb(23 27 18 / 0.1);
  border-radius: var(--radius) var(--radius) 0 0;
}
.sw-name,
.sw-hex {
  padding-inline: 12px;
}
.sw-name {
  font-weight: 600;
  font-size: 0.9375rem;
}
.sw-hex {
  font-size: 0.875rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.swatch[data-copied] .sw-hex {
  color: var(--olive-800);
  font-weight: 600;
}

/* ---------- Type ---------- */

.type-list {
  border-top: 2px solid var(--olive-900);
}
.type-row {
  display: grid;
  gap: 16px;
  padding-block: clamp(24px, 4vw, 36px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 860px) {
  .type-row {
    grid-template-columns: 16rem 1fr;
    gap: 40px;
    align-items: center;
  }
}
.type-meta h3 {
  font-size: 1.125rem;
  color: var(--ink);
}
.type-meta p {
  margin-top: 4px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.type-sample {
  min-width: 0;
  color: var(--olive-900);
}
.t-display {
  font: 800 clamp(2.5rem, 8vw, 5.5rem) / 1 var(--font-display);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.t-spaced {
  font: 600 clamp(1.5rem, 3.4vw, 2.25rem) / 1.1 var(--font-display);
  letter-spacing: 0.38em;
  color: var(--leather-600);
  overflow-wrap: anywhere;
}
.t-body p {
  max-width: 34rem;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink);
}
.weights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

/* ---------- Naming ---------- */

.naming {
  display: grid;
  gap: 20px;
}
@media (min-width: 820px) {
  .naming {
    grid-template-columns: 1fr 1fr;
  }
}
.name-col {
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius);
  background: var(--paper-card);
}
.name-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1.125rem;
  color: var(--olive-900);
}
.name-col h3 svg {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: var(--olive-900);
  color: #fff;
}
.name-col.is-dont h3 {
  color: var(--danger);
}
.name-col.is-dont h3 svg {
  background: var(--danger);
}
.name-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.name-col li {
  display: grid;
  gap: 2px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.name-col li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.name-sample {
  font: 600 clamp(1.25rem, 2.4vw, 1.5rem) / 1.25 var(--font-display);
  color: var(--ink);
}
.name-role {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- CTA ---------- */

.brand-cta .wrap {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.brand-cta h2 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}
.brand-cta p {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.125rem;
}

/* ---------- Status toast ---------- */

/* Copy and export results, visible as well as announced. */
.toast {
  position: fixed;
  inset-inline: 16px;
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  width: fit-content;
  max-width: 28rem;
  margin-inline: auto;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 10px 30px -12px rgb(23 27 18 / 0.5);
  transition:
    opacity 180ms var(--ease-out),
    translate 180ms var(--ease-out);
}
.toast:empty {
  display: none;
}
@starting-style {
  .toast {
    opacity: 0;
    translate: 0 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: opacity 180ms ease;
  }
}
