@font-face {
  font-family: "Barlow Condensed";
  src: url("../public/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../public/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../public/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../public/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../public/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --display: "Barlow Condensed", sans-serif;
  --sans: "IBM Plex Sans", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
  --gutter: clamp(16px, 3vw, 40px);
  font: 400 16px/1.5 var(--sans);
  background: var(--bg);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
figure, dl, dd { margin: 0; }
p { color: var(--text-2); margin: 0 0 16px; }
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; }
h2 { font-size: 56px; line-height: 1; }
h3 { font-size: 28px; line-height: 1.5; margin: 28px 0 12px; }
strong { color: var(--text); font-weight: 500; }
small { font-size: 12px; }
code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { font-size: .88em; overflow-wrap: anywhere; }

.topbar, .footer { padding-inline: var(--gutter); }
.topbar {
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.status, .prompt { display: inline-flex; align-items: center; gap: 8px; }
.status, .eyebrow, .index {
  color: var(--text-2);
  font: 400 12px/1.5 var(--mono);
}
.eyebrow { letter-spacing: .04em; margin-bottom: 12px; }
.status__dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--ok); }
.hero {
  padding: clamp(56px, 8vw, 120px) var(--gutter) clamp(48px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
  background: var(--bg) url("motifs/night-street.svg") right bottom / cover no-repeat;
}
.hero__copy { width: fit-content; max-width: 610px; }
.hero h1 {
  font-size: clamp(48px,6.4vw,96px);
  line-height: .94;
  letter-spacing: -.005em;
}
.hero .lede { max-width: 48ch; font-size: 18px; margin: 24px 0 0; }
.hero__copy .eyebrow, .hero h1, .hero .lede { width: fit-content; background: var(--bg); }
.hero .actions { margin-top: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px 0 20px;
  border: 0;
  border-radius: 4px;
  background: var(--s2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text);
  font: 600 18px/1 var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .12s var(--ease), transform .12s var(--ease);
}
.button:hover { color: var(--text); background: var(--s3); }
.button:active { transform: translateY(1px); }
.button--primary { background: var(--red); color: var(--bg); box-shadow: none; }
.button--primary:hover { background: var(--red-hover); color: var(--bg); }

.frame {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  max-width: 1520px;
  margin-inline: auto;
  padding: 40px var(--gutter) 0;
}
.menu { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 28px; align-self: start; }
.menu__item {
  position: relative;
  padding: 8px 0 8px 20px;
  color: var(--text-2);
  font: 600 34px/1.05 var(--display);
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .12s var(--ease), transform .12s var(--ease);
}
.menu__item::before {
  position: absolute;
  inset: 8px auto 8px 0;
  width: 4px;
  content: "";
  background: var(--red);
  transform: scaleY(0);
  transition: transform .12s var(--ease);
}
.menu__item:hover, .menu__item[aria-current] { color: var(--text); transform: translateX(8px); }
.menu__item[aria-current]::before, .menu__item:focus-visible::before { transform: scaleY(1); }
section { padding: 32px 0 48px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
section:first-child { padding-top: 8px; border-top: 0; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.index { color: var(--red-ink); }
.intro, .rules { max-width: 70ch; }
.rules { color: var(--text-2); margin: 12px 0 20px; padding-left: 20px; }
.rules li + li { margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 254px), 1fr)); gap: 12px; }
.gallery--logo { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery--social { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { background: var(--s1); border: 1px solid var(--line); border-radius: 4px; min-width: 0; overflow: hidden; }
.tile__art {
  display: grid;
  place-items: center;
  background: var(--bg);
  min-height: 100px;
  padding: 16px;
}
.tile__art--light { background: var(--text); }
.tile__art--full { padding: 0; min-height: 0; }
.tile__art--full img { width: 100%; }
.tile__art--icon img { width: min(84px, 100%); }
.favicon-sizes {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 16px;
  min-height: 116px;
}
.favicon-sizes span { display: grid; justify-items: center; gap: 6px; }
.favicon-sizes small { color: var(--text-2); font-family: var(--mono); }
.tile__art--gauge img { width: min(240px, 100%); }
.tile__caption { border-top: 1px solid var(--line); padding: 12px 14px; }
.tile__caption strong, .tile__caption small { display: block; }
.tile__caption small, .downloads { color: var(--text-2); }
.downloads { display: flex; gap: 6px 12px; flex-wrap: wrap; font-size: 12px; margin-top: 6px; }
.tile--wide { margin: 12px 0; }

.logo-checks { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 240px),1fr)); gap: 12px; }
.clear-space {
  padding: 9px;
  border: 1px dashed var(--red-ink);
  position: relative;
  max-width: 100%;
}
.clear-space img { outline: 1px dashed var(--text-2); }
.is-stretched { width: 100%; height: 22px; }
.is-recoloured { filter: grayscale(1); }
.is-offset { filter: drop-shadow(3px 3px 0 var(--text-2)); }
.is-busy { background: var(--bg) url("motifs/night-street.svg") 86% 96% / 215% auto no-repeat; }

