/* spec 10.1. */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

/* spec 10.1. */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-variable-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: block;
}

h1, p, a, li, th, td {
  margin: 0;
  color: black;
  font-size: 14px;
  line-height: 19px;
  letter-spacing: -0.2px;
  font-weight: 475;
}

h1 {
  font-weight: 525;
}

a {
  display: inline;
  -webkit-tap-highlight-color: transparent;
  text-decoration: underline;
  text-decoration-color: #eeeff2;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: all var(--transition-duration) var(--transition-easing);
}

a:hover {
  text-decoration-color: #d4d4d8;
}

a:focus {
  outline: none;
  text-decoration-color: #d4d4d8;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  padding-left: 20px;
}

li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  width: 4px;
  height: 4px;
  /* bug 1. */
  box-shadow: inset 0 0 0 4px black;
  border-radius: 50%;
}

li + li {
  margin-top: 0;
}

ul.spaced li + li {
  margin-top: 10px;
}

blockquote {
  position: relative;
  margin: 0;
  padding-left: 10px;
}

blockquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc((19px / 4 - 2px) / 2),
    black calc((19px / 4 - 2px) / 2),
    black calc((19px / 4 + 2px) / 2),
    transparent calc((19px / 4 + 2px) / 2),
    transparent calc(19px / 4)
  );
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  border-bottom: 2px solid #eeeff2;
}

tbody tr:nth-child(even) {
  background: #f4f5f5;
}

th, td {
  text-align: left;
  padding: 1px 16px 1px 0;
  white-space: nowrap;
}

::selection {
  background: rgba(0, 0, 0, 0.15);
}

.header {
  display: flex;
  flex-direction: column;
}

.fonts {
  visibility: hidden;
}

.secondary {
  color: #0006;
}

/* spec 10.4. */
.table-container {
  position: relative;
}

/* spec 10.4. */
.table-container::before,
.table-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #eeeff2;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-duration) var(--transition-easing);
}

/* spec 10.4. */
.table-container::before {
  left: 0;
}

/* spec 10.4. */
.table-container::after {
  right: 0;
}

/* spec 10.4. */
.table-container.cut-left::before {
  opacity: 1;
}

/* spec 10.4. */
.table-container.cut-right::after {
  opacity: 1;
}

/* spec 10.4. */
.table-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
}

/* spec 10.4. */
.table-wrapper::-webkit-scrollbar {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  h1, p, a, li, th, td {
    font-size: 14.5px;
    line-height: 20px;
    font-weight: 500;
  }
  
  h1 {
    font-weight: 550;
  }

  blockquote::before {
    background: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc((20px / 4 - 2px) / 2),
      black calc((20px / 4 - 2px) / 2),
      black calc((20px / 4 + 2px) / 2),
      transparent calc((20px / 4 + 2px) / 2),
      transparent calc(20px / 4)
    );
  }
}
