@font-face {
  font-family: Manrope;
  src: url(./fonts/manrope-latin-wght-normal.woff2) format('woff2');
  font-weight: 200 800;
  font-display: swap
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: #fff;
  color: #0f172a;
  font: 15px/1.6 Manrope, system-ui, sans-serif
}

main {
  max-width: 1100px;
  margin: auto;
  padding: 48px 28px 24px
}

header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 24px
}

header img {
  width: 110px;
  height: auto
}

a {
  color: #2563eb;
  text-underline-offset: 4px
}

a:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 5px
}

.header-link {
  background: #2563eb;
  color: white;
  border-radius: 8px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 650
}

h1 {
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 40px 0 12px
}

h2 {
  font-size: 21px;
  margin: 42px 0 8px
}

p {
  color: #64748b;
  margin: 8px 0 24px
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  background: #f8fafc;
  border-radius: 12px
}

.hero img {
  width: min(520px, 85%);
  height: auto
}

.colors {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0
}

.color {
  display: flex;
  align-items: center;
  gap: 12px
}

.swatch {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e2e8f0
}

.color small {
  display: block;
  color: #64748b
}

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

.sample {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px
}

.sample img {
  max-width: 100%;
  width: 210px;
  height: auto
}

.dark {
  background: #0f172a;
  border-color: #0f172a
}

.blue {
  background: #2563eb;
  border-color: #2563eb
}

.label {
  font-weight: 650;
  margin-top: 12px
}

.links {
  display: flex;
  gap: 16px;
  margin-top: 5px;
  font-size: 13px
}

.symbols .sample img {
  width: 66px
}

.sizes {
  display: flex;
  align-items: end;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 0
}

.size {
  text-align: center;
  color: #64748b;
  font-size: 12px
}

.size img {
  display: block;
  margin: 0 auto 12px
}

.social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}

.social img {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px
}

footer {
  margin-top: 48px;
  padding-top: 20px
}

.credit {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 20px 0 0;
  font-size: 14px;
  color: #475569;
  text-align: center
}

.credit a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #181c25;
  font-weight: 700;
  text-decoration: none
}

.credit a:hover {
  text-decoration: underline;
  text-underline-offset: 5px
}

.credit img {
  display: block;
  flex-shrink: 0;
  width: 28px;
  height: auto
}

.guide {
  max-width: 820px;
  margin-inline: auto
}

.guide p {
  color: #475569
}

.guide .lead {
  font-size: 18px;
  line-height: 1.7
}

.guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 8px 0 24px;
  border-bottom: 1px solid #e2e8f0
}

.guide-nav a {
  font-size: 14px
}

.guide section {
  scroll-margin-top: 24px
}

.guide code {
  font-size: .9em;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 2px 5px;
  overflow-wrap: anywhere
}

.guide ul {
  padding-left: 22px;
  color: #475569
}

.guide li {
  padding-left: 3px;
  margin: 10px 0;
  overflow-wrap: anywhere
}

.table-scroll {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px
}

.table-scroll:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px
}

.guide table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px
}

.guide th,
.guide td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top
}

.guide thead {
  background: #f8fafc
}

.guide tbody tr:last-child>* {
  border-bottom: 0
}

.guide td:nth-child(2),
.guide td:nth-child(3) {
  white-space: nowrap
}

.kit-list {
  margin: 24px 0
}

.kit-list>div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0
}

.kit-list dt {
  font-weight: 650
}

.kit-list dd {
  margin: 0;
  color: #475569
}

@media(max-width:700px) {
  main {
    padding: 24px 20px 24px
  }

  h1 {
    font-size: 30px
  }

  .grid {
    grid-template-columns: 1fr 1fr
  }

  .social {
    grid-template-columns: 1fr
  }

  .sample {
    height: 130px;
    padding: 18px
  }

  .hero {
    min-height: 180px
  }

  .colors {
    gap: 16px
  }

  .header-link {
    font-size: 12px
  }

  .guide .lead {
    font-size: 16px
  }

  .guide th,
  .guide td {
    padding: 12px
  }

  .kit-list>div {
    grid-template-columns: 110px 1fr;
    gap: 12px
  }
}

@media(max-width:420px) {
  .grid {
    grid-template-columns: 1fr
  }

  .sample {
    height: 145px
  }

  .credit {
    gap: 4px 8px;
    font-size: 12px
  }

  .credit img {
    width: 24px
  }

  .kit-list>div {
    grid-template-columns: 1fr;
    gap: 4px
  }
}