.swatches { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 150px),1fr)); gap: 8px; }
.swatch { background: var(--s1); border: 1px solid var(--line); }
.swatch__color { display: block; height: 40px; background: var(--chip); }
.swatch__label { display: block; padding: 8px; font-size: 12px; color: var(--text-2); }
.swatch__label strong { display: block; font: 400 13px/1.5 var(--mono); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; color: var(--text-2); font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; }
th { font-weight: 500; color: var(--text); }
thead th { border-bottom-color: var(--line-2); }
caption { text-align: left; margin: 0 0 8px; color: var(--text-2); }
.ratios td { font: 400 12px/1.5 var(--mono); white-space: nowrap; }
.ratios small { display: block; font: 400 12px/1.5 var(--sans); }
.type-examples { padding: 20px; background: var(--s1); border: 1px solid var(--line); margin-bottom: 12px; }
.type-examples p { margin: 0 0 8px; }
.type-examples .hero-type { font-size: clamp(48px,6.4vw,96px); line-height: .94; letter-spacing: -.005em; color: var(--text); }
.type-examples .heading-type { font-size: 56px; line-height: 1; color: var(--text); }
.type-examples .menu-type { font-size: 34px; line-height: 1.05; letter-spacing: .02em; }
.type-examples .small-type { font-size: 14px; }
.type-examples .mono-type { font-size: 24px; font-weight: 500; }
.glyph-list { display: flex; gap: 8px; flex-wrap: wrap; }
.glyph-link { min-width: 46px; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 8px; color: var(--text-2); background: var(--s1); border: 1px solid var(--line); }
.prompt { color: var(--text-2); font-size: 13px; }
.prompt-row { display: flex; flex-wrap: wrap; gap: 20px; margin: 16px 0; }
.prompt-list { margin: 0; padding-left: 24px; color: var(--text-2); }
.prompt-list li { padding-left: 8px; margin-bottom: 12px; }
.role-chip { display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--chip); }
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  background: var(--s1);
  color: var(--text-2);
}
.footer p { font-size: 12px; margin: 0; }

@media (min-width: 901px) and (max-width: 1120px) {
  .gallery--logo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1120px) {
  .gallery--social { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .topbar { height: 56px; }
  .hero { background-size: auto 85%; }
  .hero .lede { font-size: 16px; }
  .frame { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 8px; }
  .menu { position: static; flex-direction: row; gap: 16px; overflow: auto; border-bottom: 1px solid var(--line); }
  .menu__item { white-space: nowrap; font-size: 20px; padding: 8px 0 12px; }
  .menu__item::before { inset: auto 0 0; width: auto; height: 3px; transform: scaleX(0); }
  .menu__item:hover, .menu__item[aria-current] { transform: none; }
  .menu__item[aria-current]::before, .menu__item:focus-visible::before { transform: scaleX(1); }
  h2 { font-size: 40px; }
}
@media (max-width: 540px) {
  .gallery--logo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery--logo .tile__art { padding-inline: 10px; }
  .gallery--social { grid-template-columns: minmax(0, 1fr); }
  .type-examples .heading-type { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
