@font-face {
  font-family: Yellix;
  src: url("../fonts/Yellix-Regular-CppTqUBc.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Yellix;
  src: url("../fonts/Yellix-Medium-BU-LlvJs.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Yellix;
  src: url("../fonts/Yellix-SemiBold-CnebrTLb.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

@font-face {
  font-family: Suisse Mono;
  src: url("../fonts/Suisse-Mono-kS5xrk7V.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --midnight: #0e0f28;
  --electric: #2a3ef4;
  --sky: #93d9ff;
  --lime: #e0f88c;
  --pink: #fd83a4;
  --ink: #0e0f28;
  --muted: #666978;
  --line: #e5e7eb;
  --paper: #fff;
  --soft: #f8f8f8;
  font-family: Yellix, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Yellix, sans-serif;
}

a { color: inherit; }

.topbar {
  position: relative;
  z-index: 1;
  min-height: 78px;
  padding: 0 max(5vw, calc((100vw - 1320px) / 2));
  border: 0;
  background: var(--midnight);
}

.home-link { display: inline-flex; align-items: center; }

.brand-logo {
  display: block;
  width: 142px;
  height: auto;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-link, .styleguide-link {
  font-family: Suisse Mono, monospace;
  font-size: 11px;
  text-decoration: none;
}

.site-link { color: #fff; }

.site-link span {
  margin-left: 3px;
  color: var(--sky);
}

.styleguide-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 3px;
  background: var(--electric);
  color: #fff;
  transition: background .18s ease;
}

.styleguide-link:hover { background: #1d31dc; }

.download-icon {
  display: block;
  flex: none;
  width: 14px;
  height: 14px;
}

main {
  width: min(1320px, 90vw);
  margin: 0 auto;
}

.intro {
  position: relative;
  isolation: isolate;
  width: 100vw;
  min-height: 310px;
  align-items: end;
  gap: 48px;
  margin-left: calc(50% - 50vw);
  padding: 58px max(5vw, calc((100vw - 1320px) / 2)) 54px;
  overflow: hidden;
  border: 0;
  background-color: var(--midnight);
  background-image: linear-gradient(90deg, rgb(14 15 40 / 16%), rgb(14 15 40 / 8%)), url("../assets/header-bg.jpg");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.intro::after {
  display: none;
  position: absolute;
  z-index: -1;
  top: -30%;
  right: -5%;
  width: 38%;
  height: 170%;
  border-left: 1px solid rgb(147 217 255 / 28%);
  background: linear-gradient(115deg, transparent 0 34%, rgb(42 62 244 / 12%) 34% 48%, transparent 48% 63%, rgb(147 217 255 / 9%) 63% 75%, transparent 75%);
  content: "";
  transform: skewX(-15deg);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sky);
  font-family: Suisse Mono, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 650px;
  margin: 0;
  color: #fff;
  font-family: Yellix, sans-serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1.04;
}

.intro-copy {
  z-index: 1;
  max-width: 410px;
  margin: 0 0 3px;
  color: rgb(255 255 255 / 78%);
  font-size: 15px;
  line-height: 1.65;
}

.palette-section {
  width: min(1320px, 90vw);
  margin: 0 auto;
  padding-bottom: 42px;
}

.palette-heading {
  align-items: end;
  width: min(1320px, 90vw);
  margin: 0 auto;
  padding: 42px 0 18px;
}

.color-mode {
  display: inline-flex;
  flex: none;
  margin-top: 18px;
  border: 1px solid var(--line);
}

.color-mode button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-family: Suisse Mono, monospace;
  font-size: 10px;
}

.color-mode button + button { border-left: 1px solid var(--line); }

.color-mode button[aria-pressed="true"] {
  background: var(--midnight);
  color: #fff;
}

.palette-grid {
  display: grid;
  gap: 10px;
}

.palette-row {
  display: grid;
  grid-template-columns: 3fr repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.palette-swatch {
  display: flex;
  min-width: 0;
  min-height: clamp(120px, 12.75vw, 195px);
  align-items: end;
  padding: 18px max(12px, 2vw);
  padding-left: max(8px, 1.25vw);
  cursor: pointer;
}

.palette-swatch:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 3px;
}

.palette-code {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  font-family: Suisse Mono, monospace;
  font-size: 15px;
  line-height: 1.4;
}

.palette-value { font-size: 80%; }
.palette-channel { opacity: 0.4; }

.palette-electric { background: #2a3ef4; color: #fff; }
.palette-pink { background: #ee8ba4; color: var(--midnight); }
.palette-lime { background: #e5f69a; color: var(--midnight); }
.palette-sky { background: #73c9ff; color: var(--midnight); }
.palette-midnight { background: #0e0f28; color: #fff; }
.palette-grey1 { background: #e5eaf6; color: var(--midnight); }
.palette-grey2 { background: #c1c7d8; color: var(--midnight); }
.palette-grey3 { background: #505972; color: #fff; }

.library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 42px 0 4px;
}

.library-heading .eyebrow {
  margin-bottom: 8px;
  color: var(--electric);
}

.library-heading h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
}

.library-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-family: Suisse Mono, monospace;
  font-size: 10px;
}

.library-heading > p span { color: var(--pink); }

.toolbar {
  padding: 18px 0 16px;
}

.filters { gap: 8px; }

.filter {
  min-height: 36px;
  padding: 0 14px;
  border-color: var(--line);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font-family: Suisse Mono, monospace;
  font-size: 10px;
}

.filter:hover, .filter[aria-pressed="true"] {
  border-color: var(--midnight);
  background: var(--midnight);
  color: #fff;
}

.search {
  height: 38px;
  border-color: var(--line);
  border-radius: 2px;
  font-family: Yellix, sans-serif;
  font-size: 13px;
}

.search:focus { border-color: var(--electric); }

.results-line {
  padding-bottom: 13px;
  color: var(--muted);
  font-family: Suisse Mono, monospace;
  font-size: 10px;
}

.grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 54px;
}

.asset {
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 2px 9px rgb(14 15 40 / 4%);
  animation: appear .36s both;
}

.preview {
  height: 178px;
  background-color: #fff;
  background-image: linear-gradient(45deg, #f0f1f5 25%, transparent 25%), linear-gradient(-45deg, #f0f1f5 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f0f1f5 75%), linear-gradient(-45deg, transparent 75%, #f0f1f5 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  transition: background-color .18s ease;
}

.preview:hover {
  background-color: #e5eaf6;
  background-image: none;
}

.asset-info {
  min-height: 67px;
  border-top-color: var(--line);
}

.asset-name {
  font-family: Yellix, sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.asset-type {
  color: var(--muted);
  font-family: Suisse Mono, monospace;
  font-size: 9px;
}

.open-link {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 2px;
  color: var(--electric);
}

.card-download-icon {
  width: 16px;
  height: 16px;
  background: var(--electric);
  mask: url("../assets/icons/download.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/download.svg") center / contain no-repeat;
}

.open-link:hover { background: #f0f1f5; }

.empty {
  color: var(--muted);
  font-size: 14px;
}

.font-specimen {
  width: min(1320px, 90vw);
  margin: 0 auto;
  padding: 42px 0 64px;
}

.font-specimen-heading { margin-bottom: 36px; }
.font-specimen-heading .eyebrow { margin-bottom: 8px; color: var(--electric); }
.font-specimen-heading h2 { margin: 0; font-size: 28px; font-weight: 500; }

.font-specimen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 64px;
}

.font-specimen-label,
.font-specimen-link {
  font-family: Suisse Mono, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.font-specimen-label { margin: 0; color: var(--muted); }

.font-specimen-name {
  margin: 24px 0 0;
  color: var(--electric);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
}

.font-specimen-glyph {
  margin: 20px 0 24px;
  font-size: 136px;
  line-height: .8;
}

.font-specimen-alphabet {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.font-specimen-part-suisse .font-specimen-glyph,
.font-specimen-part-suisse .font-specimen-alphabet { font-family: Suisse Mono, monospace; }

.font-specimen-usage {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

.font-specimen-guide {
  max-width: 680px;
  margin: 48px auto 0;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 6px 20px rgb(14 15 40 / 8%);
  text-align: center;
}

.font-specimen-guide-copy {
  max-width: 52ch;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.6;
}

.styleguide-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--electric);
  border-radius: 3px;
  background: var(--electric);
  color: #fff;
  text-decoration: none;
  transition: background .18s ease;
}

.styleguide-download:hover {
  border-color: #1d31dc;
  background: #1d31dc;
}

.styleguide-download .card-download-icon { background: #fff; }

.styleguide-download-action {
  flex: none;
  font-family: Suisse Mono, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.font-specimen-license {
  margin: 24px 0 18px;
  padding-left: 14px;
  border-left: 2px solid var(--electric);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.font-specimen-link { color: var(--electric); }

.copy-toast {
  display: flex;
  position: fixed;
  z-index: 5;
  top: 22px;
  left: 50%;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--midnight);
  color: #fff;
  font-family: Suisse Mono, monospace;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  visibility: hidden;
}

.copy-toast-preview {
  width: 20px;
  height: 20px;
  flex: none;
  border: 1px solid rgb(255 255 255 / 35%);
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

footer {
  min-height: 56px;
  align-items: center;
  gap: 16px;
  padding: 15px max(5vw, calc((100vw - 1440px) / 2));
  border: 0;
  background: var(--midnight);
  color: rgb(255 255 255 / 72%);
  font-family: Suisse Mono, monospace;
  font-size: 10px;
}

footer a {
  color: var(--sky);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

@keyframes appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro { min-height: 285px; }
  .font-specimen-grid { gap: 36px; }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 68px;
    padding: 0 5vw;
  }

  .brand-logo { width: 118px; }
  .top-links { gap: 12px; }
  .site-link { display: none; }
  .styleguide-link { min-height: 38px; padding: 0 10px; font-size: 9px; }
  .intro {
    min-height: auto;
    align-items: start;
    flex-direction: column;
    gap: 20px;
    padding: 42px 5vw 38px;
  }

  .intro::after { right: -29%; width: 70%; }
  .intro { background-position: 75% center; }
  .intro h1 { max-width: 400px; font-size: 40px; }
  .intro-copy { max-width: 440px; font-size: 14px; }
  .palette-heading { padding: 32px 0 16px; }
  .palette-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .palette-row { display: contents; }
  .palette-swatch { min-height: 72.5px; padding: 10px 8px; padding-left: 5px; }
  .palette-swatch-large { min-height: 102.5px; grid-column: 1 / -1; order: -1; }
  .palette-code { gap: 6px; font-size: 10px; }
  .font-specimen { padding: 32px 0 44px; }
  .font-specimen-heading { margin-bottom: 28px; }
  .font-specimen-grid { grid-template-columns: 1fr; gap: 36px; }
  .font-specimen-glyph { margin: 18px 0 24px; font-size: 112px; }
  .font-specimen-alphabet { font-size: 14px; }
  .font-specimen-name { font-size: 30px; }
  .font-specimen-guide { margin-top: 36px; padding: 20px 16px; }
  .styleguide-download { padding: 11px 14px; }
  .library-heading { align-items: start; flex-direction: column; gap: 10px; padding-top: 32px; }
  .library-heading h2 { font-size: 24px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .preview { height: 145px; padding: 16px; }
  .asset-info { align-items: start; flex-direction: column; gap: 8px; }
  footer { align-items: start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

.site-link,
.styleguide-link,
.eyebrow,
.library-heading > p,
.filter,
.results-line,
.asset-type,
.open-link,
footer {
  text-transform: uppercase;
}